* mug.c: compatibility GDK_KEY_Escape vs GDK_Escape

This commit is contained in:
djcb 2012-08-11 12:23:25 +03:00
parent be9e9953b1
commit 37b3e7f61f
1 changed files with 5 additions and 0 deletions

View File

@ -370,6 +370,11 @@ mug_shell (MugData * mugdata)
static gint
on_focus_query_bar (GtkWidget* ignored, GdkEventKey *event, MugData* mugdata)
{
/* gtk2: GDK_Escape; gtk3: GDK_Key_Escape */
#ifndef GDK_KEY_Escape
#define GDK_KEY_Escape GDK_Escape
#endif /* GDK_KEY_Escape */
if (event->type==GDK_KEY_RELEASE && event->keyval==GDK_KEY_Escape) {
mug_query_bar_grab_focus (MUG_QUERY_BAR (mugdata->querybar));
return 1;