aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-storage-set.c')
-rw-r--r--shell/e-storage-set.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/e-storage-set.c b/shell/e-storage-set.c
index a779023bab..f24a3ac05c 100644
--- a/shell/e-storage-set.c
+++ b/shell/e-storage-set.c
@@ -214,8 +214,7 @@ class_init (EStorageSetClass *klass)
GtkObjectClass *object_class;
parent_class = gtk_type_class (gtk_object_get_type ());
-
- object_class = (GtkObjectClass*) klass;
+ object_class = GTK_OBJECT_CLASS (klass);
object_class->destroy = destroy;
@@ -260,6 +259,8 @@ init (EStorageSet *storage_set)
{
EStorageSetPrivate *priv;
+ g_return_if_fail (E_IS_STORAGE_SET (storage_set));
+
priv = g_new (EStorageSetPrivate, 1);
priv->storages = NULL;
priv->name_to_named_storage = g_hash_table_new (g_str_hash, g_str_equal);