summaryrefslogtreecommitdiff
path: root/gsearchtool
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 /gsearchtool
parentb6d26ef3c1d9881eaf6a2878ec7eac2d80710503 (diff)
downloadmate-utils-175a8fab48e5658ac79ad66f1e82adf112315617.tar.bz2
mate-utils-175a8fab48e5658ac79ad66f1e82adf112315617.tar.xz
GDK_KEY_* was introduced in Gtk+ 2.22
Diffstat (limited to 'gsearchtool')
-rw-r--r--gsearchtool/gsearchtool-callbacks.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/gsearchtool/gsearchtool-callbacks.c b/gsearchtool/gsearchtool-callbacks.c
index a14c4896..464b6d5c 100644
--- a/gsearchtool/gsearchtool-callbacks.c
+++ b/gsearchtool/gsearchtool-callbacks.c
@@ -40,9 +40,6 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
-#if GTK_CHECK_VERSION (3, 0, 0)
-#include <gdk/gdkkeysyms-compat.h>
-#endif
#include "gsearchtool.h"
#include "gsearchtool-callbacks.h"
@@ -965,15 +962,15 @@ file_key_press_event_cb (GtkWidget * widget,
GdkEventKey * event,
gpointer data)
{
- if (event->keyval == GDK_space ||
- event->keyval == GDK_Return ||
- event->keyval == GDK_KP_Enter) {
+ if (event->keyval == GDK_KEY_space ||
+ event->keyval == GDK_KEY_Return ||
+ event->keyval == GDK_KEY_KP_Enter) {
if (event->state != GDK_CONTROL_MASK) {
open_file_cb ((GtkMenuItem *) NULL, data);
return TRUE;
}
}
- else if (event->keyval == GDK_Delete) {
+ else if (event->keyval == GDK_KEY_Delete) {
move_to_trash_cb ((GtkAction *) NULL, data);
return TRUE;
}
@@ -1837,7 +1834,7 @@ key_press_cb (GtkWidget * widget,
g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
- if (event->keyval == GDK_Escape) {
+ if (event->keyval == GDK_KEY_Escape) {
if (gsearch->command_details->command_status == RUNNING) {
click_stop_cb (widget, data);
}
@@ -1845,7 +1842,7 @@ key_press_cb (GtkWidget * widget,
quit_cb (widget, (GdkEvent *) NULL, data);
}
}
- else if (event->keyval == GDK_F10) {
+ else if (event->keyval == GDK_KEY_F10) {
if (event->state & GDK_SHIFT_MASK) {
gboolean no_files_found = FALSE;
GtkTreeModel * model;