[cheese] widget: show notebook pages before appending them
- From: Filippo Argiolas <fargiolas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] widget: show notebook pages before appending them
- Date: Sun, 21 Feb 2010 21:37:35 +0000 (UTC)
commit 58adc0214e3f1c43bd15ffdcb7a10bf6f023a8e2
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Fri Feb 19 21:12:13 2010 +0100
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.
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"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]