aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index d67632a7b0..2ce5672e61 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2001-08-07 Peter Williams <peterw@ximian.com>
+ * mail-callbacks.c (folder_created): Use bonobo_object_unref on the storage
+ since it's a bonobo object.
+ (mail_storage_create_folder): Same.
+ (folder_deleted): Same.
+
* subscribe-dialog.c (fe_destroy): Unref the e_storage since lookup_store
gives us a ref.
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index b140f5197f..e4f9e322dd 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1889,7 +1889,7 @@ print_preview_msg (GtkWidget *button, gpointer user_data)
/******************** Begin Subscription Dialog ***************************/
-static GtkWidget *subscribe_dialog = NULL;
+static GtkObject *subscribe_dialog = NULL;
static void
subscribe_dialog_destroy (GtkWidget *widget, gpointer user_data)
@@ -2086,7 +2086,7 @@ folder_created (CamelStore *store, const char *prefix, CamelFolderInfo *fi)
if ((storage = mail_lookup_storage (store))) {
create_folders (storage, prefix, fi);
- gtk_object_unref (GTK_OBJECT (storage));
+ bonobo_object_unref (BONOBO_OBJECT (storage));
}
}
@@ -2105,7 +2105,7 @@ mail_storage_create_folder (EvolutionStorage *storage, CamelStore *store, CamelF
create_folders (storage, "", fi);
if (unref)
- gtk_object_unref (GTK_OBJECT (storage));
+ bonobo_object_unref (BONOBO_OBJECT (storage));
}
}
@@ -2134,6 +2134,6 @@ folder_deleted (CamelStore *store, CamelFolderInfo *fi)
if (fi)
delete_folders (storage, fi);
- gtk_object_unref (GTK_OBJECT (storage));
+ bonobo_object_unref (BONOBO_OBJECT (storage));
}
}