[empathy] modifies tab-expand and tab-fill properties of child in chat-window (#608053)



commit e14dedc9e30c2026eff27bb349eb810f5dc0de30
Author: Reimundo Heluani <rheluani gmail com>
Date:   Mon Feb 8 11:23:09 2010 +0000

    modifies tab-expand and tab-fill properties of child in chat-window (#608053)

 src/empathy-chat-window.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 801cf57..2b2d707 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -2021,6 +2021,7 @@ empathy_chat_window_add_chat (EmpathyChatWindow *window,
 	GtkWidget             *label;
 	GtkWidget             *popup_label;
 	GtkWidget             *child;
+	GValue                value = { 0, };
 
 	g_return_if_fail (window != NULL);
 	g_return_if_fail (EMPATHY_IS_CHAT (chat));
@@ -2068,8 +2069,13 @@ empathy_chat_window_add_chat (EmpathyChatWindow *window,
 	gtk_notebook_append_page_menu (GTK_NOTEBOOK (priv->notebook), child, label, popup_label);
 	gtk_notebook_set_tab_reorderable (GTK_NOTEBOOK (priv->notebook), child, TRUE);
 	gtk_notebook_set_tab_detachable (GTK_NOTEBOOK (priv->notebook), child, TRUE);
-	gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (priv->notebook), child,
-					    TRUE, TRUE, GTK_PACK_START);
+	g_value_init (&value, G_TYPE_BOOLEAN);
+	g_value_set_boolean (&value, TRUE);
+	gtk_container_child_set_property (GTK_CONTAINER (priv->notebook),
+					  child, "tab-expand" , &value);
+	gtk_container_child_set_property (GTK_CONTAINER (priv->notebook),
+					  child,  "tab-fill" , &value);
+	g_value_unset (&value);
 
 	DEBUG ("Chat added (%d references)", G_OBJECT (chat)->ref_count);
 }



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