diff options
author | Gabor Kelemen <kelemeng@gnome.hu> | 2011-09-09 11:47:20 +0200 |
---|---|---|
committer | Gabor Kelemen <kelemeng@gnome.hu> | 2011-09-09 11:47:20 +0200 |
commit | 65fc15683f751aa49a5cfb99a200d327125404b4 (patch) | |
tree | 90bf61b1bce8a512dfcfba04f577dffe921c59bd /src | |
parent | ee90397388175fd7155901ea12c6629bb27125ff (diff) | |
download | ayatana-indicator-datetime-65fc15683f751aa49a5cfb99a200d327125404b4.tar.gz ayatana-indicator-datetime-65fc15683f751aa49a5cfb99a200d327125404b4.tar.bz2 ayatana-indicator-datetime-65fc15683f751aa49a5cfb99a200d327125404b4.zip |
Set translation domain before the gtk_builder_add_from_file call. LP: #845473
Diffstat (limited to 'src')
-rw-r--r-- | src/datetime-prefs.c | 3 |
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)) |