diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-11 03:02:31 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-11 03:02:31 +0200 |
commit | 0e1da0d33d14e2a1b107493cbc65cb321cefadcf (patch) | |
tree | 75789f54893b0b016f53f7edc58befb1be3a2d1a /src | |
parent | 7b0b86c9f7841217d4156503fbe004fdea54caeb (diff) |
Also disable labels, not just entries
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-gtk/servlistgui.c | 22 |
1 files changed, 22 insertions, 0 deletions
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); |