diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-01-17 08:05:16 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-01-17 08:05:16 +0800 |
commit | 9bb5bb93f0b33efd575128e1c386bcdeec446fbf (patch) | |
tree | 10ac221496abe33c76c9666bba689af620db3a14 | |
parent | 94ddc090c0719baa827228d09ee92d952508aeb3 (diff) | |
download | gsoc2013-epiphany-9bb5bb93f0b33efd575128e1c386bcdeec446fbf.tar gsoc2013-epiphany-9bb5bb93f0b33efd575128e1c386bcdeec446fbf.tar.gz gsoc2013-epiphany-9bb5bb93f0b33efd575128e1c386bcdeec446fbf.tar.bz2 gsoc2013-epiphany-9bb5bb93f0b33efd575128e1c386bcdeec446fbf.tar.lz gsoc2013-epiphany-9bb5bb93f0b33efd575128e1c386bcdeec446fbf.tar.xz gsoc2013-epiphany-9bb5bb93f0b33efd575128e1c386bcdeec446fbf.tar.zst gsoc2013-epiphany-9bb5bb93f0b33efd575128e1c386bcdeec446fbf.zip |
ephy-page-menu-action: set the DROPDOWN type hint on the page menu
So that the WM will use shadows on it as if it was generated from a
menubar.
-rw-r--r-- | src/ephy-page-menu-action.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ephy-page-menu-action.c b/src/ephy-page-menu-action.c index 03e305ea6..66ecabd64 100644 --- a/src/ephy-page-menu-action.c +++ b/src/ephy-page-menu-action.c @@ -41,6 +41,10 @@ menu_position_func (GtkMenu *menu, GtkRequisition menu_req; GtkTextDirection direction; GdkWindow *window; + GtkWidget *toplevel; + + toplevel = gtk_widget_get_toplevel (GTK_WIDGET (menu)); + gtk_window_set_type_hint (GTK_WINDOW (toplevel), GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU); gtk_widget_get_preferred_size (GTK_WIDGET (menu), &menu_req, NULL); |