diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-23 09:36:56 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-23 09:36:56 +0200 |
commit | 8004f1a7ad3cc6a3659517f3374bdf1b63416b24 (patch) | |
tree | b7b82cc6e01cd47d22f660e25508a7d8d555dc89 /src/AppWindow.vala | |
parent | 28c68a75acac7ac3ce7fb169bc6aa65e16551c53 (diff) | |
parent | 566dc060676b41e1e58a446b7dcc4159e242fee6 (diff) |
Merge tag 'upstream/0.20.0'
Upstream version 0.20.0
Diffstat (limited to 'src/AppWindow.vala')
-rw-r--r-- | src/AppWindow.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/AppWindow.vala b/src/AppWindow.vala index 9c1f2b4..782f953 100644 --- a/src/AppWindow.vala +++ b/src/AppWindow.vala @@ -145,12 +145,9 @@ public class FullscreenWindow : PageWindow { return true; } - + // Make sure this event gets propagated to the underlying window... - AppWindow.get_instance().key_press_event(event); - - // ...then let the base class take over - return (base.key_press_event != null) ? base.key_press_event(event) : false; + return AppWindow.get_instance().key_press_event(event); } private void on_close() { @@ -450,7 +447,10 @@ public abstract class AppWindow : PageWindow { GLib.List<Gdk.Pixbuf> pixbuf_list = new GLib.List<Gdk.Pixbuf>(); foreach (string resource in Resources.APP_ICONS) pixbuf_list.append(Resources.get_icon(resource, 0)); - set_default_icon_list(pixbuf_list); + // Use copy() because set_default_icon_list() actually accepts an owned reference + // If we didn't hold the pixbufs in memory, would need to use copy_deep() + // See https://mail.gnome.org/archives/vala-list/2014-August/msg00022.html + set_default_icon_list(pixbuf_list.copy()); // restore previous size and maximization state if (this is LibraryWindow) { |