]> Dogcows Code - chaz/openbox/commitdiff
make the event function static!
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:31:36 +0000 (09:31 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:31:36 +0000 (09:31 +0000)
plugins/focus.c
plugins/placement/placement.c

index 9424a236d38f062c97a973762ed391cd418bcaec..8528d68c5e9676ba2ae59362a0681cb4e7a5e560 100644 (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);
 }
index a6dbd868dd8772656021567afcab84d70e4676cb..d6011132f12014ff151b05e0a3b6bbda9d21ab41 100644 (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();
 }
This page took 0.024516 seconds and 4 git commands to generate.