[Xfce4-commits] [xfce/xfce4-panel] 01/03: panel: Make sure "span monitors" is conditionally sensitive
noreply at xfce.org
noreply at xfce.org
Sat Nov 9 23:23:26 CET 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i 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 xfce/xfce4-panel.
commit 57f439b9b30c645b9b52a233056819c3b54fcc89
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Wed Nov 6 01:15:31 2019 +0100
panel: Make sure "span monitors" is conditionally sensitive
---
panel/panel-preferences-dialog.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/panel/panel-preferences-dialog.c b/panel/panel-preferences-dialog.c
index 4c8dab1..375dfff 100644
--- a/panel/panel-preferences-dialog.c
+++ b/panel/panel-preferences-dialog.c
@@ -530,7 +530,7 @@ panel_preferences_dialog_bindings_update (PanelPreferencesDialog *dialog)
{
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (object), &iter);
output_selected = TRUE;
- span_monitors_sensitive = TRUE;
+ span_monitors_sensitive = FALSE;
}
if (n_monitors >= 1)
@@ -650,7 +650,11 @@ panel_preferences_dialog_output_changed (GtkComboBox *combobox,
/* monitor spanning does not work when an output is selected */
object = gtk_builder_get_object (GTK_BUILDER (dialog), "span-monitors");
panel_return_if_fail (GTK_IS_WIDGET (object));
- gtk_widget_set_sensitive (GTK_WIDGET (object), output_name == NULL);
+ if (output_name == NULL ||
+ g_strcmp0 ("Automatic", output_name) == 0)
+ gtk_widget_set_sensitive (GTK_WIDGET (object), TRUE);
+ else
+ gtk_widget_set_sensitive (GTK_WIDGET (object), FALSE);
g_free (output_name);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list