[Xfce4-commits] [xfce/xfce4-settings] 22/57: color: Conditionally make the add profile button in/sensitive

noreply at xfce.org noreply at xfce.org
Thu Mar 21 22:14:10 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-settings.

commit e79c2999715111244e3b7c1576469e9f340a3a4e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Wed Feb 13 00:20:54 2019 +0100

    color: Conditionally make the add profile button in/sensitive
---
 dialogs/color-settings/main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dialogs/color-settings/main.c b/dialogs/color-settings/main.c
index 540b32b..c62be98 100644
--- a/dialogs/color-settings/main.c
+++ b/dialogs/color-settings/main.c
@@ -727,11 +727,13 @@ color_settings_list_box_row_activated_cb (GtkListBox *list_box,
     if (cd_device_get_enabled (settings->current_device))
     {
         color_settings_add_device_profiles (settings, settings->current_device);
+        gtk_widget_set_sensitive (GTK_WIDGET (settings->profiles_add), TRUE);
         color_settings_update_profile_list_extra_entry (settings);
     }
     else
     {
         gtk_widget_show (GTK_WIDGET (settings->label_no_profiles));
+        gtk_widget_set_sensitive (GTK_WIDGET (settings->profiles_add), FALSE);
         gtk_widget_hide (GTK_WIDGET (settings->box_profiles));
     }
 }
@@ -747,6 +749,7 @@ color_settings_device_enabled_changed_cb (ColorDevice *widget,
     gtk_list_box_select_row (settings->list_box, GTK_LIST_BOX_ROW (widget));
     gtk_widget_set_visible (GTK_WIDGET (settings->label_no_profiles), !is_enabled);
     gtk_widget_set_visible (GTK_WIDGET (settings->box_profiles), is_enabled);
+    gtk_widget_set_sensitive (GTK_WIDGET (settings->profiles_add), is_enabled);
     gtk_widget_set_sensitive (GTK_WIDGET (settings->profiles_remove), is_enabled);
 }
 

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


More information about the Xfce4-commits mailing list