[gtk+] notebook: Query the right node's padding
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Query the right node's padding
- Date: Fri, 6 Nov 2015 17:59:48 +0000 (UTC)
commit 2a1a483edef1c94a795855dec08d91a4421ceb13
Author: Benjamin Otte <otte redhat com>
Date: Fri Nov 6 18:52:13 2015 +0100
notebook: Query the right node's padding
gtk/gtknotebook.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 52d3dd3..f7e5ff9 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6176,10 +6176,11 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook,
* see gtk_notebook_page_allocate().
*/
gtk_style_context_save_to_node (context, page->cssnode);
+ gtk_style_context_get_padding (context, gtk_style_context_get_state (context), &active_padding);
+ gtk_style_context_restore (context);
- gtk_style_context_get_padding (context, GTK_STATE_FLAG_ACTIVE, &active_padding);
- gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL, &normal_padding);
-
+ gtk_style_context_save_to_node (context, priv->cur_page->cssnode);
+ gtk_style_context_get_padding (context, gtk_style_context_get_state (context), &active_padding);
gtk_style_context_restore (context);
padding.top = MAX (0, active_padding.top - normal_padding.top);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]