[Xfce4-commits] [thunar-plugins/thunar-archive-plugin] 01/01: Allow zip files (i.e. odt, docx...) to be compressed (Bug #15295)

noreply at xfce.org noreply at xfce.org
Wed May 15 19:40:23 CEST 2019


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

a   n   d   r   e       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 thunar-plugins/thunar-archive-plugin.

commit fa3ad98d904909267501c0dd05e423bd7873835d
Author: Andre Miranda <andreldm at xfce.org>
Date:   Wed May 15 14:39:23 2019 -0300

    Allow zip files (i.e. odt, docx...) to be compressed (Bug #15295)
---
 thunar-archive-plugin/tap-provider.c | 40 ++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 22 deletions(-)

diff --git a/thunar-archive-plugin/tap-provider.c b/thunar-archive-plugin/tap-provider.c
index e276f09..ac90e7f 100644
--- a/thunar-archive-plugin/tap-provider.c
+++ b/thunar-archive-plugin/tap-provider.c
@@ -469,28 +469,24 @@ tap_provider_get_file_menu_items (ThunarxMenuProvider *menu_provider,
       items = g_list_append (items, item);
     }
 
-  /* check if more than one files was given or the file is not an archive */
-  if (G_LIKELY (n_files > 1 || !all_archives))
-    {
-      /* append the "Create Archive..." menu item */
-      item = thunarx_menu_item_new ("Tap::create-archive",
-                                    _("Cr_eate Archive..."),
-                                    dngettext (GETTEXT_PACKAGE,
-                                               "Create an archive with the selected object",
-                                               "Create an archive with the selected objects",
-                                               n_files),
-                                    "tap-create");
-
-      g_object_set_qdata_full (G_OBJECT (item), tap_item_files_quark,
-                               thunarx_file_info_list_copy (files),
-                               (GDestroyNotify) thunarx_file_info_list_free);
-      g_object_set_qdata_full (G_OBJECT (item), tap_item_provider_quark,
-                               g_object_ref (G_OBJECT (tap_provider)),
-                               (GDestroyNotify) g_object_unref);
-      closure = g_cclosure_new_object (G_CALLBACK (tap_create_archive), G_OBJECT (window));
-      g_signal_connect_closure (G_OBJECT (item), "activate", closure, TRUE);
-      items = g_list_append (items, item);
-    }
+    /* append the "Create Archive..." menu item */
+    item = thunarx_menu_item_new ("Tap::create-archive",
+                                  _("Cr_eate Archive..."),
+                                  dngettext (GETTEXT_PACKAGE,
+                                              "Create an archive with the selected object",
+                                              "Create an archive with the selected objects",
+                                              n_files),
+                                  "tap-create");
+
+    g_object_set_qdata_full (G_OBJECT (item), tap_item_files_quark,
+                              thunarx_file_info_list_copy (files),
+                              (GDestroyNotify) thunarx_file_info_list_free);
+    g_object_set_qdata_full (G_OBJECT (item), tap_item_provider_quark,
+                              g_object_ref (G_OBJECT (tap_provider)),
+                              (GDestroyNotify) g_object_unref);
+    closure = g_cclosure_new_object (G_CALLBACK (tap_create_archive), G_OBJECT (window));
+    g_signal_connect_closure (G_OBJECT (item), "activate", closure, TRUE);
+    items = g_list_append (items, item);
 
   return items;
 }

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


More information about the Xfce4-commits mailing list