[totem] main: Fix hooking up volume button



commit af9160098630174c5896ef4c16ff31366138a776
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 4 18:55:56 2014 +0100

    main: Fix hooking up volume button

 src/totem-object.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index c1f2ce0..047a0cf 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -104,7 +104,6 @@ G_MODULE_EXPORT gboolean window_state_event_cb (GtkWidget *window, GdkEventWindo
 G_MODULE_EXPORT gboolean seek_slider_pressed_cb (GtkWidget *widget, GdkEventButton *event, TotemObject 
*totem);
 G_MODULE_EXPORT void seek_slider_changed_cb (GtkAdjustment *adj, TotemObject *totem);
 G_MODULE_EXPORT gboolean seek_slider_released_cb (GtkWidget *widget, GdkEventButton *event, TotemObject 
*totem);
-G_MODULE_EXPORT void volume_button_value_changed_cb (GtkScaleButton *button, gdouble value, TotemObject 
*totem);
 G_MODULE_EXPORT gboolean window_key_press_event_cb (GtkWidget *win, GdkEventKey *event, TotemObject *totem);
 G_MODULE_EXPORT int window_scroll_event_cb (GtkWidget *win, GdkEvent *event, TotemObject *totem);
 G_MODULE_EXPORT void fs_exit1_activate_cb (GtkButton *button, TotemObject *totem);
@@ -2498,7 +2497,7 @@ update_current_time (BaconVideoWidget *bvw,
        }
 }
 
-void
+static void
 volume_button_value_changed_cb (GtkScaleButton *button, gdouble value, TotemObject *totem)
 {
        totem->muted = FALSE;
@@ -3722,6 +3721,10 @@ totem_callback_connect (TotemObject *totem)
        g_signal_connect (totem->seekadj, "value-changed",
                          G_CALLBACK (seek_slider_changed_cb), totem);
 
+       /* Volume */
+       g_signal_connect (totem->volume, "value-changed",
+                         G_CALLBACK (volume_button_value_changed_cb), totem);
+
        /* Go button */
        item = g_object_get_data (totem->controls, "go_button");
        menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "gomenu");


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