Re[2]: custom widget and styles
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: Tristan Van Berkom <vantr touchtunes com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re[2]: custom widget and styles
- Date: Fri, 8 Nov 2002 23:10:37 +0200
override G_OBJECT(obj)->finalize in your init and
chain to G_OBJECT_CLASS(obj)->finalize in your
version of finalize where you kill your style.
-Tristan
in _class_init():
my_style = gtk_style_new();
[modifying *my_style fields]
But i'm creating the style only once, in class initialization. Or
should i just create it in the _new() function? I don't really
understand what gtk_style_attach() does, won't it create a copy of
my_style?
Paul Pogonyshev
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]