Variable cleanup for gui_*

This commit is contained in:
Berke Viktor
2012-10-22 13:49:28 +02:00
parent 87e903cd73
commit bf27d43052
20 changed files with 453 additions and 453 deletions

View File

@@ -95,9 +95,9 @@ joind_ok_cb (GtkWidget *ok, server *serv)
chanlist_opengui (serv, TRUE);
xit:
prefs.gui_join_dialog = 0;
prefs.hex_gui_join_dialog = 0;
if (GTK_TOGGLE_BUTTON (serv->gui->joind_check)->active)
prefs.gui_join_dialog = 1;
prefs.hex_gui_join_dialog = 1;
gtk_widget_destroy (serv->gui->joind_win);
serv->gui->joind_win = NULL;
@@ -214,7 +214,7 @@ joind_show_dialog (server *serv)
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
serv->gui->joind_check = checkbutton1 = gtk_check_button_new_with_mnemonic (_("_Always show this dialog after connecting."));
if (prefs.gui_join_dialog)
if (prefs.hex_gui_join_dialog)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton1), TRUE);
gtk_widget_show (checkbutton1);
gtk_box_pack_start (GTK_BOX (vbox1), checkbutton1, FALSE, FALSE, 0);
@@ -246,7 +246,7 @@ joind_show_dialog (server *serv)
void
joind_open (server *serv)
{
if (prefs.gui_join_dialog)
if (prefs.hex_gui_join_dialog)
joind_show_dialog (serv);
}