! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Systray may crash when empty
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
Notification Area

Comments

Description Viktor Odintsev editbugs 2017-10-15 19:59:50 CEST
Created attachment 7372 
Fix crash when systray is empty

Crashes with message

Gtk-ERROR **: GtkBox child XfceSystrayBox minimum width: -1 < 0 for height 1

The problem is that it returns -1 in systray_box_get_preferred_width/height functions.

The best way to reproduce it is to change panel orientation with empty systray.

I'm attaching the patch which fixes this.
Comment 1 Git Bot editbugs 2017-10-15 21:48:23 CEST
Viktor Odintsev referenced this bugreport in commit 35018324b980bf1905ce85291ff7099ce8df46b1

systray: Fix crash when systray is empty (Bug #13927)

https://git.xfce.org/xfce/xfce4-panel/commit?id=35018324b980bf1905ce85291ff7099ce8df46b1
Comment 2 Simon Steinbeiss editbugs 2017-10-15 21:48:52 CEST
Thanks, well spotted and fixed!

Bug #13927

Reported by:
Viktor Odintsev
Reported on: 2017-10-15
Last modified on: 2017-10-15

People

Assignee:
Simon Steinbeiss
CC List:
0 users

Version

Version:
4.13.1

Attachments

Fix crash when systray is empty (2.62 KB, patch)
2017-10-15 19:59 CEST , Viktor Odintsev
no flags

Additional information