Files
gtk3/gdk
Allison Ryan Lortie 0d109867d2 Tweak startup-notification after the first window
Presently, Gtk will only send a startup notification completion message
for the first window that is shown.  This is not good for the case of
GtkApplication, where we are expected to participate in
startup-notification for all windows.

We have avoided this problem by manually emitting the startup complete
message from after_emit in GtkApplication.

Unfortunately, this causes problems for windows that are shown with a
delay.  It is also a dirty hack.

The reason for the original behaviour is simple: there is a static
boolean in gtkwindow.c which controls it.  We remove this.

Instead, clear the startup notification ID stored in GDK when sending
the completion message.  GtkApplication will re-set this the next time
an event comes in which needs startup-notification handling.  In the
non-GtkApplication case, newly shown windows will still not send the
message, since the cookie will have been cleared.

Finally, we remove the hack from GtkApplication's after_emit.

This will probably cause some regressions in terms of lingering startup
notification messages.  The correct solution here is to always use
gtk_window_present(), including when merely opening a new document (with
a new tab, for example).

https://bugzilla.gnome.org/show_bug.cgi?id=690791
2016-01-27 18:14:40 +01:00
..
2015-12-15 00:16:15 +01:00
2014-10-13 10:43:31 -04:00
2015-05-08 13:34:25 -04:00
2016-01-26 12:42:04 -05:00
2016-01-19 14:17:35 +01:00
2014-02-07 13:06:10 -05:00
2014-11-06 12:24:43 +01:00
2015-09-12 12:50:39 -04:00
2014-06-11 21:55:15 -04:00
2014-08-30 00:53:21 -04:00
2015-10-03 22:26:27 -04:00
2016-01-18 08:54:35 -05:00
2015-12-15 00:16:15 +01:00
2015-12-15 00:16:15 +01:00
2014-06-11 21:55:15 -04:00
2014-09-07 17:14:37 -04:00
2014-06-11 21:55:15 -04:00
2016-01-15 11:16:32 +01:00