From edba4f977f7ba9692e48cf40dea2466b07e967e1 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 10 Sep 2009 15:59:38 -0500 Subject: Grabbing the icons from the indicator dir where we install them. --- src/gtk-dialog/gtk-logout-helper.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gtk-dialog/gtk-logout-helper.c') diff --git a/src/gtk-dialog/gtk-logout-helper.c b/src/gtk-dialog/gtk-logout-helper.c index 13991ca..e6a9ef8 100644 --- a/src/gtk-dialog/gtk-logout-helper.c +++ b/src/gtk-dialog/gtk-logout-helper.c @@ -133,6 +133,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); -- cgit v1.2.3 From 234416607f907adb2348ebe369c7e04b6b887a8c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 15 Sep 2009 15:45:56 -0500 Subject: Adding locale stuff in here too! Fun. --- src/gtk-dialog/gtk-logout-helper.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gtk-dialog/gtk-logout-helper.c') 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 . */ - +#include #include #include #include @@ -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"); -- cgit v1.2.3