#include <gtk/gtk.h>
#include "customentry.h"
-
+#include "helper.h"
static void psppire_custom_entry_class_init (PsppireCustomEntryClass *klass);
static void psppire_custom_entry_init (PsppireCustomEntry *ce);
void psppire_box_pack_start_defaults (GtkBox *box, GtkWidget *widget);
+\f
+
+#if ! GTK_CHECK_VERSION (2,20,0)
+static inline gboolean gtk_widget_get_realized (GtkWidget *w)
+{
+ return GTK_WIDGET_REALIZED (w);
+}
+
+static inline gboolean gtk_widget_get_mapped (GtkWidget *w)
+{
+ return GTK_WIDGET_MAPPED (w);
+}
+#endif
+
+
#endif
#include "psppire-selector.h"
#include "psppire-conf.h"
#include <string.h>
+#include "helper.h"
static void psppire_dialog_class_init (PsppireDialogClass *);
static void psppire_dialog_init (PsppireDialog *);
if (event->type == GDK_ENTER_NOTIFY)
gtk_widget_grab_focus (widget);
- if (event->type == GDK_LEAVE_NOTIFY)
- GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS);
-
return FALSE;
}
const int digit_voffset = 0;
const int digit_hoffset = 3;
- GTK_WIDGET_SET_FLAGS (kp, GTK_CAN_FOCUS);
- GTK_WIDGET_UNSET_FLAGS (kp, GTK_HAS_FOCUS);
+ gtk_widget_set_can_focus (GTK_WIDGET (kp), TRUE);
kp->dispose_has_run = FALSE;