diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-05-11 10:22:39 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-05-11 10:22:39 +0000 |
commit | f3d6759b28a0d74407efe98c598649903ac22a04 (patch) | |
tree | 71416c344308b3921a3dae5ebbd3809c2c236907 | |
parent | faf43c6311d3445fd142307eab2ec2765e3d3d7d (diff) | |
download | dzen-f3d6759b28a0d74407efe98c598649903ac22a04.tar.gz dzen-f3d6759b28a0d74407efe98c598649903ac22a04.zip |
renamed "onquit" to "onexit"
git-svn-id: http://dzen.googlecode.com/svn/trunk@18 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r-- | action.c | 2 | ||||
-rw-r--r-- | action.h | 4 | ||||
-rw-r--r-- | main.c | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -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}, @@ -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 */ @@ -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(); |