[Xfce4-commits] <xfce4-panel:master> Fix Gdk key macro names.

Nick Schermer noreply at xfce.org
Fri Nov 12 22:44:01 CET 2010


Updating branch refs/heads/master
         to bca7ec57974beab5ed00c192bb7b2bfe4a67a780 (commit)
       from 1149b44869b492105b9f03886306e0b3a432c971 (commit)

commit bca7ec57974beab5ed00c192bb7b2bfe4a67a780
Author: Enrico Tröger <enrico.troeger at uvena.de>
Date:   Fri Nov 12 10:00:29 2010 +0100

    Fix Gdk key macro names.

 plugins/launcher/launcher-dialog.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/launcher/launcher-dialog.c b/plugins/launcher/launcher-dialog.c
index fbb981c..f450d18 100644
--- a/plugins/launcher/launcher-dialog.c
+++ b/plugins/launcher/launcher-dialog.c
@@ -323,8 +323,8 @@ launcher_dialog_add_key_press_event (GtkTreeView          *treeview,
   panel_return_val_if_fail (GTK_IS_BUILDER (dialog->builder), FALSE);
   panel_return_val_if_fail (GTK_IS_TREE_VIEW (treeview), FALSE);
 
-  if (event->keyval == GDK_KEY_Return
-      || event->keyval == GDK_KEY_KP_Enter)
+  if (event->keyval == GDK_Return
+      || event->keyval == GDK_KP_Enter)
     return launcher_dialog_press_event (dialog, "button-add");
 
   return FALSE;
@@ -638,8 +638,8 @@ launcher_dialog_tree_key_press_event (GtkTreeView          *treeview,
   panel_return_val_if_fail (GTK_IS_BUILDER (dialog->builder), FALSE);
   panel_return_val_if_fail (GTK_IS_TREE_VIEW (treeview), FALSE);
 
-  if (event->keyval == GDK_KEY_Return
-      || event->keyval == GDK_KEY_KP_Enter)
+  if (event->keyval == GDK_Return
+      || event->keyval == GDK_KP_Enter)
     return launcher_dialog_press_event (dialog, "item-edit");
 
   return FALSE;



More information about the Xfce4-commits mailing list