diff options
author | Philip Withnall <withnall@endlessm.com> | 2019-11-12 19:51:33 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2019-11-12 19:51:33 +0000 |
commit | 13f4d639fda16be1a2d43bd2629b77ce1042da19 (patch) | |
tree | 3fb01a9eb093aca494e7900ccd12a63afdf2544b | |
parent | ad48bbb8496d2c3b57fcb4367fd85f7664def0c0 (diff) | |
download | gtk+-13f4d639fda16be1a2d43bd2629b77ce1042da19.tar.gz |
gtkstyleprovider: Rename -gtk-style-changed signal to have a valid name
Signal names must start with a letter. They can’t start with a hyphen.
It was originally added in commit 74f4c6f6bd755967 with no given reason
for why the signal name was chosen as it was.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r-- | gtk/gtkstylecascade.c | 4 | ||||
-rw-r--r-- | gtk/gtkstylecontext.c | 2 | ||||
-rw-r--r-- | gtk/gtkstyleprovider.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkstylecascade.c b/gtk/gtkstylecascade.c index 4c94696742..d0010de2be 100644 --- a/gtk/gtkstylecascade.c +++ b/gtk/gtkstylecascade.c @@ -294,7 +294,7 @@ _gtk_style_cascade_set_parent (GtkStyleCascade *cascade, { g_object_ref (parent); g_signal_connect_swapped (parent, - "-gtk-private-changed", + "gtk-private-changed", G_CALLBACK (gtk_style_provider_changed), cascade); } @@ -325,7 +325,7 @@ _gtk_style_cascade_add_provider (GtkStyleCascade *cascade, data.provider = g_object_ref (provider); data.priority = priority; data.changed_signal_id = g_signal_connect_swapped (provider, - "-gtk-private-changed", + "gtk-private-changed", G_CALLBACK (gtk_style_provider_changed), cascade); diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 7ba0c3f61d..2072dd8a3b 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -265,7 +265,7 @@ gtk_style_context_set_cascade (GtkStyleContext *context, { g_object_ref (cascade); priv->cascade_changed_id = g_signal_connect (cascade, - "-gtk-private-changed", + "gtk-private-changed", G_CALLBACK (gtk_style_context_cascade_changed), context); } diff --git a/gtk/gtkstyleprovider.c b/gtk/gtkstyleprovider.c index b9c19cd206..c454f19c1e 100644 --- a/gtk/gtkstyleprovider.c +++ b/gtk/gtkstyleprovider.c @@ -45,7 +45,7 @@ static guint signals[LAST_SIGNAL]; static void gtk_style_provider_default_init (GtkStyleProviderInterface *iface) { - signals[CHANGED] = g_signal_new (I_("-gtk-private-changed"), + signals[CHANGED] = g_signal_new (I_("gtk-private-changed"), G_TYPE_FROM_INTERFACE (iface), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkStyleProviderInterface, changed), |