Re: misc and a question...



On Thu, Dec 29, 2011 at 11:25:00AM +1100, James Steward wrote:
Date: Thu, 29 Dec 2011 11:25:00 +1100
From: James Steward <jamessteward optusnet com au>
Subject: Re: misc and a question...
To: gtk-app-devel-list gnome org

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.
_______________________________________________


        outstanding.  thanks much

        gary

gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 
 Gary Kline  kline thought org  http://www.thought.org  Public Service Unix
           Journey Toward the Dawn, E-Book: http://www.thought.org
          The 8.57a release of Jottings: http://jottings.thought.org
             Twenty-five years of service to the Unix community.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]