File perl-Gtk2-fix-GtkRecentChooser-test-fails.patch of Package perl-Gtk2
commit f7be199c11060d91260570666301e4d5557f7b7d
Author: Colin Watson <cjwatson@canonical.com>
Date: Wed Oct 10 09:58:57 2012 +0100
t/GtkRecentChooser.t: Forcibly emit GtkRecentManager::changed signal
Following Gtk+ commit 1070c5849e45433ad66c076e0bf692d936813a31, add_item
is even more asynchronous than before, and doesn't necessarily emit the
changed signal immediately, so GtkRecentChooser won't see the added
items. Emit the changed signal manually to work around this.
https://bugzilla.gnome.org/show_bug.cgi?id=685865
diff --git a/t/GtkRecentChooser.t b/t/GtkRecentChooser.t
index c793158..c59614a 100644
--- a/t/GtkRecentChooser.t
+++ b/t/GtkRecentChooser.t
@@ -51,6 +51,7 @@ $manager -> add_item($uri_two);
# add_item() is asynchronous, so let the main loop spin for a while
Gtk2->main_iteration while scalar (my @items = $manager->get_items) < 2;
+$manager->signal_emit("changed");
$chooser -> set_select_multiple(FALSE);