Re[2]: custom widget and styles



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]