aboutsummaryrefslogtreecommitdiff
path: root/preferences/krb5-auth-dialog-preferences.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-09-28 20:27:07 +0200
committerGuido Günther <agx@sigxcpu.org>2009-09-28 20:27:07 +0200
commitb6cfb6e707bb3151df08fe2f521da3b323dc87a3 (patch)
tree2a8881c5611dd20b699eb16082d33c098e12dcb4 /preferences/krb5-auth-dialog-preferences.c
parentImported Upstream version 0.12 (diff)
downloadkrb5-auth-dialog-b6cfb6e707bb3151df08fe2f521da3b323dc87a3.tar.gz
krb5-auth-dialog-b6cfb6e707bb3151df08fe2f521da3b323dc87a3.tar.bz2
krb5-auth-dialog-b6cfb6e707bb3151df08fe2f521da3b323dc87a3.zip
Imported Upstream version 0.13
Diffstat (limited to 'preferences/krb5-auth-dialog-preferences.c')
-rw-r--r--preferences/krb5-auth-dialog-preferences.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/preferences/krb5-auth-dialog-preferences.c b/preferences/krb5-auth-dialog-preferences.c
index 442d4f3..0b5ff13 100644
--- a/preferences/krb5-auth-dialog-preferences.c
+++ b/preferences/krb5-auth-dialog-preferences.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Guido Guenther <agx@sigxcup.org>
+ * Copyright (C) 2009 Guido Guenther <agx@sigxcpu.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -735,10 +735,18 @@ ka_preferences_dialog_destroyed (GtkWidget *widget G_GNUC_UNUSED,
static gboolean
ka_preferences_dialog_init(KaPreferencesDialog* dialog)
{
+ GError *error = NULL;
+ gboolean ret;
+
dialog->xml = gtk_builder_new ();
- g_assert(gtk_builder_add_from_file(dialog->xml, KA_DATA_DIR G_DIR_SEPARATOR_S
- PACKAGE "-preferences.xml", NULL));
+ ret = gtk_builder_add_from_file(dialog->xml, KA_DATA_DIR G_DIR_SEPARATOR_S
+ PACKAGE "-preferences.xml", &error);
+ if (!ret) {
+ g_assert (error);
+ g_assert (error->message);
+ g_error ("Failed to load UI XML: %s", error->message);
+ }
dialog->dialog = GTK_WIDGET(gtk_builder_get_object (dialog->xml, "krb5_auth_dialog_prefs"));
g_assert (dialog->dialog);
@@ -825,6 +833,9 @@ main (int argc, char *argv[])
bind_textdomain_codeset (PACKAGE, "UTF-8");
bindtextdomain (PACKAGE, LOCALE_DIR);
+ gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
+ DATA_DIR G_DIR_SEPARATOR_S "icons");
+
ka_preferences_dialog_init(&dialog);
gtk_main ();
ka_preferences_dialog_finalize(&dialog);
bgstack15