[Xfce4-commits] [xfce/xfce4-panel] 01/01: Make "Automatic" the default selection in the panel config dialog

noreply at xfce.org noreply at xfce.org
Sun Oct 29 00:35:55 CEST 2017


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   2   
   in repository xfce/xfce4-panel.

commit 5331841639826d99f61c6c3fc68734083705530c
Author: Christian Hesse <mail at eworm.de>
Date:   Sun Oct 29 00:34:58 2017 +0200

    Make "Automatic" the default selection in the panel config dialog
    
    If the property is not set in xfconf the panel with behave in automatic
    mode. Reflect this by selecting the corresponding setting in dialog.
---
 panel/panel-preferences-dialog.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/panel/panel-preferences-dialog.c b/panel/panel-preferences-dialog.c
index 584b1e8..e46624c 100644
--- a/panel/panel-preferences-dialog.c
+++ b/panel/panel-preferences-dialog.c
@@ -490,16 +490,17 @@ 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) {
-        gtk_combo_box_set_active_iter (GTK_COMBO_BOX (object), &iter);
-        output_selected = TRUE;
-        span_monitors_sensitive = TRUE;
-      }
+      if (exo_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;
+        }
       gtk_list_store_insert_with_values (GTK_LIST_STORE (store), &iter, n++,
                                          OUTPUT_NAME, "Primary",
                                          OUTPUT_TITLE, _("Primary"), -1);
-      if (exo_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;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list