[Xfce4-commits] [xfce/xfdesktop] 04/04: 'Open With' context submenu at 3 items
noreply at xfce.org
noreply at xfce.org
Mon Feb 16 06:40:26 CET 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfdesktop.
commit fb9550e7b571b2c8f57268940dbf2429a142af56
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Mon Feb 16 08:29:28 2015 +0300
'Open With' context submenu at 3 items
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
src/xfdesktop-file-icon-manager.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 3bcd202..eff08d1 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1589,14 +1589,14 @@ xfdesktop_file_icon_manager_populate_context_menu(XfceDesktop *desktop,
list_len = g_list_length(app_infos->next);
if(!xfdesktop_file_utils_file_is_executable(info)
- && list_len <= 3)
+ && list_len < 3)
{
mi = gtk_separator_menu_item_new();
gtk_widget_show(mi);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
}
- if(list_len > 3) {
+ if(list_len >= 3) {
mi = gtk_menu_item_new_with_label(_("Open With"));
gtk_widget_show(mi);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
@@ -1616,7 +1616,7 @@ xfdesktop_file_icon_manager_populate_context_menu(XfceDesktop *desktop,
g_object_unref(app_info);
}
- if(list_len > 3) {
+ if(list_len >= 3) {
mi = gtk_separator_menu_item_new();
gtk_widget_show(mi);
gtk_menu_shell_append(GTK_MENU_SHELL(app_infos_menu), mi);
@@ -1625,7 +1625,7 @@ xfdesktop_file_icon_manager_populate_context_menu(XfceDesktop *desktop,
mi = gtk_image_menu_item_new_with_mnemonic(_("Open With Other _Application..."));
gtk_widget_show(mi);
- if(list_len > 3)
+ if(list_len >= 3)
gtk_menu_shell_append(GTK_MENU_SHELL(app_infos_menu), mi);
else
gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list