make the event function static!

This commit is contained in:
Dana Jansens 2003-03-21 09:31:36 +00:00
parent 34ab5a1fb8
commit dabcb558cd
2 changed files with 7 additions and 7 deletions

View file

@ -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);
}

View file

@ -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();
}