From 619bcacc9745c5f90aeb158697653d30d17e5b07 Mon Sep 17 00:00:00 2001 From: Mandrake Date: Wed, 8 Aug 2001 23:16:35 +0000 Subject: [PATCH] actions.c: Now the "Execute" action actually does something useful, like, say, execute the contents of the parameters :) scrollbar.c: removed 2 warnings SVN revision: 5065 --- src/actions.c | 8 ++++++-- src/scrollbar.c | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/actions.c b/src/actions.c index 3212e6f07..0952678a4 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1088,9 +1088,12 @@ e_act_raise_lower_start (void *o, E_Action *a, void *data, int x, int y, int rx, static void e_act_exec_start (void *o, E_Action *a, void *data, int x, int y, int rx, int ry) { - E_Border *b; + char *exe; - b = o; + exe = (char *) a->params; + if(!exe) return; + printf("exe: %s\n",exe); + e_exec_run(exe); return; UN(a); UN(data); @@ -1098,6 +1101,7 @@ e_act_exec_start (void *o, E_Action *a, void *data, int x, int y, int rx, int ry UN(y); UN(rx); UN(ry); + UN(o); } diff --git a/src/scrollbar.c b/src/scrollbar.c index f6af8673c..7f83be1cd 100644 --- a/src/scrollbar.c +++ b/src/scrollbar.c @@ -6,6 +6,7 @@ static void e_scrollbar_setup_bits(E_Scrollbar *sb); static void e_scrollbar_recalc(E_Scrollbar *sb) { + sb = NULL; } static void @@ -13,6 +14,7 @@ e_scrollbar_setup_bits(E_Scrollbar *sb) { /* sb->base = ebits_load("");*/ /* sb->bar = ebits_load("");*/ + sb = NULL; } E_Scrollbar *