*fix* issue 316

git-svn-id: http://tint2.googlecode.com/svn/trunk@618 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2010-12-28 19:03:26 +00:00
parent 8201742546
commit fc046c2468
2 changed files with 5 additions and 3 deletions

View File

@@ -257,7 +257,7 @@ void add_entry (char *key, char *value)
if (snapshot_path == 0) if (snapshot_path == 0)
systray_enabled = 1; systray_enabled = 1;
} }
if (panel_items_order[j] == 'C') if (panel_items_order[j] == 'C')
clock_enabled = 1; clock_enabled = 1;
} }
} }

View File

@@ -182,8 +182,9 @@ void init_panel()
if (panel_items_order[k] == 'B') if (panel_items_order[k] == 'B')
init_battery_panel(p); init_battery_panel(p);
#endif #endif
if (panel_items_order[k] == 'S') { if (panel_items_order[k] == 'S' && i==0) {
// TODO : check systray is only on 1 panel // TODO : check systray is only on 1 panel
// at the moment only on panel1[0] allowed
init_systray_panel(p); init_systray_panel(p);
refresh_systray = 1; refresh_systray = 1;
} }
@@ -397,8 +398,9 @@ void set_panel_items_order(Panel *p)
if (panel_items_order[k] == 'B') if (panel_items_order[k] == 'B')
p->area.list = g_slist_append(p->area.list, &p->battery); p->area.list = g_slist_append(p->area.list, &p->battery);
#endif #endif
if (panel_items_order[k] == 'S') { if (panel_items_order[k] == 'S' && p == panel1) {
// TODO : check systray is only on 1 panel // 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); p->area.list = g_slist_append(p->area.list, &systray);
} }
if (panel_items_order[k] == 'C') if (panel_items_order[k] == 'C')