[Xfce4-commits] [xfce/xfce4-settings] 42/67: display: Make sure to hide the auto-profile label in the minimal dialog

noreply at xfce.org noreply at xfce.org
Sat Sep 22 11:23:33 CEST 2018


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-settings.

commit d705f7ccccc1916d238b1eac45fd913ef23ac732
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Aug 27 00:16:00 2018 +0200

    display: Make sure to hide the auto-profile label in the minimal dialog
---
 dialogs/display-settings/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 16ec13b..93dad79 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -1514,7 +1514,7 @@ display_settings_profile_changed (GtkWidget *widget, GtkBuilder *builder)
 static void
 display_settings_minimal_profile_changed (GtkComboBox *combobox, GtkBuilder *builder)
 {
-    GObject      *auto_profile;
+    GObject      *auto_profile, *auto_profile_label;
     GtkTreeModel *model;
     GtkTreeIter   iter;
     GValue        value = { 0, };
@@ -1523,6 +1523,7 @@ display_settings_minimal_profile_changed (GtkComboBox *combobox, GtkBuilder *bui
     gboolean      profile_match;
 
     auto_profile = gtk_builder_get_object (builder, "auto-profile");
+    auto_profile_label = gtk_builder_get_object (builder, "label5");
     profile_match = gtk_combo_box_get_active_iter (combobox, &iter);
 
     if (profile_match)
@@ -1538,6 +1539,7 @@ display_settings_minimal_profile_changed (GtkComboBox *combobox, GtkBuilder *bui
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (auto_profile), profile_match);
     gtk_widget_set_visible (GTK_WIDGET (combobox), !profile_match);
     gtk_widget_set_visible (GTK_WIDGET (auto_profile), profile_match);
+    gtk_widget_set_visible (GTK_WIDGET (auto_profile_label), profile_match);
 
     g_value_unset (&value);
 }

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


More information about the Xfce4-commits mailing list