summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/gdict-applet.c
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 /mate-dictionary/src/gdict-applet.c
parentb6d26ef3c1d9881eaf6a2878ec7eac2d80710503 (diff)
downloadmate-utils-175a8fab48e5658ac79ad66f1e82adf112315617.tar.bz2
mate-utils-175a8fab48e5658ac79ad66f1e82adf112315617.tar.xz
GDK_KEY_* was introduced in Gtk+ 2.22
Diffstat (limited to 'mate-dictionary/src/gdict-applet.c')
-rw-r--r--mate-dictionary/src/gdict-applet.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/mate-dictionary/src/gdict-applet.c b/mate-dictionary/src/gdict-applet.c
index b29b8cd8..ff417997 100644
--- a/mate-dictionary/src/gdict-applet.c
+++ b/mate-dictionary/src/gdict-applet.c
@@ -29,9 +29,6 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
-#if GTK_CHECK_VERSION (3, 0, 0)
-#include <gdk/gdkkeysyms-compat.h>
-#endif
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "gdict-applet.h"
@@ -281,14 +278,14 @@ window_key_press_event_cb (GtkWidget *widget,
{
GdictApplet *applet = GDICT_APPLET (user_data);
- if (event->keyval == GDK_Escape)
+ if (event->keyval == GDK_KEY_Escape)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (applet->priv->toggle), FALSE);
gtk_toggle_button_toggled (GTK_TOGGLE_BUTTON (applet->priv->toggle));
return TRUE;
}
- else if ((event->keyval == GDK_l) &&
+ else if ((event->keyval == GDK_KEY_l) &&
(event->state & GDK_CONTROL_MASK))
{
gtk_widget_grab_focus (applet->priv->entry);
@@ -452,7 +449,7 @@ gdict_applet_entry_key_press_cb (GtkWidget *widget,
{
GdictAppletPrivate *priv = GDICT_APPLET (user_data)->priv;
- if (event->keyval == GDK_Escape)
+ if (event->keyval == GDK_KEY_Escape)
{
if (priv->is_window_showing)
{
@@ -462,7 +459,7 @@ gdict_applet_entry_key_press_cb (GtkWidget *widget,
return TRUE;
}
}
- else if (event->keyval == GDK_Tab)
+ else if (event->keyval == GDK_KEY_Tab)
{
if (priv->is_window_showing)
gtk_widget_grab_focus (priv->defbox);