[giggle] plugins/giggle-view-terminal.c: Set the child properties correctly



commit 9726a75aad8d71079543ba30db368261d07ea760
Author: Javier JardÃn <jjardon gnome org>
Date:   Fri Oct 21 00:44:26 2011 +0100

    plugins/giggle-view-terminal.c: Set the child properties correctly

 plugins/giggle-view-terminal.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/giggle-view-terminal.c b/plugins/giggle-view-terminal.c
index 16cf1df..b4604fb 100644
--- a/plugins/giggle-view-terminal.c
+++ b/plugins/giggle-view-terminal.c
@@ -203,10 +203,11 @@ giggle_view_terminal_append_tab (GiggleViewTerminal *view,
 	/*FIXME:gtk_notebook_set_show_tabs (GTK_NOTEBOOK (priv->notebook), i > 0);*/
 	gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook), i);
 
-	g_object_set (terminal,
-	              "tab-expand", TRUE,
-	              "tab-fill", TRUE,
-	              NULL);
+	gtk_container_child_set (GTK_CONTAINER (priv->notebook),
+	                         terminal,
+	                         "tab-expand", TRUE,
+	                         "tab-fill", TRUE,
+	                         NULL);
 
 	gtk_action_set_visible (giggle_view_get_action (GIGGLE_VIEW (view)), TRUE);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]