widget: Only reemit style-set signal after gtk_widget_get_style()

If the widget does not care about the compat code, just ignore it.
This commit is contained in:
Benjamin Otte 2011-03-27 03:43:07 +02:00
parent 9d3465412e
commit 179cec87c8

View File

@ -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