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 <andre...@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. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits