aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-av.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-29 17:08:54 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-29 17:36:09 +0800
commit4834af14fe305ac39331b1619e3cc4c3121a6c16 (patch)
tree220b7a0a889547581f1dffd0a3f9cc6e349e7d32 /src/empathy-av.c
parentbba82eedbef0a2e3ea30ef924d64c85a7a105ad4 (diff)
downloadgsoc2013-empathy-4834af14fe305ac39331b1619e3cc4c3121a6c16.tar
gsoc2013-empathy-4834af14fe305ac39331b1619e3cc4c3121a6c16.tar.gz
gsoc2013-empathy-4834af14fe305ac39331b1619e3cc4c3121a6c16.tar.bz2
gsoc2013-empathy-4834af14fe305ac39331b1619e3cc4c3121a6c16.tar.lz
gsoc2013-empathy-4834af14fe305ac39331b1619e3cc4c3121a6c16.tar.xz
gsoc2013-empathy-4834af14fe305ac39331b1619e3cc4c3121a6c16.tar.zst
gsoc2013-empathy-4834af14fe305ac39331b1619e3cc4c3121a6c16.zip
Disable timer if EMPATHY_PERSIST is set
Diffstat (limited to 'src/empathy-av.c')
-rw-r--r--src/empathy-av.c11
1 files changed, 11 insertions, 0 deletions
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 ();