From ce251b85ce6d4c9e89c99243db27edf4555ba051 Mon Sep 17 00:00:00 2001 From: Zbigniew Chyla Date: Fri, 24 Aug 2001 18:07:25 +0000 Subject: Convert the name of the group to GTK+ locale before displaying it in a 2001-08-23 Zbigniew Chyla * e-shortcuts-view.c (destroy_group_cb): Convert the name of the group to GTK+ locale before displaying it in a dialog. svn path=/trunk/; revision=12439 --- shell/ChangeLog | 5 +++++ shell/e-shortcuts-view.c | 9 ++++++--- 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 + + * 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 * 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 #include #include +#include #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); -- cgit v1.2.3