diff options
author | Ted Gould <ted@gould.cx> | 2010-12-06 17:06:10 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-12-06 17:06:10 -0600 |
commit | 1652577abbb869f4276c03f4e10b829c515cb674 (patch) | |
tree | 59933a9b725a861c9f72e86754b37975668ed9b5 /src | |
parent | 07aeca3802b2e19878b24637f1f73d971c7be101 (diff) | |
download | libayatana-appindicator-1652577abbb869f4276c03f4e10b829c515cb674.tar.gz libayatana-appindicator-1652577abbb869f4276c03f4e10b829c515cb674.tar.bz2 libayatana-appindicator-1652577abbb869f4276c03f4e10b829c515cb674.zip |
Putting some dummy code in the bus get property function.
Diffstat (limited to 'src')
-rw-r--r-- | src/app-indicator.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index 0d469ac..a2bcaf2 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -1003,8 +1003,29 @@ bus_creation (GObject * obj, GAsyncResult * res, gpointer user_data) static GVariant * bus_get_prop (GDBusConnection * connection, const gchar * sender, const gchar * path, const gchar * interface, const gchar * property, GError ** error, gpointer user_data) { + if (g_strcmp0(property, "Id") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "Category") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "Status") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "IconName") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "AttentionIconName") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "IconThemePath") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "Menu") == 0) { + return g_variant_new("o", "/bob"); + } else if (g_strcmp0(property, "XAyatanaLabel") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "XAyatanaLabelGuide") == 0) { + return g_variant_new("s", "bob"); + } else if (g_strcmp0(property, "XAyatanaOrderingIndex") == 0) { + return g_variant_new("u", 42); + } - + *error = g_error_new(0, 0, "Unknown property: %s", property); return NULL; } |