From: Dana Jansens Date: Fri, 21 Mar 2003 09:31:36 +0000 (+0000) Subject: make the event function static! X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=dabcb558cd10295f9382607936ead64d8b210b99;p=chaz%2Fopenbox make the event function static! --- diff --git a/plugins/focus.c b/plugins/focus.c index 9424a236..8528d68c 100644 --- a/plugins/focus.c +++ b/plugins/focus.c @@ -74,7 +74,7 @@ static void focus_fallback(gboolean switching_desks) } } -static void events(ObEvent *e, void *foo) +static void event(ObEvent *e, void *foo) { switch (e->type) { case Event_Client_Mapped: @@ -125,10 +125,10 @@ void plugin_startup() Event_Ob_Desktop | Event_Client_Unmapped | Event_X_EnterNotify, - (EventHandler)events, NULL); + (EventHandler)event, NULL); } void plugin_shutdown() { - dispatch_register(0, (EventHandler)events, NULL); + dispatch_register(0, (EventHandler)event, NULL); } diff --git a/plugins/placement/placement.c b/plugins/placement/placement.c index a6dbd868..d6011132 100644 --- a/plugins/placement/placement.c +++ b/plugins/placement/placement.c @@ -8,7 +8,7 @@ gboolean history = TRUE; -void place_random(Client *c) +static void place_random(Client *c) { int l, r, t, b; int x, y; @@ -31,7 +31,7 @@ void place_random(Client *c) TRUE, TRUE); } -void place_event(ObEvent *e, void *foo) +static void event(ObEvent *e, void *foo) { g_assert(e->type == Event_Client_New); @@ -43,14 +43,14 @@ void place_event(ObEvent *e, void *foo) void plugin_startup() { - dispatch_register(Event_Client_New, (EventHandler)place_event, NULL); + dispatch_register(Event_Client_New, (EventHandler)event, NULL); history_startup(); } void plugin_shutdown() { - dispatch_register(0, (EventHandler)place_event, NULL); + dispatch_register(0, (EventHandler)event, NULL); history_shutdown(); }