X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fpsppire-keypad.c;h=6f7865eb770afd775187a6cef0e4f10de5a0292c;hb=9c3c856e0512309c9c301ee41c2d465dbbe9b8c6;hp=23ddccb550aa1c5648c0099f93f8ce8612028883;hpb=fd3d64301598af490d54df88fb485853521e283f;p=pspp diff --git a/src/ui/gui/psppire-keypad.c b/src/ui/gui/psppire-keypad.c index 23ddccb550..6f7865eb77 100644 --- a/src/ui/gui/psppire-keypad.c +++ b/src/ui/gui/psppire-keypad.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,10 +15,7 @@ along with this program. If not, see . */ #include -#include -#include -#include -#include +#include #include #include "psppire-keypad.h" @@ -220,7 +217,7 @@ key_release_callback (GtkWidget *widget, GdkEventKey *event, gpointer user_data) { - if ( ! (GTK_WIDGET_FLAGS (widget) & GTK_HAS_FOCUS) ) + if ( ! gtk_widget_has_focus (widget)) return FALSE; switch (event->keyval)