After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653079 - GtkStatusIcon: gtk_widget_size_allocate warning
GtkStatusIcon: gtk_widget_size_allocate warning
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkStatusIcon
3.1.x
Other Linux
: Normal major
: ---
Assigned To: gtkdev
gtkdev
: 652990 653540 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-06-21 07:44 UTC by Guillaume Desmottes
Modified: 2014-08-30 05:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
demo app (210 bytes, text/x-csrc)
2011-06-21 07:44 UTC, Guillaume Desmottes
Details

Description Guillaume Desmottes 2011-06-21 07:44:35 UTC
Created attachment 190341 [details]
demo app

I have the following errors when running this simple app with Gtk+ master.

(a.out:22863): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to underallocate toplevel GtkTrayIcon 0xf0e030. Allocation is 24x24, but minimum required size is 48x48.

(a.out:22863): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to underallocate GtkTrayIcon's child GtkImage 0xf18000. Allocation is 24x24, but minimum required size is 48x48.

(a.out:22863): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to underallocate toplevel GtkTrayIcon 0xf0e030. Allocation is 24x24, but minimum required size is 48x48.


These errors are not present with Gtk+ 3.0.11 so that's a 3.1 regression.
Comment 1 Matthias Clasen 2011-06-21 13:29:36 UTC
The errors are just as present. Whats new is just the warning.
Comment 2 Matthias Clasen 2011-06-22 12:04:15 UTC
*** Bug 652990 has been marked as a duplicate of this bug. ***
Comment 3 Guillaume Desmottes 2011-06-28 08:48:45 UTC
*** Bug 653540 has been marked as a duplicate of this bug. ***
Comment 4 Peteris Krisjanis 2011-07-04 13:18:08 UTC
Additionally, for window it causes Gtk+ to stretch it at maximum allowed size. I'm running Gtk+ master three weeks old.
Comment 5 Guillaume Desmottes 2011-07-05 12:06:05 UTC
(In reply to comment #1)
> The errors are just as present. Whats new is just the warning.

Ok, then that's GtkStatusIcon not getting the right size.

We do:
priv->icon = gtk_status_icon_new ();
(...)
gtk_status_icon_set_from_icon_name (priv->icon, "user-offline");
Comment 6 Matthias Clasen 2014-08-30 05:20:15 UTC
GtkStatusIcon has been deprecated