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/src/main.c | |
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/src/main.c')
-rw-r--r-- | capplets/time-admin/src/main.c | 12 |
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; |