[eog] Tweak sidebar ui
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Tweak sidebar ui
- Date: Tue, 3 Nov 2015 18:36:47 +0000 (UTC)
commit 577403b1aabcef05108390d160ce934368cd236d
Author: Trinh Anh Ngoc <atw1990 gmail com>
Date: Tue Oct 27 12:09:59 2015 +0700
Tweak sidebar ui
data/metadata-sidebar.ui | 3 +++
src/eog-metadata-sidebar.c | 1 -
src/eog-sidebar.c | 7 +++++--
3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/data/metadata-sidebar.ui b/data/metadata-sidebar.ui
index 8b14188..39406b6 100644
--- a/data/metadata-sidebar.ui
+++ b/data/metadata-sidebar.ui
@@ -18,6 +18,9 @@
<property name="orientation">vertical</property>
<property name="row_spacing">3</property>
<property name="column_spacing">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-bottom">6</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
diff --git a/src/eog-metadata-sidebar.c b/src/eog-metadata-sidebar.c
index 714d6a6..743217f 100644
--- a/src/eog-metadata-sidebar.c
+++ b/src/eog-metadata-sidebar.c
@@ -490,7 +490,6 @@ eog_metadata_sidebar_new (EogWindow *window)
"vadjustment", NULL,
"hscrollbar-policy", GTK_POLICY_NEVER,
"vscrollbar-policy", GTK_POLICY_AUTOMATIC,
- "border-width", 6,
"parent-window", window,
NULL);
}
diff --git a/src/eog-sidebar.c b/src/eog-sidebar.c
index 2e6bd42..43dd3e4 100644
--- a/src/eog-sidebar.c
+++ b/src/eog-sidebar.c
@@ -378,6 +378,10 @@ eog_sidebar_init (EogSidebar *eog_sidebar)
eog_sidebar->priv = eog_sidebar_get_instance_private (eog_sidebar);
+ gtk_style_context_add_class (
+ gtk_widget_get_style_context (GTK_WIDGET (eog_sidebar)),
+ GTK_STYLE_CLASS_SIDEBAR);
+
/* data model */
eog_sidebar->priv->page_model = (GtkTreeModel *)
gtk_list_store_new (PAGE_COLUMN_NUM_COLS,
@@ -388,6 +392,7 @@ eog_sidebar_init (EogSidebar *eog_sidebar)
/* top option menu */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ g_object_set (hbox, "border-width", 6, NULL);
eog_sidebar->priv->hbox = hbox;
gtk_box_pack_start (GTK_BOX (eog_sidebar), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
@@ -458,8 +463,6 @@ eog_sidebar_init (EogSidebar *eog_sidebar)
gtk_notebook_set_show_border (GTK_NOTEBOOK (eog_sidebar->priv->notebook), FALSE);
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (eog_sidebar->priv->notebook), FALSE);
- gtk_widget_set_margin_start (eog_sidebar->priv->notebook, 6);
- gtk_widget_set_margin_end (eog_sidebar->priv->notebook, 6);
gtk_box_pack_start (GTK_BOX (eog_sidebar), eog_sidebar->priv->notebook,
TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]