Re: Buttons within buttons



Vanni Brutto <zanac_fake libero it> writes: 
'cause, for example, gtk_clist_set_column_widget and
gtk_tree_view_column_set_widget do it :)

Anyway today i solved using this code (it is not a solution of course!).

     /*----Warning, this does not work :-( -----*/
     //gtk_clist_set_column_widget (GTK_CLIST (*clist), COL_ALBUM,
vboxAlbum);

     /*----At the contrary this work :-) -------*/
     GTK_CLIST(clist)->column[COL_ALBUM].button = vboxAlbum;
     gtk_widget_set_parent (vboxAlbum, clist);


Indeed at the end of this thread i think that the best solution is to
update GtkCList and
GtkTreeViewColumn to destroy the button inside it and to put the
widget that the user want
to use...


Ah, there should maybe be a bug opened on http://bugzilla.gnome.org 
to add API to TreeView allowing you to replace the button entirely.
Though putting a spin button there seems pretty weird, anyhow.

Havoc




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