From cfc573790e618ac7d8e4ab767d41c0f31907b28e Mon Sep 17 00:00:00 2001 From: Stefan Gehn Date: Mon, 16 Dec 2013 10:48:21 +0100 Subject: [PATCH] Disable unused X11 SM code parts Move all variable and struct init code into if 0 blocks like the code that is supposed to use this. Eventually this whole cruft can be dropped altogether in case GKrellM can be ported to use Gtk+ session management. --- src/winops-x11.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/winops-x11.c b/src/winops-x11.c index a7305e4..2d02581 100644 --- a/src/winops-x11.c +++ b/src/winops-x11.c @@ -100,10 +100,13 @@ cb_ice_connection_messages(IceConn ice_connection, gint source, static void smc_connect(gint argc, gchar **argv) { - SmProp userid, program, restart, restart_style, clone, pid, - *props[6]; - SmPropValue userid_val, pid_val, restart_style_val; + SmProp userid, program, restart, clone, pid, *props[6]; +#if 0 + SmProp restart_style; CARD8 restartstyle; + SmPropValue restart_style_val; +#endif + SmPropValue userid_val, pid_val; SmcCallbacks *callbacks; SmcConn smc_connection; IceConn ice_connection; @@ -175,6 +178,7 @@ smc_connect(gint argc, gchar **argv) restart.vals[j++].length = strlen(client_id); restart.num_vals = j; +#if 0 restartstyle = SmRestartImmediately; restart_style.name = SmRestartStyleHint; restart_style.type = SmCARD8; @@ -182,6 +186,7 @@ smc_connect(gint argc, gchar **argv) restart_style.vals = &restart_style_val; restart_style_val.value = (SmPointer) &restartstyle; restart_style_val.length = 1; +#endif clone.name = SmCloneCommand; clone.type = SmLISTofARRAY8;