[gtranslator] Fixed bug #551555



commit 9b49c35b0ca386760034c7288f54771a2736d23c
Author: Daniel Mustieles <daniel mustieles gmail com>
Date:   Fri Apr 6 13:20:29 2012 +0200

    Fixed bug #551555

 data/org.gnome.gtranslator.gschema.xml.in.in |    7 -------
 src/dialogs/gtr-preferences-dialog.c         |    8 --------
 src/dialogs/gtr-preferences-dialog.ui        |   17 -----------------
 src/gtr-settings.h                           |    1 -
 4 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/data/org.gnome.gtranslator.gschema.xml.in.in b/data/org.gnome.gtranslator.gschema.xml.in.in
index 65a7879..79323f3 100644
--- a/data/org.gnome.gtranslator.gschema.xml.in.in
+++ b/data/org.gnome.gtranslator.gschema.xml.in.in
@@ -27,13 +27,6 @@
         fuzzy strings.
       </_description>
     </key>
-    <key name="delete-compiled" type="b">
-      <default>false</default>
-      <_summary>Delete compiled GMO files</_summary>
-      <_description>
-        If true, remove compiled GMO binary files when saving.
-      </_description>
-    </key>
     <key name="auto-save" type="b">
       <default>false</default>
       <_summary>Auto save files</_summary>
diff --git a/src/dialogs/gtr-preferences-dialog.c b/src/dialogs/gtr-preferences-dialog.c
index 9067ea4..2db42ab 100644
--- a/src/dialogs/gtr-preferences-dialog.c
+++ b/src/dialogs/gtr-preferences-dialog.c
@@ -64,7 +64,6 @@ struct _GtrPreferencesDialogPrivate
 
   /* Files->General */
   GtkWidget *warn_if_contains_fuzzy_checkbutton;
-  GtkWidget *delete_compiled_checkbutton;
 
   /* Files->Autosave */
   GtkWidget *autosave_checkbutton;
@@ -111,11 +110,6 @@ setup_files_general_page (GtrPreferencesDialog * dlg)
                    dlg->priv->warn_if_contains_fuzzy_checkbutton,
                    "active",
                    G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
-  g_settings_bind (dlg->priv->files_settings,
-                   GTR_SETTINGS_DELETE_COMPILED,
-                   dlg->priv->delete_compiled_checkbutton,
-                   "active",
-                   G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
 }
 
 static void
@@ -671,8 +665,6 @@ gtr_preferences_dialog_init (GtrPreferencesDialog * dlg)
                                   "warn_if_fuzzy_checkbutton",
                                   &dlg->
                                   priv->warn_if_contains_fuzzy_checkbutton,
-                                  "delete_compiled_checkbutton",
-                                  &dlg->priv->delete_compiled_checkbutton,
                                   "autosave_checkbutton",
                                   &dlg->priv->autosave_checkbutton,
                                   "autosave_interval_spinbutton",
diff --git a/src/dialogs/gtr-preferences-dialog.ui b/src/dialogs/gtr-preferences-dialog.ui
index 6efd739..9ba79ff 100644
--- a/src/dialogs/gtr-preferences-dialog.ui
+++ b/src/dialogs/gtr-preferences-dialog.ui
@@ -161,23 +161,6 @@
                                 <property name="position">0</property>
                               </packing>
                             </child>
-                            <child>
-                              <object class="GtkCheckButton" id="delete_compiled_checkbutton">
-                                <property name="label" translatable="yes">_Delete compiled GMO files</property>
-                                <property name="visible">True</property>
-                                <property name="can_focus">True</property>
-                                <property name="receives_default">False</property>
-                                <property name="use_action_appearance">False</property>
-                                <property name="use_underline">True</property>
-                                <property name="xalign">0</property>
-                                <property name="draw_indicator">True</property>
-                              </object>
-                              <packing>
-                                <property name="expand">False</property>
-                                <property name="fill">False</property>
-                                <property name="position">1</property>
-                              </packing>
-                            </child>
                           </object>
                         </child>
                       </object>
diff --git a/src/gtr-settings.h b/src/gtr-settings.h
index b593427..89d6b61 100644
--- a/src/gtr-settings.h
+++ b/src/gtr-settings.h
@@ -63,7 +63,6 @@ gchar                   *gtr_settings_get_system_font           (GtrSettings *gs
 
 /* key constants: IMPORTANT: keep them in the same order as the schema */
 #define GTR_SETTINGS_WARN_IF_CONTAINS_FUZZY		"warn-if-contains-fuzzy"
-#define GTR_SETTINGS_DELETE_COMPILED			"delete-compiled"
 #define GTR_SETTINGS_AUTO_SAVE				"auto-save"
 #define GTR_SETTINGS_AUTO_SAVE_INTERVAL			"auto-save-interval"
 #define GTR_SETTINGS_CREATE_BACKUP			"create-backup"



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