Gtk QStyle



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've been kindly asked to develop Gtk QStyle (it would allow for Qt apps to 
look like Gtk ones). I plan to create subclass of GdkWindow and override its 
drawing functions.

But for now I have run into problem: I created GtkStyle with 
gtk_widget_get_default_style(), but when I try to call gtk_paint_box, I'm 
getting this text in console:

(<unknown>:8891): Gdk-CRITICAL **: file ../../gdk/gdkdraw.c: line 411 
(gdk_draw_rectangle): assertion `GDK_IS_GC (gc)' failed

So here's my question: "How to create GdkGC?". This may sound a bit silly, but 
I was unable to figure this from Gtk/Gdk source code :)

- -- 
 Michail "mblsha" Pishchagin - MAZsoft
mblsha users sourceforge net - http://maz.sf.net

I never met a woman I couldn't drink pretty.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+fhcC5mhuYpsVoGwRAqR9AKCPwsunGeYUJgIPo+if1rX3GB/CXACeK8RA
Bhrc+q329QnEktOaIN6QFt8=
=ZeVX
-----END PGP SIGNATURE-----




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