@@ -48,12 +48,12 @@ void draw_debug_window() {
48
48
gtk_widget_set_margin_bottom (mainGrid, 30 );
49
49
# if GTK_CHECK_VERSION(3, 12, 0)
50
50
gtk_widget_set_margin_start (mainGrid, 30 );
51
- # elif
51
+ # else
52
52
gtk_widget_set_margin_left (mainGrid, 30 );
53
53
# endif
54
54
# if GTK_CHECK_VERSION(3, 12, 0)
55
55
gtk_widget_set_margin_end (mainGrid, 20 );
56
- # elif
56
+ # else
57
57
gtk_widget_set_margin_right (mainGrid, 20 );
58
58
# endif
59
59
@@ -73,35 +73,35 @@ void draw_debug_window() {
73
73
gtk_widget_set_halign (movesLabel, GTK_ALIGN_END);
74
74
# if GTK_CHECK_VERSION(3, 12, 0)
75
75
gtk_widget_set_margin_end (movesLabel, 8 );
76
- # elif
76
+ # else
77
77
gtk_widget_set_margin_right (movesLabel, 8 );
78
78
# endif
79
79
GtkWidget* tempsLabel = gtk_label_new (" Temperatures to proceed:" );
80
80
gtk_widget_set_halign (tempsLabel, GTK_ALIGN_END);
81
81
# if GTK_CHECK_VERSION(3, 12, 0)
82
82
gtk_widget_set_margin_end (tempsLabel, 8 );
83
- # elif
83
+ # else
84
84
gtk_widget_set_margin_right (tempsLabel, 8 );
85
85
# endif
86
86
GtkWidget* blockLabel = gtk_label_new (" Stop at from_block" );
87
87
gtk_widget_set_halign (blockLabel, GTK_ALIGN_END);
88
88
# if GTK_CHECK_VERSION(3, 12, 0)
89
89
gtk_widget_set_margin_end (blockLabel, 8 );
90
- # elif
90
+ # else
91
91
gtk_widget_set_margin_right (blockLabel, 8 );
92
92
# endif
93
93
GtkWidget* iterLabel = gtk_label_new (" Stop at router iteration" );
94
94
gtk_widget_set_halign (iterLabel, GTK_ALIGN_END);
95
95
# if GTK_CHECK_VERSION(3, 12, 0)
96
96
gtk_widget_set_margin_end (iterLabel, 8 );
97
- # elif
97
+ # else
98
98
gtk_widget_set_margin_right (iterLabel, 8 );
99
99
# endif
100
100
GtkWidget* netLabel = gtk_label_new (" Stop at route_net_id" );
101
101
gtk_widget_set_halign (netLabel, GTK_ALIGN_END);
102
102
# if GTK_CHECK_VERSION(3, 12, 0)
103
103
gtk_widget_set_margin_end (netLabel, 8 );
104
- # elif
104
+ # else
105
105
gtk_widget_set_margin_right (netLabel, 8 );
106
106
# endif
107
107
GtkWidget* star = gtk_label_new (" *for handling multiple breakpoints at once using an expression can be more accurate" );
@@ -113,47 +113,47 @@ void draw_debug_window() {
113
113
gtk_widget_set_margin_bottom (setM, 10 );
114
114
# if GTK_CHECK_VERSION(3, 12, 0)
115
115
gtk_widget_set_margin_start (setM, 10 );
116
- # elif
116
+ # else
117
117
gtk_widget_set_margin_left (setM, 10 );
118
118
# endif
119
119
GtkWidget* setT = gtk_button_new_with_label (" Set" );
120
120
gtk_widget_set_halign (setT, GTK_ALIGN_START);
121
121
gtk_widget_set_margin_bottom (setT, 10 );
122
122
# if GTK_CHECK_VERSION(3, 12, 0)
123
123
gtk_widget_set_margin_start (setT, 10 );
124
- # elif
124
+ # else
125
125
gtk_widget_set_margin_left (setT, 10 );
126
126
# endif
127
127
GtkWidget* setB = gtk_button_new_with_label (" Set" );
128
128
gtk_widget_set_halign (setB, GTK_ALIGN_START);
129
129
# if GTK_CHECK_VERSION(3, 12, 0)
130
130
gtk_widget_set_margin_start (setB, 10 );
131
- # elif
131
+ # else
132
132
gtk_widget_set_margin_left (setB, 10 );
133
133
# endif
134
134
GtkWidget* setI = gtk_button_new_with_label (" Set" );
135
135
gtk_widget_set_halign (setI, GTK_ALIGN_START);
136
136
# if GTK_CHECK_VERSION(3, 12, 0)
137
137
gtk_widget_set_margin_start (setI, 10 );
138
- # elif
138
+ # else
139
139
gtk_widget_set_margin_left (setI, 10 );
140
140
# endif
141
141
GtkWidget* setN = gtk_button_new_with_label (" Set" );
142
142
gtk_widget_set_halign (setN, GTK_ALIGN_START);
143
143
# if GTK_CHECK_VERSION(3, 12, 0)
144
144
gtk_widget_set_margin_start (setN, 10 );
145
- # elif
145
+ # else
146
146
gtk_widget_set_margin_left (setN, 10 );
147
147
# endif
148
148
GtkWidget* advanced = gtk_button_new_with_label (" Advanced" );
149
149
# if GTK_CHECK_VERSION(3, 12, 0)
150
150
gtk_widget_set_margin_start (advanced, 60 );
151
- # elif
151
+ # else
152
152
gtk_widget_set_margin_left (advanced, 60 );
153
153
# endif
154
154
# if GTK_CHECK_VERSION(3, 12, 0)
155
155
gtk_widget_set_margin_end (advanced, 10 );
156
- # elif
156
+ # else
157
157
gtk_widget_set_margin_right (advanced, 10 );
158
158
# endif
159
159
gtk_widget_set_margin_top (advanced, 20 );
@@ -275,35 +275,35 @@ void advanced_button_callback() {
275
275
// set margins
276
276
# if GTK_CHECK_VERSION(3, 12, 0)
277
277
gtk_widget_set_margin_start (instructions, 30 );
278
- # elif
278
+ # else
279
279
gtk_widget_set_margin_left (instructions, 30 );
280
280
# endif
281
281
# if GTK_CHECK_VERSION(3, 12, 0)
282
282
gtk_widget_set_margin_end (instructions, 30 );
283
- # elif
283
+ # else
284
284
gtk_widget_set_margin_right (instructions, 30 );
285
285
# endif
286
286
gtk_widget_set_margin_top (instructions, 30 );
287
287
gtk_widget_set_margin_bottom (instructions, 30 );
288
288
gtk_widget_set_margin_bottom (expression_here, 5 );
289
289
# if GTK_CHECK_VERSION(3, 12, 0)
290
290
gtk_widget_set_margin_start (entry, 30 );
291
- # elif
291
+ # else
292
292
gtk_widget_set_margin_left (entry, 30 );
293
293
# endif
294
294
# if GTK_CHECK_VERSION(3, 12, 0)
295
295
gtk_widget_set_margin_end (set, 30 );
296
- # elif
296
+ # else
297
297
gtk_widget_set_margin_right (set, 30 );
298
298
# endif
299
299
# if GTK_CHECK_VERSION(3, 12, 0)
300
300
gtk_widget_set_margin_start (set, 40 );
301
- # elif
301
+ # else
302
302
gtk_widget_set_margin_left (set, 40 );
303
303
# endif
304
304
# if GTK_CHECK_VERSION(3, 12, 0)
305
305
gtk_widget_set_margin_start (expander, 10 );
306
- # elif
306
+ # else
307
307
gtk_widget_set_margin_left (expander, 10 );
308
308
# endif
309
309
gtk_widget_set_margin_top (expander, 20 );
@@ -352,7 +352,7 @@ void refresh_bpList() {
352
352
gtk_grid_attach ((GtkGrid*)draw_debug_glob_vars.bpGrid , checkbox, 1 , i, 1 , 1 );
353
353
# if GTK_CHECK_VERSION(3, 12, 0)
354
354
gtk_widget_set_margin_start (checkbox, 290 - draw_debug_glob_vars.bp_labels [i].size ());
355
- # elif
355
+ # else
356
356
gtk_widget_set_margin_left (checkbox, 290 - draw_debug_glob_vars.bp_labels [i].size ());
357
357
# endif
358
358
gtk_widget_set_halign (checkbox, GTK_ALIGN_END);
@@ -370,7 +370,7 @@ void refresh_bpList() {
370
370
gtk_widget_set_valign (deleteButton, GTK_ALIGN_CENTER);
371
371
# if GTK_CHECK_VERSION(3, 12, 0)
372
372
gtk_widget_set_margin_start (deleteButton, 10 );
373
- # elif
373
+ # else
374
374
gtk_widget_set_margin_left (deleteButton, 10 );
375
375
# endif
376
376
@@ -395,7 +395,7 @@ void add_to_bpList(std::string bpDescription) {
395
395
gtk_grid_attach ((GtkGrid*)draw_debug_glob_vars.bpGrid , checkbox, 1 , draw_debug_glob_vars.bpList_row , 1 , 1 );
396
396
# if GTK_CHECK_VERSION(3, 12, 0)
397
397
gtk_widget_set_margin_start (checkbox, 290 - bpDescription.size ());
398
- # elif
398
+ # else
399
399
gtk_widget_set_margin_left (checkbox, 290 - bpDescription.size ());
400
400
# endif
401
401
gtk_widget_set_halign (checkbox, GTK_ALIGN_END);
@@ -413,7 +413,7 @@ void add_to_bpList(std::string bpDescription) {
413
413
gtk_widget_set_valign (deleteButton, GTK_ALIGN_CENTER);
414
414
# if GTK_CHECK_VERSION(3, 12, 0)
415
415
gtk_widget_set_margin_start (deleteButton, 10 );
416
- # elif
416
+ # else
417
417
gtk_widget_set_margin_left (deleteButton, 10 );
418
418
# endif
419
419
@@ -541,12 +541,12 @@ void invalid_breakpoint_entry_window(std::string error) {
541
541
GtkWidget* label = gtk_label_new (error.c_str ());
542
542
# if GTK_CHECK_VERSION(3, 12, 0)
543
543
gtk_widget_set_margin_start (label, 30 );
544
- # elif
544
+ # else
545
545
gtk_widget_set_margin_left (label, 30 );
546
546
# endif
547
547
# if GTK_CHECK_VERSION(3, 12, 0)
548
548
gtk_widget_set_margin_end (label, 30 );
549
- # elif
549
+ # else
550
550
gtk_widget_set_margin_right (label, 30 );
551
551
# endif
552
552
gtk_widget_set_margin_top (label, 30 );
@@ -558,12 +558,12 @@ void invalid_breakpoint_entry_window(std::string error) {
558
558
gtk_widget_set_margin_bottom (button, 30 );
559
559
# if GTK_CHECK_VERSION(3, 12, 0)
560
560
gtk_widget_set_margin_end (button, 30 );
561
- # elif
561
+ # else
562
562
gtk_widget_set_margin_right (button, 30 );
563
563
# endif
564
564
# if GTK_CHECK_VERSION(3, 12, 0)
565
565
gtk_widget_set_margin_start (button, 30 );
566
- # elif
566
+ # else
567
567
gtk_widget_set_margin_left (button, 30 );
568
568
# endif
569
569
gtk_grid_attach ((GtkGrid*)grid, button, 0 , 1 , 1 , 1 );
@@ -588,12 +588,12 @@ void breakpoint_info_window(std::string bpDescription, BreakpointState draw_brea
588
588
GtkWidget* label = gtk_label_new (bpDescription.c_str ());
589
589
# if GTK_CHECK_VERSION(3, 12, 0)
590
590
gtk_widget_set_margin_start (label, 30 );
591
- # elif
591
+ # else
592
592
gtk_widget_set_margin_left (label, 30 );
593
593
# endif
594
594
# if GTK_CHECK_VERSION(3, 12, 0)
595
595
gtk_widget_set_margin_end (label, 30 );
596
- # elif
596
+ # else
597
597
gtk_widget_set_margin_right (label, 30 );
598
598
# endif
599
599
gtk_widget_set_margin_top (label, 30 );
@@ -604,12 +604,12 @@ void breakpoint_info_window(std::string bpDescription, BreakpointState draw_brea
604
604
gtk_label_set_markup ((GtkLabel*)curr_info, " <b>Current Information</b>" );
605
605
# if GTK_CHECK_VERSION(3, 12, 0)
606
606
gtk_widget_set_margin_start (curr_info, 30 );
607
- # elif
607
+ # else
608
608
gtk_widget_set_margin_left (curr_info, 30 );
609
609
# endif
610
610
# if GTK_CHECK_VERSION(3, 12, 0)
611
611
gtk_widget_set_margin_end (curr_info, 30 );
612
- # elif
612
+ # else
613
613
gtk_widget_set_margin_right (curr_info, 30 );
614
614
# endif
615
615
gtk_widget_set_margin_bottom (curr_info, 15 );
@@ -619,12 +619,12 @@ void breakpoint_info_window(std::string bpDescription, BreakpointState draw_brea
619
619
GtkWidget* info_grid = gtk_grid_new ();
620
620
# if GTK_CHECK_VERSION(3, 12, 0)
621
621
gtk_widget_set_margin_start (info_grid, 30 );
622
- # elif
622
+ # else
623
623
gtk_widget_set_margin_left (info_grid, 30 );
624
624
# endif
625
625
# if GTK_CHECK_VERSION(3, 12, 0)
626
626
gtk_widget_set_margin_end (info_grid, 30 );
627
- # elif
627
+ # else
628
628
gtk_widget_set_margin_right (info_grid, 30 );
629
629
# endif
630
630
gtk_widget_set_margin_bottom (info_grid, 20 );
@@ -636,19 +636,19 @@ void breakpoint_info_window(std::string bpDescription, BreakpointState draw_brea
636
636
GtkWidget* n = gtk_image_new_from_file (" src/draw/n.png" );
637
637
# if GTK_CHECK_VERSION(3, 12, 0)
638
638
gtk_widget_set_margin_start (n, 18 );
639
- # elif
639
+ # else
640
640
gtk_widget_set_margin_left (n, 18 );
641
641
# endif
642
642
GtkWidget* i = gtk_image_new_from_file (" src/draw/i.png" );
643
643
# if GTK_CHECK_VERSION(3, 12, 0)
644
644
gtk_widget_set_margin_start (i, 16 );
645
- # elif
645
+ # else
646
646
gtk_widget_set_margin_left (i, 16 );
647
647
# endif
648
648
GtkWidget* b = gtk_image_new_from_file (" src/draw/b.png" );
649
649
# if GTK_CHECK_VERSION(3, 12, 0)
650
650
gtk_widget_set_margin_start (b, 18 );
651
- # elif
651
+ # else
652
652
gtk_widget_set_margin_left (b, 18 );
653
653
# endif
654
654
@@ -657,15 +657,15 @@ void breakpoint_info_window(std::string bpDescription, BreakpointState draw_brea
657
657
GtkWidget* move_info = gtk_label_new (move_num.c_str ());
658
658
# if GTK_CHECK_VERSION(3, 12, 0)
659
659
gtk_widget_set_margin_start (move_info, 5 );
660
- # elif
660
+ # else
661
661
gtk_widget_set_margin_left (move_info, 5 );
662
662
# endif
663
663
gtk_widget_set_halign (move_info, GTK_ALIGN_START);
664
664
std::string temp_count = " temp_count: " + std::to_string (draw_breakpoint_state.temp_count );
665
665
GtkWidget* temp_info = gtk_label_new (temp_count.c_str ());
666
666
# if GTK_CHECK_VERSION(3, 12, 0)
667
667
gtk_widget_set_margin_start (temp_info, 5 );
668
- # elif
668
+ # else
669
669
gtk_widget_set_margin_left (temp_info, 5 );
670
670
# endif
671
671
gtk_widget_set_halign (temp_info, GTK_ALIGN_START);
@@ -676,23 +676,23 @@ void breakpoint_info_window(std::string bpDescription, BreakpointState draw_brea
676
676
GtkWidget* block_info = gtk_label_new (block_id.c_str ());
677
677
# if GTK_CHECK_VERSION(3, 12, 0)
678
678
gtk_widget_set_margin_start (block_info, 5 );
679
- # elif
679
+ # else
680
680
gtk_widget_set_margin_left (block_info, 5 );
681
681
# endif
682
682
gtk_widget_set_halign (block_info, GTK_ALIGN_START);
683
683
std::string router_iter = " router_iter: " + std::to_string (draw_breakpoint_state.router_iter );
684
684
GtkWidget* ri_info = gtk_label_new (router_iter.c_str ());
685
685
# if GTK_CHECK_VERSION(3, 12, 0)
686
686
gtk_widget_set_margin_start (ri_info, 5 );
687
- # elif
687
+ # else
688
688
gtk_widget_set_margin_left (ri_info, 5 );
689
689
# endif
690
690
gtk_widget_set_halign (ri_info, GTK_ALIGN_START);
691
691
std::string net_id = " rouet_net_id: " + std::to_string (draw_breakpoint_state.route_net_id );
692
692
GtkWidget* net_info = gtk_label_new (net_id.c_str ());
693
693
# if GTK_CHECK_VERSION(3, 12, 0)
694
694
gtk_widget_set_margin_start (net_info, 5 );
695
- # elif
695
+ # else
696
696
gtk_widget_set_margin_left (net_info, 5 );
697
697
# endif
698
698
gtk_widget_set_halign (net_info, GTK_ALIGN_START);
0 commit comments