~ubuntu-branches/ubuntu/quantal/glade-3/quantal

« back to all changes in this revision

Viewing changes to gladeui/glade-widget.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-04-01 09:16:49 UTC
  • Revision ID: james.westby@ubuntu.com-20110401091649-69sa4ca5eu2qw9xq
Tags: 3.7.3-0ubuntu2
* debian/patches/10_ubuntu_show_embedded_menus.patch:
  - Show embedded menu bars.  LP: #707606

Show diffs side-by-side

added added

removed removed

Lines of Context:
1914
1914
        return g_list_reverse (packing_props);
1915
1915
}
1916
1916
 
 
1917
/* Tells Ubuntu to show any embedded menu bars */
 
1918
static void
 
1919
ubuntu_show_menu_bars (GtkWidget *widget)
 
1920
{
 
1921
        if (GTK_IS_MENU_BAR (widget) &&
 
1922
            g_object_class_find_property (G_OBJECT_GET_CLASS (widget),
 
1923
                                          "ubuntu-local") != NULL)
 
1924
        {
 
1925
                g_object_set (G_OBJECT (widget),
 
1926
                              "ubuntu-local", TRUE,
 
1927
                              NULL);
 
1928
        }
 
1929
        else if (GTK_IS_CONTAINER (widget))
 
1930
        {
 
1931
                gtk_container_foreach (GTK_CONTAINER (widget),
 
1932
                                       (GtkCallback)ubuntu_show_menu_bars,
 
1933
                                       NULL);
 
1934
        }
 
1935
}
 
1936
 
1917
1937
/*******************************************************************************
1918
1938
                                     API
1919
1939
 *******************************************************************************/
4389
4409
        
4390
4410
        if (glade_window_is_embedded (window)) return TRUE;
4391
4411
        
 
4412
        ubuntu_show_menu_bars (widget);
 
4413
 
4392
4414
        if (gtk_widget_get_realized (widget)) gtk_widget_unrealize (widget);
4393
4415
 
4394
4416
        GTK_WIDGET_UNSET_FLAGS (widget, GTK_TOPLEVEL);