On 29/12/11 11:05, Gary Kline wrote:
... due to people on this list who have been patient and 'splained things ... and who have NOT said: 'go read the man page' --well, nutshell, in ~ 3 weeks, i'm starting to see how gtk works. i just learned that TRUE == 1 and not 0. i haven't used the access() call in awhile. i am trying to catch catch errors before they crop up. the way i see my application being used, there won't be any xterms or konsoles open to print a stderr or stdout. So: is there a way in gtk to have a message dialog open that prints warning or whatever to the new user?
#define eprintf(...) do { \ GtkWidget *dialog; \ dialog = gtk_message_dialog_new ((GtkWindow *)window, \ GTK_DIALOG_DESTROY_WITH_PARENT, \ GTK_MESSAGE_ERROR, \ GTK_BUTTONS_CLOSE, \ __VA_ARGS__); \ gtk_dialog_set_default_response(GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE); \ gtk_dialog_run (GTK_DIALOG (dialog)); \ gtk_widget_destroy (dialog); \ } while (0) -- JS. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list