Re: Placing a new box in a button at runtime



On Sat, 22 Apr 2000, Jeff Shipman wrote:

> I've got a button which has a box placed in it. If I
> wanted to re-create a new box and place it in the container
> at runtime, what would I need to do?

 just 
    gtk_widget_destroy(GTK_BIN(button)->child)  
 and button should be ready for packing widgets into it again.

> -- 
> +-----------------------------------------------------+
> | Jeff "Shippy" Shipman     E-Mail: shippy@cs.nmt.edu |
> | Computer Science Major    ICQ: 1786493              |
> | New Mexico Institute of Mining and Technology       |
> | Homepage: http://www.nmt.edu/~shippy                |
> +-----------------------------------------------------+
> 
> _______________________________________________
> 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]