aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-collection.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-06-04 20:19:33 +0800
committerChris Lahey <clahey@src.gnome.org>2002-06-04 20:19:33 +0800
commit5127b10e8b374739b456a83292235c7f024b928f (patch)
treed068b6b08ddb72e03afc22402e36e21b57445bfc /widgets/menus/gal-view-collection.c
parent01ff3aebd2bd3759633744863848b360554b0366 (diff)
downloadgsoc2013-evolution-5127b10e8b374739b456a83292235c7f024b928f.tar
gsoc2013-evolution-5127b10e8b374739b456a83292235c7f024b928f.tar.gz
gsoc2013-evolution-5127b10e8b374739b456a83292235c7f024b928f.tar.bz2
gsoc2013-evolution-5127b10e8b374739b456a83292235c7f024b928f.tar.lz
gsoc2013-evolution-5127b10e8b374739b456a83292235c7f024b928f.tar.xz
gsoc2013-evolution-5127b10e8b374739b456a83292235c7f024b928f.tar.zst
gsoc2013-evolution-5127b10e8b374739b456a83292235c7f024b928f.zip
Added this function to set the user visible name of this collection.
2002-06-04 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c, gal-view-collection.h (gal_view_collection_set_title): Added this function to set the user visible name of this collection. * gal-define-views-dialog.c (gal_define_views_dialog_init): Set the Define Views for %s label. Fixes Ximian bug #2100 and #4080. svn path=/trunk/; revision=17100
Diffstat (limited to 'widgets/menus/gal-view-collection.c')
-rw-r--r--widgets/menus/gal-view-collection.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c
index 290c28f688..675c926bc1 100644
--- a/widgets/menus/gal-view-collection.c
+++ b/widgets/menus/gal-view-collection.c
@@ -159,17 +159,29 @@ gal_view_collection_destroy (GtkObject *object)
gal_view_collection_item_free (collection->view_data[i]);
}
g_free(collection->view_data);
+ collection->view_count = 0;
+ collection->view_data = NULL;
+
e_free_object_list(collection->factory_list);
+ collection->factory_list = NULL;
for (i = 0; i < collection->removed_view_count; i++) {
gal_view_collection_item_free (collection->removed_view_data[i]);
}
g_free(collection->removed_view_data);
+ collection->removed_view_count = 0;
+ collection->removed_view_data = NULL;
g_free(collection->system_dir);
g_free(collection->local_dir);
+ collection->system_dir = NULL;
+ collection->local_dir = NULL;
g_free (collection->default_view);
+ collection->default_view = NULL;
+
+ g_free (collection->title);
+ collection->title = NULL;
if (gal_view_collection_parent_class->destroy)
(*gal_view_collection_parent_class->destroy)(object);
@@ -221,6 +233,8 @@ gal_view_collection_init (GalViewCollection *collection)
collection->loaded = FALSE;
collection->default_view = NULL;
collection->default_view_built_in = TRUE;
+
+ collection->title = NULL;
}
/**
@@ -263,6 +277,14 @@ gal_view_collection_new (void)
return gtk_type_new(gal_view_collection_get_type());
}
+void
+gal_view_collection_set_title (GalViewCollection *collection,
+ const char *title)
+{
+ g_free (collection->title);
+ collection->title = g_strdup (title);
+}
+
/**
* gal_view_collection_set_storage_directories
* @collection: The view collection to initialize