[Xfce4-commits] [xfce/thunar] 03/03: sendto plugin: fix content type resolution. (Bug #15916)

noreply at xfce.org noreply at xfce.org
Tue Sep 3 22:50:39 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   4   
   in repository xfce/thunar.

commit a432b8dd6800cbc3331d54511c56b444fd4fafa9
Author: Sergey Ponomarev <stokito at gmail.com>
Date:   Mon Sep 2 11:55:13 2019 +0300

    sendto plugin: fix content type resolution. (Bug #15916)
    
    Additionally request G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE for tse_data->info.
    This is needed later for g_file_info_get_content_type() call inside tse_file_is_archive()
    
    Signed-off-by: Sergey Ponomarev <stokito at gmail.com>
    Signed-off-by: Alexander Schwinn <alexxcons at xfce.org>
---
 plugins/thunar-sendto-email/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/thunar-sendto-email/main.c b/plugins/thunar-sendto-email/main.c
index a324470..0b1ba23 100644
--- a/plugins/thunar-sendto-email/main.c
+++ b/plugins/thunar-sendto-email/main.c
@@ -608,7 +608,8 @@ main (int argc, char **argv)
       info = g_file_query_info (file,
                                 G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME ","
                                 G_FILE_ATTRIBUTE_STANDARD_SIZE ","
-                                G_FILE_ATTRIBUTE_STANDARD_TYPE,
+                                G_FILE_ATTRIBUTE_STANDARD_TYPE ","
+                                G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
                                 G_FILE_QUERY_INFO_NONE, NULL, &error);
 
       /* check if we failed */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list