~chromium-team/chromium-browser/artful-beta

« back to all changes in this revision

Viewing changes to debian/patches/menu-bar-visible.patch

  • Committer: Chad Miller
  • Date: 2013-09-26 18:43:04 UTC
  • Revision ID: chad.miller@canonical.com-20130926184304-dbf45my755qknbss
* New release 29.0.1547.76.
* debian/tests/...: Make first real tests using sikuli. Probably quite
  fragile on changes to upstream. (LP: #1222895)
* debian/patches/4-chromeless-window-launch-option.patch: Make new windows
  use their own state instead of checking the parameters of the instance that
  started all processes for whether a window has chrome or not. (LP: #1223855)
* Update autopkgtest tests.
* debian/patches/series: Drop comment references to old patches.  Remove
  files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
  packed into the layout.
3
3
Author: William Hua <attente@canonical.com>
4
4
 
5
 
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
6
 
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
7
 
@@ -1610,7 +1610,9 @@ void BrowserWindowGtk::InitWidgets() {
 
5
--- a/src/chrome/browser/ui/gtk/browser_window_gtk.cc
 
6
+++ b/src/chrome/browser/ui/gtk/browser_window_gtk.cc
 
7
@@ -1592,7 +1592,9 @@
8
8
   // GtkMenuBar it sees into the global menu bar. (It doesn't seem to check the
9
9
   // visibility of the GtkMenuBar, so we can just permanently hide it.)
10
10
   global_menu_bar_.reset(new GlobalMenuBar(browser_.get()));
15
15
 
16
16
   // The window container draws the custom browser frame.
17
17
   window_container_ = gtk_alignment_new(0.0, 0.0, 1.0, 1.0);
18
 
--- a/chrome/browser/ui/gtk/global_menu_bar.cc
19
 
+++ b/chrome/browser/ui/gtk/global_menu_bar.cc
20
 
@@ -158,7 +158,7 @@ GlobalMenuBar::GlobalMenuBar(Browser* br
 
18
--- a/src/chrome/browser/ui/gtk/global_menu_bar.cc
 
19
+++ b/src/chrome/browser/ui/gtk/global_menu_bar.cc
 
20
@@ -154,7 +154,7 @@
 
21
   // The global menu bar should never actually be shown in the app; it should
21
22
   // instead remain in our widget hierarchy simply to be noticed by third party
22
23
   // components.
23
 
   g_object_ref_sink(menu_bar_);
24
 
-  gtk_widget_set_no_show_all(menu_bar_, TRUE);
25
 
+  gtk_widget_set_size_request(menu_bar_, 0, 0);
 
24
-  gtk_widget_set_no_show_all(menu_bar_.get(), TRUE);
 
25
+  gtk_widget_set_size_request(menu_bar_.get(), 0, 0);
26
26
 
27
27
   // Set a nice name so it shows up in gtkparasite and others.
28
 
   gtk_widget_set_name(menu_bar_, "chrome-hidden-global-menubar");
 
28
   gtk_widget_set_name(menu_bar_.get(), "chrome-hidden-global-menubar");