[gtk+] GtkWidget: Handle style updates before realize
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkWidget: Handle style updates before realize
- Date: Wed, 20 Mar 2013 13:04:20 +0000 (UTC)
commit 76e466197a5fef910ce76f76785829fa52d709e7
Author: Alexander Larsson <alexl redhat com>
Date: Wed Mar 20 13:56:16 2013 +0100
GtkWidget: Handle style updates before realize
If the style changes before we're realized we will delay the
style-updated signal until realize. However, we then lose
the changes bitmap. This means that gtk_widget_real_style_updated()
must treat a NULL change as "everything changed" and queue a resize.
gtk/gtkwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5716a04..44755b6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7145,7 +7145,7 @@ gtk_widget_real_style_updated (GtkWidget *widget)
if (widget->priv->anchored)
{
- if (changes && _gtk_css_style_property_changes_affect_size (changes))
+ if (changes == NULL || _gtk_css_style_property_changes_affect_size (changes))
gtk_widget_queue_resize (widget);
else
gtk_widget_queue_draw (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]