summaryrefslogtreecommitdiff
path: root/capplets/time-admin/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/time-admin/src/main.c')
-rw-r--r--capplets/time-admin/src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/capplets/time-admin/src/main.c b/capplets/time-admin/src/main.c
index f635c31c..5f0463e3 100644
--- a/capplets/time-admin/src/main.c
+++ b/capplets/time-admin/src/main.c
@@ -36,6 +36,18 @@ static char *translate(const char *value)
return name;
}
+static void
+QuitApp (TimeAdmin *ta)
+{
+ if (ta->UpdateTimeId > 0)
+ g_source_remove (ta->UpdateTimeId);
+
+ if (ta->ApplyId > 0)
+ g_source_remove (ta->ApplyId);
+
+ gtk_main_quit ();
+}
+
static gboolean CheckClockHealth(gpointer data)
{
TimeAdmin *ta = (TimeAdmin *)data;