summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-03-21 09:37:09 +0100
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:10 +0200
commitece9d2fd92b228503bc450dd2778f8d673dbfa18 (patch)
treeb35db4b944d7960cd85251c0563e9cd0a0e89779 /gtk/gtkcombobox.c
parente7a984b33762a3edd787294b012b4524cb8fd606 (diff)
downloadgtk+-ece9d2fd92b228503bc450dd2778f8d673dbfa18.tar.gz
gtk: Make widget only invalidate widget positions
Instead of resetting them completely
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r--gtk/gtkcombobox.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 53fe1b1ea3..0272924b47 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -41,6 +41,7 @@
#include "gtktreeselection.h"
#include "gtkseparator.h"
#include "gtkwidgetpath.h"
+#include "gtkwidgetprivate.h"
#include "gtkwindow.h"
#include "gtktypebuiltins.h"
#include "gtkprivate.h"
@@ -1382,10 +1383,16 @@ gtk_combo_box_button_state_flags_changed (GtkWidget *widget,
}
static void
+gtk_combo_box_invalidate_order_foreach (GtkWidget *widget)
+{
+ _gtk_widget_invalidate_style_context (widget, GTK_CSS_CHANGE_POSITION | GTK_CSS_CHANGE_SIBLING_POSITION);
+}
+
+static void
gtk_combo_box_invalidate_order (GtkComboBox *combo_box)
{
gtk_container_forall (GTK_CONTAINER (combo_box),
- (GtkCallback) gtk_widget_reset_style,
+ (GtkCallback) gtk_combo_box_invalidate_order_foreach,
NULL);
}