! 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 !
GtkStatusIcon shows allocation warning on XFCE4 panel
Status:
RESOLVED: MOVED
Product:
Xfce4-panel
Component:
Notification Area

Comments

Description fujiwara 2016-09-13 06:54:58 CEST
Created attachment 6835 
Test program

When Gtk 3.21.5 GtkStatusIcon runs on XFCE4 panel, the following warning is output:

(a:6205): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to underallocate toplevel GtkTrayIcon 0x1a964c0. Allocation is 22x22, but minimum required size is 24x24.

The warning is not shown in Fedora 24 GTK3.
The allocation warning is not shown on LXDE.

% gcc -o a a.c `pkg-config --cflags --libs gtk+-3.0`
Comment 1 ToZ editbugs 2016-09-13 16:34:50 CEST
Result of this gtk3 commit: https://github.com/GNOME/gtk/commit/84dfda1a2b6bd57fe1a0bbaae108e88e4219d791

Warning is now always given. You can work around the warning message by changing the "maximum icon size" property of the notification plugin to 24 (in the notification plugin properties).
Comment 2 fujiwara 2016-09-14 06:06:35 CEST
I confirmed the workaround works fine.
To fix this problem, the required size is to changed to 22x22 ?
Or the allocation size is changed?
Comment 3 Git Bot editbugs 2020-05-28 02:01:34 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/160.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12843

Reported by:
fujiwara
Reported on: 2016-09-13
Last modified on: 2020-05-28

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
Unspecified

Attachments

Test program (313 bytes, text/plain)
2016-09-13 06:54 CEST , fujiwara
no flags

Additional information