From 1652577abbb869f4276c03f4e10b829c515cb674 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 6 Dec 2010 17:06:10 -0600 Subject: Putting some dummy code in the bus get property function. --- src/app-indicator.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/app-indicator.c') 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; } -- cgit v1.2.3