GNOME Bugzilla – Bug 663950
battstat applet not shown until major state change.
Last modified: 2013-10-03 17:26:27 UTC
Hi, you should dvoid resizing the layout in size_allocate event handler. Otherweise, the gtk_widget_queue_resize() call would be swallowed and the panel would not actually give more size to the widget. The applet would only become visible after some timer-based event changes the widget completely, e.g. plugging in the cable. See the attached patch for a possible fix, which ensures that layout changes only occur in code not called by size_allocate.
Created attachment 201305 [details] [review] Proposed fix.
The clock applet seems to suffer from the same problem (but I did not check the code yet): When the panel is started, the clock is partly obstructed until the next time the clock changes. This is with a vertical panel, the clock being the only applet with center alignment, set to display only the time, not the date.
Also present in 3.4.1, same patch applies cleanly. Please consider applying it.
With gnome-panel 3.4.2.1, I don’t observe this behavior any more.