biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / gtkperf / bench.patch
blob3d00a03e9a58cee9325f5f6759ae3ac85c72a089
1 --- gtkperf/src/callbacks.c 2005-10-30 11:33:42.000000000 +0000
2 +++ gtkperf-patched/src/callbacks.c 2008-05-23 23:41:17.000000000 +0100
3 @@ -219,6 +219,13 @@
7 +void
8 +on_cmdline_test(char *optarg)
9 +{
10 + appdata->test_type = atoi(optarg);
14 /* Initialize appdata */
15 void
16 setup_appdata(AppData * appdata_in)
17 @@ -398,7 +405,7 @@
18 appdata->pixbuf_drawing = gdk_pixbuf_new_from_file (filename, NULL);
20 gtk_combo_box_set_active (GTK_COMBO_BOX (appdata->combobox_testtype),
21 - 0);
22 + appdata->test_type);
24 /* create end mark to info textview */
25 GtkTextIter iter;
26 --- gtkperf/src/callbacks.h 2005-10-30 10:21:23.000000000 +0000
27 +++ gtkperf-patched/src/callbacks.h 2008-05-23 23:22:30.000000000 +0100
28 @@ -13,6 +13,7 @@
29 void on_cmdline_run_all ();
30 void on_cmdline_help () ;
31 void on_cmdline_count (char *optarg) ;
32 +void on_cmdline_test (char *optarg) ;
33 void on_window_main_show (AppData * data);
35 gboolean
36 --- gtkperf/src/main.c 2005-10-30 11:26:42.000000000 +0000
37 +++ gtkperf-patched/src/main.c 2008-05-23 23:44:02.000000000 +0100
38 @@ -65,9 +65,10 @@
39 {"help", 0, 0, 0},
40 {"automatic", 0, 0, 0},
41 {"count", 1, 0, 0},
42 + {"test", 1, 0, 0},
43 {0, 0, 0, 0}
45 - c = getopt_long (argc, argv, "hac:",
46 + c = getopt_long (argc, argv, "hac:t:",
47 long_options, &option_index);
48 if (c == -1)
49 break;
50 @@ -104,6 +105,10 @@
51 on_cmdline_count(optarg);
52 break;
54 + case 't':
55 + on_cmdline_test(optarg);
56 + break;
58 default:
59 case 'h':
60 on_cmdline_help ();