From 6680cdbd0e0f7c552d4169300d0d2d61f712eabd Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Thu, 24 Dec 2015 12:10:20 -0500 Subject: [PATCH] gui/gst: Completely define the next button in glade Signed-off-by: Anna Schumaker --- core/Sconscript | 4 ++++ gui/Sconscript | 2 +- gui/gst.cpp | 5 ----- gui/window.cpp | 2 +- include/gui/ocarina.h | 1 - share/ocarina/ocarina6.glade | 9 ++++++++- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/core/Sconscript b/core/Sconscript index 42b0d2d3..7d4d12bb 100644 --- a/core/Sconscript +++ b/core/Sconscript @@ -1,5 +1,9 @@ #!/usr/bin/python +Import("env") + res = Glob("*.c") res += SConscript("tags/Sconscript") res += SConscript("containers/Sconscript") + +env.UsePackage("gstreamer-1.0") Return("res") diff --git a/gui/Sconscript b/gui/Sconscript index d847fd0b..63e623c5 100644 --- a/gui/Sconscript +++ b/gui/Sconscript @@ -2,7 +2,7 @@ Import("env") env.UsePackage("gtkmm-3.0") -env.UsePackage("gstreamer-1.0") +env.UsePackage("gmodule-export-2.0") res = Glob("*.c") + Glob("*.cpp") + SConscript("queue/Sconscript") Return("res") diff --git a/gui/gst.cpp b/gui/gst.cpp index ad72a7e3..35ceb80d 100644 --- a/gui/gst.cpp +++ b/gui/gst.cpp @@ -12,10 +12,8 @@ extern "C" { #include } #include -#include -static GtkButton *o_next; static GtkButton *o_pause; static GtkButton *o_play; static GtkButton *o_prev; @@ -130,7 +128,6 @@ static bool on_timeout() void gst :: play() { audio_play(); } void gst :: pause() { audio_pause(); } void gst :: stop() { audio_stop(); } -void gst :: next() { audio_next(); } void gst :: prev() { audio_prev(); } void gst :: toggle() @@ -143,7 +140,6 @@ void gst :: toggle() void gst :: init_pre() { - o_next = GTK_BUTTON(gui_builder_widget("o_next")); o_pause = GTK_BUTTON(gui_builder_widget("o_pause")); o_play = GTK_BUTTON(gui_builder_widget("o_play")); o_prev = GTK_BUTTON(gui_builder_widget("o_prev")); @@ -160,7 +156,6 @@ void gst :: init_pre() o_title = GTK_LABEL(gui_builder_widget("o_title")); o_progress = GTK_ADJUSTMENT(gui_builder_object("o_progress")); - g_signal_connect(o_next, "clicked", gst :: next, NULL); g_signal_connect(o_pause, "clicked", gst :: pause, NULL); g_signal_connect(o_play, "clicked", gst :: play, NULL); g_signal_connect(o_prev, "clicked", gst :: prev, NULL); diff --git a/gui/window.cpp b/gui/window.cpp index 9e0ffdf6..937e5c59 100644 --- a/gui/window.cpp +++ b/gui/window.cpp @@ -38,7 +38,7 @@ static bool on_window_key_pressed(GdkEventKey *event) else if (key == "m") notebook->set_current_page(tempq_count() + 3); else if (key == "n") - gst :: next(); + audio_next(); else if (key == "N") audio_prev(); else if (key == "p") diff --git a/include/gui/ocarina.h b/include/gui/ocarina.h index 3970f00b..0ed8e233 100644 --- a/include/gui/ocarina.h +++ b/include/gui/ocarina.h @@ -30,7 +30,6 @@ namespace gst void play(); void pause(); void stop(); - void next(); void prev(); void toggle(); void init_pre(); diff --git a/share/ocarina/ocarina6.glade b/share/ocarina/ocarina6.glade index 02f4b6cc..a6868dfd 100644 --- a/share/ocarina/ocarina6.glade +++ b/share/ocarina/ocarina6.glade @@ -1,5 +1,5 @@ - + @@ -63,6 +63,7 @@ True False image12 + False @@ -71,6 +72,7 @@ True False image13 + False True @@ -165,6 +167,7 @@ True False image18 + False True @@ -175,6 +178,7 @@ True False image20 + False @@ -183,6 +187,7 @@ True False image19 + False @@ -617,6 +622,7 @@ Manager False True False + True @@ -700,6 +706,7 @@ Manager False False False + 0.5 True