[Xfce4-commits] [apps/ristretto] 01/01: Prepare for gtk3 migration: Replace GDK_<keyname> with GDK_KEY_<keyname>

noreply at xfce.org noreply at xfce.org
Fri Sep 9 17:17:15 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/ristretto.

commit 995ac81ba3fbde694b7d934f50f1a5ee967d9027
Author: Igor <f2404 at yandex.ru>
Date:   Fri Sep 9 18:17:10 2016 +0300

    Prepare for gtk3 migration: Replace GDK_<keyname> with GDK_KEY_<keyname>
---
 src/main_window.c |  8 ++++----
 src/settings.c    | 16 ++++++++--------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index b01254d..067590c 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -4152,12 +4152,12 @@ key_press_event (
     {
         switch(event->keyval)
         {
-            case GDK_Up:
-            case GDK_Left:
+            case GDK_KEY_Up:
+            case GDK_KEY_Left:
                 rstto_image_list_iter_previous (rstto_window->priv->iter);
                 break;
-            case GDK_Right:
-            case GDK_Down:
+            case GDK_KEY_Right:
+            case GDK_KEY_Down:
                 rstto_image_list_iter_next (rstto_window->priv->iter);
                 break;
             case GDK_KEY_Escape:
diff --git a/src/settings.c b/src/settings.c
index 6f75661..b4d3cc8 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -161,17 +161,17 @@ rstto_settings_init (GObject *object)
         /* If the accels.scm file is missing, we are probably
          * dealing with a first-boot. Add default accelerators.
          */
-        gtk_accel_map_change_entry ("<Window>/fullscreen", GDK_F, 0, FALSE);
-        gtk_accel_map_change_entry ("<Window>/unfullscreen", GDK_Escape, 0, FALSE);
-        gtk_accel_map_change_entry ("<Window>/next-image", GDK_Page_Down, 0, FALSE);
-        gtk_accel_map_change_entry ("<Window>/previous-image", GDK_Page_Up, 0, FALSE);
-        gtk_accel_map_change_entry ("<Window>/quit", GDK_q, 0, FALSE);
+        gtk_accel_map_change_entry ("<Window>/fullscreen", GDK_KEY_F, 0, FALSE);
+        gtk_accel_map_change_entry ("<Window>/unfullscreen", GDK_KEY_Escape, 0, FALSE);
+        gtk_accel_map_change_entry ("<Window>/next-image", GDK_KEY_Page_Down, 0, FALSE);
+        gtk_accel_map_change_entry ("<Window>/previous-image", GDK_KEY_Page_Up, 0, FALSE);
+        gtk_accel_map_change_entry ("<Window>/quit", GDK_KEY_q, 0, FALSE);
 
-        gtk_accel_map_change_entry ("<Window>/delete", GDK_Delete, GDK_SHIFT_MASK, FALSE);
+        gtk_accel_map_change_entry ("<Window>/delete", GDK_KEY_Delete, GDK_SHIFT_MASK, FALSE);
 
-        gtk_accel_map_change_entry ("<Window>/refresh", GDK_r, GDK_CONTROL_MASK, FALSE);
+        gtk_accel_map_change_entry ("<Window>/refresh", GDK_KEY_r, GDK_CONTROL_MASK, FALSE);
 
-        gtk_accel_map_change_entry ("<Actions>/RsttoWindow/play", GDK_F5, 0, FALSE);
+        gtk_accel_map_change_entry ("<Actions>/RsttoWindow/play", GDK_KEY_F5, 0, FALSE);
     }
     
     settings->priv->slideshow_timeout = 5;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list