aboutsummaryrefslogtreecommitdiff
path: root/src/gtk-dialog/gtk-logout-helper.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-09-23 17:48:38 -0500
committerCody Russell <crussell@canonical.com>2009-09-23 17:48:38 -0500
commit9a6f594c7f63158a7b93adff62b1f9c62aed967f (patch)
tree0eedcea34e6c8397cd46ea078db65b17e9be382b /src/gtk-dialog/gtk-logout-helper.c
parent3de7117e82eb5d0b39fd17532852f27dcd555dfe (diff)
parent9703540eaf33ac50e99f04e9eddf5816557868e1 (diff)
downloadayatana-indicator-session-9a6f594c7f63158a7b93adff62b1f9c62aed967f.tar.gz
ayatana-indicator-session-9a6f594c7f63158a7b93adff62b1f9c62aed967f.tar.bz2
ayatana-indicator-session-9a6f594c7f63158a7b93adff62b1f9c62aed967f.zip
merge up from trunk
Diffstat (limited to 'src/gtk-dialog/gtk-logout-helper.c')
-rw-r--r--src/gtk-dialog/gtk-logout-helper.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gtk-dialog/gtk-logout-helper.c b/src/gtk-dialog/gtk-logout-helper.c
index 13991ca..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");
@@ -133,6 +139,10 @@ main (int argc, char * argv[])
return 1;
}
+ /* Init some theme/icon stuff */
+ gtk_icon_theme_append_search_path(gtk_icon_theme_get_default(),
+ INDICATOR_ICONS_DIR);
+
GtkWidget * dialog = NULL;
if (!pk_require_auth(type) && !supress_confirmations()) {
dialog = logout_dialog_new(type);