aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/callbacks.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2009-09-08 10:28:56 -0300
committerLeandro Pereira <leandro@hardinfo.org>2009-09-08 10:28:56 -0300
commit0ae7e8020647dafaa382d7a9e82e46f2d63c132a (patch)
tree5923cfc6cb280a2b777484e67c4be0fbfa72d2fe /hardinfo2/callbacks.c
parent5e9949c3834f46faf76d6e57b10079cbd7687094 (diff)
Cleanups
Diffstat (limited to 'hardinfo2/callbacks.c')
-rw-r--r--hardinfo2/callbacks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/hardinfo2/callbacks.c b/hardinfo2/callbacks.c
index a7a784ef..c3b3b972 100644
--- a/hardinfo2/callbacks.c
+++ b/hardinfo2/callbacks.c
@@ -40,20 +40,25 @@ void cb_sync_manager()
void cb_connect_to()
{
+#ifdef HAS_LIBSOUP
Shell *shell = shell_get_main_shell();
connect_dialog_show(shell->window);
+#endif /* HAS_LIBSOUP */
}
void cb_manage_hosts()
{
+#ifdef HAS_LIBSOUP
Shell *shell = shell_get_main_shell();
host_manager_show(shell->window);
+#endif /* HAS_LIBSOUP */
}
void cb_connect_host(GtkAction * action)
{
+#ifdef HAS_LIBSOUP
Shell *shell = shell_get_main_shell();
gchar *name;
@@ -71,19 +76,23 @@ void cb_connect_host(GtkAction * action)
}
g_free(name);
+#endif /* HAS_LIBSOUP */
}
static gboolean server_start_helper(gpointer server_loop)
{
+#ifdef HAS_LIBSOUP
GMainLoop *loop = (GMainLoop *)server_loop;
xmlrpc_server_start(loop);
return FALSE;
+#endif /* HAS_LIBSOUP */
}
void cb_act_as_server()
{
+#ifdef HAS_LIBSOUP
gboolean accepting;
static GMainLoop *server_loop = NULL;
@@ -94,10 +103,12 @@ void cb_act_as_server()
} else {
g_main_loop_quit(server_loop);
}
+#endif /* HAS_LIBSOUP */
}
void cb_local_computer()
{
+#ifdef HAS_LIBSOUP
Shell *shell = shell_get_main_shell();
shell_status_update("Disconnecting...");
@@ -115,6 +126,7 @@ void cb_local_computer()
shell_view_set_enabled(TRUE);
shell_status_update("Done.");
shell_set_remote_label(shell, "Local");
+#endif /* HAS_LIBSOUP */
}
void cb_save_graphic()