diff options
author | Ted Gould <ted@gould.cx> | 2010-01-13 11:35:42 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-13 11:35:42 -0600 |
commit | 5d075987c3469ae7f1538143546e94d208abf1cf (patch) | |
tree | 108c85d37d9c5fd911a85d4fa7fe6dfc9cd0a4c0 /tests/test-libappindicator-fallback-item.c | |
parent | 88c99aca2e2a95a3dc540285f7dc53d020f526d0 (diff) | |
download | libayatana-appindicator-5d075987c3469ae7f1538143546e94d208abf1cf.tar.gz libayatana-appindicator-5d075987c3469ae7f1538143546e94d208abf1cf.tar.bz2 libayatana-appindicator-5d075987c3469ae7f1538143546e94d208abf1cf.zip |
Really we should have gotten the final cleanup unfallback, which we weren't testing for either.
Diffstat (limited to 'tests/test-libappindicator-fallback-item.c')
-rw-r--r-- | tests/test-libappindicator-fallback-item.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test-libappindicator-fallback-item.c b/tests/test-libappindicator-fallback-item.c index 1ff70c8..291bc7c 100644 --- a/tests/test-libappindicator-fallback-item.c +++ b/tests/test-libappindicator-fallback-item.c @@ -55,7 +55,8 @@ enum { STATE_INIT, STATE_FALLBACK, STATE_UNFALLBACK, - STATE_REFALLBACK + STATE_REFALLBACK, + STATE_REUNFALLBACK }; gint state = STATE_INIT; @@ -68,8 +69,6 @@ fallback (AppIndicator * indicator) state = STATE_FALLBACK; } else if (state == STATE_UNFALLBACK) { state = STATE_REFALLBACK; - passed = TRUE; - g_main_loop_quit(mainloop); } else { g_debug("Error, fallback in state: %d", state); passed = FALSE; @@ -83,6 +82,10 @@ unfallback (AppIndicator * indicator, GtkStatusIcon * status_icon) g_debug("Unfallback"); if (state == STATE_FALLBACK) { state = STATE_UNFALLBACK; + } else if (state == STATE_REFALLBACK) { + state = STATE_REUNFALLBACK; + passed = TRUE; + g_main_loop_quit(mainloop); } else { g_debug("Error, unfallback in state: %d", state); passed = FALSE; |