[Xfce4-commits] <parole:master> Set the drag destination on the container of the video widget since the video widget might be resized for specific aspect ratio.

Ali Abdallah noreply at xfce.org
Tue Nov 24 15:48:02 CET 2009


Updating branch refs/heads/master
         to 3463c4e2da3498d77610c5a495dfc183048cd6f2 (commit)
       from eafcfd1145c2cc48e3d25d0e8ecadce3288b4e08 (commit)

commit 3463c4e2da3498d77610c5a495dfc183048cd6f2
Author: Ali Abdallah <ali at ali-xfce.org>
Date:   Tue Nov 24 15:28:06 2009 +0100

    Set the drag destination on the container of the video widget
    since the video widget might be resized for specific aspect ratio.

 src/parole-player.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/parole-player.c b/src/parole-player.c
index a4bcd5b..1b0d092 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1662,6 +1662,7 @@ parole_player_window_notify_is_active (ParolePlayer *player)
 static void
 parole_player_init (ParolePlayer *player)
 {
+    GtkWidget *output;
     GtkBuilder *builder;
     GdkScreen *screen;
     gint w, h;
@@ -1731,11 +1732,13 @@ parole_player_init (ParolePlayer *player)
     g_signal_connect (G_OBJECT (player->priv->gst), "motion-notify-event",
 		      G_CALLBACK (parole_player_gst_widget_motion_notify_event), player);
     
-    gtk_drag_dest_set (player->priv->gst, GTK_DEST_DEFAULT_ALL, 
+    output = GTK_WIDGET (gtk_builder_get_object (builder, "output"));
+    
+    gtk_drag_dest_set (output, GTK_DEST_DEFAULT_ALL, 
 		       target_entry, G_N_ELEMENTS (target_entry),
                        GDK_ACTION_COPY | GDK_ACTION_MOVE);
 		       
-    g_signal_connect (G_OBJECT (player->priv->gst), "drag-data-received",
+    g_signal_connect (output, "drag-data-received",
 		      G_CALLBACK (parole_player_drag_data_received_cb), player);
     
     player->priv->window = GTK_WIDGET (gtk_builder_get_object (builder, "main-window"));
@@ -1780,7 +1783,7 @@ parole_player_init (ParolePlayer *player)
     
     gtk_widget_show_all (player->priv->window);
     
-    gtk_box_pack_start (GTK_BOX (gtk_builder_get_object (builder, "output")), 
+    gtk_box_pack_start (GTK_BOX (output), 
 			player->priv->gst,
 			TRUE, TRUE, 0);
     



More information about the Xfce4-commits mailing list