Revision 360 src/prefs_common.c

prefs_common.c (revision 360)
196 196
	GtkWidget *checkbtn_cleanonexit;
197 197
	GtkWidget *checkbtn_askonclean;
198 198
	GtkWidget *checkbtn_warnqueued;
199
} other;
199 200

  
201
static struct Advanced {
202
	GtkWidget *checkbtn_strict_cache_check;
200 203
	GtkWidget *spinbtn_iotimeout;
201 204
	GtkObject *spinbtn_iotimeout_adj;
202
} other;
205
} advanced;
203 206

  
204 207
static struct MessageColorButtons {
205 208
	GtkWidget *quote_level1_btn;
......
693 696
	 P_BOOL, &other.checkbtn_warnqueued,
694 697
	 prefs_set_data_from_toggle, prefs_set_toggle},
695 698

  
699
	{"logwindow_line_limit", "1000", &prefs_common.logwin_line_limit,
700
	 P_INT, NULL, NULL, NULL},
701

  
702
	/* Advanced */
703
	{"strict_cache_check", "FALSE", &prefs_common.strict_cache_check,
704
	 P_BOOL, &advanced.checkbtn_strict_cache_check,
705
	 prefs_set_data_from_toggle, prefs_set_toggle},
696 706
	{"io_timeout_secs", "60", &prefs_common.io_timeout_secs,
697
	 P_INT, &other.spinbtn_iotimeout,
707
	 P_INT, &advanced.spinbtn_iotimeout,
698 708
	 prefs_set_data_from_spinbtn, prefs_set_spinbtn},
699 709

  
700
	{"logwindow_line_limit", "1000", &prefs_common.logwin_line_limit,
701
	 P_INT, NULL, NULL, NULL},
702

  
703 710
	{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
704 711
};
705 712

  
......
719 726
#endif
720 727
static void prefs_interface_create	(void);
721 728
static void prefs_other_create		(void);
729
static void prefs_advanced_create	(void);
722 730

  
723 731
static void date_format_ok_btn_clicked		(GtkButton	*button,
724 732
						 GtkWidget     **widget);
......
947 955
	SET_NOTEBOOK_LABEL(dialog.notebook, _("Interface"), page++);
948 956
	prefs_other_create();
949 957
	SET_NOTEBOOK_LABEL(dialog.notebook, _("Other"),     page++);
958
	prefs_advanced_create();
959
	SET_NOTEBOOK_LABEL(dialog.notebook, _("Advanced"),  page++);
950 960

  
951 961
	gtk_widget_show_all(dialog.window);
952 962
}
......
2306 2316
	GtkWidget *checkbtn_askonclean;
2307 2317
	GtkWidget *checkbtn_warnqueued;
2308 2318

  
2309
	GtkWidget *label_iotimeout;
2310
	GtkWidget *spinbtn_iotimeout;
2311
	GtkObject *spinbtn_iotimeout_adj;
2312

  
2313 2319
	vbox1 = gtk_vbox_new (FALSE, VSPACING);
2314 2320
	gtk_widget_show (vbox1);
2315 2321
	gtk_container_add (GTK_CONTAINER (dialog.notebook), vbox1);
......
2414 2420
	PACK_CHECK_BUTTON (vbox_exit, checkbtn_warnqueued,
2415 2421
			   _("Warn if there are queued messages"));
2416 2422

  
2423
	other.uri_combo = uri_combo;
2424
	other.uri_entry = uri_entry;
2425
	other.printcmd_entry = printcmd_entry;
2426

  
2427
	other.exteditor_combo = exteditor_combo;
2428
	other.exteditor_entry = exteditor_entry;
2429

  
2430
	other.checkbtn_addaddrbyclick = checkbtn_addaddrbyclick;
2431

  
2432
	other.checkbtn_confonexit  = checkbtn_confonexit;
2433
	other.checkbtn_cleanonexit = checkbtn_cleanonexit;
2434
	other.checkbtn_askonclean  = checkbtn_askonclean;
2435
	other.checkbtn_warnqueued  = checkbtn_warnqueued;
2436
}
2437

  
2438
static void prefs_advanced_create(void)
2439
{
2440
	GtkWidget *vbox1;
2441

  
2442
	GtkWidget *vbox2;
2443
	GtkWidget *checkbtn_strict_cache_check;
2444
	GtkWidget *label;
2445

  
2446
	GtkWidget *hbox1;
2447
	GtkWidget *label_iotimeout;
2448
	GtkWidget *spinbtn_iotimeout;
2449
	GtkObject *spinbtn_iotimeout_adj;
2450

  
2451
	vbox1 = gtk_vbox_new (FALSE, VSPACING);
2452
	gtk_widget_show (vbox1);
2453
	gtk_container_add (GTK_CONTAINER (dialog.notebook), vbox1);
2454
	gtk_container_set_border_width (GTK_CONTAINER (vbox1), VBOX_BORDER);
2455

  
2456
	vbox2 = gtk_vbox_new (FALSE, VSPACING_NARROW);
2457
	gtk_widget_show (vbox2);
2458
	gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, FALSE, 0);
2459

  
2460
	PACK_CHECK_BUTTON (vbox2, checkbtn_strict_cache_check,
2461
			   _("Enable strict checking of the integrity of summary caches"));
2462
	PACK_SMALL_LABEL
2463
		(vbox2, label,
2464
		 _("Enable this if the contents of folders have the possibility of modification by other applications.\n"
2465
		   "This option will degrade the performance of displaying summary."));
2466

  
2417 2467
	hbox1 = gtk_hbox_new (FALSE, 8);
2418 2468
	gtk_widget_show (hbox1);
2419 2469
	gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
......
2435 2485
	gtk_widget_show (label_iotimeout);
2436 2486
	gtk_box_pack_start (GTK_BOX (hbox1), label_iotimeout, FALSE, FALSE, 0);
2437 2487

  
2438
	other.uri_combo = uri_combo;
2439
	other.uri_entry = uri_entry;
2440
	other.printcmd_entry = printcmd_entry;
2488
	advanced.checkbtn_strict_cache_check = checkbtn_strict_cache_check;
2441 2489

  
2442
	other.exteditor_combo = exteditor_combo;
2443
	other.exteditor_entry = exteditor_entry;
2444

  
2445
	other.checkbtn_addaddrbyclick = checkbtn_addaddrbyclick;
2446

  
2447
	other.checkbtn_confonexit  = checkbtn_confonexit;
2448
	other.checkbtn_cleanonexit = checkbtn_cleanonexit;
2449
	other.checkbtn_askonclean  = checkbtn_askonclean;
2450
	other.checkbtn_warnqueued  = checkbtn_warnqueued;
2451

  
2452
	other.spinbtn_iotimeout     = spinbtn_iotimeout;
2453
	other.spinbtn_iotimeout_adj = spinbtn_iotimeout_adj;
2490
	advanced.spinbtn_iotimeout     = spinbtn_iotimeout;
2491
	advanced.spinbtn_iotimeout_adj = spinbtn_iotimeout_adj;
2454 2492
}
2455 2493

  
2456 2494
static void date_format_ok_btn_clicked(GtkButton *button, GtkWidget **widget)

Also available in: Unified diff