[Xfce4-commits] [xfce/xfce4-settings] 42/57: color: Ensure remove/enable buttons are disabled

noreply at xfce.org noreply at xfce.org
Thu Mar 21 22:14:30 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 dd6ee793544213f12306a639b5a6957820476728
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Feb 17 23:16:04 2019 +0100

    color: Ensure remove/enable buttons are disabled
    
    ... after removing a profile.
---
 dialogs/color-settings/main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dialogs/color-settings/main.c b/dialogs/color-settings/main.c
index dc1a985..adc34ae 100644
--- a/dialogs/color-settings/main.c
+++ b/dialogs/color-settings/main.c
@@ -561,6 +561,11 @@ color_settings_profile_remove_cb (GtkWidget *widget, ColorSettings *settings)
                                          &error);
     if (!ret)
         g_warning ("failed to remove profile: %s", error->message);
+
+    /* as there are no items selected by default after removing a profile, we disable
+       the "remove" and "enable" buttons */
+    gtk_widget_set_sensitive (GTK_WIDGET (settings->profiles_remove), FALSE);
+    gtk_widget_set_sensitive (GTK_WIDGET (settings->profiles_enable), FALSE);
 }
 
 

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


More information about the Xfce4-commits mailing list