[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Fix xfpm panel plugin crashes at startup when the locale is not UTF8

noreply at xfce.org noreply at xfce.org
Mon Mar 2 08:32:03 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 7e3be2a03b4d4b950b31554bb93ce0cebf29475e
Author: Olivier Duchateau <duchateau.olivier at gmail.com>
Date:   Mon Mar 2 06:41:31 2015 +0000

    Fix xfpm panel plugin crashes at startup when the locale is not UTF8
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c b/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c
index f060c67..358bd73 100644
--- a/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c
+++ b/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c
@@ -33,6 +33,7 @@
 #ifdef XFCE_PLUGIN
 #include <libxfce4panel/libxfce4panel.h>
 #include <libxfce4panel/xfce-panel-plugin.h>
+#include <libxfce4util/libxfce4util.h>
 #endif
 
 #include "../power-manager-button.h"
@@ -84,6 +85,8 @@ power_manager_plugin_construct (XfcePanelPlugin *plugin)
 {
     PowerManagerPlugin *power_manager_plugin;
 
+    xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+
     /* create the plugin */
     power_manager_plugin = power_manager_plugin_new (plugin);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list