[totem] main: Add dnd support to the "Recent" button



commit b37119bc813495f19289538c8ddf0b621a5b9552
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 17 13:45:14 2014 +0100

    main: Add dnd support to the "Recent" button
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703549

 src/totem-grilo.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index e303c09..f7a727e 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1804,6 +1804,12 @@ setup_source_switcher (TotemGrilo *self)
        self->priv->recent = create_switcher_button (self, _("Recent"), "recent");
        gtk_container_add (GTK_CONTAINER (self->priv->switcher), self->priv->recent);
 
+       g_signal_connect (G_OBJECT (self->priv->recent), "drag_data_received",
+                         G_CALLBACK (drop_video_cb), self);
+       gtk_drag_dest_set (GTK_WIDGET (self->priv->recent), GTK_DEST_DEFAULT_ALL,
+                          target_table, G_N_ELEMENTS (target_table),
+                          GDK_ACTION_MOVE | GDK_ACTION_COPY);
+
        self->priv->channels = create_switcher_button (self, _("Channels"), "channels");
        gtk_radio_button_join_group (GTK_RADIO_BUTTON (self->priv->channels),
                                     GTK_RADIO_BUTTON (self->priv->recent));


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