Re: realizing a widget



On Thu, 2 Nov 2000, Davina Armstrong wrote:

 Hi, 

> I'm a newbie GTK programmer, and I'm writing a new widget.  It is a
> composite of GtkLabel and GtkEntry, and it has GtkWidget as its
> immediate parent.  I'm working with the Tictactoe example from the
> tutorial (composite widget) and the GtkEv example from Havoc
> Pennington's book (child of GtkWidget).  My problem is that the label
> and entry do not actually show up when I run my program, and I think the
> problem is that I am not overriding the realize method.  The
> gtk_ev_realize() is pretty involved, and I don't think I need to do
> everything in it.  What, exactly, does a realize method need to do?

 You should use gtk_widget_show(widget) to make them visible or use
	gtk_widget_show_all(window)
 to show everything in one call.
 If it doesn't work then there is something wrong with your code.
 
> Thanks!
> Davina
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 

 Best regards,
  -Vlad





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