diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2010-06-21 16:57:36 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2010-06-21 16:57:36 -0400 |
commit | 90a541060c81dc3f93a55889a719afb624ecd605 (patch) | |
tree | 7a4756e76cd59d33587872ca84824d6457a9d949 /tests/test-libappindicator-fallback-watcher.c | |
parent | c6734d217e6c9f7e9d1702d3e454b6291732a0b8 (diff) | |
parent | 61a4f68d7b8aa49dced6eb6afffd6273a95a9d03 (diff) | |
download | libayatana-appindicator-90a541060c81dc3f93a55889a719afb624ecd605.tar.gz libayatana-appindicator-90a541060c81dc3f93a55889a719afb624ecd605.tar.bz2 libayatana-appindicator-90a541060c81dc3f93a55889a719afb624ecd605.zip |
* New upstream release.
* Fix icon updating (LP: #594199)
* Change Mono bindings to only parse particular files (LP: #592706)
* Make a policy for migrating the mono bindings
* Test fixes to make them more reliable
* debian/control: Fixing version numbers
* debian/control: Making the 0.1-cil replace and provide the 0.0-cil
* debian/libappindicator0.1-cil.installcligac: Add the policy.dll
file to the install.
* Upstream release 0.0.2
* Updates API to use GTK instead of dbusmenu to make it
easier for upstream developers to use.
Diffstat (limited to 'tests/test-libappindicator-fallback-watcher.c')
-rw-r--r-- | tests/test-libappindicator-fallback-watcher.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/test-libappindicator-fallback-watcher.c b/tests/test-libappindicator-fallback-watcher.c index 70e01d1..5494082 100644 --- a/tests/test-libappindicator-fallback-watcher.c +++ b/tests/test-libappindicator-fallback-watcher.c @@ -27,6 +27,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "../src/dbus-shared.h" +gboolean kill_func (gpointer userdata); + static GMainLoop * mainloop = NULL; static DBusHandlerResult @@ -36,6 +38,10 @@ dbus_filter (DBusConnection * connection, DBusMessage * message, void * user_dat DBusMessage * reply = dbus_message_new_method_return(message); dbus_connection_send(connection, reply, NULL); dbus_message_unref(reply); + + /* Let the messages get out, but we're done at this point */ + g_timeout_add(50, kill_func, NULL); + return DBUS_HANDLER_RESULT_HANDLED; } @@ -78,7 +84,7 @@ main (int argv, char ** argc) return 1; } - g_usleep(250000); + g_usleep(500000); g_debug("Initing"); @@ -96,8 +102,9 @@ main (int argv, char ** argc) dbus_connection_add_filter(dbus_g_connection_get_connection(session_bus), dbus_filter, NULL, NULL); - /* After we've got the name, let it unfallback, and then we'll drop again */ - g_timeout_add(250, kill_func, NULL); + /* This is the final kill function. It really shouldn't happen + unless we get an error. */ + g_timeout_add(2000, kill_func, NULL); g_debug("Entering Mainloop"); |