summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/gdict-sidebar.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary/src/gdict-sidebar.c')
-rw-r--r--mate-dictionary/src/gdict-sidebar.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/mate-dictionary/src/gdict-sidebar.c b/mate-dictionary/src/gdict-sidebar.c
index 8da6775e..87658a70 100644
--- a/mate-dictionary/src/gdict-sidebar.c
+++ b/mate-dictionary/src/gdict-sidebar.c
@@ -32,9 +32,6 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
-#if GTK_CHECK_VERSION (3, 0, 0)
-#include <gdk/gdkkeysyms-compat.h>
-#endif
#include <glib/gi18n.h>
#include "gdict-sidebar.h"
@@ -203,10 +200,10 @@ gdict_sidebar_select_key_press_cb (GtkWidget *widget,
{
GdictSidebar *sidebar = GDICT_SIDEBAR (user_data);
- if (event->keyval == GDK_space ||
- event->keyval == GDK_KP_Space ||
- event->keyval == GDK_Return ||
- event->keyval == GDK_KP_Enter)
+ if (event->keyval == GDK_KEY_space ||
+ event->keyval == GDK_KEY_KP_Space ||
+ event->keyval == GDK_KEY_Return ||
+ event->keyval == GDK_KEY_KP_Enter)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
gtk_menu_popup (GTK_MENU (sidebar->priv->menu),