Re: Is "The Official GNOME 2 Developer's Guide" from No Starch Press good for gnome-perl?

On Jul 10, 2004, at 7:26 PM, Elijah P Newren wrote:

On Sun, 2004-07-04 at 13:08 +0200, Torsten Schoenfeld wrote:
or, more Perlish:

  Gtk2->main_iteration while (Gtk2->events_pending);

Isn't this method actually obsolete? [...] The answer I found was basically using the C version of the method you suggest. If I recall correctly, I was told that method was deprecated and was told that glib had (recently) taken over the main loop.

according to the C API reference, gtk_main(), gtk_main_quit(), gtk_events_pending() and gtk_main_iteration() have yet to be deprecated:

the main loop did, indeed, move to GLib, so that it could be made threadsafe and useful outside of gtk+, and have other nifty features. in gtk+ app code, i think the accepted convention is to use the gtk+ level stuff, because "do iterations while there are events pending" is rather self-documenting.

I don't have a drinking problem,
'cept when i can't get drink.
  -- Tom Waits

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