aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZbigniew Chyla <cyba@gnome.pl>2001-08-25 02:22:56 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-25 02:22:56 +0800
commit5461762966047b5f482d623a68bc600f8aa44751 (patch)
tree3dd1ea687cc3da9eea3c7ff178f0fbb72a80dcab
parent921aa25a351f605e54d0d8085eea031fafc1cab2 (diff)
downloadgsoc2013-evolution-5461762966047b5f482d623a68bc600f8aa44751.tar.gz
gsoc2013-evolution-5461762966047b5f482d623a68bc600f8aa44751.tar.zst
gsoc2013-evolution-5461762966047b5f482d623a68bc600f8aa44751.zip
Modified to accept and return UTF-8 string.
2001-08-23 Zbigniew Chyla <cyba@gnome.pl> * e-request.c (e_request_string): Modified to accept and return UTF-8 string. svn path=/trunk/; revision=12442
-rw-r--r--e-util/ChangeLog7
-rw-r--r--e-util/e-request.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index b4ddbccce0..fe054a5cde 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,10 @@
+2001-08-23 Zbigniew Chyla <cyba@gnome.pl>
+
+ * e-request.c (e_request_string): Modified to accept and return UTF-8
+ string.
+ It's currently used only in shell/e-shortcuts-view.c and we need UTF-8
+ there.
+
2001-08-20 Damon Chaplin <damon@ximian.com>
* e-time-utils.c (e_time_parse_date): added comments to help
diff --git a/e-util/e-request.c b/e-util/e-request.c
index 410aaa7365..09634eb32b 100644
--- a/e-util/e-request.c
+++ b/e-util/e-request.c
@@ -29,6 +29,7 @@
#include <libgnomeui/gnome-dialog.h>
#include <libgnomeui/gnome-stock.h>
+#include <gal/widgets/e-unicode.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkentry.h>
@@ -72,7 +73,7 @@ e_request_string (GtkWindow *parent,
gtk_box_pack_start (GTK_BOX (vbox), prompt_label, TRUE, TRUE, 0);
entry = gtk_entry_new ();
- gtk_entry_set_text (GTK_ENTRY (entry), default_string);
+ e_utf8_gtk_entry_set_text (GTK_ENTRY (entry), default_string);
gtk_entry_select_region (GTK_ENTRY (entry), 0, -1);
gtk_box_pack_start (GTK_BOX (vbox), entry, TRUE, TRUE, 0);
@@ -86,7 +87,7 @@ e_request_string (GtkWindow *parent,
switch (gnome_dialog_run (GNOME_DIALOG (dialog))) {
case 0:
/* OK. */
- retval = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry)));
+ retval = e_utf8_gtk_entry_get_text (GTK_ENTRY (entry));
break;
case -1:
case 1: