> The  function works fine except it eats some memory every it is called (I
> can monitor this with top command).
> Do I have to to a free (style) ???
>

Yes, you have to free it (with g_free I believe), but it's better
to make it static:
..
      static GtkStyle       * style=0;
 
      if (!style) {style=gtk_style_new();}
..
It's faster, but non-reentrant

Calin


_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to