[totem] main: Remove unused "Ask" dnd menu
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Remove unused "Ask" dnd menu
- Date: Mon, 17 Feb 2014 12:47:58 +0000 (UTC)
commit 14bdaada345106ef008ce674200b30ece8d64bf6
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 17 11:52:41 2014 +0100
main: Remove unused "Ask" dnd menu
po/POTFILES.in | 1 -
src/Makefile.am | 2 -
src/totem-dnd-menu.c | 113 --------------------------------------------------
src/totem-dnd-menu.h | 29 -------------
src/totem-object.c | 12 -----
5 files changed, 0 insertions(+), 157 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8999055..a103192 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -17,7 +17,6 @@ src/gst/totem-time-helpers.c
src/properties/bacon-video-widget-properties.c
src/totem-audio-preview.c
src/totem.c
-src/totem-dnd-menu.c
src/totem-interface.c
src/totem-menu.c
src/totem-object.c
diff --git a/src/Makefile.am b/src/Makefile.am
index c625039..6634147 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -69,8 +69,6 @@ libtotem_la_SOURCES = \
totem-private.h \
totem-preferences.c \
totem-preferences.h \
- totem-dnd-menu.c \
- totem-dnd-menu.h \
totem-options.c \
totem-options.h \
totem-playlist.c \
diff --git a/src/totem-object.c b/src/totem-object.c
index 08caee5..1246fe3 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -61,7 +61,6 @@
#include "totem-uri.h"
#include "totem-interface.h"
#include "video-utils.h"
-#include "totem-dnd-menu.h"
#include "totem-preferences.h"
#include "totem-session.h"
#include "totem-rtl-helpers.h"
@@ -2184,17 +2183,6 @@ drop_video_cb (GtkWidget *widget,
return;
}
- if (action == GDK_ACTION_ASK) {
- action = totem_drag_ask (totem_object_get_playlist_length (totem) > 0);
- gdk_drag_status (context, action, GDK_CURRENT_TIME);
- }
-
- /* User selected cancel */
- if (action == GDK_ACTION_DEFAULT) {
- gtk_drag_finish (context, FALSE, FALSE, _time);
- return;
- }
-
empty_pl = (action == GDK_ACTION_MOVE);
totem_object_drop_files (totem, data, info, empty_pl);
gtk_drag_finish (context, TRUE, FALSE, _time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]