Commit 965c9594 authored by Andre Miranda's avatar Andre Miranda

Remove "Properties..." entry from desktop context menu (#59)

Still keeping it for icons though.
parent d6e97bcb
Pipeline #1207 passed with stages
in 1 minute and 51 seconds
...@@ -1877,19 +1877,21 @@ xfdesktop_file_icon_manager_populate_context_menu(XfceDesktop *desktop, ...@@ -1877,19 +1877,21 @@ xfdesktop_file_icon_manager_populate_context_menu(XfceDesktop *desktop,
gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi); gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
} }
/* Properties - applies to desktop window or an icon on the desktop */ /* Properties - applies only to icons on the desktop */
img = gtk_image_new_from_icon_name("document-properties", GTK_ICON_SIZE_MENU); if(file_icon != fmanager->priv->desktop_icon) {
mi = xfdesktop_menu_create_menu_item_with_mnemonic(_("P_roperties..."), img); img = gtk_image_new_from_icon_name("document-properties", GTK_ICON_SIZE_MENU);
gtk_widget_show(mi); mi = xfdesktop_menu_create_menu_item_with_mnemonic(_("P_roperties..."), img);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi); gtk_widget_show(mi);
if(multi_sel || !info) gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
gtk_widget_set_sensitive(mi, FALSE); if(multi_sel || !info)
else { gtk_widget_set_sensitive(mi, FALSE);
g_signal_connect(G_OBJECT(mi), "activate", else {
file_icon == fmanager->priv->desktop_icon g_signal_connect(G_OBJECT(mi), "activate",
? G_CALLBACK(xfdesktop_file_icon_manager_desktop_properties) file_icon == fmanager->priv->desktop_icon
: G_CALLBACK(xfdesktop_file_icon_menu_properties), ? G_CALLBACK(xfdesktop_file_icon_manager_desktop_properties)
fmanager); : G_CALLBACK(xfdesktop_file_icon_menu_properties),
fmanager);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment