[gtk+] widget: Only reemit style-set signal after gtk_widget_get_style()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Only reemit style-set signal after gtk_widget_get_style()
- Date: Sun, 27 Mar 2011 02:19:05 +0000 (UTC)
commit 179cec87c8a33fc639f65f70ef44a4d9e16536bb
Author: Benjamin Otte <otte redhat com>
Date: Sun Mar 27 03:43:07 2011 +0200
widget: Only reemit style-set signal after gtk_widget_get_style()
If the widget does not care about the compat code, just ignore it.
gtk/gtkwidget.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 1cbdbcd..f1de106 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6468,7 +6468,10 @@ gtk_widget_real_query_tooltip (GtkWidget *widget,
static void
gtk_widget_real_style_updated (GtkWidget *widget)
{
- if (gtk_widget_get_realized (widget))
+ GtkWidgetPrivate *priv = widget->priv;
+
+ if (priv->style != NULL &&
+ priv->style != gtk_widget_get_default_style ())
{
/* Trigger ::style-set for old
* widgets not listening to this
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]