aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/remote.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2009-04-25 22:54:15 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2009-04-25 22:54:15 -0300
commitcc6fd7f646e372a50c56db1c9af1b9d0bcbe8d6c (patch)
tree4fca59e27fe04fe22d1966a681adfb24e3e087b6 /hardinfo2/remote.c
parent77baf70fba7d7fbdd10d677a3a0357c7337d8b12 (diff)
Start implementing the XML-RPC server
Diffstat (limited to 'hardinfo2/remote.c')
-rw-r--r--hardinfo2/remote.c7
1 files changed, 5 insertions, 2 deletions
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);
}
}