diff options
author | Carlos Garcia Campos <[email protected]> | 2013-07-12 12:20:32 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-09-06 18:25:34 +0200 |
commit | ccc250e10e478364e610dc9d274dec1466cc24a4 (patch) | |
tree | 693ef03eb39236d826c173fa31975e753044caa0 /shell/ev-window.c | |
parent | cf640c0d122399633ab7c0652ca63af2f0f00672 (diff) | |
download | atril-ccc250e10e478364e610dc9d274dec1466cc24a4.tar.bz2 atril-ccc250e10e478364e610dc9d274dec1466cc24a4.tar.xz |
ev-window: Use g_signal_emit_by name instead of ev_view_scroll
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3e32b5d
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 3d3a4d97..0555d95f 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -3921,7 +3921,7 @@ ev_window_cmd_scroll_forward (GtkAction *action, EvWindow *window) if (window->priv->document && window->priv->document->iswebdocument == TRUE) return; - ev_view_scroll (EV_VIEW (window->priv->view), GTK_SCROLL_PAGE_FORWARD, FALSE); + g_signal_emit_by_name (window->priv->view, "scroll", GTK_SCROLL_PAGE_FORWARD, GTK_ORIENTATION_VERTICAL); } static void @@ -3931,7 +3931,7 @@ ev_window_cmd_scroll_backward (GtkAction *action, EvWindow *window) if (window->priv->document && window->priv->document->iswebdocument == TRUE) return; - ev_view_scroll (EV_VIEW (window->priv->view), GTK_SCROLL_PAGE_BACKWARD, FALSE); + g_signal_emit_by_name (window->priv->view, "scroll", GTK_SCROLL_PAGE_BACKWARD, GTK_ORIENTATION_VERTICAL); } static void @@ -5698,15 +5698,6 @@ find_bar_visibility_changed_cb (EggFindBar *find_bar, } static void -find_bar_scroll (EggFindBar *find_bar, - GtkScrollType scroll, - EvWindow *ev_window) -{ - if (ev_window->priv->document->iswebdocument == TRUE ) return ; - ev_view_scroll (EV_VIEW (ev_window->priv->view), scroll, FALSE); -} - -static void zoom_control_changed_cb (EphyZoomAction *action, float zoom, EvWindow *ev_window) @@ -7988,10 +7979,6 @@ ev_window_init (EvWindow *ev_window) "notify::visible", G_CALLBACK (find_bar_visibility_changed_cb), ev_window); - g_signal_connect (ev_window->priv->find_bar, - "scroll", - G_CALLBACK (find_bar_scroll), - ev_window); /* Popups */ ev_window->priv->view_popup = gtk_ui_manager_get_widget (ev_window->priv->ui_manager, |