[sound-juicer] Remove sj-main.h



commit e4848b61262eb7c948227754d116abaeab0eb7a8
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Thu Nov 10 12:52:14 2016 +0000

    Remove sj-main.h
    
    The only prototype used outside sj-main.c which is not already in
    sound-juicer.h is set_action_enabled() which has been added to that
    header.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777692

 src/sj-extracting.c |    1 -
 src/sj-main.c       |    2 +-
 src/sj-main.h       |   37 -------------------------------------
 src/sj-play.c       |    1 -
 src/sound-juicer.h  |    2 ++
 5 files changed, 3 insertions(+), 40 deletions(-)
---
diff --git a/src/sj-extracting.c b/src/sj-extracting.c
index bc40abf..1dec0e2 100644
--- a/src/sj-extracting.c
+++ b/src/sj-extracting.c
@@ -40,7 +40,6 @@
 
 #include "sj-error.h"
 #include "sj-extracting.h"
-#include "sj-main.h"
 #include "sj-util.h"
 #include "sj-play.h"
 #include "sj-genres.h"
diff --git a/src/sj-main.c b/src/sj-main.c
index c6f59fc..e9c8dc2 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -49,7 +49,6 @@
 #include "sj-structures.h"
 #include "sj-error.h"
 #include "sj-util.h"
-#include "sj-main.h"
 #include "sj-prefs.h"
 #include "sj-play.h"
 #include "sj-genres.h"
@@ -65,6 +64,7 @@ static void set_action_state (const char *detailed_name);
 /* Prototypes for the signal blocking/unblocking in update_ui_for_album */
 G_MODULE_EXPORT void on_title_edit_changed(GtkEditable *widget, gpointer user_data);
 G_MODULE_EXPORT void on_person_edit_changed(GtkEditable *widget, gpointer user_data);
+G_MODULE_EXPORT void on_genre_edit_changed(GtkEditable *widget, gpointer user_data);
 G_MODULE_EXPORT void on_year_edit_changed(GtkEditable *widget, gpointer user_data);
 G_MODULE_EXPORT void on_disc_number_edit_changed(GtkEditable *widget, gpointer user_data);
 G_MODULE_EXPORT void submit_bar_response_cb (GtkInfoBar *infobar, int response_id, gpointer user_data);
diff --git a/src/sj-play.c b/src/sj-play.c
index 7a8fb3f..4fa584a 100644
--- a/src/sj-play.c
+++ b/src/sj-play.c
@@ -28,7 +28,6 @@
 
 #include "sound-juicer.h"
 #include "sj-play.h"
-#include "sj-main.h"
 
 static GstElement *pipeline = NULL;
 static guint id = 0, button_change_id = 0;
diff --git a/src/sound-juicer.h b/src/sound-juicer.h
index 2e87343..f67e8f2 100644
--- a/src/sound-juicer.h
+++ b/src/sound-juicer.h
@@ -157,4 +157,6 @@ G_GNUC_PRINTF(2,3) void sj_debug (SjDebugDomain domain, const gchar* format, ...
 /* TODO: need to add a SjWindow object or something */
 void sj_main_set_title (const char* detail);
 
+void set_action_enabled (const char *name, gboolean enabled);
+
 #endif /* SOUND_JUICER_H */


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