aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/server.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-09 21:50:25 -0600
committerTed Gould <ted@gould.cx>2009-12-09 21:50:25 -0600
commit2997a508fd49ebbbfa53d1c5fc5d0d56250de760 (patch)
tree03b00f9a9d8cfb2fbc8f47340acc40bfcf139009 /libdbusmenu-glib/server.c
parent07ddbba1253463e159d13f65eabcfade699df2e8 (diff)
downloadlibdbusmenu-2997a508fd49ebbbfa53d1c5fc5d0d56250de760.tar.gz
libdbusmenu-2997a508fd49ebbbfa53d1c5fc5d0d56250de760.tar.bz2
libdbusmenu-2997a508fd49ebbbfa53d1c5fc5d0d56250de760.zip
Switching the menuitem internal storage to be a hashtable of values.
Diffstat (limited to 'libdbusmenu-glib/server.c')
-rw-r--r--libdbusmenu-glib/server.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 73c21e2..f61b0fb 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -442,16 +442,6 @@ _dbusmenu_server_get_property (DbusmenuServer * server, guint id, gchar * proper
return TRUE;
}
-static void
-value_table (gpointer pkey, gpointer pvalue, gpointer phash)
-{
- GValue * value = g_new0(GValue, 1);
- g_value_init(value, G_TYPE_STRING);
- g_value_set_string(value, (gchar *)pvalue);
- g_hash_table_insert((GHashTable *)phash, g_strdup((gchar *)pkey), value);
- return;
-}
-
static gboolean
_dbusmenu_server_get_properties (DbusmenuServer * server, guint id, GPtrArray * properties, GHashTable ** dict, GError ** error)
{
@@ -471,12 +461,6 @@ _dbusmenu_server_get_properties (DbusmenuServer * server, guint id, GPtrArray *
*dict = dbusmenu_menuitem_properties_copy(mi);
- GHashTable * newtable = g_hash_table_new(g_str_hash, g_str_equal);
- g_hash_table_foreach(*dict, value_table, newtable);
- g_hash_table_destroy(*dict);
-
- *dict = newtable;
-
return TRUE;
}