forked from AuroraMiddleware/gtk
widget: Don't connect to GtkModifierStyle::changed
Changes to the modifier style will be picked up by the GtkStyleProviderPrivate::changed signal. And that signal will actually invalidate properly.
This commit is contained in:
parent
d34f2526c4
commit
01d644b7ee
@ -9584,13 +9584,6 @@ gtk_widget_get_parent (GtkWidget *widget)
|
||||
return widget->priv->parent;
|
||||
}
|
||||
|
||||
static void
|
||||
modifier_style_changed (GtkModifierStyle *style,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
_gtk_widget_invalidate_style_context (widget, GTK_CSS_CHANGE_ANY);
|
||||
}
|
||||
|
||||
static GtkModifierStyle *
|
||||
_gtk_widget_get_modifier_properties (GtkWidget *widget)
|
||||
{
|
||||
@ -9608,9 +9601,6 @@ _gtk_widget_get_modifier_properties (GtkWidget *widget)
|
||||
style,
|
||||
(GDestroyNotify) g_object_unref);
|
||||
|
||||
g_signal_connect (style, "changed",
|
||||
G_CALLBACK (modifier_style_changed), widget);
|
||||
|
||||
context = gtk_widget_get_style_context (widget);
|
||||
|
||||
gtk_style_context_add_provider (context,
|
||||
|
Loading…
Reference in New Issue
Block a user