From 0fa1b4c8227b7bb0577c22ea29eff264337cbfb2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 15 Nov 2007 14:41:03 +0100 Subject: [PATCH] move UicbList in uicb.c --- config.c | 61 +++++--------------------------------------------------- uicb.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 59 insertions(+), 57 deletions(-) diff --git a/config.c b/config.c index 18f1c4e94..334a9e07e 100644 --- a/config.c +++ b/config.c @@ -26,15 +26,12 @@ #include #include -#include "util.h" #include "awesome.h" -#include "screen.h" -#include "draw.h" -#include "tag.h" -#include "rules.h" -#include "statusbar.h" #include "layout.h" -#include "mouse.h" +#include "statusbar.h" +#include "util.h" +#include "rules.h" +#include "screen.h" #include "layouts/tile.h" #include "layouts/floating.h" #include "layouts/max.h" @@ -58,55 +55,7 @@ typedef struct unsigned int button; } MouseButton; -/** List of available UI bindable callbacks and functions */ -const NameFuncLink UicbList[] = { - /* util.c */ - {"spawn", uicb_spawn}, - {"exec", uicb_exec}, - /* client.c */ - {"client_kill", uicb_client_kill}, - {"client_moveresize", uicb_client_moveresize}, - {"client_settrans", uicb_client_settrans}, - {"setborder", uicb_setborder}, - {"client_swapnext", uicb_client_swapnext}, - {"client_swapprev", uicb_client_swapprev}, - /* tag.c */ - {"client_tag", uicb_client_tag}, - {"client_togglefloating", uicb_client_togglefloating}, - {"tag_toggleview", uicb_tag_toggleview}, - {"client_toggletag", uicb_client_toggletag}, - {"tag_view", uicb_tag_view}, - {"tag_viewprev_selected", uicb_tag_prev_selected}, - {"tag_viewprev", uicb_tag_viewprev}, - {"tag_viewnext", uicb_tag_viewnext}, - /* layout.c */ - {"tag_setlayout", uicb_tag_setlayout}, - {"client_focusnext", uicb_client_focusnext}, - {"client_focusprev", uicb_client_focusprev}, - {"client_togglemax", uicb_client_togglemax}, - {"client_toggleverticalmax", uicb_client_toggleverticalmax}, - {"client_togglehorizontalmax", uicb_client_togglehorizontalmax}, - {"client_zoom", uicb_client_zoom}, - /* layouts/tile.c */ - {"tag_setmwfact", uicb_tag_setmwfact}, - {"tag_setnmaster", uicb_tag_setnmaster}, - {"tag_setncol", uicb_tag_setncol}, - /* screen.c */ - {"screen_focusnext", uicb_screen_focusnext}, - {"screen_focusprev", uicb_screen_focusprev}, - {"client_movetoscreen", uicb_client_movetoscreen}, - /* awesome.c */ - {"quit", uicb_quit}, - /* statusbar.c */ - {"togglebar", uicb_togglebar}, - /* config.c */ - {"reloadconfig", uicb_reloadconfig}, - {"setstatustext", uicb_setstatustext}, - /* mouse.c */ - {"client_movemouse", uicb_client_movemouse}, - {"client_resizemouse", uicb_client_resizemouse}, - {NULL, NULL} -}; +extern const NameFuncLink UicbList[]; /** List of keyname and corresponding X11 mask codes */ static const KeyMod KeyModList[] = diff --git a/uicb.c b/uicb.c index 6f3172c2c..bb4d55ef5 100644 --- a/uicb.c +++ b/uicb.c @@ -21,11 +21,64 @@ #include +#include "awesome.h" #include "util.h" #include "uicb.h" #include "screen.h" +#include "tag.h" +#include "layout.h" +#include "mouse.h" +#include "statusbar.h" +#include "layouts/tile.h" -extern const NameFuncLink UicbList[]; +const NameFuncLink UicbList[] = { + /* util.c */ + {"spawn", uicb_spawn}, + {"exec", uicb_exec}, + /* client.c */ + {"client_kill", uicb_client_kill}, + {"client_moveresize", uicb_client_moveresize}, + {"client_settrans", uicb_client_settrans}, + {"setborder", uicb_setborder}, + {"client_swapnext", uicb_client_swapnext}, + {"client_swapprev", uicb_client_swapprev}, + /* tag.c */ + {"client_tag", uicb_client_tag}, + {"client_togglefloating", uicb_client_togglefloating}, + {"tag_toggleview", uicb_tag_toggleview}, + {"client_toggletag", uicb_client_toggletag}, + {"tag_view", uicb_tag_view}, + {"tag_viewprev_selected", uicb_tag_prev_selected}, + {"tag_viewprev", uicb_tag_viewprev}, + {"tag_viewnext", uicb_tag_viewnext}, + /* layout.c */ + {"tag_setlayout", uicb_tag_setlayout}, + {"client_focusnext", uicb_client_focusnext}, + {"client_focusprev", uicb_client_focusprev}, + {"client_togglemax", uicb_client_togglemax}, + {"client_toggleverticalmax", uicb_client_toggleverticalmax}, + {"client_togglehorizontalmax", uicb_client_togglehorizontalmax}, + {"client_zoom", uicb_client_zoom}, + /* layouts/tile.c */ + {"tag_setmwfact", uicb_tag_setmwfact}, + {"tag_setnmaster", uicb_tag_setnmaster}, + {"tag_setncol", uicb_tag_setncol}, + /* screen.c */ + {"screen_focusnext", uicb_screen_focusnext}, + {"screen_focusprev", uicb_screen_focusprev}, + {"client_movetoscreen", uicb_client_movetoscreen}, + /* awesome.c */ + {"quit", uicb_quit}, + /* statusbar.c */ + {"togglebar", uicb_togglebar}, + /* config.c */ + {"reloadconfig", uicb_reloadconfig}, + {"setstatustext", uicb_setstatustext}, + /* mouse.c */ + {"client_movemouse", uicb_client_movemouse}, + {"client_resizemouse", uicb_client_resizemouse}, + {NULL, NULL} +}; int parse_control(char *cmd, awesome_config *awesomeconf)