From f3d6759b28a0d74407efe98c598649903ac22a04 Mon Sep 17 00:00:00 2001 From: gotmor Date: Fri, 11 May 2007 10:22:39 +0000 Subject: renamed "onquit" to "onexit" git-svn-id: http://dzen.googlecode.com/svn/trunk@18 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.c | 2 +- action.h | 4 ++-- main.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/action.c b/action.c index 85f48b6..f3026e5 100644 --- a/action.c +++ b/action.c @@ -14,7 +14,7 @@ struct event_lookup ev_lookup_table[] = { { "exposet", exposetitle}, { "exposes", exposeslave}, { "onstart", onstart}, - { "onquit", onquit}, + { "onexit", onexit}, { "button1", button1}, { "button2", button2}, { "button3", button3}, diff --git a/action.h b/action.h index 9085410..da5b739 100644 --- a/action.h +++ b/action.h @@ -15,8 +15,8 @@ typedef struct EV Ev; enum ev_id { /* internal events, should not be used by the user */ exposetitle, exposeslave, - /* startup, shutdown */ - onstart, onquit, + /* startup, exit */ + onstart, onexit, /* mouse buttons */ button1, button2, button3, button4, button5, /* entering/leaving windows */ diff --git a/main.c b/main.c index fd5778a..7a00647 100644 --- a/main.c +++ b/main.c @@ -32,7 +32,7 @@ catch_sigusr2() { static void catch_sigterm() { - do_action(onquit); + do_action(onexit); } sigfunc * @@ -454,7 +454,7 @@ main(int argc, char *argv[]) { fill_ev_table(edef); } - if(ev_table[onquit].isset && (setup_signal(SIGTERM, catch_sigterm) == SIG_ERR)) + if(ev_table[onexit].isset && (setup_signal(SIGTERM, catch_sigterm) == SIG_ERR)) fprintf(stderr, "dzen: error hooking SIGTERM\n"); if(ev_table[sigusr1].isset && (setup_signal(SIGUSR1, catch_sigusr1) == SIG_ERR)) fprintf(stderr, "dzen: error hooking SIGUSR1\n"); @@ -478,7 +478,7 @@ main(int argc, char *argv[]) { /* main event loop */ event_loop(NULL); - do_action(onquit); + do_action(onexit); clean_up(); -- cgit v1.2.3-54-g00ecf