From d066bae5c17b836e49d86d585c8e9cf0779899bb Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Tue, 27 Oct 2015 12:09:59 +0700 Subject: Tweak sidebar ui origin commit: https://gitlab.gnome.org/GNOME/eog/commit/fff55c6 --- data/metadata-sidebar.ui | 3 +++ src/eom-metadata-sidebar.c | 1 - src/eom-sidebar.c | 7 +++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/data/metadata-sidebar.ui b/data/metadata-sidebar.ui index 59633bc..09972e5 100644 --- a/data/metadata-sidebar.ui +++ b/data/metadata-sidebar.ui @@ -18,6 +18,9 @@ vertical 3 6 + 6 + 6 + 6 True diff --git a/src/eom-metadata-sidebar.c b/src/eom-metadata-sidebar.c index ae9ce89..384a49e 100644 --- a/src/eom-metadata-sidebar.c +++ b/src/eom-metadata-sidebar.c @@ -534,7 +534,6 @@ eom_metadata_sidebar_new (EomWindow *window) "vadjustment", NULL, "hscrollbar-policy", GTK_POLICY_NEVER, "vscrollbar-policy", GTK_POLICY_AUTOMATIC, - "border-width", 6, "parent-window", window, NULL); } diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c index c71733b..faf8321 100644 --- a/src/eom-sidebar.c +++ b/src/eom-sidebar.c @@ -358,6 +358,10 @@ eom_sidebar_init (EomSidebar *eom_sidebar) eom_sidebar->priv = eom_sidebar_get_instance_private (eom_sidebar); + gtk_style_context_add_class ( + gtk_widget_get_style_context (GTK_WIDGET (eom_sidebar)), + GTK_STYLE_CLASS_SIDEBAR); + /* data model */ eom_sidebar->priv->page_model = (GtkTreeModel *) gtk_list_store_new (PAGE_COLUMN_NUM_COLS, @@ -368,6 +372,7 @@ eom_sidebar_init (EomSidebar *eom_sidebar) /* top option menu */ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + g_object_set (hbox, "border-width", 6, NULL); eom_sidebar->priv->hbox = hbox; gtk_box_pack_start (GTK_BOX (eom_sidebar), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); @@ -438,8 +443,6 @@ eom_sidebar_init (EomSidebar *eom_sidebar) gtk_notebook_set_show_border (GTK_NOTEBOOK (eom_sidebar->priv->notebook), FALSE); gtk_notebook_set_show_tabs (GTK_NOTEBOOK (eom_sidebar->priv->notebook), FALSE); - gtk_widget_set_margin_start (eom_sidebar->priv->notebook, 6); - gtk_widget_set_margin_end (eom_sidebar->priv->notebook, 6); gtk_box_pack_start (GTK_BOX (eom_sidebar), eom_sidebar->priv->notebook, TRUE, TRUE, 0); -- cgit v1.2.1