From ebaa08f8c963e189a28e0dba9ad36292395b3887 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 19 Jun 2019 09:47:23 +0200 Subject: capplets: Use capplet_init --- capplets/time-admin/src/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'capplets/time-admin') diff --git a/capplets/time-admin/src/main.c b/capplets/time-admin/src/main.c index fe16b7c7..dfe934e9 100644 --- a/capplets/time-admin/src/main.c +++ b/capplets/time-admin/src/main.c @@ -17,6 +17,7 @@ #include #include +#include "capplet-util.h" #include "time-tool.h" #include "time-zone.h" #include "time-map.h" @@ -433,16 +434,12 @@ EXIT: g_error_free(error); return FALSE; } + int main(int argc, char **argv) { TimeAdmin ta; - setlocale (LC_ALL, ""); - bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); - - gtk_init(&argc, &argv); + capplet_init (NULL, &argc, &argv); /* Create the main window */ InitMainWindow(&ta); -- cgit v1.2.1