From e5e2c87a866999ba3760e07d8f4bf94a5cb170bf Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Thu, 24 Dec 2015 13:07:54 -0500 Subject: [PATCH] gui/audio: Define seek controls completely in glade Signed-off-by: Anna Schumaker --- gui/audio.c | 9 +-------- share/ocarina/ocarina6.glade | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gui/audio.c b/gui/audio.c index 2296cb8d..f8bc2dad 100644 --- a/gui/audio.c +++ b/gui/audio.c @@ -8,8 +8,6 @@ #include -static GtkScale *o_seek; - static GtkSpinButton *o_count; static GtkToggleButton *o_enabled; static GtkAdjustment *o_progress; @@ -77,10 +75,9 @@ struct audio_ops audio_ops = { }; -static bool on_seek(GtkScrollType type, double value) +void __audio_seek(GtkScrollType type, double value) { audio_seek(value); - return true; } static void on_pause_count() @@ -107,14 +104,10 @@ static int on_timeout(gpointer data) void gui_audio_init() { - o_seek = GTK_SCALE(gui_builder_widget("o_seek")); - o_count = GTK_SPIN_BUTTON(gui_builder_widget("o_pause_count")); o_enabled = GTK_TOGGLE_BUTTON(gui_builder_widget("o_pause_enabled")); o_progress = GTK_ADJUSTMENT(gui_builder_object("o_progress")); - g_signal_connect(o_seek, "change-value", G_CALLBACK(on_seek), NULL); - g_signal_connect(o_count, "changed", G_CALLBACK(on_pause_count), NULL); g_signal_connect(o_enabled, "toggled", G_CALLBACK(on_pause_enabled), NULL); diff --git a/share/ocarina/ocarina6.glade b/share/ocarina/ocarina6.glade index 58481dc3..6f7f2092 100644 --- a/share/ocarina/ocarina6.glade +++ b/share/ocarina/ocarina6.glade @@ -506,6 +506,7 @@ Manager 1 False left + True