* systray/tray.c (orientation_changed): Consider the case if another systray
authorJim Huang <jserv.tw@gmail.com>
Sun, 6 Apr 2008 09:11:38 +0000 (09:11 +0000)
committerJim Huang <jserv.tw@gmail.com>
Sun, 6 Apr 2008 09:11:38 +0000 (09:11 +0000)
already running.

src/systray/tray.c

index c7de8ba..486f6ce 100644 (file)
@@ -172,6 +172,10 @@ static void orientation_changed( Plugin* p )
     GList *l, *children;
     int width = 0, height = 0;
 
+    /* another systray already running */
+    if (!tr->tray_manager)
+        return;
+
     na_tray_manager_set_orientation( tr->tray_manager, p->panel->orientation );
 
     /* weird... na_tray_manager will re-add the icons to the tray automatically... */