Updating branch refs/heads/bluesabre/gtk3
         to 9183a35bf0a349c3f68aef3da3cbfa4572db4395 (commit)
       from 6e16deee93dbd13996e856dba6529bf7a183b3c1 (commit)

commit 9183a35bf0a349c3f68aef3da3cbfa4572db4395
Author: Sean Davis <smd.seanda...@gmail.com>
Date:   Sun Sep 15 22:49:34 2013 -0400

    Add button-release event to the output widget

 data/interfaces/parole.ui |    1 +
 src/parole-player.c       |   12 +++++-------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/data/interfaces/parole.ui b/data/interfaces/parole.ui
index 93f4c89..b2199be 100644
--- a/data/interfaces/parole.ui
+++ b/data/interfaces/parole.ui
@@ -718,6 +718,7 @@
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <signal name="button-press-event" 
handler="parole_player_gst_widget_button_press" swapped="no"/>
+                    <signal name="button-release-event" 
handler="parole_player_gst_widget_button_release" swapped="no"/>
                     <child>
                       <object class="GtkBox" id="box4">
                         <property name="visible">True</property>
diff --git a/src/parole-player.c b/src/parole-player.c
index 22b9b6b..fba09b6 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -249,6 +249,10 @@ void        parole_player_set_playlist_visible      
(ParolePlayer *player,
 gboolean    parole_player_gst_widget_button_press   (GtkWidget *widget, 
                                                      GdkEventButton *ev, 
                                                      ParolePlayer *player);
+                                                     
+gboolean    parole_player_gst_widget_button_release (GtkWidget *widget, 
+                                                     GdkEventButton *ev, 
+                                                     ParolePlayer *player);
 
 void        parole_show_about                       (GtkWidget *widget,
                                                      ParolePlayer *player);
@@ -2034,7 +2038,7 @@ parole_player_gst_widget_button_press (GtkWidget *widget, 
GdkEventButton *ev, Pa
     return ret_val;
 }
 
-static gboolean
+gboolean
 parole_player_gst_widget_button_release (GtkWidget *widget, GdkEventButton 
*ev, ParolePlayer *player)
 {
     gboolean ret_val = FALSE;
@@ -2914,12 +2918,6 @@ parole_player_init (ParolePlayer *player)
     g_signal_connect (G_OBJECT (player->priv->gst), "dvd-chapter-change",
             G_CALLBACK (parole_player_dvd_chapter_change_cb), player);
     
-    g_signal_connect_after (G_OBJECT (player->priv->gst), 
"button-release-event",
-            G_CALLBACK (parole_player_gst_widget_button_release), player);
-    
-    g_signal_connect_after (G_OBJECT (player->priv->gst), "button-press-event",
-            G_CALLBACK (parole_player_gst_widget_button_press), player);
-    
     g_signal_connect (G_OBJECT (player->priv->gst), "motion-notify-event",
             G_CALLBACK (parole_player_gst_widget_motion_notify_event), player);
     
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to