Re: GtkScrollView contents & its GtkViewport contents

2009-12-22 Thread Tristan Van Berkom
On Tue, Dec 22, 2009 at 1:27 PM, Andrew Wood wrote: > Am I right in thinking a GtkScrolledWindow can only have 1 child (a > GtkViewPort) and that the GtkViewPort can only have one child also? > > If this is correct.  Having added a widget a GtkVBox to a GtkScrolledWindow > using: > > gtk_scrolled_

Re: GtkScrollView contents & its GtkViewport contents

2009-12-22 Thread Andrew Wood
Perhaps I ought to add that Im trying to change the contents of the GtkScrolledWindow whilst the app is running but am getting the error: gtk_scrolled_window_add_with_viewport: assertion `GTK_BIN (bin->child)->child == NULL' failed Andrew Wood wrote: Am I right in thinking a GtkScrolledWin

GtkScrollView contents & its GtkViewport contents

2009-12-22 Thread Andrew Wood
Am I right in thinking a GtkScrolledWindow can only have 1 child (a GtkViewPort) and that the GtkViewPort can only have one child also? If this is correct. Having added a widget a GtkVBox to a GtkScrolledWindow using: gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollview),GTK_

Re: Showing GtkButton in table view

2009-12-22 Thread Andrew Wood
OK thanks On 22 Dec 2009, at 14:08, David Nečas wrote: On Tue, Dec 22, 2009 at 01:25:18PM +, Andrew Wood wrote: Is there a way to show a standard GtkButton in a table view. I suppose you mean GtkTreeView. I can find examples for toggle buttons but I want a standard button in each ro

Re: Showing GtkButton in table view

2009-12-22 Thread David Nečas
On Tue, Dec 22, 2009 at 01:25:18PM +, Andrew Wood wrote: > Is there a way to show a standard GtkButton in a table view. I suppose you mean GtkTreeView. > I can find > examples for toggle buttons but I want a standard button in each row. No, that's not available and it is possible either, n

Re: Showing GtkButton in table view

2009-12-22 Thread Debarshi Ray
> Is there a way to show a standard GtkButton in a table view. I can find > examples for toggle buttons but  I want a standard button in each row. Try writting your own GtkCellRenderer. Cheers, Debarshi -- One reason that life is complex is that it has a real part and an imaginary part. -- A

Showing GtkButton in table view

2009-12-22 Thread Andrew Wood
Is there a way to show a standard GtkButton in a table view. I can find examples for toggle buttons but I want a standard button in each row. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/g