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 74f4c6f6bd with no given reason
for why the signal name was chosen as it was.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-11-12 19:51:33 +00:00
parent ad48bbb849
commit 13f4d639fd
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}

View File

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