src/prefs.c

changeset 660
54c140aa12e3
parent 652
dd4ccd3e5c72
child 666
0a313fec9a15
equal deleted inserted replaced
659:bcd375e1b83d 660:54c140aa12e3
87 87
88 sep = gtk_hseparator_new(); 88 sep = gtk_hseparator_new();
89 gtk_box_pack_start(GTK_BOX(box), sep, FALSE, FALSE, 5); 89 gtk_box_pack_start(GTK_BOX(box), sep, FALSE, FALSE, 5);
90 gtk_widget_show(sep); 90 gtk_widget_show(sep);
91 91
92 gaim_button(_("Show Lagometer"), &general_options, OPT_GEN_SHOW_LAGMETER, box);
93 gaim_button(_("Use borderless buttons (requires restart for some buttons)"), &display_options, OPT_DISP_COOL_LOOK, box); 92 gaim_button(_("Use borderless buttons (requires restart for some buttons)"), &display_options, OPT_DISP_COOL_LOOK, box);
94 gaim_button(_("Show Buddy Ticker after restart"), &display_options, OPT_DISP_SHOW_BUDDYTICKER, box); 93 gaim_button(_("Show Buddy Ticker after restart"), &display_options, OPT_DISP_SHOW_BUDDYTICKER, box);
95 if (!dw && (general_options & OPT_GEN_DEBUG)) 94 if (!dw && (general_options & OPT_GEN_DEBUG))
96 general_options = general_options ^ OPT_GEN_DEBUG; 95 general_options = general_options ^ OPT_GEN_DEBUG;
97 debugbutton = gaim_button(_("Show Debug Window"), &general_options, OPT_GEN_DEBUG, box); 96 debugbutton = gaim_button(_("Show Debug Window"), &general_options, OPT_GEN_DEBUG, box);
1231 1230
1232 void set_general_option(GtkWidget *w, int *option) 1231 void set_general_option(GtkWidget *w, int *option)
1233 { 1232 {
1234 general_options = general_options ^ (int)option; 1233 general_options = general_options ^ (int)option;
1235 1234
1236 if ((int)option == OPT_GEN_SHOW_LAGMETER)
1237 update_lagometer(-1);
1238 if ((int)option == OPT_GEN_LOG_ALL) 1235 if ((int)option == OPT_GEN_LOG_ALL)
1239 update_log_convs(); 1236 update_log_convs();
1240 save_prefs(); 1237 save_prefs();
1241 } 1238 }
1242 1239

mercurial