diff options
Diffstat (limited to 'plugins/converter/support.c')
-rw-r--r-- | plugins/converter/support.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/converter/support.c b/plugins/converter/support.c index 06482131..1eef6efc 100644 --- a/plugins/converter/support.c +++ b/plugins/converter/support.c @@ -147,11 +147,23 @@ GtkWidget * gtk_combo_box_entry_new_text(void) { GtkWidget *w = gtk_combo_box_text_new_with_entry (); } + void gtk_dialog_set_has_separator (GtkDialog *dlg, gboolean has) { } #endif +#if !GTK_CHECK_VERSION(2,22,0) +GdkDragAction +gdk_drag_context_get_selected_action (GdkDragContext *context) { + return context->action; +} +GList * +gdk_drag_context_list_targets (GdkDragContext *context) { + return context->targets; +} +#endif + #if !GTK_CHECK_VERSION(2,24,0) #define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX GtkWidget * @@ -184,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 |