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/display/xrandr-capplet.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'capplets/display') diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index 3dddb784..42b6b9b4 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -36,6 +36,8 @@ #include #include +#include "capplet-util.h" + typedef struct App App; typedef struct GrabInfo GrabInfo; @@ -2554,11 +2556,7 @@ main (int argc, char **argv) { App *app; - bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); - - gtk_init (&argc, &argv); + capplet_init (NULL, &argc, &argv); app = g_new0 (App, 1); -- cgit v1.2.1