aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shortcuts-view.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 3abb80a991..8fe8381ddc 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-23 Zbigniew Chyla <cyba@gnome.pl>
+
+ * e-shortcuts-view.c (destroy_group_cb): Convert the name of the group
+ to GTK+ locale before displaying it in a dialog.
+
2001-08-23 Ettore Perazzoli <ettore@ximian.com>
* e-storage-set-view.c (tree_drag_data_received): If we get no
diff --git a/shell/e-shortcuts-view.c b/shell/e-shortcuts-view.c
index da007e339f..6995c323b8 100644
--- a/shell/e-shortcuts-view.c
+++ b/shell/e-shortcuts-view.c
@@ -39,6 +39,7 @@
#include <libgnomeui/gnome-stock.h>
#include <libgnomeui/gnome-uidefs.h>
#include <gal/util/e-util.h>
+#include <gal/widgets/e-unicode.h>
#include "e-util/e-request.h"
@@ -161,16 +162,18 @@ destroy_group_cb (GtkWidget *widget,
EShortcutsView *shortcuts_view;
EShortcutsViewPrivate *priv;
GtkWidget *message_box;
- char *question;
+ char *question, *title;
menu_data = (RightClickMenuData *) data;
shortcuts_view = menu_data->shortcuts_view;
priv = shortcuts_view->priv;
shortcuts = priv->shortcuts;
+ title = e_utf8_to_locale_string (e_shortcuts_get_group_title (
+ shortcuts, menu_data->group_num));
question = g_strdup_printf (_("Do you really want to remove group\n"
- "`%s' from the shortcut bar?"),
- e_shortcuts_get_group_title (shortcuts, menu_data->group_num));
+ "`%s' from the shortcut bar?"), title);
+ g_free (title);
message_box = gnome_message_box_new (question, GNOME_MESSAGE_BOX_QUESTION,
_("Remove"), _("Don't remove"), NULL);