Re: Gdk Backend Detection
- From: John Ralls <jralls ceridwen us>
- To: Tomeu Vizoso <tomeu tomeuvizoso net>
- Cc: python-hackers-list gnome org
- Subject: Re: Gdk Backend Detection
- Date: Fri, 6 Jul 2012 17:55:44 +0100
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]