diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-11 18:12:57 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-11 18:12:57 +0000 |
commit | 8142e5a38927fc140802c714123572d05bd99cc8 (patch) | |
tree | 81beefc24c9a354c265744c3684d09d7289860e2 /action.c | |
parent | 072fe88a5d2be716825f25c5819c2ff057b48a11 (diff) | |
download | dzen-8142e5a38927fc140802c714123572d05bd99cc8.tar.gz dzen-8142e5a38927fc140802c714123572d05bd99cc8.zip |
get rid of exposetitle and exposeslave actions,
we handle those without wrapper functions
git-svn-id: http://dzen.googlecode.com/svn/trunk@82 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 36 |
1 files changed, 8 insertions, 28 deletions
@@ -1,7 +1,8 @@ /* -* (C)opyright MMVII Robert Manea <rob dot manea at gmail dot com> -* See LICENSE file for license details. -*/ + * (C)opyright MMVII Robert Manea <rob dot manea at gmail dot com> + * See LICENSE file for license details. + * + */ #include "dzen.h" #include "action.h" @@ -11,8 +12,6 @@ struct event_lookup ev_lookup_table[] = { - { "exposet", exposetitle}, - { "exposes", exposeslave}, { "onstart", onstart}, { "onexit", onexit}, { "button1", button1}, @@ -30,8 +29,6 @@ struct event_lookup ev_lookup_table[] = { }; struct action_lookup ac_lookup_table[] = { - { "exposetitle", a_exposetitle}, - { "exposeslave", a_exposeslave}, { "print", a_print }, { "exec", a_exec}, { "exit", a_exit}, @@ -158,31 +155,14 @@ fill_ev_table(char *input) /* actions */ - -/* used internally */ -int -a_exposetitle(char * opt[]) { - XCopyArea(dzen.dpy, dzen.title_win.drawable, dzen.title_win.win, - dzen.gc, 0, 0, dzen.title_win.width, dzen.line_height, 0, 0); - return 0; -} - -/* used internally */ int -a_exposeslave(char * opt[]) { - x_draw_body(); +a_exit(char * opt[]) { + if(opt[0]) + dzen.ret_val = atoi(opt[0]); + dzen.running = False; return 0; } -/* user selectable actions */ -int - a_exit(char * opt[]) { - if(opt[0]) - dzen.ret_val = atoi(opt[0]); - dzen.running = False; - return 0; - } - int a_collapse(char * opt[]){ int i; |