[epiphany] Revert "Zoom on ctrl+scroll"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "Zoom on ctrl+scroll"
- Date: Sun, 16 Dec 2018 18:46:21 +0000 (UTC)
commit 668cb9386d8734fe881b3e1a5fba60254e22a0b9
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Dec 16 12:45:58 2018 -0600
Revert "Zoom on ctrl+scroll"
This reverts commit 29cbc21665a1bea1c3897fe01a89ee2b98c5f086.
See the problem discussed in #184.
src/ephy-window.c | 26 --------------------------
1 file changed, 26 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 0e5cf9c77..8211673de 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -600,31 +600,6 @@ ephy_window_delete_event (GtkWidget *widget,
return FALSE;
}
-static gboolean
-ephy_window_scroll_event (GtkWidget *window,
- GdkEventScroll *event)
-{
- GAction *action;
- GActionGroup *action_group;
- const char *action_name;
-
- if ((event->state & gtk_accelerator_get_default_mod_mask ()) != GDK_CONTROL_MASK)
- return GDK_EVENT_PROPAGATE;
-
- if (event->direction == GDK_SCROLL_UP)
- action_name = "zoom-in";
- else if (event->direction == GDK_SCROLL_DOWN)
- action_name = "zoom-out";
- else
- return GDK_EVENT_PROPAGATE;
-
- action_group = gtk_widget_get_action_group (window, "win");
- action = g_action_map_lookup_action (G_ACTION_MAP (action_group), action_name);
- g_action_activate (action, NULL);
-
- return GDK_EVENT_STOP;
-}
-
#define MAX_SPELL_CHECK_GUESSES 4
static void
@@ -3440,7 +3415,6 @@ ephy_window_class_init (EphyWindowClass *klass)
widget_class->show = ephy_window_show;
widget_class->destroy = ephy_window_destroy;
widget_class->delete_event = ephy_window_delete_event;
- widget_class->scroll_event = ephy_window_scroll_event;
g_object_class_override_property (object_class,
PROP_ACTIVE_CHILD,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]