Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] GTK in CVS

Steve_Northover@xxxxxxx writes:
> Thanks Hovoc - the example from the documentation indicates that passing
> NULL will add a log handler for all warning messages.  The code has been
> corrected in CVS.  What values other than "gtk" and "gdk" are valid?
> 

I think what the docs mean by "all" is "all in your app" or something
- I was also confused. I may go in there right now and fix the
docs. ;-)

Basically NULL adds a handler for the "default" domain, which is
normally used by the application, while libraries normally define
their own domains.

Coincidentally, someone independently griped about this today:
  http://bugzilla.gnome.org/show_bug.cgi?id=66387

So we'll try for a fix in 2.2. Right now you need to install for all
the domains you care about (GLib, Gdk, Gtk probably, and a few more in
GTK 2 - Pango, Atk, GdkPixbuf). I think set_handler will silently
accept unknown domains, so you could go ahead and plan for the future
by adding the GTK 2 ones.

Havoc


Back to the top