diff options
author | rbuj <[email protected]> | 2019-08-16 14:32:08 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-21 14:30:56 -0400 |
commit | 0d3c3063d3cbb9563b3a2d4041355cf9d41011c6 (patch) | |
tree | 8f11b49a6f46b5368088635bb5c5759e2c6f112f /capplets/time-admin | |
parent | 4f9ee9d60f0285bebbef3d5fe88ed2177028059e (diff) | |
download | mate-control-center-0d3c3063d3cbb9563b3a2d4041355cf9d41011c6.tar.bz2 mate-control-center-0d3c3063d3cbb9563b3a2d4041355cf9d41011c6.tar.xz |
time-admin: Don't share «void QuitApp(TimeAdmin *ta)» method
Diffstat (limited to 'capplets/time-admin')
-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 |