diff options
author | Ted Gould <ted@canonical.com> | 2009-09-15 15:45:56 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-15 15:45:56 -0500 |
commit | 234416607f907adb2348ebe369c7e04b6b887a8c (patch) | |
tree | dbadc35f9978f37f4abb396464b01dfddb7dbb1d /src/gtk-dialog/gtk-logout-helper.c | |
parent | 0bdc32e6c8475228c1510c428cbed1a3ee13c4e6 (diff) | |
download | ayatana-indicator-session-234416607f907adb2348ebe369c7e04b6b887a8c.tar.gz ayatana-indicator-session-234416607f907adb2348ebe369c7e04b6b887a8c.tar.bz2 ayatana-indicator-session-234416607f907adb2348ebe369c7e04b6b887a8c.zip |
Adding locale stuff in here too! Fun.
Diffstat (limited to 'src/gtk-dialog/gtk-logout-helper.c')
-rw-r--r-- | src/gtk-dialog/gtk-logout-helper.c | 8 |
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"); |