diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2014-08-15 10:08:10 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2014-08-27 07:53:32 -0500 |
commit | a8a36805b2e51987591a3eeb255c5d865f62f89d (patch) | |
tree | 43a08a6e348e41ffedb2b325b8417db7fc5e1ec9 /src | |
parent | 5670dc7775c2e76b7f2fd44e3d237884ac5af91a (diff) | |
download | epiphany-a8a36805b2e51987591a3eeb255c5d865f62f89d.tar.gz |
ephy-title-box: allow clicking lock in app mode
https://bugzilla.gnome.org/show_bug.cgi?id=666808
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-title-box.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ephy-title-box.c b/src/ephy-title-box.c index 8ee4a4f88..3fddcc4f3 100644 --- a/src/ephy-title-box.c +++ b/src/ephy-title-box.c @@ -337,8 +337,7 @@ ephy_title_box_button_press_event (GtkWidget *widget, GtkAllocation lock_allocation; if (priv->mode != EPHY_TITLE_BOX_MODE_TITLE - || event->button != GDK_BUTTON_PRIMARY - || priv->location_disabled) + || event->button != GDK_BUTTON_PRIMARY) return GDK_EVENT_PROPAGATE; LOG ("button-press-event title-box %p event %p", title_box, event); @@ -350,9 +349,9 @@ ephy_title_box_button_press_event (GtkWidget *widget, event->y >= lock_allocation.y && event->y < lock_allocation.y + lock_allocation.height) { g_signal_emit (title_box, signals[LOCK_CLICKED], 0, (GdkRectangle *)&lock_allocation); - } else if (event->type == GDK_BUTTON_PRESS) { + } else if (!priv->location_disabled && event->type == GDK_BUTTON_PRESS) { priv->button_down = TRUE; - } else { + } else if (!priv->location_disabled) { priv->button_down = FALSE; ephy_title_box_cancel_switch_to_entry_after_double_click_time (title_box); } |