diff options
author | rbuj <[email protected]> | 2019-06-19 09:47:23 +0200 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2019-06-22 10:06:37 +0200 |
commit | ebaa08f8c963e189a28e0dba9ad36292395b3887 (patch) | |
tree | 3ddff6fc2bec04b607c7f634300bfc3c2e03b084 /capplets/time-admin/src/main.c | |
parent | 51e386fd4f5c60750c57a815203981754580e01d (diff) | |
download | mate-control-center-ebaa08f8c963e189a28e0dba9ad36292395b3887.tar.bz2 mate-control-center-ebaa08f8c963e189a28e0dba9ad36292395b3887.tar.xz |
capplets: Use capplet_init
Diffstat (limited to 'capplets/time-admin/src/main.c')
-rw-r--r-- | capplets/time-admin/src/main.c | 9 |
1 files changed, 3 insertions, 6 deletions
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 <glib/gi18n.h> #include <polkit/polkit.h> +#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); |