empathy r983 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r983 - trunk/src
- Date: Sat, 19 Apr 2008 22:04:22 +0100 (BST)
Author: xclaesse
Date: Sat Apr 19 21:04:22 2008
New Revision: 983
URL: http://svn.gnome.org/viewvc/empathy?rev=983&view=rev
Log:
Quit the tubes chandler when there is no more handled channels
Modified:
trunk/src/empathy-tubes-chandler.c
Modified: trunk/src/empathy-tubes-chandler.c
==============================================================================
--- trunk/src/empathy-tubes-chandler.c (original)
+++ trunk/src/empathy-tubes-chandler.c Sat Apr 19 21:04:22 2008
@@ -33,6 +33,9 @@
#define DEBUG_DOMAIN "TubesChandler"
+static GMainLoop *loop = NULL;
+
+
static void
async_cb (TpProxy *channel,
const GError *error,
@@ -166,6 +169,8 @@
{
empathy_debug (DEBUG_DOMAIN, "Channel invalidated: %p", proxy);
g_hash_table_remove (channels, proxy);
+ if (g_hash_table_size (channels) == 0)
+ g_main_loop_quit (loop);
}
static void
@@ -245,7 +250,6 @@
main (int argc, char *argv[])
{
EmpathyChandler *chandler;
- GMainLoop *loop;
GHashTable *channels;
g_type_init ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]