[Xfce4-commits] <ristretto:stephan/icon-bar> Use GTK_SHRINK and GTK_EXPAND flags on table

Stephan Arts noreply at xfce.org
Thu Feb 2 19:30:02 CET 2012


Updating branch refs/heads/stephan/icon-bar
         to 19fa2e41b0f734bbc988d3073606c2e32e0614c1 (commit)
       from d33d6e7c5060c7cc2f12745445c29ace0e596a65 (commit)

commit 19fa2e41b0f734bbc988d3073606c2e32e0614c1
Author: Stephan Arts <stephan at xfce.org>
Date:   Thu Feb 2 19:08:50 2012 +0100

    Use GTK_SHRINK and GTK_EXPAND flags on table

 src/main_window.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index 1855184..3edc39a 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -673,7 +673,7 @@ rstto_main_window_init (RsttoMainWindow *window)
     gtk_box_pack_start(GTK_BOX(main_vbox), window->priv->table, TRUE, TRUE, 0);
     gtk_box_pack_start(GTK_BOX(main_vbox), window->priv->statusbar, FALSE, FALSE, 0);
 
-    gtk_table_attach_defaults (GTK_TABLE (window->priv->table), window->priv->t_bar_s_window, 1, 2, 0, 5);
+    gtk_table_attach (GTK_TABLE (window->priv->table), window->priv->t_bar_s_window, 1, 2, 0, 5, GTK_FILL|GTK_SHRINK, GTK_FILL|GTK_EXPAND, 0, 0);
     gtk_table_attach (GTK_TABLE (window->priv->table), window->priv->image_list_toolbar, 0, 1, 0, 5, GTK_FILL, GTK_EXPAND|GTK_FILL, 0, 0);
     gtk_table_attach (GTK_TABLE (window->priv->table), window->priv->p_viewer_s_window, 2, 3, 2, 3, GTK_EXPAND|GTK_FILL, GTK_EXPAND|GTK_FILL, 0, 0);
 
@@ -1828,7 +1828,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     2,
                     0,
                     5,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     GTK_EXPAND|GTK_FILL,
                     0,
                     0);
@@ -1844,7 +1844,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     1,
                     0,
                     5,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     GTK_EXPAND|GTK_FILL,
                     0,
                     0);
@@ -1867,7 +1867,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     4,
                     0,
                     5,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     GTK_EXPAND|GTK_FILL,
                     0,
                     0);
@@ -1883,7 +1883,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     5,
                     0,
                     5,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     GTK_EXPAND|GTK_FILL,
                     0,
                     0);
@@ -1907,7 +1907,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     1,
                     2,
                     GTK_EXPAND|GTK_FILL,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     0,
                     0);
 
@@ -1923,7 +1923,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     0,
                     1,
                     GTK_EXPAND|GTK_FILL,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     0,
                     0);
             gtk_orientable_set_orientation (GTK_ORIENTABLE (window->priv->image_list_toolbar), GTK_ORIENTATION_HORIZONTAL);
@@ -1945,7 +1945,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     3,
                     4,
                     GTK_EXPAND|GTK_FILL,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     0,
                     0);
 
@@ -1961,7 +1961,7 @@ rstto_main_window_set_navigationbar_position (RsttoMainWindow *window, guint ori
                     4,
                     5,
                     GTK_EXPAND|GTK_FILL,
-                    GTK_FILL,
+                    GTK_SHRINK|GTK_FILL,
                     0,
                     0);
             gtk_orientable_set_orientation (GTK_ORIENTABLE(window->priv->image_list_toolbar), GTK_ORIENTATION_HORIZONTAL);


More information about the Xfce4-commits mailing list