aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-02 22:47:54 -0600
committerTed Gould <ted@gould.cx>2011-03-02 22:47:54 -0600
commit653e6aaf8dfbc91f728cd8766991a50c2fc6f275 (patch)
tree6974ccb04976cfa1ebafd7401f9b47babc93ea74 /libdbusmenu-glib
parentd693a90a23e498b50052040f90d761d0b57c5914 (diff)
downloadlibdbusmenu-653e6aaf8dfbc91f728cd8766991a50c2fc6f275.tar.gz
libdbusmenu-653e6aaf8dfbc91f728cd8766991a50c2fc6f275.tar.bz2
libdbusmenu-653e6aaf8dfbc91f728cd8766991a50c2fc6f275.zip
Adding the private variable for icon directories
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 83ca056..a91e9f6 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -98,6 +98,7 @@ struct _DbusmenuClientPrivate
DbusmenuTextDirection text_direction;
DbusmenuStatus status;
+ GStrv icon_dirs;
};
typedef struct _newItemPropData newItemPropData;
@@ -358,6 +359,7 @@ dbusmenu_client_init (DbusmenuClient *self)
priv->text_direction = DBUSMENU_TEXT_DIRECTION_NONE;
priv->status = DBUSMENU_STATUS_NORMAL;
+ priv->icon_dirs = NULL;
return;
}
@@ -466,6 +468,11 @@ dbusmenu_client_finalize (GObject *object)
g_hash_table_destroy(priv->type_handlers);
}
+ if (priv->icon_dirs != NULL) {
+ g_strfreev(priv->icon_dirs);
+ priv->icon_dirs = NULL;
+ }
+
G_OBJECT_CLASS (dbusmenu_client_parent_class)->finalize (object);
return;
}