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... --- ChangeLog | 9 +++++++++ THANKS | 1 + src/about.c | 1 + src/calendar.c | 2 +- src/fileselection.c | 6 +++--- src/text.c | 2 +- src/tree.c | 4 ++-- 7 files changed, 18 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 566f66ad..696639e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +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... + 2003-07-10 John Fleck * autogen.sh diff --git a/THANKS b/THANKS index 1544f6be..44d2dae3 100644 --- a/THANKS +++ b/THANKS @@ -7,6 +7,7 @@ James Henstridge Mihai T. Lazarescu Mike Newman Havoc Pennington +Kevin C. Krinke Kristian Rietveld Jakub Steiner Danel d'Surreal diff --git a/src/about.c b/src/about.c index 22a0a41c..bb675819 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 e2d94ffd..36b3fe4d 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 d392b0d0..cfc966f3 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 0afe2694..0cf992c0 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 80562d86..73e9565d 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