[evince] ev-window: Use g_signal_emit_by name instead of ev_view_scroll
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] ev-window: Use g_signal_emit_by name instead of ev_view_scroll
- Date: Fri, 12 Jul 2013 10:31:07 +0000 (UTC)
commit 3e32b5df04545d684db85fe750b4a5e9c81a9cc7
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Fri Jul 12 12:20:32 2013 +0200
ev-window: Use g_signal_emit_by name instead of ev_view_scroll
shell/ev-window.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index f644282..2c9edf3 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3773,13 +3773,13 @@ ev_window_cmd_focus_page_selector (GtkAction *act, EvWindow *window)
static void
ev_window_cmd_scroll_forward (GtkAction *action, EvWindow *window)
{
- 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
ev_window_cmd_scroll_backward (GtkAction *action, EvWindow *window)
{
- 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
@@ -5427,14 +5427,6 @@ find_bar_visibility_changed_cb (EggFindBar *find_bar,
}
static void
-find_bar_scroll (EggFindBar *find_bar,
- GtkScrollType scroll,
- EvWindow *ev_window)
-{
- ev_view_scroll (EV_VIEW (ev_window->priv->view), scroll, FALSE);
-}
-
-static void
update_toggle_find_action (EvWindow *ev_window,
gboolean active)
{
@@ -7465,10 +7457,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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]