diff options
Diffstat (limited to 'mate-volume-control/applet-main.c')
-rw-r--r-- | mate-volume-control/applet-main.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mate-volume-control/applet-main.c b/mate-volume-control/applet-main.c index 58614a9..24dca77 100644 --- a/mate-volume-control/applet-main.c +++ b/mate-volume-control/applet-main.c @@ -3,6 +3,7 @@ * Copyright (C) 2008 Red Hat, Inc. * Copyright (C) 2014 Michal Ratajsky <[email protected]> * Copyright (C) 2019 Victor Kareh <[email protected]> + * Copyright (C) 2014-2021 MATE Developers * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -23,7 +24,7 @@ #include "config.h" #include <glib.h> -#include <glib/gi18n.h> +#include <glib/gi18n-lib.h> #include <glib-object.h> #include <gtk/gtk.h> @@ -41,10 +42,6 @@ applet_main (MatePanelApplet* applet_widget) GvcApplet *applet; GApplication *app = NULL; - bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); - app = g_application_new (GVC_APPLET_DBUS_NAME, G_APPLICATION_FLAGS_NONE); if (!g_application_register (app, NULL, &error)) { @@ -86,9 +83,17 @@ applet_factory (MatePanelApplet* applet, const char* iid, gpointer data) return retval; } +#ifdef IN_PROCESS /* needed by mate-panel applet library */ +MATE_PANEL_APPLET_IN_PROCESS_FACTORY("GvcAppletFactory", + PANEL_TYPE_APPLET, + "Volume Control applet", + applet_factory, + NULL) +#else MATE_PANEL_APPLET_OUT_PROCESS_FACTORY("GvcAppletFactory", PANEL_TYPE_APPLET, "Volume Control applet", applet_factory, NULL) +#endif |