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.
This commit is contained in:
parent
b279d76837
commit
cfc573790e
|
@ -100,10 +100,13 @@ cb_ice_connection_messages(IceConn ice_connection, gint source,
|
||||||
static void
|
static void
|
||||||
smc_connect(gint argc, gchar **argv)
|
smc_connect(gint argc, gchar **argv)
|
||||||
{
|
{
|
||||||
SmProp userid, program, restart, restart_style, clone, pid,
|
SmProp userid, program, restart, clone, pid, *props[6];
|
||||||
*props[6];
|
#if 0
|
||||||
SmPropValue userid_val, pid_val, restart_style_val;
|
SmProp restart_style;
|
||||||
CARD8 restartstyle;
|
CARD8 restartstyle;
|
||||||
|
SmPropValue restart_style_val;
|
||||||
|
#endif
|
||||||
|
SmPropValue userid_val, pid_val;
|
||||||
SmcCallbacks *callbacks;
|
SmcCallbacks *callbacks;
|
||||||
SmcConn smc_connection;
|
SmcConn smc_connection;
|
||||||
IceConn ice_connection;
|
IceConn ice_connection;
|
||||||
|
@ -175,6 +178,7 @@ smc_connect(gint argc, gchar **argv)
|
||||||
restart.vals[j++].length = strlen(client_id);
|
restart.vals[j++].length = strlen(client_id);
|
||||||
restart.num_vals = j;
|
restart.num_vals = j;
|
||||||
|
|
||||||
|
#if 0
|
||||||
restartstyle = SmRestartImmediately;
|
restartstyle = SmRestartImmediately;
|
||||||
restart_style.name = SmRestartStyleHint;
|
restart_style.name = SmRestartStyleHint;
|
||||||
restart_style.type = SmCARD8;
|
restart_style.type = SmCARD8;
|
||||||
|
@ -182,6 +186,7 @@ smc_connect(gint argc, gchar **argv)
|
||||||
restart_style.vals = &restart_style_val;
|
restart_style.vals = &restart_style_val;
|
||||||
restart_style_val.value = (SmPointer) &restartstyle;
|
restart_style_val.value = (SmPointer) &restartstyle;
|
||||||
restart_style_val.length = 1;
|
restart_style_val.length = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
clone.name = SmCloneCommand;
|
clone.name = SmCloneCommand;
|
||||||
clone.type = SmLISTofARRAY8;
|
clone.type = SmLISTofARRAY8;
|
||||||
|
|
Loading…
Reference in New Issue