Bug 693990 - gtk_window_deiconify() ignored : Claws Mail starts minimized
Summary: gtk_window_deiconify() ignored : Claws Mail starts minimized
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: mutter
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 693846 711257
TreeView+ depends on / blocked
 
Reported: 2011-04-06 08:09 UTC by Michael Schwendt
Modified: 2012-11-19 02:18 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-06-21 12:49:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 653061 0 None None None Never

Description Michael Schwendt 2011-04-06 08:09:16 UTC
Description of problem:
In default GNOME Shell, starting Claws Mail doesn't display any window. It starts minimized. That is because during application start, Claws Mail calls gtk_window_iconify() and gtk_window_deiconify() some time later. The latter doesn't have an affect.


Version-Release number of selected component (if applicable):
$ rpm -q mutter
mutter-2.91.93-1.fc15.x86_64

Comment 1 Michael Schwendt 2011-06-10 15:47:13 UTC
*ping* mutter maintainers: Is this misassigned? Can you please comment on this issue?

Comment 2 Colin Walters 2011-06-17 20:50:29 UTC
(In reply to comment #1)
> *ping* mutter maintainers: Is this misassigned? Can you please comment on this
> issue?

I can't reproduce this with this test case:

var Gtk = imports.gi.Gtk;
Gtk.init(null);
var w = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL });
w.set_default_size(640, 480);
w.add(new Gtk.Button({label: "hi" }));
w.show_all();
w.iconify();
w.deiconify();
Gtk.main();

In other words calling iconify() then deiconify() appears to work.

Comment 3 Colin Walters 2011-06-17 20:51:22 UTC
Would need a more minmal test case to debug this then.

Comment 4 Michael Schwendt 2011-06-17 23:59:48 UTC
Thank you for replying here!

A *less* (!) minimal test-case is what I've been trying to find meanwhile. The corresponding C code for your test-case cannot be used to reproduce it either. Not even with an inserted sleep(). Claws Mail sets up a lot of GTK stuff between the iconify() and deiconify() calls.

It could be that Claws Mail does something bad, perhaps in its GtkCMCTree implementation, either confusing GTK or corrupting something.

The following patch is the most minimal patch to Claws Mail that does not move the iconify/deiconify calls next to eachother:

  http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=990&action=diff

Based on that, mission objective is to find out whether  gtk_widget_set_style(ctree, normal_style)  does something bad.

Comment 5 Dan Winship 2011-06-21 12:49:05 UTC
the upstream bug has a very minimal test case using the tk shell


Note You need to log in before you can comment on or make changes to this bug.