[gtk+/gtk-3-22] Emit ::style-set after setting priv->style
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] Emit ::style-set after setting priv->style
- Date: Fri, 21 Oct 2016 18:56:44 +0000 (UTC)
commit e51d73afa3d94116ea99136263d300e25ead38ad
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 21 14:39:10 2016 -0400
Emit ::style-set after setting priv->style
This was inadvertedly changed with an optimization a while ago,
and can lead to application crashes.
https://bugzilla.gnome.org/show_bug.cgi?id=773029
gtk/gtkwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 4b2f5c8..206daa6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -16621,8 +16621,8 @@ void
_gtk_widget_set_style (GtkWidget *widget,
GtkStyle *style)
{
- g_signal_emit (widget, widget_signals[STYLE_SET], 0, widget->priv->style);
widget->priv->style = style;
+ g_signal_emit (widget, widget_signals[STYLE_SET], 0, widget->priv->style);
}
GtkActionMuxer *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]