diff options
author | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-02-19 21:12:13 +0100 |
---|---|---|
committer | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-02-21 22:14:13 +0100 |
commit | 58adc0214e3f1c43bd15ffdcb7a10bf6f023a8e2 (patch) | |
tree | 1e85bbb9e46ecbe57219f31c52ebc3cc29ea741e /libcheese/cheese-widget.c | |
parent | d71cb48b6f0263c62cbb1563a644db9b75c522f8 (diff) |
widget: show notebook pages before appending them
As per GtkNotebook docs, it refuses to switch to a page unless the child
widget is visible. So better to show them while constructing the widget
instead of relying on the user to call a _show_all.
Diffstat (limited to 'libcheese/cheese-widget.c')
-rw-r--r-- | libcheese/cheese-widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcheese/cheese-widget.c b/libcheese/cheese-widget.c index 212a612..731d084 100644 --- a/libcheese/cheese-widget.c +++ b/libcheese/cheese-widget.c @@ -202,11 +202,13 @@ cheese_widget_init (CheeseWidget *widget) /* Webcam page */ priv->screen = gtk_drawing_area_new (); + gtk_widget_show (priv->screen); gtk_notebook_append_page (GTK_NOTEBOOK (widget), priv->screen, gtk_label_new ("webcam")); /* Problem page */ priv->problem = gtk_drawing_area_new (); + gtk_widget_show (priv->problem); gtk_notebook_append_page (GTK_NOTEBOOK (widget), priv->problem, gtk_label_new ("got problems")); |