[eog/gestures: 5/5] EogWindow: Handle EogScrollView next/previous image signals
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/gestures: 5/5] EogWindow: Handle EogScrollView next/previous image signals
- Date: Wed, 13 Aug 2014 11:44:39 +0000 (UTC)
commit 4cbd2d31b36f901fb814c5c7757963f37f9ff8e5
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon May 19 14:40:54 2014 +0200
EogWindow: Handle EogScrollView next/previous image signals
src/eog-window.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 4aa4b31..5eb89f2 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4841,6 +4841,20 @@ eog_window_view_rotation_changed_cb (EogScrollView *view,
}
static void
+eog_window_view_next_image_cb (EogScrollView *view,
+ EogWindow *window)
+{
+ eog_window_cmd_go_next (NULL, window);
+}
+
+static void
+eog_window_view_previous_image_cb (EogScrollView *view,
+ EogWindow *window)
+{
+ eog_window_cmd_go_prev (NULL, window);
+}
+
+static void
eog_window_construct_ui (EogWindow *window)
{
EogWindowPrivate *priv;
@@ -5044,6 +5058,14 @@ eog_window_construct_ui (EogWindow *window)
"rotation-changed",
G_CALLBACK (eog_window_view_rotation_changed_cb),
window);
+ g_signal_connect (priv->view,
+ "next-image",
+ G_CALLBACK (eog_window_view_next_image_cb),
+ window);
+ g_signal_connect (priv->view,
+ "previous-image",
+ G_CALLBACK (eog_window_view_previous_image_cb),
+ window);
gtk_container_add (GTK_CONTAINER(priv->overlay), priv->view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]