X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fhelper.c;h=a68c0c2b80468de894d8b13780d57b0f43ce21ea;hb=9ade26c8349b4434008c46cf09bc7473ec743972;hp=9a1172a4db3329fd93f8bbcb75ac0d5a78839764;hpb=173d1687aea88e0e5e1b1d8615ed68ebefb15d08;p=pspp-builds.git diff --git a/src/ui/gui/helper.c b/src/ui/gui/helper.c index 9a1172a4..a68c0c2b 100644 --- a/src/ui/gui/helper.c +++ b/src/ui/gui/helper.c @@ -97,11 +97,8 @@ text_to_value (const gchar *text, } value_init (val, width); - msg_disable (); - data_in (ss_cstr (text), UTF8, format->type, 0, 0, 0, - dict->dict, - val, width); - msg_enable (); + free (data_in (ss_cstr (text), UTF8, format->type, val, width, + dict_get_encoding (dict->dict))); return val; } @@ -285,8 +282,8 @@ on_delete (GtkWindow *window, GdkEvent *e, GtkWindow **addr) return FALSE; } -void -paste_syntax_to_window (const gchar *syntax) +char * +paste_syntax_to_window (gchar *syntax) { static GtkWidget *the_syntax_pasteboard = NULL; @@ -307,6 +304,8 @@ paste_syntax_to_window (const gchar *syntax) gtk_text_buffer_end_user_action (buffer); gtk_widget_show (the_syntax_pasteboard); + + return syntax; }