[gtk+] notebook: Use initial-gap on both edges of the tab header
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Use initial-gap on both edges of the tab header
- Date: Wed, 2 Oct 2013 15:09:14 +0000 (UTC)
commit 81b0808849492e91e5b1cafff9af02daf144aafb
Author: William Jon McCann <william jon mccann gmail com>
Date: Mon Aug 5 12:32:44 2013 +0200
notebook: Use initial-gap on both edges of the tab header
https://bugzilla.gnome.org/show_bug.cgi?id=707920
gtk/gtknotebook.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index f008101..8fd2d48 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2148,7 +2148,7 @@ gtk_notebook_get_preferred_tabs_size (GtkNotebook *notebook,
action_width += action_widget_requisition[ACTION_WIDGET_START].width;
action_width += action_widget_requisition[ACTION_WIDGET_END].width;
- requisition->width = tab_width + tab_overlap + action_width + initial_gap;
+ requisition->width = tab_width + tab_overlap + action_width + 2 * initial_gap;
requisition->height = tab_height;
break;
@@ -2187,7 +2187,7 @@ gtk_notebook_get_preferred_tabs_size (GtkNotebook *notebook,
action_height += action_widget_requisition[ACTION_WIDGET_START].height;
action_height += action_widget_requisition[ACTION_WIDGET_END].height;
- requisition->height = tab_height + tab_overlap + action_height + initial_gap;
+ requisition->height = tab_height + tab_overlap + action_height + 2 * initial_gap;
requisition->height = MAX (requisition->height, tab_max + tab_overlap);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]