aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-page-menu-action.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-01-17 08:05:16 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2012-01-17 08:05:16 +0800
commit9bb5bb93f0b33efd575128e1c386bcdeec446fbf (patch)
tree10ac221496abe33c76c9666bba689af620db3a14 /src/ephy-page-menu-action.c
parent94ddc090c0719baa827228d09ee92d952508aeb3 (diff)
downloadgsoc2013-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.
Diffstat (limited to 'src/ephy-page-menu-action.c')
-rw-r--r--src/ephy-page-menu-action.c4
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);