Skip to content
Snippets Groups Projects
Commit 31b5282a authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

* settings-dialogs/xfwm4-settings.c: Only display shortcut conflict

	  dialog if the action of the new shortcut differs from the one
	  that's being edited.

(Old svn revision: 29423)
parent be6f13c6
No related branches found
No related tags found
No related merge requests found
2009-02-01 jannis
* settings-dialogs/xfwm4-settings.c: Only display shortcut conflict
dialog if the action of the new shortcut differs from the one
that's being edited.
2009-01-29 olivier
 
* src/placement.c: Apparently someone is confusing East and West :)
......
......@@ -1915,14 +1915,17 @@ xfwm_settings_validate_shortcut (XfceShortcutDialog *dialog,
if (G_UNLIKELY (other_shortcut != NULL))
{
response = xfce_shortcut_conflict_dialog (xfce_shortcuts_provider_get_name (settings->priv->provider),
xfce_shortcuts_provider_get_name (other_provider),
shortcut,
xfce_shortcut_dialog_get_action_name (dialog),
xfwm_settings_shortcut_feature_name (other_shortcut->command),
FALSE);
accepted = response == GTK_RESPONSE_ACCEPT;
if (G_LIKELY (!g_str_equal (xfce_shortcut_dialog_get_action (dialog), other_shortcut->command)))
{
response = xfce_shortcut_conflict_dialog (xfce_shortcuts_provider_get_name (settings->priv->provider),
xfce_shortcuts_provider_get_name (other_provider),
shortcut,
xfce_shortcut_dialog_get_action_name (dialog),
xfwm_settings_shortcut_feature_name (other_shortcut->command),
FALSE);
accepted = response == GTK_RESPONSE_ACCEPT;
}
xfce_shortcut_free (other_shortcut);
g_object_unref (other_provider);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment