From: Andreas Fink Date: Tue, 28 Dec 2010 19:03:26 +0000 (+0000) Subject: *fix* issue 316 X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=67e4f3189a4dd8191ef07c0fc90f222a5c30255b;p=chaz%2Ftint2 *fix* issue 316 --- diff --git a/src/config.c b/src/config.c index ae6fe31..2224a1d 100644 --- a/src/config.c +++ b/src/config.c @@ -257,7 +257,7 @@ void add_entry (char *key, char *value) if (snapshot_path == 0) systray_enabled = 1; } - if (panel_items_order[j] == 'C') + if (panel_items_order[j] == 'C') clock_enabled = 1; } } diff --git a/src/panel.c b/src/panel.c index b99ffa5..cea2923 100644 --- a/src/panel.c +++ b/src/panel.c @@ -182,8 +182,9 @@ void init_panel() if (panel_items_order[k] == 'B') init_battery_panel(p); #endif - if (panel_items_order[k] == 'S') { + if (panel_items_order[k] == 'S' && i==0) { // TODO : check systray is only on 1 panel + // at the moment only on panel1[0] allowed init_systray_panel(p); refresh_systray = 1; } @@ -397,8 +398,9 @@ void set_panel_items_order(Panel *p) if (panel_items_order[k] == 'B') p->area.list = g_slist_append(p->area.list, &p->battery); #endif - if (panel_items_order[k] == 'S') { + if (panel_items_order[k] == 'S' && p == panel1) { // TODO : check systray is only on 1 panel + // at the moment only on panel1[0] allowed p->area.list = g_slist_append(p->area.list, &systray); } if (panel_items_order[k] == 'C')