From ca9e52bf416be7e72c99418331b5f557c992d87b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 7 Aug 2001 17:39:46 +0000 Subject: make sure we update the changed state if a successful drop happens. 2001-08-07 Chris Toshok * gui/contact-list-editor/e-contact-list-editor.c (table_drag_data_received_cb): make sure we update the changed state if a successful drop happens. svn path=/trunk/; revision=11733 --- addressbook/gui/contact-list-editor/e-contact-list-editor.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'addressbook/gui') 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 c6f8cab132..b79ed5fd22 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -703,6 +703,7 @@ table_drag_data_received_cb (ETable *table, int row, int col, guint info, guint time, EContactListEditor *editor) { char *target_type; + gboolean changed = FALSE; target_type = gdk_atom_name (selection_data->target); @@ -720,11 +721,18 @@ table_drag_data_received_cb (ETable *table, int row, int col, simple); gtk_object_unref (GTK_OBJECT (simple)); + + changed = TRUE; } } g_list_foreach (card_list, (GFunc)gtk_object_unref, NULL); g_list_free (card_list); } + + if (changed && !editor->changed) { + editor->changed = TRUE; + command_state_changed (editor); + } } static void -- cgit v1.2.3