aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-charset-picker.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-10 05:59:21 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-10 05:59:21 +0800
commit3c7aba68e9af67177e24688e8463038a625a7da3 (patch)
treec0734faafd5ed8dad64eca4170caf060ea053c63 /widgets/misc/e-charset-picker.c
parent0aa39ebfb0ad81ca391af6747bb9e7867655b4a0 (diff)
downloadgsoc2013-evolution-3c7aba68e9af67177e24688e8463038a625a7da3.tar.gz
gsoc2013-evolution-3c7aba68e9af67177e24688e8463038a625a7da3.tar.zst
gsoc2013-evolution-3c7aba68e9af67177e24688e8463038a625a7da3.zip
Now takes a menu path argument.
2001-10-09 Jeffrey Stedfast <fejj@ximian.com> * e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Now takes a menu path argument. svn path=/trunk/; revision=13528
Diffstat (limited to 'widgets/misc/e-charset-picker.c')
-rw-r--r--widgets/misc/e-charset-picker.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/misc/e-charset-picker.c b/widgets/misc/e-charset-picker.c
index 2ce6291e2c..b1d49943e2 100644
--- a/widgets/misc/e-charset-picker.c
+++ b/widgets/misc/e-charset-picker.c
@@ -359,6 +359,7 @@ e_charset_picker_dialog (const char *title, const char *prompt,
/**
* e_charset_picker_bonobo_ui_populate:
* @uic: Bonobo UI Component
+ * @path: menu path
* @default_charset: the default character set, or %NULL to use the
* locale character set.
* @cb: Callback function
@@ -373,7 +374,8 @@ e_charset_picker_dialog (const char *title, const char *prompt,
* sets.
**/
void
-e_charset_picker_bonobo_ui_populate (BonoboUIComponent *uic, const char *default_charset,
+e_charset_picker_bonobo_ui_populate (BonoboUIComponent *uic, const char *path,
+ const char *default_charset,
BonoboUIListenerFn cb, gpointer user_data)
{
char *locale_charset, *encoded_label, *label;
@@ -459,6 +461,6 @@ e_charset_picker_bonobo_ui_populate (BonoboUIComponent *uic, const char *default
g_string_append (menuitems, "</submenu>\n");
- bonobo_ui_component_set (uic, "/menu/Edit", menuitems->str, NULL);
+ bonobo_ui_component_set (uic, path, menuitems->str, NULL);
g_string_free (menuitems, TRUE);
}