[easytag/wip/application-window: 67/79] Remove unused code when closing preferences dialog



commit 1de99727fa5e8ceddbd9a3587c37026bb7585726
Author: David King <amigadave amigadave com>
Date:   Sat Jul 19 23:06:13 2014 +0100

    Remove unused code when closing preferences dialog

 src/preferences_dialog.c |    2 --
 src/setting.c            |   42 ------------------------------------------
 src/setting.h            |    1 -
 3 files changed, 0 insertions(+), 45 deletions(-)
---
diff --git a/src/preferences_dialog.c b/src/preferences_dialog.c
index 3dd6dc5..af7cc4b 100644
--- a/src/preferences_dialog.c
+++ b/src/preferences_dialog.c
@@ -1882,8 +1882,6 @@ OptionsWindow_Save_Button (EtPreferencesDialog *self)
 {
     if (!Check_Config (self)) return;
 
-    Save_Changes_Of_Preferences_Window();
-
     OptionsWindow_Quit (self);
     Statusbar_Message(_("Configuration saved"),TRUE);
 }
diff --git a/src/setting.c b/src/setting.c
index a7ee8bf..da231f4 100644
--- a/src/setting.c
+++ b/src/setting.c
@@ -126,39 +126,6 @@ void Init_Config_Variables (void)
     check_default_path ();
 }
 
-
-
-/*
- * Function called when pressing the "Save" button of the preferences window.
- * Save into the config variables the settings of each tab of the Preferences window...
- * If settings needs to be "shown/applied" to the corresponding window, we do it
- */
-static void
-Apply_Changes_Of_Preferences_Window (void)
-{
-    EtApplicationWindow *window;
-    GtkWidget *dialog;
-
-    window = ET_APPLICATION_WINDOW (MainWindow);
-    dialog = et_application_window_get_preferences_dialog (window);
-
-    if (dialog)
-    {
-
-        /* Tag Settings */
-#ifdef ENABLE_ID3LIB
-        g_settings_set_boolean (MainSettings, "id3v2-version-4", TRUE);
-#endif
-
-        /* Parameters and variables of Scanner Window are in "scan.c" file */
-        /* Parameters and variables of Cddb Window are in "cddb.c" file */
-    }
-
-    /*
-     * Changes to apply to :
-     */
-}
-
 /*
  * Save into the config variables the settings of each window
  *  - Position/size of the window
@@ -189,15 +156,6 @@ void Save_Changes_Of_UI (void)
     Apply_Changes_Of_UI();
 }
 
-void Save_Changes_Of_Preferences_Window (void)
-{
-    Apply_Changes_Of_Preferences_Window();
-
-    Statusbar_Message(_("Configuration saved"),TRUE);
-}
-
-
-
 /*
  * check_or_create_file:
  * @filename: (type filename): the filename to create
diff --git a/src/setting.h b/src/setting.h
index 96edd3a..dc380a0 100644
--- a/src/setting.h
+++ b/src/setting.h
@@ -264,7 +264,6 @@ GSettings *MainSettings;
 void Init_Config_Variables (void);
 void Read_Config           (void);
 
-void Save_Changes_Of_Preferences_Window  (void);
 void Save_Changes_Of_UI                  (void);
 
 gboolean Setting_Create_Files     (void);


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