[epiphany] ephy-page-menu-action: set the DROPDOWN type hint on the page menu
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-page-menu-action: set the DROPDOWN type hint on the page menu
- Date: Tue, 17 Jan 2012 00:06:39 +0000 (UTC)
commit 9bb5bb93f0b33efd575128e1c386bcdeec446fbf
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 16 19:05:16 2012 -0500
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.
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 03e305e..66ecabd 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]