From 03ee9ce9d1d60c99c473c4e45a59da2d9899c711 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 20 Sep 2007 22:24:52 +0200 Subject: [PATCH] rename some tag_view UI callback functions and add uicb_tag_viewprev uicb_tag_viewnext as bindable --- awesomerc | 4 +++- config.c | 4 +++- tag.c | 8 ++++---- tag.h | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/awesomerc b/awesomerc index 51398103..6c253313 100644 --- a/awesomerc +++ b/awesomerc @@ -77,7 +77,9 @@ awesome: (("Mod4", "Shift"), "l", "setnmaster", "-1"), (("Mod4", "Control"), "h", "setncols", "+1"), (("Mod4", "Control"), "l", "setncols", "-1"), - (("Mod4"), "Escape", "viewprevtags"), + (("Mod4"), "Escape", "view_tag_prev_selected"), + (("Mod4", "Control"), "Left", "view_tag_previous"), + (("Mod4", "Control"), "Right", "view_tag_next"), (("Mod4"), "m", "togglemax"), (("Mod4"), "t", "settrans", "-5"), (("Mod4", "Shift"), "t", "settrans", "+5"), diff --git a/config.c b/config.c index 1bcaa8b1..8a83ce5c 100644 --- a/config.c +++ b/config.c @@ -92,7 +92,9 @@ static const NameFuncLink KeyfuncList[] = { {"toggleview", uicb_toggleview}, {"toggletag", uicb_toggletag}, {"view", uicb_view}, - {"viewprevtags", uicb_viewprevtags}, + {"view_tag_prev_selected", uicb_tag_prev_selected}, + {"view_tag_previous", uicb_tag_viewprev}, + {"view_tag_next", uicb_tag_viewnext}, /* layout.c */ {"setlayout", uicb_setlayout}, {"focusnext", uicb_focusnext}, diff --git a/tag.c b/tag.c index caa45738..678ed7b9 100644 --- a/tag.c +++ b/tag.c @@ -279,10 +279,10 @@ uicb_view(Display *disp, * \ingroup ui_callback */ void -uicb_viewprevtags(Display * disp, - DC *drawcontext, - awesome_config *awesomeconf, - const char *arg __attribute__ ((unused))) +uicb_tag_prev_selected(Display * disp, + DC *drawcontext, + awesome_config *awesomeconf, + const char *arg __attribute__ ((unused))) { int i; Bool t; diff --git a/tag.h b/tag.h index a95a1353..828a3ced 100644 --- a/tag.h +++ b/tag.h @@ -36,7 +36,7 @@ void uicb_togglefloating(Display *, DC *, awesome_config *, const char *); void uicb_toggletag(Display *, DC *, awesome_config *, const char *); /* toggles sel tags with arg's index */ void uicb_toggleview(Display *, DC *, awesome_config *, const char *); /* toggles the tag with arg's index (in)visible */ void uicb_view(Display *, DC *, awesome_config *, const char *); /* views the tag with arg's index */ -void uicb_viewprevtags(Display *, DC *, awesome_config *, const char *); +void uicb_tag_prev_selected(Display *, DC *, awesome_config *, const char *); void uicb_tag_viewnext(Display *, DC *, awesome_config *, const char *); /* view only tag just after the first selected */ void uicb_tag_viewprev(Display *, DC *, awesome_config *, const char *); /* view only tag just before the first selected */