Re: Gdk Backend Detection



On Jul 3, 2012, at 9:40 AM, Tomeu Vizoso wrote:

> On Mon, Jul 2, 2012 at 6:25 PM, John Ralls <jralls ceridwen us> wrote:
>> How does one do this in pygobject?
>> Pygtk exposed the GDK_WINDOWING_FOO macros as a Gdk.Windowing constant; Gtk3 in C defines both those macros for compile time and GDK_IS_FOO_DISPLAY (display) for runtime detection, but neither of them seem to be exposed by pygobjet.
> 
> My guess is that we need to add bindable API to Gtk+ for this.

I think that would be resisted on the C side.

I figured out how to finesse it with Gdk.Display.get_default().__class__.__name__, which returns the quite usable "gtk.gdk.FooDisplay".

Regards,
John Ralls



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