diff options
Diffstat (limited to 'plugins/gtkui/support.c')
-rw-r--r-- | plugins/gtkui/support.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/gtkui/support.c b/plugins/gtkui/support.c index 82e22c73..1eef6efc 100644 --- a/plugins/gtkui/support.c +++ b/plugins/gtkui/support.c @@ -196,3 +196,26 @@ gtk_combo_box_text_get_active_text (GtkComboBoxText *combo_box) { } #endif + +#if !GTK_CHECK_VERSION(2,18,0) || defined(ULTRA_COMPATIBLE) +void +gtk_widget_set_allocation (GtkWidget *widget, const GtkAllocation *allocation) { + widget->allocation.x = (allocation)->x; + widget->allocation.y = (allocation)->y; + widget->allocation.width = (allocation)->width; + widget->allocation.height = (allocation)->height; +} + +void +gtk_widget_get_allocation (GtkWidget *widget, GtkAllocation *allocation) { + (allocation)->x = widget->allocation.x; + (allocation)->y = widget->allocation.y; + (allocation)->width = widget->allocation.width; + (allocation)->height = widget->allocation.height; +} + +void +gtk_widget_set_window(GtkWidget *widget, GdkWindow *window) { + widget->window = window; +} +#endif |