[gedit-plugins] drawspaces: use gedit_utils_get_ui_objects_with_translation_domain.



commit 3e612de889bf8ceb876b097a06ac6f14bcd1e67f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Oct 8 16:31:37 2011 +0200

    drawspaces: use gedit_utils_get_ui_objects_with_translation_domain.

 configure.ac                                 |    2 +-
 plugins/drawspaces/gedit-drawspaces-plugin.c |   25 +++++++++++++------------
 2 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index dd0469a..d4433b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,7 +70,7 @@ PKG_CHECK_MODULES(GEDIT, [
 	gtksourceview-3.0 >= 3.0.0
 	libpeas-1.0 >= 1.0.0
 	libpeas-gtk-1.0 >= 1.0.0
-	gedit >= 3.0.0
+	gedit >= 3.2.0
 ])
 
 dnl ================================================================
diff --git a/plugins/drawspaces/gedit-drawspaces-plugin.c b/plugins/drawspaces/gedit-drawspaces-plugin.c
index f88042a..7fd337d 100644
--- a/plugins/drawspaces/gedit-drawspaces-plugin.c
+++ b/plugins/drawspaces/gedit-drawspaces-plugin.c
@@ -506,18 +506,19 @@ get_configuration_widget (GeditDrawspacesPlugin *plugin)
 	datadir = peas_extension_base_get_data_dir (PEAS_EXTENSION_BASE (plugin));
 	filename = g_build_filename (datadir, UI_FILE, NULL);
 
-	ret = gedit_utils_get_ui_objects (filename,
-					  root_objects,
-					  &error_widget,
-					  "content", &widget->content,
-					  "check_button_draw_tabs", &widget->draw_tabs,
-					  "check_button_draw_spaces", &widget->draw_spaces,
-					  "check_button_draw_new_lines", &widget->draw_newline,
-					  "check_button_draw_nbsp", &widget->draw_nbsp,
-					  "check_button_draw_leading", &widget->draw_leading,
-					  "check_button_draw_text", &widget->draw_text,
-					  "check_button_draw_trailing", &widget->draw_trailing,
-					  NULL);
+	ret = gedit_utils_get_ui_objects_with_translation_domain (filename,
+	                                                          GETTEXT_PACKAGE,
+					                          root_objects,
+					                          &error_widget,
+					                          "content", &widget->content,
+					                          "check_button_draw_tabs", &widget->draw_tabs,
+					                          "check_button_draw_spaces", &widget->draw_spaces,
+					                          "check_button_draw_new_lines", &widget->draw_newline,
+					                          "check_button_draw_nbsp", &widget->draw_nbsp,
+					                          "check_button_draw_leading", &widget->draw_leading,
+					                          "check_button_draw_text", &widget->draw_text,
+					                          "check_button_draw_trailing", &widget->draw_trailing,
+					                          NULL);
 
 	g_free (datadir);
 	g_free (filename);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]