Fix few forgotten GDK_ to GDK_KEY_ renames in plugins.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Feb 2018 20:15:01 +0000 (21:15 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Feb 2018 20:35:08 +0000 (21:35 +0100)
src/plugins/att_remover/att_remover.c
src/plugins/fancy/fancy_viewer.c
src/plugins/notification/gtkhotkey/x11/eggaccelerators.c
src/plugins/notification/notification_foldercheck.c
src/plugins/python/python-shell.c
src/plugins/rssyl/rssyl_feed_props.c
src/plugins/vcalendar/vcal_meeting_gtk.c

index b8a3cde..4684a29 100644 (file)
@@ -87,7 +87,7 @@ static MimeInfo *find_first_text_part(MimeInfo *partinfo)
 static gboolean key_pressed_cb(GtkWidget *widget, GdkEventKey *event,
                                AttRemover *attremover)
 {
-       if (event && event->keyval == GDK_Escape)
+       if (event && event->keyval == GDK_KEY_Escape)
                gtk_widget_destroy(attremover->window);
 
        return FALSE;
index 08c0044..4ecb918 100644 (file)
@@ -853,13 +853,13 @@ static gint keypress_events_cb (GtkWidget *widget, GdkEventKey *event,
 {
        if (event->state == CTRL_KEY) {
                switch (event->keyval) {
-               case GDK_plus:
+               case GDK_KEY_plus:
                        zoom_in_cb(viewer->ev_zoom_in, NULL, viewer);
                        break;
-               case GDK_period:
+               case GDK_KEY_period:
                        zoom_100_cb(viewer->ev_zoom_100, NULL, viewer);
                        break;
-               case GDK_minus:
+               case GDK_KEY_minus:
                        zoom_out_cb(viewer->ev_zoom_out, NULL, viewer);
                        break;
                }
index ca63e78..10e8e52 100644 (file)
@@ -579,20 +579,20 @@ reload_modmap (GdkKeymap *keymap,
       j = 0;
       while (j < n_entries)
         {          
-          if (keyvals[j] == GDK_Num_Lock)
+          if (keyvals[j] == GDK_KEY_Num_Lock)
             mask |= EGG_VIRTUAL_NUM_LOCK_MASK;
-          else if (keyvals[j] == GDK_Scroll_Lock)
+          else if (keyvals[j] == GDK_KEY_Scroll_Lock)
             mask |= EGG_VIRTUAL_SCROLL_LOCK_MASK;
-          else if (keyvals[j] == GDK_Meta_L ||
-                   keyvals[j] == GDK_Meta_R)
+          else if (keyvals[j] == GDK_KEY_Meta_L ||
+                   keyvals[j] == GDK_KEY_Meta_R)
             mask |= EGG_VIRTUAL_META_MASK;
-          else if (keyvals[j] == GDK_Hyper_L ||
-                   keyvals[j] == GDK_Hyper_R)
+          else if (keyvals[j] == GDK_KEY_Hyper_L ||
+                   keyvals[j] == GDK_KEY_Hyper_R)
             mask |= EGG_VIRTUAL_HYPER_MASK;
-          else if (keyvals[j] == GDK_Super_L ||
-                   keyvals[j] == GDK_Super_R)
+          else if (keyvals[j] == GDK_KEY_Super_L ||
+                   keyvals[j] == GDK_KEY_Super_R)
             mask |= EGG_VIRTUAL_SUPER_MASK;
-          else if (keyvals[j] == GDK_Mode_switch)
+          else if (keyvals[j] == GDK_KEY_Mode_switch)
             mask |= EGG_VIRTUAL_MODE_SWITCH_MASK;
           
           ++j;
index b9e13a8..80d6898 100644 (file)
@@ -984,7 +984,7 @@ static gboolean my_folder_update_hook(gpointer source, gpointer data)
 
 static gboolean key_pressed(GtkWidget *widget, GdkEventKey *event, gpointer data)
 {
-  if(event && (event->keyval == GDK_Escape)) {
+  if(event && (event->keyval == GDK_KEY_Escape)) {
     foldercheck_cancel(NULL, data);
     return TRUE;
   }
index 4ecd3c9..de98d97 100644 (file)
@@ -332,18 +332,18 @@ parasite_python_shell_key_press_cb(GtkWidget *textview,
                                    GdkEventKey *event,
                                    GtkWidget *python_shell)
 {
-    if (event->keyval == GDK_Return)
+    if (event->keyval == GDK_KEY_Return)
     {
         parasite_python_shell_process_line(python_shell);
         return TRUE;
     }
-    else if (event->keyval == GDK_Up)
+    else if (event->keyval == GDK_KEY_Up)
     {
         parasite_python_shell_replace_input(python_shell,
             parasite_python_shell_get_history_back(python_shell));
         return TRUE;
     }
-    else if (event->keyval == GDK_Down)
+    else if (event->keyval == GDK_KEY_Down)
     {
         parasite_python_shell_replace_input(python_shell,
             parasite_python_shell_get_history_forward(python_shell));
@@ -377,8 +377,8 @@ parasite_python_shell_key_press_cb(GtkWidget *textview,
                                                   &selection_iter);
 
         if (cmp_start_insert == 0 && cmp_start_select == 0 &&
-            (event->keyval == GDK_BackSpace ||
-             event->keyval == GDK_Left))
+            (event->keyval == GDK_KEY_BackSpace ||
+             event->keyval == GDK_KEY_Left))
         {
             return TRUE;
         }
index 14e80f4..a43defe 100644 (file)
@@ -211,11 +211,11 @@ rssyl_props_key_press_cb(GtkWidget *widget, GdkEventKey *event,
 {
        if (event) {
                switch (event->keyval) {
-                       case GDK_Escape:
+                       case GDK_KEY_Escape:
                                rssyl_props_cancel_cb(widget, data);
                                return TRUE;
-                       case GDK_Return:
-                       case GDK_KP_Enter:
+                       case GDK_KEY_Return:
+                       case GDK_KEY_KP_Enter:
                                rssyl_props_ok_cb(widget, data);
                                return TRUE;
                        default:
index eeae380..967ac8c 100644 (file)
@@ -529,7 +529,7 @@ static gboolean meeting_key_pressed(GtkWidget *widget,
 {
        VCalMeeting *meet = (VCalMeeting *)data;
        
-       if (event && event->keyval == GDK_Escape) {
+       if (event && event->keyval == GDK_KEY_Escape) {
                vcal_destroy(meet);
        }
        return FALSE;