From 1bdfc55a998344c2fa536008c5df7b3235b14f93 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Thu, 18 Sep 2008 09:10:42 +0000 Subject: [PATCH] Actually, focus stealing prevention is not related to the way to react when a window raises itself on another workspace (Old svn revision: 27903) --- settings-dialogs/tweaks-settings.c | 7 ++++--- settings-dialogs/xfwm4-tweaks-dialog.glade | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/settings-dialogs/tweaks-settings.c b/settings-dialogs/tweaks-settings.c index 38ebf8993..caf9e5d3b 100644 --- a/settings-dialogs/tweaks-settings.c +++ b/settings-dialogs/tweaks-settings.c @@ -75,13 +75,13 @@ cb_use_compositing_check_button_toggled (GtkToggleButton *toggle, GtkWidget *box { gtk_widget_set_sensitive (box, gtk_toggle_button_get_active (toggle)); } - +#if 0 void cb_prevent_focus_stealing_check_button_toggled (GtkToggleButton *toggle, GtkWidget *box) { gtk_widget_set_sensitive (box, gtk_toggle_button_get_active (toggle)); } - +#endif void cb_activate_action_bring_radio_toggled (GtkToggleButton *toggle, XfconfChannel *channel) { @@ -208,11 +208,12 @@ wm_tweaks_dialog_configure_widgets (GladeXML *gxml) "toggled", G_CALLBACK (cb_activate_action_none_radio_toggled), xfwm4_channel); - +#if 0 g_signal_connect (G_OBJECT (prevent_focus_stealing_check), "toggled", G_CALLBACK (cb_prevent_focus_stealing_check_button_toggled), prevent_focus_stealing_box); +#endif g_signal_connect (G_OBJECT (use_compositing_check), "toggled", G_CALLBACK (cb_use_compositing_check_button_toggled), diff --git a/settings-dialogs/xfwm4-tweaks-dialog.glade b/settings-dialogs/xfwm4-tweaks-dialog.glade index 3b950b243..6b821a36b 100644 --- a/settings-dialogs/xfwm4-tweaks-dialog.glade +++ b/settings-dialogs/xfwm4-tweaks-dialog.glade @@ -119,7 +119,7 @@ or "skip taskbar" properties set</property> <child> <widget class="GtkVBox" id="prevent_focus_stealing_box"> <property name="visible">True</property> - <property name="sensitive">False</property> + <property name="sensitive">True</property> <property name="spacing">6</property> <child> <widget class="GtkLabel" id="label11"> -- GitLab