[easytag/wip/application-window: 14/14] Remove last uses of GtkAction



commit 9be57e7ebf6fb3bc7747863f9f659b05c051ad82
Author: David King <amigadave amigadave com>
Date:   Mon Jul 14 22:19:16 2014 +0100

    Remove last uses of GtkAction

 src/application_window.c |    6 +++---
 src/application_window.h |    2 +-
 src/scan_dialog.c        |    3 +--
 3 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/application_window.c b/src/application_window.c
index c2c61df..f4993e0 100644
--- a/src/application_window.c
+++ b/src/application_window.c
@@ -3159,11 +3159,11 @@ et_application_window_get_preferences_dialog (EtApplicationWindow *self)
 }
 
 void
-et_application_window_show_preferences_dialog_scanner (G_GNUC_UNUSED GtkAction *action,
-                                                       gpointer user_data)
+et_application_window_show_preferences_dialog_scanner (EtApplicationWindow *self)
 {
     EtApplicationWindowPrivate *priv;
-    EtApplicationWindow *self = ET_APPLICATION_WINDOW (user_data);
+
+    g_return_if_fail (ET_APPLICATION_WINDOW (self));
 
     priv = et_application_window_get_instance_private (self);
 
diff --git a/src/application_window.h b/src/application_window.h
index 9fb6d53..16e50f1 100644
--- a/src/application_window.h
+++ b/src/application_window.h
@@ -56,7 +56,7 @@ GtkWidget * et_application_window_get_log_area (EtApplicationWindow *self);
 GtkWidget * et_application_window_get_load_files_dialog (EtApplicationWindow *self);
 GtkWidget * et_application_window_get_search_dialog (EtApplicationWindow *self);
 GtkWidget * et_application_window_get_preferences_dialog (EtApplicationWindow *self);
-void et_application_window_show_preferences_dialog_scanner (GtkAction *action, gpointer user_data);
+void et_application_window_show_preferences_dialog_scanner (EtApplicationWindow *self);
 GtkWidget * et_application_window_get_cddb_dialog (EtApplicationWindow *self);
 void et_application_window_browser_toggle_display_mode (EtApplicationWindow *self);
 void et_application_window_browser_set_sensitive (EtApplicationWindow *self, gboolean sensitive);
diff --git a/src/scan_dialog.c b/src/scan_dialog.c
index a226927..834f680 100644
--- a/src/scan_dialog.c
+++ b/src/scan_dialog.c
@@ -3255,8 +3255,7 @@ et_scan_dialog_apply_changes (EtScanDialog *self)
 static void
 Scan_Option_Button (void)
 {
-    et_application_window_show_preferences_dialog_scanner (NULL,
-                                                           ET_APPLICATION_WINDOW (MainWindow));
+    et_application_window_show_preferences_dialog_scanner (ET_APPLICATION_WINDOW (MainWindow));
 }
 
 


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