Re: GtkScrollView contents & its GtkViewport contents
- From: Andrew Wood <ajwood theiet org>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkScrollView contents & its GtkViewport contents
- Date: Tue, 22 Dec 2009 15:33:33 +0000
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 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_WIDGET(vbox));
How can I then remove the vbox and its viewport from the
GtkScrolledWindow so the GtkScrolledWindow has no children, so that
gtk_scrolled_window_add_with_viewport can be called again
Would it be correct to use
gtk_bin_get_child(GTK_BIN(scrollview))=NULL
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]