[evince] shell: sidebar: Expend the sidebar widgets



commit 80cb1af83ec0905b5c11c4190fd116e97d38f4a8
Author: Christian Persch <chpe gnome org>
Date:   Sun Jun 9 01:09:39 2013 +0200

    shell: sidebar: Expend the sidebar widgets
    
    Need to set fill and expand explicitly for GtkBoxes.

 shell/ev-sidebar-annotations.c |    2 +-
 shell/ev-sidebar-attachments.c |    3 +--
 shell/ev-sidebar-layers.c      |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index 1cdee50..b1d9009 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -232,7 +232,7 @@ ev_sidebar_annotations_init (EvSidebarAnnotations *ev_annots)
        gtk_notebook_set_show_border (GTK_NOTEBOOK (ev_annots->priv->notebook), FALSE);
        ev_sidebar_annotations_add_annots_list (ev_annots);
        ev_sidebar_annotations_add_annots_palette (ev_annots);
-       gtk_container_add (GTK_CONTAINER (ev_annots), ev_annots->priv->notebook);
+        gtk_box_pack_start (GTK_BOX (ev_annots), ev_annots->priv->notebook, TRUE, TRUE, 0);
        gtk_widget_show (ev_annots->priv->notebook);
 }
 
diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c
index afe0f6a..9a12cf6 100644
--- a/shell/ev-sidebar-attachments.c
+++ b/shell/ev-sidebar-attachments.c
@@ -568,8 +568,7 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar)
        gtk_container_add (GTK_CONTAINER (swindow),
                           ev_attachbar->priv->icon_view);
 
-       gtk_container_add (GTK_CONTAINER (ev_attachbar),
-                          swindow);
+        gtk_box_pack_start (GTK_BOX (ev_attachbar), swindow, TRUE, TRUE, 0);
        gtk_widget_show_all (GTK_WIDGET (ev_attachbar));
 
        /* Icon Theme */
diff --git a/shell/ev-sidebar-layers.c b/shell/ev-sidebar-layers.c
index 3f541ba..7ee04f2 100644
--- a/shell/ev-sidebar-layers.c
+++ b/shell/ev-sidebar-layers.c
@@ -299,7 +299,7 @@ ev_sidebar_layers_init (EvSidebarLayers *ev_layers)
        gtk_container_add (GTK_CONTAINER (swindow),
                           GTK_WIDGET (ev_layers->priv->tree_view));
 
-       gtk_container_add (GTK_CONTAINER (ev_layers), swindow);
+        gtk_box_pack_start (GTK_BOX (ev_layers), swindow, TRUE, TRUE, 0);
        gtk_widget_show_all (GTK_WIDGET (ev_layers));
 }
 


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