From 0e1da0d33d14e2a1b107493cbc65cb321cefadcf Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sat, 11 May 2013 03:02:31 +0200 Subject: Also disable labels, not just entries --- src/fe-gtk/servlistgui.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c index faa42772..4ebf8c19 100644 --- a/src/fe-gtk/servlistgui.c +++ b/src/fe-gtk/servlistgui.c @@ -1167,16 +1167,31 @@ servlist_check_cb (GtkWidget *but, gpointer num_p) if (GTK_TOGGLE_BUTTON (but)->active) { gtk_widget_set_sensitive (edit_entry_nick, FALSE); + gtk_widget_set_sensitive (edit_label_nick, FALSE); + gtk_widget_set_sensitive (edit_entry_nick2, FALSE); + gtk_widget_set_sensitive (edit_label_nick2, FALSE); + gtk_widget_set_sensitive (edit_entry_user, FALSE); + gtk_widget_set_sensitive (edit_label_user, FALSE); + gtk_widget_set_sensitive (edit_entry_real, FALSE); + gtk_widget_set_sensitive (edit_label_real, FALSE); + } else { gtk_widget_set_sensitive (edit_entry_nick, TRUE); + gtk_widget_set_sensitive (edit_label_nick, TRUE); + gtk_widget_set_sensitive (edit_entry_nick2, TRUE); + gtk_widget_set_sensitive (edit_label_nick2, TRUE); + gtk_widget_set_sensitive (edit_entry_user, TRUE); + gtk_widget_set_sensitive (edit_label_user, TRUE); + gtk_widget_set_sensitive (edit_entry_real, TRUE); + gtk_widget_set_sensitive (edit_label_real, TRUE); } } } @@ -1686,9 +1701,16 @@ servlist_open_edit (GtkWidget *parent, ircnet *net) if (net->flags & FLAG_USE_GLOBAL) { gtk_widget_set_sensitive (edit_entry_nick, FALSE); + gtk_widget_set_sensitive (edit_label_nick, FALSE); + gtk_widget_set_sensitive (edit_entry_nick2, FALSE); + gtk_widget_set_sensitive (edit_label_nick2, FALSE); + gtk_widget_set_sensitive (edit_entry_user, FALSE); + gtk_widget_set_sensitive (edit_label_user, FALSE); + gtk_widget_set_sensitive (edit_entry_real, FALSE); + gtk_widget_set_sensitive (edit_label_real, FALSE); } gtk_widget_grab_focus (button10); -- cgit 1.4.1