[gtk+/wip/unfocused-fixes: 11/17] toolitemgroup: Use the widget state flags as a base for drawing



commit d7e4be654f0c3857d729b83bf6ffe08417247300
Author: Rui Matos <tiagomatos gmail com>
Date:   Thu Dec 22 00:31:07 2011 +0000

    toolitemgroup: Use the widget state flags as a base for drawing

 gtk/gtktoolitemgroup.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index bb59b05..40b10e3 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -277,6 +277,7 @@ gtk_tool_item_group_header_draw_cb (GtkWidget *widget,
   width = gtk_widget_get_allocated_width (widget);
   height = gtk_widget_get_allocated_height (widget);
   context = gtk_widget_get_style_context (widget);
+  state = gtk_widget_get_state_flags (widget);
 
   if (!priv->collapsed)
     state |= GTK_STATE_FLAG_ACTIVE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]