aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-application.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-15 10:14:31 -0600
committerTed Gould <ted@gould.cx>2010-01-15 10:14:31 -0600
commit9c545b7e13a3c0926d569775cfe5ff470874f675 (patch)
treebbe1d631a935303448a33ca11e167c238e50fd27 /src/indicator-application.c
parent93f32fd90d78997bf9661ddeaa8bfbb2f3020ced (diff)
downloadlibayatana-appindicator-9c545b7e13a3c0926d569775cfe5ff470874f675.tar.gz
libayatana-appindicator-9c545b7e13a3c0926d569775cfe5ff470874f675.tar.bz2
libayatana-appindicator-9c545b7e13a3c0926d569775cfe5ff470874f675.zip
Cleaning out dead code and turning a printout into an assert.
Diffstat (limited to 'src/indicator-application.c')
-rw-r--r--src/indicator-application.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index fc7f56d..c8f3024 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -383,18 +383,9 @@ get_applications (DBusGProxy *proxy, GPtrArray *OUT_applications, GError *error,
static void
get_applications_helper (gpointer data, gpointer user_data)
{
-#if 0
- GType structype = dbus_g_type_get_struct("GValueArray",
- G_TYPE_STRING,
- G_TYPE_INT,
- G_TYPE_STRING,
- DBUS_TYPE_G_OBJECT_PATH,
- G_TYPE_STRING,
- G_TYPE_INVALID);
-#endif
GValueArray * array = (GValueArray *)data;
- g_debug("Size: %d", array->n_values);
+ g_return_if_fail(array->n_values == 5);
const gchar * icon_name = g_value_get_string(g_value_array_get_nth(array, 0));
gint position = g_value_get_int(g_value_array_get_nth(array, 1));