[glib] Rename GApplication::appid to GApplication::application-id



commit 32b7fbb8907757d8c19c50b48f5917bbad18e43d
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 7 22:21:47 2010 -0400

    Rename GApplication::appid to GApplication::application-id

 gio/gapplication.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 8c10f3e..7426875 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -152,7 +152,7 @@ enum
 {
   PROP_0,
 
-  PROP_APPID,
+  PROP_APPLICATION_ID,
   PROP_DEFAULT_QUIT,
   PROP_IS_REMOTE
 };
@@ -371,7 +371,7 @@ g_application_new (const gchar *appid)
 {
   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)
     {
-    case PROP_APPID:
+    case PROP_APPLICATION_ID:
       g_value_set_string (value, g_application_get_id (app));
       break;
 
@@ -871,7 +871,7 @@ g_application_set_property (GObject      *object,
 
   switch (prop_id)
     {
-    case PROP_APPID:
+    case PROP_APPLICATION_ID:
       g_return_if_fail (_g_application_validate_id (g_value_get_string (value)));
       app->priv->appid = g_value_dup_string (value);
       break;
@@ -898,7 +898,7 @@ g_application_constructor (GType                  type,
   for (i = 0; i < n_construct_properties; 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);
     }
 
@@ -1030,15 +1030,15 @@ g_application_class_init (GApplicationClass *klass)
                   G_TYPE_VARIANT);
 
    /**
-   * GApplication:appid:
+   * GApplication:application-id:
    *
    * The unique identifier for this application.  See the documentation for
    * #GApplication for more information about this property.
    *
    */
   g_object_class_install_property (gobject_class,
-                                   PROP_APPID,
-                                   g_param_spec_string ("appid",
+                                   PROP_APPLICATION_ID,
+                                   g_param_spec_string ("application-id",
                                                         P_("Application ID"),
                                                         P_("Identifier for this application"),
                                                         NULL,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]