Re: gtk_grab_add giving Gdk-CRITICAL

2010-09-21 Thread Matthew Allen
-- Original Message -- To: (gtk-app-devel-list@gnome.org) From: Matthew Allen (l...@sydneyband.com.au) Subject: gtk_grab_add giving Gdk-CRITICAL Date: 20/9/2010 1:44:03p > The gtk_grab_add asserts with: > > Gdk-CRITICAL **: gdk_window_get_window_type: assertion `GDK_I

Re: Getting native colors in GTK/GDK?

2010-09-21 Thread Tor Lillqvist
> Some such engines have been written, or attempted > (GTK-Wimp, GTK-Qt theme engine, ...) Note that what you call GTK-Wimp is actually called the "MS-Windows" theme and has been included in GTK+ itself for quite some time already. (Just the actual theme engine DLL is called "wimp". The theme and

Re: Getting native colors in GTK/GDK?

2010-09-21 Thread David Nečas
On Tue, Sep 21, 2010 at 10:58:09PM +1000, Matthew Allen wrote: > So I want to match my GTK app's custom widgets to the current theme in > both Linux and Windows. The current theme of what? If you say that the current theme is the current Gtk+ theme then you are done on *both* Linux and MS Windows

Getting native colors in GTK/GDK?

2010-09-21 Thread Matthew Allen
So I want to match my GTK app's custom widgets to the current theme in both Linux and Windows. I grepped the source code and there is no mention of GetSysColor, and certainly GTK ignores the current window colors on win32 (at least for me). It just uses a default grey for window backgrounds etc