From de061a83a4fe89a6912de0fcdb918e83a9fe824b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 25 Aug 2014 16:35:11 +0200 Subject: modifierstyle: Remove the changed signal It's been unused since last commit --- gtk/gtkmodifierstyle.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'gtk/gtkmodifierstyle.c') diff --git a/gtk/gtkmodifierstyle.c b/gtk/gtkmodifierstyle.c index 247292f952..ca23223dcb 100644 --- a/gtk/gtkmodifierstyle.c +++ b/gtk/gtkmodifierstyle.c @@ -28,13 +28,6 @@ struct _GtkModifierStylePrivate GHashTable *color_properties; }; -enum { - CHANGED, - LAST_SIGNAL -}; - -static guint signals [LAST_SIGNAL] = { 0 }; - static void gtk_modifier_style_provider_init (GtkStyleProviderIface *iface); static void gtk_modifier_style_provider_private_init (GtkStyleProviderPrivateInterface *iface); static void gtk_modifier_style_finalize (GObject *object); @@ -54,14 +47,6 @@ _gtk_modifier_style_class_init (GtkModifierStyleClass *klass) object_class = G_OBJECT_CLASS (klass); object_class->finalize = gtk_modifier_style_finalize; - - signals[CHANGED] = - g_signal_new (I_("changed"), - G_TYPE_FROM_CLASS (object_class), - G_SIGNAL_RUN_LAST, - 0, NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); } static void @@ -199,7 +184,6 @@ modifier_style_set_color (GtkModifierStyle *style, else gtk_style_properties_unset_property (priv->style, prop, state); - g_signal_emit (style, signals[CHANGED], 0); _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style)); } @@ -240,7 +224,6 @@ _gtk_modifier_style_set_font (GtkModifierStyle *style, else gtk_style_properties_unset_property (priv->style, "font", 0); - g_signal_emit (style, signals[CHANGED], 0); _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style)); } @@ -267,7 +250,6 @@ _gtk_modifier_style_map_color (GtkModifierStyle *style, G_GNUC_END_IGNORE_DEPRECATIONS; - g_signal_emit (style, signals[CHANGED], 0); _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style)); } @@ -308,6 +290,5 @@ _gtk_modifier_style_set_color_property (GtkModifierStyle *style, g_free (str); } - g_signal_emit (style, signals[CHANGED], 0); _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style)); } -- cgit v1.2.1