[gtk+] notebook: Match horizontal and vertical code paths
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Match horizontal and vertical code paths
- Date: Fri, 29 Apr 2011 09:06:07 +0000 (UTC)
commit 5642703b0edf146046213f47d7e725adb4b1af9f
Author: Benjamin Otte <otte redhat com>
Date: Fri Apr 29 11:04:01 2011 +0200
notebook: Match horizontal and vertical code paths
I have no idea what this code does, but it looks better now. :o
gtk/gtknotebook.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index b24a828..b6ebff4 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6175,7 +6175,7 @@ gtk_notebook_page_allocate (GtkNotebook *notebook,
* coordinate of the allocation too, to position it after
* the end of the overlap.
*/
- if (page != priv->cur_page && tab_overlap > tab_curvature)
+ if (page != priv->cur_page && tab_overlap > tab_curvature + MIN (tab_padding.top, tab_padding.bottom))
{
if (gtk_notebook_page_num (notebook, page->child) >
gtk_notebook_page_num (notebook, priv->cur_page->child))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]