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:
Benjamin Otte 2014-08-25 16:33:33 +02:00
parent d34f2526c4
commit 01d644b7ee

View File

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