41
30
gtk_widget_get_preferred_size(wdgt, req, NULL)
33
#if !GLIB_CHECK_VERSION (2, 32, 0)
34
#define G_SOURCE_REMOVE FALSE
35
#define G_SOURCE_CONTINUE TRUE
38
#if !GLIB_CHECK_VERSION (2, 30, 0)
39
#define g_format_size(sz) g_format_size_for_display ((goffset)sz)
42
#if !GTK_CHECK_VERSION (2, 18, 0)
43
#define gtk_widget_is_toplevel(widget) GTK_WIDGET_TOPLEVEL (widget)
44
#define gtk_widget_has_focus(widget) GTK_WIDGET_HAS_FOCUS (widget)
45
#define gtk_widget_get_visible(widget) GTK_WIDGET_VISIBLE (widget)
46
#define gtk_widget_get_sensitive(widget) GTK_WIDGET_IS_SENSITIVE (widget)
47
#define gtk_widget_set_can_focus(widget,flag) \
48
GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS)
49
#define gtk_widget_get_allocation(wdgt, alloc) *alloc = wdgt->allocation
50
#define gtk_widget_get_has_window(wdgt) !GTK_WIDGET_NO_WINDOW (wdgt)
51
#define gtk_widget_get_allocation(wdgt, alloc) *alloc = wdgt->allocation
52
#define gtk_widget_set_window(wdgt, wndw) wdgt->window = wndw
53
#define gtk_widget_is_drawable GTK_WIDGET_DRAWABLE
54
#define gtk_widget_get_drawable GTK_WIDGET_VISIBLE
55
#define gtk_widget_set_has_window(wdgt, wnd) \
56
if (wnd) GTK_WIDGET_UNSET_FLAGS (wdgt, GTK_NO_WINDOW); \
57
else GTK_WIDGET_SET_FLAGS (wdgt, GTK_NO_WINDOW)
60
#if !GTK_CHECK_VERSION (2, 20, 0)
61
#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED (widget)
62
#define gtk_widget_set_realized(wdgt, real) \
63
if (real) GTK_WIDGET_SET_FLAGS (wdgt, GTK_REALIZED); \
64
else GTK_WIDGET_UNSET_FLAGS (wdgt, GTK_REALIZED)
44
67
#if GTK_CHECK_VERSION (3, 0, 0)
45
68
#define GTK_DIALOG_NO_SEPARATOR 0
48
#if !GTK_CHECK_VERSION (3, 2, 0)
71
#if !GTK_CHECK_VERSION (3, 2, 0) && defined (HAVE_HILDON_2_2)
72
#define gtk_entry_set_placeholder_text hildon_gtk_entry_set_placeholder_text
73
#define gtk_entry_get_placeholder_text hildon_gtk_entry_get_placeholder_text
74
#elif !GTK_CHECK_VERSION (3, 2, 0)
49
75
void gtk_entry_set_placeholder_text (GtkEntry* entry, const gchar* text);
50
76
const gchar* gtk_entry_get_placeholder_text (GtkEntry* entry);
79
#if !GTK_CHECK_VERSION (2, 24 ,0)
80
#define gtk_combo_box_text_append_text gtk_combo_box_append_text
81
#define gtk_combo_box_text_new gtk_combo_box_new_text
82
#define gtk_combo_box_text_new_with_entry gtk_combo_box_entry_new_text
83
#define gtk_combo_box_text_get_active_text gtk_combo_box_get_active_text
84
#define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX
85
#define GtkComboBoxText GtkComboBox
53
88
#ifndef GDK_KEY_Return
54
89
#define GDK_KEY_0 GDK_0
55
90
#define GDK_KEY_BackSpace GDK_BackSpace