From 01e8de8ab769c59104554c9e750a90219921ed40 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 9 Oct 2009 22:30:26 +0200 Subject: [PATCH] Use gtk_widget_get_window() instead of widget->window --- plug-ins/imagemap/imap_object.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plug-ins/imagemap/imap_object.c b/plug-ins/imagemap/imap_object.c index 2ef489f87c..4106090b3c 100644 --- a/plug-ins/imagemap/imap_object.c +++ b/plug-ins/imagemap/imap_object.c @@ -430,9 +430,9 @@ button_motion(GtkWidget *widget, GdkEventMotion *event, round_to_grid(&x, &y); - object_draw(factory->obj, widget->window); + object_draw(factory->obj, gtk_widget_get_window (widget)); factory->set_xy(factory->obj, event->state, x, y); - object_draw(factory->obj, widget->window); + object_draw(factory->obj, gtk_widget_get_window (widget)); return FALSE; } @@ -462,15 +462,15 @@ object_on_button_press(GtkWidget *widget, GdkEventButton *event, gpointer data) if (preferences->prompt_for_area_info) object_edit(obj, FALSE); } else { - object_draw(obj, widget->window); - object_unref(obj); + object_draw(obj, gtk_widget_get_window (widget)); + object_unref(obj); } gdk_gc_set_function(preferences->normal_gc, GDK_COPY); obj = NULL; main_clear_dimension(); } } else if (event->button == 3) { - object_draw(obj, widget->window); + object_draw(obj, gtk_widget_get_window (widget)); if (!factory->cancel || factory->cancel(event, obj)) { g_signal_handlers_disconnect_by_func(widget, button_motion, @@ -480,7 +480,7 @@ object_on_button_press(GtkWidget *widget, GdkEventButton *event, gpointer data) obj = NULL; main_clear_dimension(); } else { - object_draw(obj, widget->window); + object_draw(obj, gtk_widget_get_window (widget)); } } } else {