summaryrefslogtreecommitdiff
path: root/logview
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-01 15:26:00 +0200
committerinfirit <[email protected]>2014-07-01 15:29:10 +0200
commit175a8fab48e5658ac79ad66f1e82adf112315617 (patch)
tree916db99c0e78acca84069f53d8c70d13cbd0607d /logview
parentb6d26ef3c1d9881eaf6a2878ec7eac2d80710503 (diff)
downloadmate-utils-175a8fab48e5658ac79ad66f1e82adf112315617.tar.bz2
mate-utils-175a8fab48e5658ac79ad66f1e82adf112315617.tar.xz
GDK_KEY_* was introduced in Gtk+ 2.22
Diffstat (limited to 'logview')
-rw-r--r--logview/logview-findbar.c5
-rw-r--r--logview/logview-window.c6
2 files changed, 4 insertions, 7 deletions
diff --git a/logview/logview-findbar.c b/logview/logview-findbar.c
index 947df4cb..9fbf9cb4 100644
--- a/logview/logview-findbar.c
+++ b/logview/logview-findbar.c
@@ -22,9 +22,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
-#if GTK_CHECK_VERSION (3, 0, 0)
-#include <gdk/gdkkeysyms-compat.h>
-#endif
#include "logview-findbar.h"
@@ -123,7 +120,7 @@ entry_key_press_event_cb (GtkWidget *entry,
{
LogviewFindbar *findbar = user_data;
- if (event->keyval == GDK_Escape) {
+ if (event->keyval == GDK_KEY_Escape) {
g_signal_emit (findbar, signals[CLOSE], 0);
return TRUE;
}
diff --git a/logview/logview-window.c b/logview/logview-window.c
index 0a32521d..b192c291 100644
--- a/logview/logview-window.c
+++ b/logview/logview-window.c
@@ -1120,9 +1120,9 @@ static const struct {
GdkModifierType modifier;
const gchar *action;
} extra_keybindings [] = {
- { GDK_KP_Add, GDK_CONTROL_MASK, "ViewZoomIn" },
- { GDK_KP_Subtract, GDK_CONTROL_MASK, "ViewZoomOut" },
- { GDK_KP_0, GDK_CONTROL_MASK, "ViewZoom100" }
+ { GDK_KEY_KP_Add, GDK_CONTROL_MASK, "ViewZoomIn" },
+ { GDK_KEY_KP_Subtract, GDK_CONTROL_MASK, "ViewZoomOut" },
+ { GDK_KEY_KP_0, GDK_CONTROL_MASK, "ViewZoom100" }
};
static gboolean