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 771290 - app window grows with each start due to incorrectly using gtk API (wayland)
app window grows with each start due to incorrectly using gtk API (wayland)
Status: RESOLVED OBSOLETE
Product: gitg
Classification: Applications
Component: gui
3.21.x
Other Linux
: Normal normal
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks: WaylandRelated
 
 
Reported: 2016-09-12 12:07 UTC by Kamil Páral
Modified: 2018-05-22 13:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix window growing each start (1.22 KB, patch)
2016-10-09 20:40 UTC, Clayton G. Hobbs
none Details | Review

Description Kamil Páral 2016-09-12 12:07:28 UTC
Description of problem:
Since gtk3-3.21.5-1.fc25.x86_64 gitg window grows with each start (on wayland). You can see the same issue with virt-manager here:
https://www.youtube.com/watch?v=NO6Wlaoq0x8
(the same issue applies to gitg)

This has been reported against gtk:
https://bugzilla.gnome.org/show_bug.cgi?id=771112
and determined as an application bug:
https://bugzilla.gnome.org/show_bug.cgi?id=771112#c7

Quoting how to fix this:

~~~
https://wiki.gnome.org/HowDoI/SaveWindowState

Querying the window size and then setting it with GtkWindow API is perfectly fine.

Querying the window size with GtkWidget API and then setting it with GtkWindow API, *or* querying the window size with GtkWindow API and then setting it with GtkWidget API, is *not* okay, and only worked up until now with server-side decorations only on X11.
~~~

Version-Release number of selected component (if applicable):
gitg-3.21.91-1.fc25.x86_64
gtk3-3.21.5-1.fc25.x86_64

How reproducible:
always

Steps to Reproduce:
1. start and close gitg repeatedly, it will grow each time
Comment 1 Clayton G. Hobbs 2016-10-09 20:40:29 UTC
Created attachment 337289 [details] [review]
Fix window growing each start

As described in bug 771290, the window got slightly larger each time
gitg was run.  This was due to the way we accidentally mixed APIs when
saving/restoring the window size.

To fix this, use GtkWindow methods when saving the window size.  This
is consistent with our prior use of GtkWindow methods to set the window
size on startup.
Comment 2 Clayton G. Hobbs 2018-02-10 21:50:29 UTC
Excuse me, but I submitted a patch that fixes this bug over a year ago, it still applies cleanly to master, but it hasn't been reviewed and the bug still exists.  It's rather disheartening as someone who wants to get more involved with GNOME to have patches that are nearly trivial in size just ignored.  Could someone please review the patch so this bug can be closed?
Comment 3 GNOME Infrastructure Team 2018-05-22 13:15:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME'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.gnome.org/GNOME/gitg/issues/56.