From 970662db34ff0a718cd5e39c1fa268beb51e1f64 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 4 Jun 2010 07:05:46 -0400 Subject: More GTK3 preparation. This uses the new gtk_assistant_commit() I had added to GTK+ for our EImportAssistant progress page. --- addressbook/gui/contact-list-editor/e-contact-list-editor.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'addressbook') diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c index dc2edd281b..865cdbbbeb 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "shell/e-shell.h" #include @@ -508,9 +509,12 @@ contact_list_editor_drag_drop_cb (GtkWidget *widget, gint x, gint y, guint time) { + GList *targets; GList *iter; - for (iter = context->targets; iter != NULL; iter = iter->next) { + targets = gdk_drag_context_list_targets (context); + + for (iter = targets; iter != NULL; iter = iter->next) { GdkAtom target = GDK_POINTER_TO_ATOM (iter->data); if (e_targets_include_directory (&target, 1)) { @@ -534,9 +538,12 @@ contact_list_editor_drag_motion_cb (GtkWidget *widget, gint x, gint y, guint time) { + GList *targets; GList *iter; - for (iter = context->targets; iter != NULL; iter = iter->next) { + targets = gdk_drag_context_list_targets (context); + + for (iter = targets; iter != NULL; iter = iter->next) { GdkAtom target = GDK_POINTER_TO_ATOM (iter->data); if (e_targets_include_directory (&target, 1)) { -- cgit