diff options
author | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-10 21:30:22 +0000 |
---|---|---|
committer | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-10 21:30:22 +0000 |
commit | cfe29d9ad04761e7a97964af5e8f20fca7d22cfc (patch) | |
tree | 49791765012f5b821c208663320db9a354aaae6f /src/fileselection.c | |
parent | Committing patch to fall back to dialog if DISPLAY not set from (diff) | |
download | zenity-cfe29d9ad04761e7a97964af5e8f20fca7d22cfc.tar.gz zenity-cfe29d9ad04761e7a97964af5e8f20fca7d22cfc.tar.bz2 zenity-cfe29d9ad04761e7a97964af5e8f20fca7d22cfc.zip |
Allow /t and /n in dialog text. Some code cleanup.
Diffstat (limited to 'src/fileselection.c')
-rw-r--r-- | src/fileselection.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/fileselection.c b/src/fileselection.c index 4e87d043..d392b0d0 100644 --- a/src/fileselection.c +++ b/src/fileselection.c @@ -87,18 +87,10 @@ zenity_fileselection_dialog_response (GtkWidget *widget, int response, gpointer selections = gtk_file_selection_get_selections (GTK_FILE_SELECTION (widget)); for (i=0;selections[i] != NULL; i++) { g_printerr ("%s", g_filename_to_utf8 ((gchar*)selections[i], -1, NULL, NULL, NULL)); - if (selections[i+1] != NULL) { - /* FIXME: This is a blatant copy of Gman's arse in tree.c */ - if (strstr ((const gchar *) separator, (const gchar *) "\\n") != NULL) - g_printerr ("\n"); - else if (strstr ((const gchar *) separator, (const gchar *) "\\t") != NULL) - g_printerr ("\t"); - else + if (selections[i+1] != NULL) g_printerr ("%s",separator); - } else { - g_printerr ("\n"); - } } + g_printerr("\n"); g_strfreev(selections); g_free(separator); |