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



commit 75b16a0dbb318f1b88c74364f32c6437706cc35c
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 de11c6f..ab89d24 100644
--- a/src/preferences_dialog.c
+++ b/src/preferences_dialog.c
@@ -1885,8 +1885,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 c00597e..aadc341 100644
--- a/src/setting.h
+++ b/src/setting.h
@@ -239,7 +239,6 @@ GSettings *MainSettings;
 
 void Init_Config_Variables (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]