From 1ace7979fd90a4913a95796df3aade4a2a537150 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 27 Oct 2017 23:19:26 +0200 Subject: [PATCH 1/1] make 'Automitic' the default selection for output If the property is not set in xfconf the panel with behave in automatic mode. Reflect this by selecting the corresponding setting in dialog. Signed-off-by: Christian Hesse --- panel/panel-preferences-dialog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panel/panel-preferences-dialog.c b/panel/panel-preferences-dialog.c index c787b3f3..aac9fd48 100644 --- a/panel/panel-preferences-dialog.c +++ b/panel/panel-preferences-dialog.c @@ -492,7 +492,8 @@ panel_preferences_dialog_bindings_update (PanelPreferencesDialog *dialog) gtk_list_store_insert_with_values (GTK_LIST_STORE (store), &iter, n++, OUTPUT_NAME, "Automatic", OUTPUT_TITLE, _("Automatic"), -1); - if (g_strcmp0 (output_name, "Automatic") == 0) { + if (panel_str_is_empty (output_name) || + g_strcmp0 (output_name, "Automatic") == 0) { gtk_combo_box_set_active_iter (GTK_COMBO_BOX (object), &iter); output_selected = TRUE; span_monitors_sensitive = TRUE; @@ -500,8 +501,7 @@ panel_preferences_dialog_bindings_update (PanelPreferencesDialog *dialog) gtk_list_store_insert_with_values (GTK_LIST_STORE (store), &iter, n++, OUTPUT_NAME, "Primary", OUTPUT_TITLE, _("Primary"), -1); - if (panel_str_is_empty (output_name) || - g_strcmp0 (output_name, "Primary") == 0) + if (g_strcmp0 (output_name, "Primary") == 0) { gtk_combo_box_set_active_iter (GTK_COMBO_BOX (object), &iter); output_selected = TRUE;