Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: views/controls/menu/native_menu_gtk.cc

Issue 3533001: Add SetMinimumWidth to Menu2 for chromeos. Removed LanguageSwitchModel::GetFirstLevelMenuWidth (Closed)
Patch Set: updated comment Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/menu/native_menu_gtk.h ('k') | views/controls/menu/native_menu_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/native_menu_gtk.cc
diff --git a/views/controls/menu/native_menu_gtk.cc b/views/controls/menu/native_menu_gtk.cc
index 7954d20057ebc416589ff239baf6dfd120a23e3b..b65d7e58e21cc5942246c13734b6c25c95682ae3 100644
--- a/views/controls/menu/native_menu_gtk.cc
+++ b/views/controls/menu/native_menu_gtk.cc
@@ -195,6 +195,10 @@ void NativeMenuGtk::RemoveMenuListener(MenuListener* listener) {
}
}
+void NativeMenuGtk::SetMinimumWidth(int width) {
+ gtk_widget_set_size_request(menu_, width, -1);
+}
+
bool NativeMenuGtk::Dispatch(GdkEvent* event) {
if (menu_hidden_) {
// The menu has been closed but the message loop is still nested. Don't
« no previous file with comments | « views/controls/menu/native_menu_gtk.h ('k') | views/controls/menu/native_menu_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698