[easytag] Avoid GSettings handler unused parameter warnings



commit 5db73b5bb22002864111ae3070ed86489ddc7039
Author: David King <amigadave amigadave com>
Date:   Sat Oct 25 20:58:21 2014 +0100

    Avoid GSettings handler unused parameter warnings
    
    Use the settings and key parameters to the GSettings changed handler
    where possible.

 src/browser.c            |    2 +-
 src/preferences_dialog.c |    2 +-
 src/scan_dialog.c        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index 1d71e2f..99de0b1 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -3748,7 +3748,7 @@ on_sort_mode_changed (EtBrowser *self, gchar *key, GSettings *settings)
 
     priv = et_browser_get_instance_private (self);
 
-    sort_mode = g_settings_get_enum (MainSettings, key);
+    sort_mode = g_settings_get_enum (settings, key);
     column = et_browser_get_column_for_column_id (self, sort_mode / 2);
 
     /* If the column to sort is different than the old sorted column. */
diff --git a/src/preferences_dialog.c b/src/preferences_dialog.c
index e657c1b..82927fb 100644
--- a/src/preferences_dialog.c
+++ b/src/preferences_dialog.c
@@ -121,7 +121,7 @@ on_default_path_changed (GSettings *settings,
     GVariant *default_path;
     const gchar *path;
 
-    default_path = g_settings_get_value (settings, "default-path");
+    default_path = g_settings_get_value (settings, key);
     path = g_variant_get_bytestring (default_path);
 
     gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (default_path_button),
diff --git a/src/scan_dialog.c b/src/scan_dialog.c
index cd03303..c29d7fe 100644
--- a/src/scan_dialog.c
+++ b/src/scan_dialog.c
@@ -1516,7 +1516,7 @@ on_scan_mode_changed (EtScanDialog *self, gchar *key, GSettings *settings)
 
     priv = et_scan_dialog_get_instance_private (self);
 
-    mode = g_settings_get_enum (MainSettings, key);
+    mode = g_settings_get_enum (settings, key);
 
     switch (mode)
     {


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