[gtranslator] Fix issues releated to the refactoring.



commit ccf258ed8e800b45b67a463543db7009bee28177
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Feb 7 22:39:05 2010 +0100

    Fix issues releated to the refactoring.

 plugins/open-tran/gtr-open-tran-panel.h            |    2 +-
 .../source-code-view/gtr-source-code-view-plugin.c |    2 +-
 src/gtr-prefs-manager.h                            |    4 ++--
 src/gtr-view.c                                     |   20 +++++++++++---------
 src/plugin-system/gtr-plugins-engine.c             |    4 ++--
 5 files changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/plugins/open-tran/gtr-open-tran-panel.h b/plugins/open-tran/gtr-open-tran-panel.h
index be7e05e..5cb16ea 100644
--- a/plugins/open-tran/gtr-open-tran-panel.h
+++ b/plugins/open-tran/gtr-open-tran-panel.h
@@ -36,7 +36,7 @@ G_BEGIN_DECLS
 #define GTR_IS_OPEN_TRAN_PANEL_CLASS(k)		(G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_OPEN_TRAN_PANEL))
 #define GTR_OPEN_TRAN_PANEL_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_OPEN_TRAN_PANEL, GtrOpenTranPanelClass))
 /* Gconf keys */
-#define OPEN_TRAN_BASE_KEY "/apps/gtr/plugins/open-tran"
+#define OPEN_TRAN_BASE_KEY "/apps/gtranslator/plugins/open-tran"
 #define SEARCH_CODE_KEY OPEN_TRAN_BASE_KEY "/search_code"
 #define OWN_CODE_KEY OPEN_TRAN_BASE_KEY "/own_code"
 /* Private structure type */
diff --git a/plugins/source-code-view/gtr-source-code-view-plugin.c b/plugins/source-code-view/gtr-source-code-view-plugin.c
index aeb25b5..524670c 100644
--- a/plugins/source-code-view/gtr-source-code-view-plugin.c
+++ b/plugins/source-code-view/gtr-source-code-view-plugin.c
@@ -35,7 +35,7 @@
 #include <ctype.h>
 
 /* Gconf keys */
-#define SOURCE_CODE_VIEW_BASE_KEY "/apps/gtr/plugins/source-view"
+#define SOURCE_CODE_VIEW_BASE_KEY "/apps/gtranslator/plugins/source-view"
 #define USE_EDITOR_KEY SOURCE_CODE_VIEW_BASE_KEY "/use_editor"
 #define PROGRAM_CMD_KEY SOURCE_CODE_VIEW_BASE_KEY "/program_cmd"
 #define LINE_CMD_KEY SOURCE_CODE_VIEW_BASE_KEY "/line_cmd"
diff --git a/src/gtr-prefs-manager.h b/src/gtr-prefs-manager.h
index 8bb5d14..918bd02 100644
--- a/src/gtr-prefs-manager.h
+++ b/src/gtr-prefs-manager.h
@@ -48,7 +48,7 @@ typedef enum
   GTR_SORT_ORDER_TRANSLATED_TEXT
 } GtrSortOrder;
 
-#define GTR_BASE_KEY			"/apps/gtr"
+#define GTR_BASE_KEY			"/apps/gtranslator"
 #define GPM_PREFS_DIR			GTR_BASE_KEY "/preferences"
 
 /* Files */
@@ -77,7 +77,7 @@ typedef enum
 #define GPM_PO_DIRECTORY		GPM_TM_DIR "/po_directory"
 #define GPM_RESTRICT_TO_FILENAME	GPM_TM_DIR "/restrict_to_filename"
 #define GPM_FILENAME_RESTRICTION	GPM_TM_DIR "/filename_restriction"
-#define GPM_MAX_MISSING_WORDS	GPM_TM_DIR "/max_missing_words"
+#define GPM_MAX_MISSING_WORDS		GPM_TM_DIR "/max_missing_words"
 #define GPM_MAX_LENGTH_DIFF		GPM_TM_DIR "/max_length_diff"
 
 /* User Interface */
diff --git a/src/gtr-view.c b/src/gtr-view.c
index fef5ea1..46874ad 100644
--- a/src/gtr-view.c
+++ b/src/gtr-view.c
@@ -52,20 +52,22 @@
 						 	GtrViewPrivate))
 
 G_DEFINE_TYPE (GtrView, gtr_view, GTK_TYPE_SOURCE_VIEW)
-     struct _GtrViewPrivate
-     {
-       GtkSourceBuffer *buffer;
 
-       guint search_flags;
-       gchar *search_text;
+struct _GtrViewPrivate
+{
+  GtkSourceBuffer *buffer;
+
+  guint search_flags;
+  gchar *search_text;
 
 #ifdef HAVE_GTKSPELL
-       GtkSpell *spell;
+  GtkSpell *spell;
 #endif
-     };
+};
 
 #ifdef HAVE_GTKSPELL
-     static void gtr_attach_gtkspell (GtrView * view)
+static void
+gtr_attach_gtkspell (GtrView * view)
 {
   gint i;
   GError *error = NULL;
@@ -116,7 +118,7 @@ gtr_view_init (GtrView * view)
   langs = (gchar **) g_ptr_array_free (dirs, FALSE);
 
   gtk_source_language_manager_set_search_path (lm, langs);
-  lang = gtk_source_language_manager_get_language (lm, "gtr");
+  lang = gtk_source_language_manager_get_language (lm, "gtranslator");
   g_strfreev (langs);
 
   priv->buffer = gtk_source_buffer_new_with_language (lang);
diff --git a/src/plugin-system/gtr-plugins-engine.c b/src/plugin-system/gtr-plugins-engine.c
index c1416b9..b614ab1 100644
--- a/src/plugin-system/gtr-plugins-engine.c
+++ b/src/plugin-system/gtr-plugins-engine.c
@@ -49,9 +49,9 @@
 #include "gtr-python-module.h"
 #endif
 
-#define USER_GTR_PLUGINS_LOCATION ".gtr/plugins/"
+#define USER_GTR_PLUGINS_LOCATION ".config/gtranslator/plugins/"
 
-#define GTR_PLUGINS_ENGINE_BASE_KEY "/apps/gtr/plugins"
+#define GTR_PLUGINS_ENGINE_BASE_KEY "/apps/gtranslator/plugins"
 #define GTR_PLUGINS_ENGINE_KEY GTR_PLUGINS_ENGINE_BASE_KEY "/active-plugins"
 
 #define PLUGIN_EXT	".plugin"



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