aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-21 08:49:55 -0500
committerTed Gould <ted@gould.cx>2011-09-21 08:49:55 -0500
commit92cfa6c3050d0b66b7a3c3c508734f46a9d3b391 (patch)
tree01406e06b77e9f3955ce49968ab750d24c2beb39
parent1272ced6625175ee20f4c6740a414152b09f9769 (diff)
parentd42f49e0a60625ca49d3f3d8d02e58506d6845e0 (diff)
downloadayatana-indicator-datetime-92cfa6c3050d0b66b7a3c3c508734f46a9d3b391.tar.gz
ayatana-indicator-datetime-92cfa6c3050d0b66b7a3c3c508734f46a9d3b391.tar.bz2
ayatana-indicator-datetime-92cfa6c3050d0b66b7a3c3c508734f46a9d3b391.zip
Moving setting the translation domain for builder to earlier
-rw-r--r--src/datetime-prefs-locations.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/datetime-prefs-locations.c b/src/datetime-prefs-locations.c
index af0e10d..d865efe 100644
--- a/src/datetime-prefs-locations.c
+++ b/src/datetime-prefs-locations.c
@@ -421,6 +421,7 @@ datetime_setup_locations_dialog (CcTimezoneMap * map)
{
GError * error = NULL;
GtkBuilder * builder = gtk_builder_new ();
+ gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
gtk_builder_add_from_file (builder, DATETIME_DIALOG_UI_FILE, &error);
if (error != NULL) {
/* We have to abort, we can't continue without the ui file */
@@ -429,8 +430,6 @@ datetime_setup_locations_dialog (CcTimezoneMap * map)
return NULL;
}
- gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
-
GSettings * conf = g_settings_new (SETTINGS_INTERFACE);
#define WIG(name) GTK_WIDGET (gtk_builder_get_object (builder, name))