aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-19 01:31:54 +0800
committerXan Lopez <xan@igalia.com>2012-01-19 01:31:54 +0800
commit19171bd7fe27bc87fa68b3272a2715a710ea8c6b (patch)
tree2e2d8cae566ec4f7174298dfb97347bf1ada9c11 /src
parentb08c6814062e80ef37d3dded8e17f6bf9dd726ef (diff)
downloadgsoc2013-epiphany-19171bd7fe27bc87fa68b3272a2715a710ea8c6b.tar
gsoc2013-epiphany-19171bd7fe27bc87fa68b3272a2715a710ea8c6b.tar.gz
gsoc2013-epiphany-19171bd7fe27bc87fa68b3272a2715a710ea8c6b.tar.bz2
gsoc2013-epiphany-19171bd7fe27bc87fa68b3272a2715a710ea8c6b.tar.lz
gsoc2013-epiphany-19171bd7fe27bc87fa68b3272a2715a710ea8c6b.tar.xz
gsoc2013-epiphany-19171bd7fe27bc87fa68b3272a2715a710ea8c6b.tar.zst
gsoc2013-epiphany-19171bd7fe27bc87fa68b3272a2715a710ea8c6b.zip
ephy-toolbar: set the MENUBAR style class
That way we can drag the app using the toolbar itself.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-toolbar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index a6f169c95..48447eb0c 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);