GTK 2.0 proglem with references



Hi,

I have small problem
When I create two widget, for  example:
GtkWidget *widget;
GtkWIdget *widget_ref;

widget = gtk_fixed_new ();
...
widget_ref = gtk_widget_ref (GTK_WIDGET (widget));

..

Then when I want do:

gtk_widget_{hide|destroy} (GTK_WIDGET (widget_ref));

Then gtk say widget_ref is not GTK_WIDGET!!

Can You help me??
--
+====================================================+
| Polski program do obsługi firmy dla Linuxa:        |
| Licencja: GNU GPL                                  |
|                      http://xdefactor.netsync.pl   |
+====================================================+





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