diff options
Diffstat (limited to 'src/lib/glade.c')
-rw-r--r-- | src/lib/glade.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/glade.c b/src/lib/glade.c index 602487d2..1b094ac1 100644 --- a/src/lib/glade.c +++ b/src/lib/glade.c | |||
@@ -112,10 +112,14 @@ GNUNET_GTK_get_new_builder2 (const char *filename, | |||
112 | GError *error; | 112 | GError *error; |
113 | 113 | ||
114 | ret = gtk_builder_new (); | 114 | ret = gtk_builder_new (); |
115 | gtk_builder_set_translation_domain (ret, "gnunet-gtk"); | 115 | GNUNET_asprintf (&glade_path, |
116 | GNUNET_asprintf (&glade_path, "%s%s", GNUNET_GTK_get_data_dir (), filename); | 116 | "%s%s", |
117 | GNUNET_GTK_get_data_dir (), | ||
118 | filename); | ||
117 | error = NULL; | 119 | error = NULL; |
118 | if (0 == gtk_builder_add_from_file (ret, glade_path, &error)) | 120 | if (0 == gtk_builder_add_from_file (ret, |
121 | glade_path, | ||
122 | &error)) | ||
119 | { | 123 | { |
120 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 124 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
121 | _ ("Failed to load `%s': %s\n"), | 125 | _ ("Failed to load `%s': %s\n"), |