mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Rename GApplication::appid to GApplication::application-id
This commit is contained in:
parent
c59cc94318
commit
32b7fbb890
@ -152,7 +152,7 @@ enum
|
|||||||
{
|
{
|
||||||
PROP_0,
|
PROP_0,
|
||||||
|
|
||||||
PROP_APPID,
|
PROP_APPLICATION_ID,
|
||||||
PROP_DEFAULT_QUIT,
|
PROP_DEFAULT_QUIT,
|
||||||
PROP_IS_REMOTE
|
PROP_IS_REMOTE
|
||||||
};
|
};
|
||||||
@ -371,7 +371,7 @@ g_application_new (const gchar *appid)
|
|||||||
{
|
{
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
|
||||||
return G_APPLICATION (g_object_new (G_TYPE_APPLICATION, "appid", appid, NULL));
|
return G_APPLICATION (g_object_new (G_TYPE_APPLICATION, "application-id", appid, NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -844,7 +844,7 @@ g_application_get_property (GObject *object,
|
|||||||
|
|
||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
case PROP_APPID:
|
case PROP_APPLICATION_ID:
|
||||||
g_value_set_string (value, g_application_get_id (app));
|
g_value_set_string (value, g_application_get_id (app));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -871,7 +871,7 @@ g_application_set_property (GObject *object,
|
|||||||
|
|
||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
case PROP_APPID:
|
case PROP_APPLICATION_ID:
|
||||||
g_return_if_fail (_g_application_validate_id (g_value_get_string (value)));
|
g_return_if_fail (_g_application_validate_id (g_value_get_string (value)));
|
||||||
app->priv->appid = g_value_dup_string (value);
|
app->priv->appid = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
@ -898,7 +898,7 @@ g_application_constructor (GType type,
|
|||||||
for (i = 0; i < n_construct_properties; i++)
|
for (i = 0; i < n_construct_properties; i++)
|
||||||
{
|
{
|
||||||
GObjectConstructParam *param = &construct_params[i];
|
GObjectConstructParam *param = &construct_params[i];
|
||||||
if (strcmp (param->pspec->name, "appid") == 0)
|
if (strcmp (param->pspec->name, "application-id") == 0)
|
||||||
appid = g_value_get_string (param->value);
|
appid = g_value_get_string (param->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1030,15 +1030,15 @@ g_application_class_init (GApplicationClass *klass)
|
|||||||
G_TYPE_VARIANT);
|
G_TYPE_VARIANT);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GApplication:appid:
|
* GApplication:application-id:
|
||||||
*
|
*
|
||||||
* The unique identifier for this application. See the documentation for
|
* The unique identifier for this application. See the documentation for
|
||||||
* #GApplication for more information about this property.
|
* #GApplication for more information about this property.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_APPID,
|
PROP_APPLICATION_ID,
|
||||||
g_param_spec_string ("appid",
|
g_param_spec_string ("application-id",
|
||||||
P_("Application ID"),
|
P_("Application ID"),
|
||||||
P_("Identifier for this application"),
|
P_("Identifier for this application"),
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user