diff options
-rw-r--r-- | capplets/time-admin/src/main.c | 12 | ||||
-rw-r--r-- | capplets/time-admin/src/time-share.c | 11 | ||||
-rw-r--r-- | capplets/time-admin/src/time-share.h | 2 |
3 files changed, 12 insertions, 13 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; diff --git a/capplets/time-admin/src/time-share.c b/capplets/time-admin/src/time-share.c index e4069415..c65189b4 100644 --- a/capplets/time-admin/src/time-share.c +++ b/capplets/time-admin/src/time-share.c @@ -42,17 +42,6 @@ int ErrorMessage (const char *Title, return nRet; } -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(); -} - void SetTooltip(GtkWidget *box, gboolean mode) { gchar *text = mode ? NULL : _("Network time synchronization has been set up. Manual time/date setting is disabled."); diff --git a/capplets/time-admin/src/time-share.h b/capplets/time-admin/src/time-share.h index 5e1c86c4..b3c26ab4 100644 --- a/capplets/time-admin/src/time-share.h +++ b/capplets/time-admin/src/time-share.h @@ -66,8 +66,6 @@ typedef struct int ErrorMessage (const char *Title, const char *Msg); -void QuitApp (TimeAdmin *ta); - void SetTooltip (GtkWidget *box, gboolean mode); #endif |