aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-folder-list.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-04-10 02:02:18 +0800
committerDan Winship <danw@src.gnome.org>2003-04-10 02:02:18 +0800
commitc70fa695ca533b2e61721345cc74e56bc29b68f1 (patch)
treecbe39d70443d8327d42a8806698345890ab1c9f8 /shell/e-folder-list.c
parent69f98ea90bcf7c12bced11a5a59bf1c4610ee96c (diff)
downloadgsoc2013-evolution-c70fa695ca533b2e61721345cc74e56bc29b68f1.tar
gsoc2013-evolution-c70fa695ca533b2e61721345cc74e56bc29b68f1.tar.gz
gsoc2013-evolution-c70fa695ca533b2e61721345cc74e56bc29b68f1.tar.bz2
gsoc2013-evolution-c70fa695ca533b2e61721345cc74e56bc29b68f1.tar.lz
gsoc2013-evolution-c70fa695ca533b2e61721345cc74e56bc29b68f1.tar.xz
gsoc2013-evolution-c70fa695ca533b2e61721345cc74e56bc29b68f1.tar.zst
gsoc2013-evolution-c70fa695ca533b2e61721345cc74e56bc29b68f1.zip
Update for e_option_menu prototype constification
* e-folder-list.c: Update for e_option_menu prototype constification svn path=/trunk/; revision=20790
Diffstat (limited to 'shell/e-folder-list.c')
-rw-r--r--shell/e-folder-list.c27
1 files changed, 17 insertions, 10 deletions
diff --git a/shell/e-folder-list.c b/shell/e-folder-list.c
index fff4d6c4aa..3da34b7c57 100644
--- a/shell/e-folder-list.c
+++ b/shell/e-folder-list.c
@@ -465,7 +465,7 @@ e_folder_list_init (EFolderList *efl)
}
EFolderListItem *
-e_folder_list_parse_xml (char *xml)
+e_folder_list_parse_xml (const char *xml)
{
xmlDoc *doc;
xmlNode *root;
@@ -553,7 +553,7 @@ e_folder_list_free_items (EFolderListItem *items)
}
GtkWidget*
-e_folder_list_new (EvolutionShellClient *client, char *xml)
+e_folder_list_new (EvolutionShellClient *client, const char *xml)
{
GtkWidget *widget = GTK_WIDGET (g_object_new (e_folder_list_get_type (), NULL));
@@ -562,7 +562,7 @@ e_folder_list_new (EvolutionShellClient *client, char *xml)
}
GtkWidget*
-e_folder_list_construct (EFolderList *efl, EvolutionShellClient *client, char *xml)
+e_folder_list_construct (EFolderList *efl, EvolutionShellClient *client, const char *xml)
{
g_object_ref (client);
efl->priv->client = client;
@@ -621,7 +621,7 @@ e_folder_list_get_items (EFolderList *efl)
}
void
-e_folder_list_set_xml (EFolderList *efl, char *xml)
+e_folder_list_set_xml (EFolderList *efl, const char *xml)
{
EFolderListItem *items;
@@ -644,7 +644,7 @@ e_folder_list_get_xml (EFolderList *efl)
}
void
-e_folder_list_set_option_menu_strings_from_array (EFolderList *efl, gchar **strings)
+e_folder_list_set_option_menu_strings_from_array (EFolderList *efl, const char **strings)
{
e_option_menu_set_strings_from_array (efl->priv->option_menu, strings);
if (strings && *strings)
@@ -654,15 +654,22 @@ e_folder_list_set_option_menu_strings_from_array (EFolderList *efl, gchar **stri
}
void
-e_folder_list_set_option_menu_strings (EFolderList *efl, gchar *first_label, ...)
+e_folder_list_set_option_menu_strings (EFolderList *efl, const char *first_label, ...)
{
- char **array;
+ GPtrArray *labels;
+ va_list args;
+ char *s;
- GET_STRING_ARRAY_FROM_ELLIPSIS (array, first_label);
+ labels = g_ptr_array_new ();
- e_folder_list_set_option_menu_strings_from_array (efl, array);
+ va_start (args, first_label);
+ for (s = (char *)first_label; s; s = va_arg (args, char *))
+ g_ptr_array_add (labels, s);
+ va_end (args);
- g_free (array);
+ e_folder_list_set_option_menu_strings_from_array (efl, (const char **)labels->pdata);
+
+ g_ptr_array_free (labels, TRUE);
}
int