summaryrefslogtreecommitdiffstats
path: root/src/gnome-plist-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnome-plist-editor.c')
-rw-r--r--src/gnome-plist-editor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gnome-plist-editor.c b/src/gnome-plist-editor.c
index 6badefb..c2de09d 100644
--- a/src/gnome-plist-editor.c
+++ b/src/gnome-plist-editor.c
@@ -27,7 +27,6 @@
#include <gio/gio.h>
#include <plist/plist.h>
-#include "plist-utils.h"
static struct AppState {
GtkWindow *main_window;
@@ -502,8 +501,11 @@ void plist_cell_data_function (GtkTreeViewColumn *col,
text = "FIXME: Parse Dates";
break;
case PLIST_ARRAY:
+ text = g_strdup_printf("(%d items)", plist_array_get_size(node));
+ g_object_set(renderer, "sensitive", FALSE, NULL);
+ break;
case PLIST_DICT:
- text = g_strdup_printf("(%d items)", plist_node_get_item_count(node));
+ text = g_strdup_printf("(%d items)", plist_dict_get_size(node));
g_object_set(renderer, "sensitive", FALSE, NULL);
break;
default: