aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-15 09:35:30 -0500
committerTed Gould <ted@gould.cx>2011-09-15 09:35:30 -0500
commit1231071a4465b03925791a030e210669564ff8ba (patch)
tree0bfdfec48ad8fa38f9532eff19b175130db4fbbc /src
parent19191707718ca3714caf815cfaa492997596eb67 (diff)
parent65fc15683f751aa49a5cfb99a200d327125404b4 (diff)
downloadayatana-indicator-datetime-1231071a4465b03925791a030e210669564ff8ba.tar.gz
ayatana-indicator-datetime-1231071a4465b03925791a030e210669564ff8ba.tar.bz2
ayatana-indicator-datetime-1231071a4465b03925791a030e210669564ff8ba.zip
Set the builder language before opening the file
Diffstat (limited to 'src')
-rw-r--r--src/datetime-prefs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/datetime-prefs.c b/src/datetime-prefs.c
index e7fef5d..5ace8c4 100644
--- a/src/datetime-prefs.c
+++ b/src/datetime-prefs.c
@@ -653,6 +653,7 @@ indicator_datetime_panel_init (IndicatorDatetimePanel * self)
GError * error = NULL;
self->priv->builder = gtk_builder_new ();
+ gtk_builder_set_translation_domain (self->priv->builder, GETTEXT_PACKAGE);
gtk_builder_add_from_file (self->priv->builder, DATETIME_DIALOG_UI_FILE, &error);
if (error != NULL) {
/* We have to abort, we can't continue without the ui file */
@@ -661,8 +662,6 @@ indicator_datetime_panel_init (IndicatorDatetimePanel * self)
return;
}
- gtk_builder_set_translation_domain (self->priv->builder, GETTEXT_PACKAGE);
-
GSettings * conf = g_settings_new (SETTINGS_INTERFACE);
#define WIG(name) GTK_WIDGET (gtk_builder_get_object (self->priv->builder, name))