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 583857 - GtkStatusbar grip repaint issue
GtkStatusbar grip repaint issue
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-05-26 06:54 UTC by Alexander Larsson
Modified: 2009-07-24 17:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (1019 bytes, text/plain)
2009-05-26 06:55 UTC, Alexander Larsson
  Details
Patch to fix the problem (318 bytes, patch)
2009-07-23 12:34 UTC, Jaroslav Šmíd
none Details | Review

Description Alexander Larsson 2009-05-26 06:54:09 UTC
There is a repaint issue in GtkStatusbar, its visible if you open eog and resize the window. The grippie in the lower right corner is not repainted right.

I think the problem is that nothing invalidates the grippie area on size allocate, or something like that.
This only happens when the status bar has "extra" widgets, I think because otherwise the label is allocated over the grip.

Attaching a simple testcase. (I thought this was a client side windows regression, so i started debugging it)
Comment 1 Alexander Larsson 2009-05-26 06:55:16 UTC
Created attachment 135362 [details]
test case

run this and resize the window to see the bug
Comment 2 Jaroslav Šmíd 2009-07-23 12:32:50 UTC
GtkStatusBar inherits from GtkHBox, GtkHBox from GtkBox and that sets gtk_widget_set_redraw_on_allocate (GTK_WIDGET (box), FALSE) in it's init method. GtkStatusBar needs to set it back to TRUE. I've tried that and it fixes the problem. It needs to go to "gtkstatusbar.c" into function "static void gtk_statusbar_init (GtkStatusbar *statusbar)"
Comment 3 Jaroslav Šmíd 2009-07-23 12:34:24 UTC
Created attachment 139069 [details] [review]
Patch to fix the problem

Fix
Comment 4 Matthias Clasen 2009-07-24 04:50:28 UTC
Thanks, fixed.