[perl-Gtk2] t/GtkRecentChooser.t: Forcibly emit GtkRecentManager::changed signal



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

 NEWS                 |    5 +++++
 t/GtkRecentChooser.t |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index a7161a1..d6cc8d9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Overview of changes in Gtk2 <next>
+=================================
+
+* Fix a test failure in t/GtkRecentChooser.t.
+
 Overview of changes in Gtk2 1.246
 =================================
 
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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]