mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
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:
parent
9d3465412e
commit
179cec87c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user