[evince] Improve sidebar top option menu ui
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Improve sidebar top option menu ui
- Date: Sat, 16 Jul 2016 10:22:48 +0000 (UTC)
commit fd17b92cabcac2521db85089ab4bbcdf2b1d350d
Author: Trinh Anh Ngoc <atw1990 gmail com>
Date: Wed Jun 22 19:56:33 2016 +0700
Improve sidebar top option menu ui
Always center menu button and increase margins.
https://bugzilla.gnome.org/show_bug.cgi?id=767853
shell/ev-sidebar.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c
index 3e14308..692b8d1 100644
--- a/shell/ev-sidebar.c
+++ b/shell/ev-sidebar.c
@@ -348,8 +348,8 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
G_TYPE_INT);
/* top option menu */
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
- gtk_container_set_border_width (GTK_CONTAINER (hbox), 2);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+ gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
ev_sidebar->priv->hbox = hbox;
gtk_box_pack_start (GTK_BOX (ev_sidebar), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
@@ -368,7 +368,7 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
G_CALLBACK (ev_sidebar_select_button_key_press_cb),
ev_sidebar);
- select_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ select_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
ev_sidebar->priv->label = gtk_label_new ("");
gtk_box_pack_start (GTK_BOX (select_hbox),
@@ -383,7 +383,7 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
gtk_container_add (GTK_CONTAINER (ev_sidebar->priv->select_button), select_hbox);
gtk_widget_show (select_hbox);
- gtk_box_pack_start (GTK_BOX (hbox), ev_sidebar->priv->select_button, TRUE, TRUE, 0);
+ gtk_box_set_center_widget (GTK_BOX (hbox), ev_sidebar->priv->select_button);
gtk_widget_show (ev_sidebar->priv->select_button);
close_button = gtk_button_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_BUTTON);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]