[Xfce4-commits] [xfce/xfce4-panel] 01/01: panel: Make sure "span monitors" is conditionally sensitive (Bug #15169)
noreply at xfce.org
noreply at xfce.org
Thu Jan 30 01:31:54 CET 2020
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 x f c e - 4 . 1 4
in repository xfce/xfce4-panel.
commit 3c2f9814758467397830fbb49297855a55111a4b
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 (Bug #15169)
---
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 8747da2..8f91efe 100644
--- a/panel/panel-preferences-dialog.c
+++ b/panel/panel-preferences-dialog.c
@@ -529,7 +529,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)
@@ -649,7 +649,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