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


So, given that the API fails silently, are the exact strings that I need to
pass in "Gtk", "Gdk", "GLib", "GdkPixbuf"?  I think I'll wait on the rest
until we actually use the API.

Actually, if example from the doc used "gtk" or some string that's not
NULL, I wouldn't have make the mistake in the first place.

Loving the logging API ...

Steve



Havoc Pennington <hp@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

12/06/01 04:56 PM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        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
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top