summaryrefslogtreecommitdiff
path: root/logview
diff options
context:
space:
mode:
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