From d19994223db4da58af64d0364da3e966fdb21f41 Mon Sep 17 00:00:00 2001 From: Alexander Schwinn Date: Tue, 24 Apr 2018 23:46:16 +0200 Subject: [PATCH] added plugin thunar-sendto-multimedia --- configure.ac.in | 1 + plugins/Makefile.am | 3 ++- plugins/thunar-sendto-multimedia/Makefile.am | 23 ++++++++++++++++++++++ .../bluetooth-sendto.desktop.in.in | 6 ++++++ .../gnome-obex-send.desktop.in.in | 6 ++++++ .../sendto-queue-in-audacious.desktop.in.in | 11 +++++++++++ .../sendto-queue-in-vlc.desktop.in.in | 11 +++++++++++ thunar/thunar-icon-view.c | 10 +++++++--- 8 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 plugins/thunar-sendto-multimedia/Makefile.am create mode 100644 plugins/thunar-sendto-multimedia/bluetooth-sendto.desktop.in.in create mode 100644 plugins/thunar-sendto-multimedia/gnome-obex-send.desktop.in.in create mode 100644 plugins/thunar-sendto-multimedia/sendto-queue-in-audacious.desktop.in.in create mode 100644 plugins/thunar-sendto-multimedia/sendto-queue-in-vlc.desktop.in.in diff --git a/configure.ac.in b/configure.ac.in index 6fc24efe..2432946a 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -243,6 +243,7 @@ plugins/Makefile plugins/thunar-apr/Makefile plugins/thunar-sbr/Makefile plugins/thunar-sendto-email/Makefile +plugins/thunar-sendto-multimedia/Makefile plugins/thunar-tpa/Makefile plugins/thunar-uca/Makefile plugins/thunar-wallpaper/Makefile diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 628355f3..36841aab 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -24,6 +24,7 @@ SUBDIRS = \ $(THUNAR_TPA_SUBDIRS) \ $(THUNAR_UCA_SUBDIRS) \ $(THUNAR_WALLPAPER_SUBDIRS) \ - thunar-sendto-email + thunar-sendto-email \ + thunar-sendto-multimedia # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: diff --git a/plugins/thunar-sendto-multimedia/Makefile.am b/plugins/thunar-sendto-multimedia/Makefile.am new file mode 100644 index 00000000..d3fb9484 --- /dev/null +++ b/plugins/thunar-sendto-multimedia/Makefile.am @@ -0,0 +1,23 @@ +desktopdir = $(datadir)/Thunar/sendto +desktop_in_in_files = \ + bluetooth-sendto.desktop.in.in \ + gnome-obex-send.desktop.in.in \ + sendto-queue-in-audacious.desktop.in.in \ + sendto-queue-in-vlc.desktop.in.in \ + sendto-queue-in-parole.desktop.in.in + +desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in) +%.desktop.in: %.desktop.in.in + sed -e "s,\@HELPERDIR\@,$(HELPER_PATH_PREFIX),g" < $< > $@ +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) +@INTLTOOL_DESKTOP_RULE@ + +EXTRA_DIST = \ + $(desktop_in_in_files) \ + README + +DISTCLEANFILES = \ + $(desktop_in_files) \ + $(desktop_DATA) + +# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: diff --git a/plugins/thunar-sendto-multimedia/bluetooth-sendto.desktop.in.in b/plugins/thunar-sendto-multimedia/bluetooth-sendto.desktop.in.in new file mode 100644 index 00000000..9781b5b7 --- /dev/null +++ b/plugins/thunar-sendto-multimedia/bluetooth-sendto.desktop.in.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +_Name=Bluetooth recipient +Icon=stock_mailto +Exec=bluetooth-sendto %F +TryExec=bluetooth-sendto diff --git a/plugins/thunar-sendto-multimedia/gnome-obex-send.desktop.in.in b/plugins/thunar-sendto-multimedia/gnome-obex-send.desktop.in.in new file mode 100644 index 00000000..644c3144 --- /dev/null +++ b/plugins/thunar-sendto-multimedia/gnome-obex-send.desktop.in.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +_Name=Gnome Bluetooth OBEX Recipient +Icon=stock_mailto +Exec=gnome-obex-send %F +TryExec=gnome-obex-send diff --git a/plugins/thunar-sendto-multimedia/sendto-queue-in-audacious.desktop.in.in b/plugins/thunar-sendto-multimedia/sendto-queue-in-audacious.desktop.in.in new file mode 100644 index 00000000..b820e5c3 --- /dev/null +++ b/plugins/thunar-sendto-multimedia/sendto-queue-in-audacious.desktop.in.in @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +_Name=Audacious (Add to playlist) +Encoding=UTF-8 +Exec=audacious -e %F +TryExec=audacious +Icon=audacious +Terminal=false +Type=Application +MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;application/ogg;application/x-ogg;video/x-ogm+ogg;audio/x-vorbis+ogg;application/x-matroska;audio/x-matroska;video/x-matroska;video/webm;audio/webm;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;video/vnd.rn-realvideo;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;video/mp4;video/mp4v-es;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;video/x-flv;application/xspf+xml;inode/directory +X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb diff --git a/plugins/thunar-sendto-multimedia/sendto-queue-in-vlc.desktop.in.in b/plugins/thunar-sendto-multimedia/sendto-queue-in-vlc.desktop.in.in new file mode 100644 index 00000000..eeb71270 --- /dev/null +++ b/plugins/thunar-sendto-multimedia/sendto-queue-in-vlc.desktop.in.in @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +_Name=VLC (Add to playlist) +Encoding=UTF-8 +Exec=vlc --one-instance --playlist-enqueue %F +TryExec=vlc +Icon=vlc +Terminal=false +Type=Application +MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;application/ogg;application/x-ogg;video/x-ogm+ogg;audio/x-vorbis+ogg;application/x-matroska;audio/x-matroska;video/x-matroska;video/webm;audio/webm;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;video/vnd.rn-realvideo;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;video/mp4;video/mp4v-es;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;video/x-flv;application/xspf+xml;inode/directory +X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb diff --git a/thunar/thunar-icon-view.c b/thunar/thunar-icon-view.c index 466246af..f507ede2 100644 --- a/thunar/thunar-icon-view.c +++ b/thunar/thunar-icon-view.c @@ -24,7 +24,7 @@ #include #include - +#include /* Property identifiers */ enum @@ -104,16 +104,20 @@ thunar_icon_view_init (ThunarIconView *icon_view) /* setup the name renderer */ // g_object_set (G_OBJECT (THUNAR_STANDARD_VIEW (icon_view)->name_renderer), // "wrap-mode", PANGO_WRAP_WORD_CHAR, +// "wrap-width",128, // NULL); // g_object_set (G_OBJECT (THUNAR_STANDARD_VIEW (icon_view)->name_renderer), // "ellipsize", PANGO_ELLIPSIZE_END, // NULL); g_object_set (G_OBJECT (THUNAR_STANDARD_VIEW (icon_view)->name_renderer), "ellipsize", PANGO_ELLIPSIZE_END, - "single-paragraph-mode", TRUE, - "width-chars", 40, + "single-paragraph-mode", FALSE, + "wrap-mode", PANGO_WRAP_WORD_CHAR, + "wrap-width",128, + "width-chars", 30, "xpad", 5, NULL); + //gtk_cell_layout_pack_start (G_OBJECT (THUNAR_STANDARD_VIEW (icon_view)), G_OBJECT (THUNAR_STANDARD_VIEW (icon_view)->name_renderer), FALSE); /* synchronize the "text-beside-icons" property with the global preference */ -- 2.11.0