GtkScrollView contents & its GtkViewport contents
- From: Andrew Wood <ajwood theiet org>
- To: gtk-app-devel-list gnome org
- Subject: GtkScrollView contents & its GtkViewport contents
- Date: Tue, 22 Dec 2009 15:27:31 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]