[epiphany] ephy-toolbar: set the MENUBAR style class
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-toolbar: set the MENUBAR style class
- Date: Wed, 18 Jan 2012 17:32:17 +0000 (UTC)
commit 19171bd7fe27bc87fa68b3272a2715a710ea8c6b
Author: Xan Lopez <xan igalia com>
Date: Wed Jan 18 18:31:54 2012 +0100
ephy-toolbar: set the MENUBAR style class
That way we can drag the app using the toolbar itself.
src/ephy-toolbar.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index a6f169c..48447eb 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -87,6 +87,11 @@ ephy_toolbar_constructed (GObject *object)
toolbar = GTK_WIDGET (object);
+ /* Set the MENUBAR style class so it's possible to drag the app
+ * using the toolbar. */
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+ GTK_STYLE_CLASS_MENUBAR);
+
/* Back and Forward */
back_forward = gtk_tool_item_new ();
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]