From 652c90596e2c4fff6b7b748afcb01df6e21d22d9 Mon Sep 17 00:00:00 2001 From: "Kevin C. Krinke" Date: Sun, 13 Jul 2003 23:03:18 +0000 Subject: user input data output to STDOUT via g_print instead of outputting to 2003-07-11 Kevin C. Krinke * src/calendar.c, src/entry.c, src/fileselection.c, src/text.c, src/tree.c: user input data output to STDOUT via g_print instead of outputting to STDERR via g_printerr. This makes it possible to destinguish user input data from GTK+ warnings / errors. * THANKS, src/about.c: I figure this is my second patch submission so I belong in the credits... --- src/about.c | 1 + src/calendar.c | 2 +- src/fileselection.c | 6 +++--- src/text.c | 2 +- src/tree.c | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/about.c b/src/about.c index 22a0a41..bb67581 100644 --- a/src/about.c +++ b/src/about.c @@ -58,6 +58,7 @@ static const gchar *author_credits[] = { "Mihai T. Lazarescu ", "Mike Newman ", "Havoc Pennington ", + "Kevin C. Krinke ", "Kristian Rietveld ", "Jakub Steiner ", "Daniel d'Surreal ", diff --git a/src/calendar.c b/src/calendar.c index e2d94ff..36b3fe4 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -100,7 +100,7 @@ zenity_calendar_dialog_response (GtkWidget *widget, int response, gpointer data) gtk_calendar_get_date (GTK_CALENDAR (calendar), &day, &month, &year); date = g_date_new_dmy (year, month + 1, day); g_date_strftime (time_string, 127, zen_cal_data->date_format, date); - g_printerr ("%s\n", time_string); + g_print ("%s\n", time_string); if (date != NULL) g_date_free (date); diff --git a/src/fileselection.c b/src/fileselection.c index d392b0d..cfc966f 100644 --- a/src/fileselection.c +++ b/src/fileselection.c @@ -86,11 +86,11 @@ zenity_fileselection_dialog_response (GtkWidget *widget, int response, gpointer zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK); 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)); + g_print ("%s", g_filename_to_utf8 ((gchar*)selections[i], -1, NULL, NULL, NULL)); if (selections[i+1] != NULL) - g_printerr ("%s",separator); + g_print ("%s",separator); } - g_printerr("\n"); + g_print("\n"); g_strfreev(selections); g_free(separator); diff --git a/src/text.c b/src/text.c index 0afe269..0cf992c 100644 --- a/src/text.c +++ b/src/text.c @@ -93,7 +93,7 @@ zenity_text_dialog_response (GtkWidget *widget, int response, gpointer data) GtkTextIter start, end; gtk_text_buffer_get_bounds (zen_text_data->buffer, &start, &end); - g_printerr (gtk_text_buffer_get_text (zen_text_data->buffer, &start, &end, 0)); + g_print (gtk_text_buffer_get_text (zen_text_data->buffer, &start, &end, 0)); } zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK); gtk_main_quit (); diff --git a/src/tree.c b/src/tree.c index 80562d8..73e9565 100644 --- a/src/tree.c +++ b/src/tree.c @@ -478,10 +478,10 @@ zenity_tree_dialog_output (void) for (tmp = selected; tmp; tmp = tmp->next) { if (tmp->next != NULL) { - g_printerr ("%s%s", (gchar *) tmp->data, separator); + g_print ("%s%s", (gchar *) tmp->data, separator); } else - g_printerr ("%s\n", (gchar *) tmp->data); + g_print ("%s\n", (gchar *) tmp->data); } g_free (separator); -- cgit v1.2.3-2-g168b