From cc6fd7f646e372a50c56db1c9af1b9d0bcbe8d6c Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 25 Apr 2009 22:54:15 -0300 Subject: Start implementing the XML-RPC server --- hardinfo2/remote.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'hardinfo2/remote.c') diff --git a/hardinfo2/remote.c b/hardinfo2/remote.c index ae144b5d..de3a9692 100644 --- a/hardinfo2/remote.c +++ b/hardinfo2/remote.c @@ -69,7 +69,7 @@ static RemoteDialog *remote_dialog_new(GtkWidget *parent); static void remote_connect(RemoteDialog *rd) { - + } void remote_dialog_show(GtkWidget *parent) @@ -114,19 +114,22 @@ static void populate_store(GtkListStore * store) for (i = 0; i < no_hosts; i++) { gchar *hostname; gchar *hostgroup; + gchar *icon; hostgroup = g_strdup_printf("Host%d", i); hostname = g_key_file_get_string(remote, hostgroup, "name", NULL); + icon = g_key_file_get_string(remote, hostgroup, "icon", NULL); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, - 0, icon_cache_get_pixbuf("server.png"), + 0, icon_cache_get_pixbuf(icon ? icon : "server.png"), 1, hostname, 2, GINT_TO_POINTER(i), -1); g_free(hostgroup); + g_free(icon); } } -- cgit v1.2.3