aboutsummaryrefslogtreecommitdiff
path: root/src/gtk-dialog
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2009-09-17 16:52:38 -0400
committerKen VanDine <ken.vandine@canonical.com>2009-09-17 16:52:38 -0400
commitf4ff0a55916f405242eb04faf9ad591787049117 (patch)
tree22308fd03b7f6939fd7c17295473d3ff6f49c7ed /src/gtk-dialog
parent2673f30d0102f8e66809bc1fe20d9bea397236dc (diff)
parent382806bf28f847d73ce20e152f65f8e4a7c2bf0d (diff)
downloadayatana-indicator-session-f4ff0a55916f405242eb04faf9ad591787049117.tar.gz
ayatana-indicator-session-f4ff0a55916f405242eb04faf9ad591787049117.tar.bz2
ayatana-indicator-session-f4ff0a55916f405242eb04faf9ad591787049117.zip
* Upstream release (LP: #432120)
* Fixes to issues brought up by the design team.
Diffstat (limited to 'src/gtk-dialog')
-rw-r--r--src/gtk-dialog/gtk-logout-helper.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gtk-dialog/gtk-logout-helper.c b/src/gtk-dialog/gtk-logout-helper.c
index e6a9ef8..0c03e86 100644
--- a/src/gtk-dialog/gtk-logout-helper.c
+++ b/src/gtk-dialog/gtk-logout-helper.c
@@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+#include <config.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <dbus/dbus-glib.h>
@@ -121,6 +121,12 @@ main (int argc, char * argv[])
{
gtk_init(&argc, &argv);
+ /* Setting up i18n and gettext. Apparently, we need
+ all of these. */
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+
GError * error = NULL;
GOptionContext * context = g_option_context_new(" - logout of the current session");
g_option_context_add_main_entries(context, options, "gtk-logout-helper");