[gnome-terminal/gnome-2-28] Set the tab-expand/fill child properties directly



commit 4f2ce2f1ab5f8b3facea836b28c69f75b5698355
Author: Christian Persch <chpe gnome org>
Date:   Fri Nov 13 18:29:53 2009 +0100

    Set the tab-expand/fill child properties directly
    
    gtk_notebook_set_tab_label_packing() is deprecated; set the child
    properties directly instead.

 src/terminal-window.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index ffe4b5f..d2e5d89 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2349,9 +2349,11 @@ terminal_window_add_screen (TerminalWindow *window,
                             screen_container,
                             tab_label,
                             position);
-  gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (priv->notebook),
-                                      screen_container,
-                                      TRUE, TRUE, GTK_PACK_START);
+  gtk_container_child_set (GTK_CONTAINER (priv->notebook),
+                           screen_container,
+                           "tab-expand", TRUE,
+                           "tab-fill", TRUE,
+                           NULL);
   gtk_notebook_set_tab_reorderable (GTK_NOTEBOOK (priv->notebook),
                                     screen_container,
                                     TRUE);



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