user input data output to STDOUT via g_print instead of outputting to
2003-07-11 Kevin C. Krinke <kckrinke@opendoorsoftware.com> * 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...
This commit is contained in:
parent
b0c4853c44
commit
652c90596e
@ -1,3 +1,12 @@
|
||||
2003-07-11 Kevin C. Krinke <kckrinke@opendoorsoftware.com>
|
||||
|
||||
* 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 <jfleck@inkstain.net>
|
||||
|
||||
* autogen.sh
|
||||
|
1
THANKS
1
THANKS
@ -7,6 +7,7 @@ James Henstridge <james@daa.com.au>
|
||||
Mihai T. Lazarescu <mihai@email.it>
|
||||
Mike Newman <mike@gtnorthern.demon.co.uk>
|
||||
Havoc Pennington <hp@redhat.com>
|
||||
Kevin C. Krinke <kckrinke@opendoorsoftware.com>
|
||||
Kristian Rietveld <kris@gtk.org>
|
||||
Jakub Steiner <jimmac@ximian.com>
|
||||
Danel d'Surreal <dagmar@speakeasy.net>
|
||||
|
@ -58,6 +58,7 @@ static const gchar *author_credits[] = {
|
||||
"Mihai T. Lazarescu <mihai@email.it>",
|
||||
"Mike Newman <mikegtn@gnome.org>",
|
||||
"Havoc Pennington <hp@redhat.com>",
|
||||
"Kevin C. Krinke <kckrinke@opendoorsoftware.com>",
|
||||
"Kristian Rietveld <kris@gtk.org>",
|
||||
"Jakub Steiner <jimmac@ximian.com>",
|
||||
"Daniel d'Surreal <dagmar@speakeasy.net>",
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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 ();
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user