Project

General

Profile

Bug #259

main window does not maintain size clicking on status icon with gtk+ 3.7.10

Added by jef spera about 12 years ago. Updated about 12 years ago.

Status:
Rejected
Priority:
Minor
Assignee:
-
Category:
plugins/gtkui
Target version:
-
Start date:
February 25, 2013
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

I'm using Mate-1.4 gtk+3.7.10 audacious-3.4-alpha1.
How to reproduce:
1) Start audacious
2) Activate status icon plugin
3) Resize main window
4) Click twice on status icon
5) Now main window has a small size, so you can see only one song.

Audacious still works great with gtk+3.6.x

ui_gtk.patch (975 Bytes) ui_gtk.patch Thomas Lange, March 10, 2013 23:02
log_status_icon.txt (4.09 KB) log_status_icon.txt status icon config not saved stack trace jef spera, March 11, 2013 09:09

History

#1 Updated by John Lindgren about 12 years ago

  • Status changed from New to Rejected

Please do a Git bisect to find the GTK+ commit that caused the regression, and then report the bug to the GTK+ developers.

#2 Updated by John Lindgren about 12 years ago

  • Status changed from Rejected to New
  • Target version deleted (3.4)

Thomas Lange did some debugging on this:

The bug appeared between GTK 3.7.4 and 3.7.6 with this commit:
https://git.gnome.org/browse/gtk+/commit/?id=b495ce5446a0bbf2ed63b5880537779e4b123515

So I asked the developer Benjamin Otte what could be wrong here.
He explained me that GTK 3.8 does not return the recent allocated size of a widget if it is invisible
(because a invisible widget should not have a valid size).
But that's the case here. And because of this the window size is the minimum.

I can't build development versions of GTK+ because my system does not have new enough dependencies, but maybe this will help someone find a solution.

Reopening.

#3 Updated by Thomas Lange about 12 years ago

  • File ui_gtk.patch ui_gtk.patch added
  • Subject changed from main window doesn't mantain size clicking on status icon with gtk+3.7.10 to main window doesn't mantain size clicking on status icon with gtk+3.7.10

The attached patch fixes this.

If the window is visible (-> valid values), the size is stored.
And if the window becomes visible again, the size is restored.

#4 Updated by Thomas Lange about 12 years ago

  • Subject changed from main window doesn't mantain size clicking on status icon with gtk+3.7.10 to main window doesn't mantain size clicking on status icon with gtk+3.7.10

#5 Updated by John Lindgren about 12 years ago

  • Subject changed from main window doesn't mantain size clicking on status icon with gtk+3.7.10 to main window does not maintain size clicking on status icon with gtk+ 3.7.10
  • Category changed from libaudgui to plugins/gtkui
  • Assignee deleted (jef spera)

Does GtkWindow forget its size after a gtk_widget_hide() + gtk_widget_show() cycle? That seems wrong.

#6 Updated by jef spera about 12 years ago

The patch worked for me but there is another issue with status icon:

1 clear ./config/audacious
2 start audacious
3 check Status Icon in Preferences->Plugins->General
4 close audacious
5 the program ends with
Gtk:ERROR:gtkwidget.c:14122:gtk_widget_unregister_window: assertion failed: (user_data == widget)
and ~/.config/audacious/config is not updated

This happens with gtk+3.7.12 too.
In the meantime i went back to 2.5.4, gtk3/gnome3 apps are only for testing.

#7 Updated by John Lindgren about 12 years ago

  • Status changed from New to Rejected

John Lindgren wrote:

Does GtkWindow forget its size after a gtk_widget_hide() + gtk_widget_show() cycle? That seems wrong.

Answering my own question: yes. This is a regression in GTK+. Benjamin Otte seemed to indicate on IRC that he plans to fix it for GTK+ 3.8.

Also available in: Atom PDF