gtk2/gtk/tests
Emmanuele Bassi 1070c5849e recent-manager: Coalesce multiple changes
Since the ::changed implementation of GtkRecentManager implies a
synchronous write operation, when we receive multiple requests to emit a
::changed signal we might end up blocking.

This change coalesces multiple ::changed emission requests using the
following sequence:

  • the first request will install a timeout in 250 ms, which will
    emit the ::changed signal

  • each further request while the timeout has not been emitted
    will increase a counter

      ‣ if the counter reaches 250 before the timeout has been
        emitted, then the RecentManager will remove the timeout
        source and force a signal emission and reset the counter

This sequence should guarantee that frequent ::changed emission requests
are coalesced, and also guarantee that we don't let them dangle for too
long.

https://bugzilla.gnome.org/show_bug.cgi?id=616997
2012-09-03 13:23:56 -04:00
..
action.c Fix compilation warning: Use GtkWidget instead GtkMenuItem 2010-03-25 14:52:18 +01:00
builder.c Disable a nonworking test 2011-08-30 16:21:19 -04:00
crossingevents.c Fix make check 2008-08-04 22:38:56 +00:00
defaultvalue.c [test] Exclude message-area as it's a object property 2010-06-22 22:46:29 +02:00
expander.c One more unit test 2009-09-07 11:17:49 +02:00
filechooser.c More uses of g_strcmp0 2010-03-16 19:16:31 +01:00
filtermodel.c Remove some unnused variables 2009-10-20 20:37:46 +02:00
floating.c tests/Makefile.am tests/autotestfilechooser.c tests/buildertest.c 2008-06-18 13:29:02 +00:00
liststore.c Bug 586374 – code does not follow documentation 2009-07-30 21:23:47 +02:00
Makefile.am Make GTK+ build against an external gdk-pixbuf 2010-06-26 02:29:29 -04:00
object.c tests: Add a hack to silence gcc 2010-11-18 17:47:43 +01:00
pixbuf-init.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
recentmanager.c recent-manager: Coalesce multiple changes 2012-09-03 13:23:56 -04:00
testing.c Bug 633291 - Handle Shift-keys in X11 gdk_test_simulate_key() 2011-02-13 12:34:19 +01:00
textbuffer.c buffer_backspace should delete \r\n in one go 2009-08-29 21:29:57 -04:00
treestore.c Bug 586374 – code does not follow documentation 2009-07-30 21:23:47 +02:00
treeview-scrolling.c Add a scrolling test case involving creating new rows in tree stores 2009-08-23 22:06:16 +02:00
treeview.c let the close button reflect the page_complete status of SUMMARY pages 2009-12-10 22:06:30 +01:00