aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZbigniew Chyla <cyba@gnome.pl>2001-08-25 02:07:25 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-25 02:07:25 +0800
commitce251b85ce6d4c9e89c99243db27edf4555ba051 (patch)
treeadccab6a9b5ee914e142b7140991dc5b88fbb573
parenta73820cb610105116a0acb1a1431dfd11e4c91d8 (diff)
downloadgsoc2013-evolution-ce251b85ce6d4c9e89c99243db27edf4555ba051.tar
gsoc2013-evolution-ce251b85ce6d4c9e89c99243db27edf4555ba051.tar.gz
gsoc2013-evolution-ce251b85ce6d4c9e89c99243db27edf4555ba051.tar.bz2
gsoc2013-evolution-ce251b85ce6d4c9e89c99243db27edf4555ba051.tar.lz
gsoc2013-evolution-ce251b85ce6d4c9e89c99243db27edf4555ba051.tar.xz
gsoc2013-evolution-ce251b85ce6d4c9e89c99243db27edf4555ba051.tar.zst
gsoc2013-evolution-ce251b85ce6d4c9e89c99243db27edf4555ba051.zip
Convert the name of the group to GTK+ locale before displaying it in a
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. svn path=/trunk/; revision=12439
-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);