[Xfce4-commits] [xfce/thunar] 01/03: sendto plugin: move g_file_info_get_content_type() call out of the cycle (Bug #15916)
noreply at xfce.org
noreply at xfce.org
Tue Sep 3 22:48:13 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 m a s t e r
in repository xfce/thunar.
commit 0c74c71708f0736b397713ddc7d574445e380953
Author: Sergey Ponomarev <stokito at gmail.com>
Date: Sun Sep 1 23:02:46 2019 +0300
sendto plugin: move g_file_info_get_content_type() call out of the cycle
(Bug #15916)
Signed-off-by: Sergey Ponomarev <stokito at gmail.com>
Signed-off-by: Alexander Schwinn <alexxcons at xfce.org>
---
plugins/thunar-sendto-email/main.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/plugins/thunar-sendto-email/main.c b/plugins/thunar-sendto-email/main.c
index 23b8c14..9b212b1 100644
--- a/plugins/thunar-sendto-email/main.c
+++ b/plugins/thunar-sendto-email/main.c
@@ -163,12 +163,11 @@ tse_ask_compress (GList *infos)
if (g_file_info_get_file_type (tse_data->info) == G_FILE_TYPE_DIRECTORY)
return TSE_RESPONSE_COMPRESS;
+ /* determine the content type */
+ content_type = g_file_info_get_content_type (tse_data->info);
/* check if the single file is already an archive */
for (n = 0; n < G_N_ELEMENTS (TSE_MIME_TYPES); ++n)
{
- /* determine the content type */
- content_type = g_file_info_get_content_type (tse_data->info);
-
/* check if this mime type matches */
if (content_type != NULL && g_content_type_is_a (content_type, TSE_MIME_TYPES[n]))
{
@@ -183,7 +182,7 @@ tse_ask_compress (GList *infos)
}
/* check if the total size is larger than 200KiB, or we have more than
- * one file, and atleast one of the files is not already an archive.
+ * one file, and at least one of the files is not already an archive.
*/
if ((n_infos > 1 || total_size > 200 * 1024) && n_infos != n_archives)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list