Xdialog

Diff
Login

Diff

Differences From Artifact [abc8b08b1b]:

To Artifact [2bbfadf472]:


528
529
530
531
532
533
534
535

536
537
538
539
540
541
542
528
529
530
531
532
533
534

535
536
537
538
539
540
541
542







-
+







	int optcode, i;
	gboolean win = FALSE;
	gint timeout, percent, x, y;
	gint list_size = 0;
	gint min = 0, max = 0, deflt =0;
	gint day = 0, month = 0, year = 0;
	gint hours = 0, minutes = 0, seconds = 0;
	gdouble colors[4];
	GdkColor colors;
	gint beep_tmp, timeout_tmp;
	gboolean icon_tmp, check_tmp;
	time_t curr_time;
	struct tm *localdate;
	static struct option long_options[] = {
		/* Box options */
		{"yesno",		1, 0, B_YESNO},
948
949
950
951
952
953
954

955
956
957
958
959





960
961

962
963
964
965
966
967
968
948
949
950
951
952
953
954
955





956
957
958
959
960
961

962
963
964
965
966
967
968
969







+
-
-
-
-
-
+
+
+
+
+

-
+







				break;
			case B_COLORSEL:	/* colour selector */
				get_box_size(argc, argv, &optind);
				list_size = param_number(argc, argv, &optind);
				if (list_size != 0) {
					if (list_size != 3)
						print_help_info(argv[0], "incorrect number of parameters");

					colors[0] = atoi(argv[optind++]) / 255.0;
                                        colors[1] = atoi(argv[optind++]) / 255.0;
                                        colors[2] = atoi(argv[optind++]) / 255.0;
                                }  else {
					colors[0] = colors[1] = colors[2] = 1.0;
					colors.red = atoi(argv[optind++])  * 257;
					colors.green = atoi(argv[optind++]) * 257;
					colors.blue = atoi(argv[optind++]) * 257;
                } else {
					colors.red = colors.green = colors.blue = 65535;
				}
				create_colorsel(optarg, colors);
				create_colorsel(optarg, &colors);
				win = TRUE;
				break;
			case B_FONTSEL:		/* font selector */
				get_box_size(argc, argv, &optind);
				create_fontsel(optarg);
				win = TRUE;
				break;