From 45ac9d24f457dc1137f3a1222d704dbcbb481c62 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 13 Jan 2008 15:19:41 +0100 Subject: [PATCH] rename tag_view to tag_view_byindex --- ewmh.c | 2 +- tag.c | 4 ++-- tag.h | 2 +- widgets/tasklist.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ewmh.c b/ewmh.c index 4369e150..aa4e5eec 100644 --- a/ewmh.c +++ b/ewmh.c @@ -310,7 +310,7 @@ ewmh_process_client_message(XClientMessageEvent *ev) if(ev->message_type == net_current_desktop) for(screen = 0; screen < ScreenCount(globalconf.display); screen++) if(ev->window == RootWindow(globalconf.display, screen)) - tag_view(screen, ev->data.l[0]); + tag_view_byindex(screen, ev->data.l[0]); if(ev->message_type == net_close_window) { diff --git a/tag.c b/tag.c index 93dedc5b..89842540 100644 --- a/tag.c +++ b/tag.c @@ -273,7 +273,7 @@ uicb_tag_toggleview(int screen, char *arg) } void -tag_view(int screen, int dindex) +tag_view_byindex(int screen, int dindex) { Tag *target_tag, *tag; @@ -305,7 +305,7 @@ uicb_tag_view(int screen, char *arg) Tag *tag; if(arg) - tag_view(screen, atoi(arg) - 1); + tag_view_byindex(screen, atoi(arg) - 1); else { for(tag = globalconf.screens[screen].tags; tag; tag = tag->next) diff --git a/tag.h b/tag.h index cb218636..d0e8c0d0 100644 --- a/tag.h +++ b/tag.h @@ -33,7 +33,7 @@ void untag_client(Client *, Tag *); Bool is_client_tagged(Client *, Tag *); void tag_client_with_current_selected(Client *); void tag_client_with_rules(Client *); -void tag_view(int, int); +void tag_view_byindex(int, int); Uicb uicb_client_tag; Uicb uicb_client_toggletag; diff --git a/widgets/tasklist.c b/widgets/tasklist.c index 553eda01..10c4e1b8 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -190,7 +190,7 @@ tasklist_button_press(Widget *widget, XButtonPressedEvent *ev) if(!client_isvisible(c, widget->statusbar->screen)) for(i = 0, tag = globalconf.screens[c->screen].tags; tag; tag = tag->next, i++) if(is_client_tagged(c, tag)) - tag_view(c->screen, i); + tag_view_byindex(c->screen, i); focus(c, True, widget->statusbar->screen); }