From 4834af14fe305ac39331b1619e3cc4c3121a6c16 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 29 Jun 2010 11:08:54 +0200 Subject: Disable timer if EMPATHY_PERSIST is set --- src/empathy-av.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/empathy-av.c b/src/empathy-av.c index cb0e82b1b..9ef0fbf29 100644 --- a/src/empathy-av.c +++ b/src/empathy-av.c @@ -43,6 +43,7 @@ static guint nb_windows = 0; static guint timeout_id = 0; +static gboolean use_timer = TRUE; static gboolean timeout_cb (gpointer data) @@ -56,6 +57,9 @@ timeout_cb (gpointer data) static void start_timer (void) { + if (!use_timer) + return; + if (timeout_id != 0) return; @@ -166,6 +170,13 @@ main (int argc, return EXIT_FAILURE; } + if (g_getenv ("EMPATHY_PERSIST") != NULL) + { + DEBUG ("Disable timer"); + + use_timer = FALSE; + } + start_timer (); gtk_main (); -- cgit v1.2.3