summaryrefslogtreecommitdiffstats
path: root/src/interface.c
blob: 72d40f37aea219b564c759102041f8d5ffaed45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
/*
 * DO NOT EDIT THIS FILE - it is generated by Glade.
 */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
  g_object_set_data_full (G_OBJECT (component), name, \
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
  g_object_set_data (G_OBJECT (component), name, widget)

GtkWidget*
create_window_preferences (void)
{
  GtkWidget *window_preferences;
  GtkWidget *preferences_vbox;
  GtkWidget *preferences_notebook;
  GtkWidget *preferences_working_dir_vbox;
  GtkWidget *preferences_working_dir_vbox_vbox;
  GtkWidget *preferences_working_dir_label;
  GtkWidget *hbox3;
  GtkWidget *label72;
  GtkWidget *vbox12;
  GtkWidget *preferences_working_dir_entry;
  GtkWidget *label50;
  GtkWidget *preferences_sources_vbox;
  GtkWidget *vbox57;
  GtkWidget *label161;
  GtkWidget *hbox92;
  GtkWidget *label162;
  GtkWidget *hbox93;
  GtkWidget *scrolledwindow16;
  GtkWidget *preferences_sources_treeview;
  GtkWidget *vbox58;
  GtkWidget *preferences_remove_source_button;
  GtkWidget *hbox94;
  GtkWidget *label163;
  GtkWidget *new_source_entry;
  GtkWidget *preferences_add_source_button;
  GtkWidget *label160;
  GtkWidget *preferences_exclude_vbox;
  GtkWidget *preferences_exclude_vbox_vbox;
  GtkWidget *preferences_exclude_label;
  GtkWidget *hbox81;
  GtkWidget *label140;
  GtkWidget *hbox82;
  GtkWidget *scrolledwindow12;
  GtkWidget *preferences_exclude_treeview;
  GtkWidget *vbox42;
  GtkWidget *preferences_remove_exclude_button;
  GtkWidget *hbox95;
  GtkWidget *label164;
  GtkWidget *new_exclude_entry;
  GtkWidget *preferences_add_exclude_button;
  GtkWidget *label51;
  GtkWidget *preferences_hbuttonbox;
  GtkWidget *preferences_close_button;
  GtkWidget *preferences_ok_button;

  window_preferences = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_name (window_preferences, "window_preferences");
  gtk_window_set_title (GTK_WINDOW (window_preferences), _("Preferences"));
  gtk_window_set_position (GTK_WINDOW (window_preferences), GTK_WIN_POS_CENTER);
  gtk_window_set_modal (GTK_WINDOW (window_preferences), TRUE);
  gtk_window_set_default_size (GTK_WINDOW (window_preferences), 400, 300);
  gtk_window_set_gravity (GTK_WINDOW (window_preferences), GDK_GRAVITY_CENTER);

  preferences_vbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (preferences_vbox, "preferences_vbox");
  gtk_widget_show (preferences_vbox);
  gtk_container_add (GTK_CONTAINER (window_preferences), preferences_vbox);
  gtk_container_set_border_width (GTK_CONTAINER (preferences_vbox), 6);

  preferences_notebook = gtk_notebook_new ();
  gtk_widget_set_name (preferences_notebook, "preferences_notebook");
  gtk_widget_show (preferences_notebook);
  gtk_box_pack_start (GTK_BOX (preferences_vbox), preferences_notebook, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (preferences_notebook), 6);

  preferences_working_dir_vbox = gtk_vbox_new (FALSE, 18);
  gtk_widget_set_name (preferences_working_dir_vbox, "preferences_working_dir_vbox");
  gtk_widget_show (preferences_working_dir_vbox);
  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_working_dir_vbox);
  gtk_container_set_border_width (GTK_CONTAINER (preferences_working_dir_vbox), 12);

  preferences_working_dir_vbox_vbox = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (preferences_working_dir_vbox_vbox, "preferences_working_dir_vbox_vbox");
  gtk_widget_show (preferences_working_dir_vbox_vbox);
  gtk_box_pack_start (GTK_BOX (preferences_working_dir_vbox), preferences_working_dir_vbox_vbox, TRUE, TRUE, 0);

  preferences_working_dir_label = gtk_label_new (_("<b>Package and data storage</b>"));
  gtk_widget_set_name (preferences_working_dir_label, "preferences_working_dir_label");
  gtk_widget_show (preferences_working_dir_label);
  gtk_box_pack_start (GTK_BOX (preferences_working_dir_vbox_vbox), preferences_working_dir_label, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (preferences_working_dir_label), TRUE);
  gtk_misc_set_alignment (GTK_MISC (preferences_working_dir_label), 0, 0.5);

  hbox3 = gtk_hbox_new (FALSE, 0);
  gtk_widget_set_name (hbox3, "hbox3");
  gtk_widget_show (hbox3);
  gtk_box_pack_start (GTK_BOX (preferences_working_dir_vbox_vbox), hbox3, TRUE, TRUE, 0);

  label72 = gtk_label_new (_("    "));
  gtk_widget_set_name (label72, "label72");
  gtk_widget_show (label72);
  gtk_box_pack_start (GTK_BOX (hbox3), label72, FALSE, FALSE, 0);

  vbox12 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox12, "vbox12");
  gtk_widget_show (vbox12);
  gtk_box_pack_start (GTK_BOX (hbox3), vbox12, FALSE, FALSE, 0);

  preferences_working_dir_entry = gtk_entry_new ();
  gtk_widget_set_name (preferences_working_dir_entry, "preferences_working_dir_entry");
  gtk_widget_show (preferences_working_dir_entry);
  gtk_box_pack_start (GTK_BOX (vbox12), preferences_working_dir_entry, FALSE, FALSE, 0);

  label50 = gtk_label_new (_("Working Directory"));
  gtk_widget_set_name (label50, "label50");
  gtk_widget_show (label50);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 0), label50);
  gtk_label_set_justify (GTK_LABEL (label50), GTK_JUSTIFY_CENTER);

  preferences_sources_vbox = gtk_vbox_new (FALSE, 18);
  gtk_widget_set_name (preferences_sources_vbox, "preferences_sources_vbox");
  gtk_widget_show (preferences_sources_vbox);
  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_sources_vbox);
  gtk_container_set_border_width (GTK_CONTAINER (preferences_sources_vbox), 12);

  vbox57 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox57, "vbox57");
  gtk_widget_show (vbox57);
  gtk_box_pack_start (GTK_BOX (preferences_sources_vbox), vbox57, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (vbox57), 12);

  label161 = gtk_label_new (_("<b>Exclude List</b>"));
  gtk_widget_set_name (label161, "label161");
  gtk_widget_show (label161);
  gtk_box_pack_start (GTK_BOX (vbox57), label161, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label161), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label161), 0, 0.5);

  hbox92 = gtk_hbox_new (FALSE, 0);
  gtk_widget_set_name (hbox92, "hbox92");
  gtk_widget_show (hbox92);
  gtk_box_pack_start (GTK_BOX (vbox57), hbox92, TRUE, TRUE, 0);
  gtk_widget_set_size_request (hbox92, -1, 174);

  label162 = gtk_label_new (_("    "));
  gtk_widget_set_name (label162, "label162");
  gtk_widget_show (label162);
  gtk_box_pack_start (GTK_BOX (hbox92), label162, FALSE, FALSE, 0);

  hbox93 = gtk_hbox_new (FALSE, 12);
  gtk_widget_set_name (hbox93, "hbox93");
  gtk_widget_show (hbox93);
  gtk_box_pack_start (GTK_BOX (hbox92), hbox93, TRUE, TRUE, 0);

  scrolledwindow16 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_set_name (scrolledwindow16, "scrolledwindow16");
  gtk_widget_show (scrolledwindow16);
  gtk_box_pack_start (GTK_BOX (hbox93), scrolledwindow16, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow16), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow16), GTK_SHADOW_IN);

  preferences_sources_treeview = gtk_tree_view_new ();
  gtk_widget_set_name (preferences_sources_treeview, "preferences_sources_treeview");
  gtk_widget_show (preferences_sources_treeview);
  gtk_container_add (GTK_CONTAINER (scrolledwindow16), preferences_sources_treeview);
  gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (preferences_sources_treeview), FALSE);
  gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (preferences_sources_treeview), TRUE);

  vbox58 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox58, "vbox58");
  gtk_widget_show (vbox58);
  gtk_box_pack_start (GTK_BOX (hbox93), vbox58, FALSE, FALSE, 0);

  preferences_remove_source_button = gtk_button_new_from_stock ("gtk-remove");
  gtk_widget_set_name (preferences_remove_source_button, "preferences_remove_source_button");
  gtk_widget_show (preferences_remove_source_button);
  gtk_box_pack_start (GTK_BOX (vbox58), preferences_remove_source_button, FALSE, FALSE, 0);

  hbox94 = gtk_hbox_new (FALSE, 2);
  gtk_widget_set_name (hbox94, "hbox94");
  gtk_widget_show (hbox94);
  gtk_box_pack_start (GTK_BOX (vbox57), hbox94, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox94), 6);

  label163 = gtk_label_new (_("<span weight=\"bold\">SOURCE=</span>"));
  gtk_widget_set_name (label163, "label163");
  gtk_widget_show (label163);
  gtk_box_pack_start (GTK_BOX (hbox94), label163, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label163), TRUE);

  new_source_entry = gtk_entry_new ();
  gtk_widget_set_name (new_source_entry, "new_source_entry");
  gtk_widget_show (new_source_entry);
  gtk_box_pack_start (GTK_BOX (hbox94), new_source_entry, TRUE, TRUE, 0);

  preferences_add_source_button = gtk_button_new_from_stock ("gtk-add");
  gtk_widget_set_name (preferences_add_source_button, "preferences_add_source_button");
  gtk_widget_show (preferences_add_source_button);
  gtk_box_pack_start (GTK_BOX (hbox94), preferences_add_source_button, FALSE, FALSE, 0);

  label160 = gtk_label_new (_("Sources"));
  gtk_widget_set_name (label160, "label160");
  gtk_widget_show (label160);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 1), label160);

  preferences_exclude_vbox = gtk_vbox_new (FALSE, 18);
  gtk_widget_set_name (preferences_exclude_vbox, "preferences_exclude_vbox");
  gtk_widget_show (preferences_exclude_vbox);
  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_exclude_vbox);
  gtk_container_set_border_width (GTK_CONTAINER (preferences_exclude_vbox), 12);

  preferences_exclude_vbox_vbox = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (preferences_exclude_vbox_vbox, "preferences_exclude_vbox_vbox");
  gtk_widget_show (preferences_exclude_vbox_vbox);
  gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox), preferences_exclude_vbox_vbox, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (preferences_exclude_vbox_vbox), 12);

  preferences_exclude_label = gtk_label_new (_("<b>Exclude List</b>"));
  gtk_widget_set_name (preferences_exclude_label, "preferences_exclude_label");
  gtk_widget_show (preferences_exclude_label);
  gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox_vbox), preferences_exclude_label, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (preferences_exclude_label), TRUE);
  gtk_misc_set_alignment (GTK_MISC (preferences_exclude_label), 0, 0.5);

  hbox81 = gtk_hbox_new (FALSE, 0);
  gtk_widget_set_name (hbox81, "hbox81");
  gtk_widget_show (hbox81);
  gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox_vbox), hbox81, TRUE, TRUE, 0);
  gtk_widget_set_size_request (hbox81, -1, 174);

  label140 = gtk_label_new (_("    "));
  gtk_widget_set_name (label140, "label140");
  gtk_widget_show (label140);
  gtk_box_pack_start (GTK_BOX (hbox81), label140, FALSE, FALSE, 0);

  hbox82 = gtk_hbox_new (FALSE, 12);
  gtk_widget_set_name (hbox82, "hbox82");
  gtk_widget_show (hbox82);
  gtk_box_pack_start (GTK_BOX (hbox81), hbox82, TRUE, TRUE, 0);

  scrolledwindow12 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_set_name (scrolledwindow12, "scrolledwindow12");
  gtk_widget_show (scrolledwindow12);
  gtk_box_pack_start (GTK_BOX (hbox82), scrolledwindow12, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow12), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow12), GTK_SHADOW_IN);

  preferences_exclude_treeview = gtk_tree_view_new ();
  gtk_widget_set_name (preferences_exclude_treeview, "preferences_exclude_treeview");
  gtk_widget_show (preferences_exclude_treeview);
  gtk_container_add (GTK_CONTAINER (scrolledwindow12), preferences_exclude_treeview);
  gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (preferences_exclude_treeview), FALSE);
  gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (preferences_exclude_treeview), TRUE);

  vbox42 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox42, "vbox42");
  gtk_widget_show (vbox42);
  gtk_box_pack_start (GTK_BOX (hbox82), vbox42, FALSE, FALSE, 0);

  preferences_remove_exclude_button = gtk_button_new_from_stock ("gtk-remove");
  gtk_widget_set_name (preferences_remove_exclude_button, "preferences_remove_exclude_button");
  gtk_widget_show (preferences_remove_exclude_button);
  gtk_box_pack_start (GTK_BOX (vbox42), preferences_remove_exclude_button, FALSE, FALSE, 0);

  hbox95 = gtk_hbox_new (FALSE, 2);
  gtk_widget_set_name (hbox95, "hbox95");
  gtk_widget_show (hbox95);
  gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox_vbox), hbox95, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox95), 6);

  label164 = gtk_label_new (_("<span weight=\"bold\">Exclude Expression:</span>"));
  gtk_widget_set_name (label164, "label164");
  gtk_widget_show (label164);
  gtk_box_pack_start (GTK_BOX (hbox95), label164, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label164), TRUE);

  new_exclude_entry = gtk_entry_new ();
  gtk_widget_set_name (new_exclude_entry, "new_exclude_entry");
  gtk_widget_show (new_exclude_entry);
  gtk_box_pack_start (GTK_BOX (hbox95), new_exclude_entry, TRUE, TRUE, 0);

  preferences_add_exclude_button = gtk_button_new_from_stock ("gtk-add");
  gtk_widget_set_name (preferences_add_exclude_button, "preferences_add_exclude_button");
  gtk_widget_show (preferences_add_exclude_button);
  gtk_box_pack_start (GTK_BOX (hbox95), preferences_add_exclude_button, FALSE, FALSE, 0);

  label51 = gtk_label_new (_("Excludes"));
  gtk_widget_set_name (label51, "label51");
  gtk_widget_show (label51);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 2), label51);
  gtk_label_set_justify (GTK_LABEL (label51), GTK_JUSTIFY_CENTER);

  preferences_hbuttonbox = gtk_hbutton_box_new ();
  gtk_widget_set_name (preferences_hbuttonbox, "preferences_hbuttonbox");
  gtk_widget_show (preferences_hbuttonbox);
  gtk_box_pack_start (GTK_BOX (preferences_vbox), preferences_hbuttonbox, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (preferences_hbuttonbox), 6);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (preferences_hbuttonbox), GTK_BUTTONBOX_END);
  gtk_box_set_spacing (GTK_BOX (preferences_hbuttonbox), 6);

  preferences_close_button = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_set_name (preferences_close_button, "preferences_close_button");
  gtk_widget_show (preferences_close_button);
  gtk_container_add (GTK_CONTAINER (preferences_hbuttonbox), preferences_close_button);
  GTK_WIDGET_SET_FLAGS (preferences_close_button, GTK_CAN_DEFAULT);

  preferences_ok_button = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_set_name (preferences_ok_button, "preferences_ok_button");
  gtk_widget_show (preferences_ok_button);
  gtk_container_add (GTK_CONTAINER (preferences_hbuttonbox), preferences_ok_button);
  GTK_WIDGET_SET_FLAGS (preferences_ok_button, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) window_preferences, "destroy_event",
                    G_CALLBACK (gtk_widget_destroy),
                    NULL);
  g_signal_connect_swapped ((gpointer) preferences_remove_source_button, "clicked",
                            G_CALLBACK (preferences_sources_remove),
                            GTK_OBJECT (window_preferences));
  g_signal_connect_swapped ((gpointer) preferences_add_source_button, "clicked",
                            G_CALLBACK (preferences_sources_add),
                            GTK_OBJECT (window_preferences));
  g_signal_connect_swapped ((gpointer) preferences_remove_exclude_button, "clicked",
                            G_CALLBACK (preferences_exclude_remove),
                            GTK_OBJECT (window_preferences));
  g_signal_connect_swapped ((gpointer) preferences_add_exclude_button, "clicked",
                            G_CALLBACK (preferences_exclude_add),
                            GTK_OBJECT (window_preferences));
  g_signal_connect_swapped ((gpointer) preferences_close_button, "clicked",
                            G_CALLBACK (gtk_widget_destroy),
                            GTK_OBJECT (window_preferences));
  g_signal_connect_swapped ((gpointer) preferences_ok_button, "clicked",
                            G_CALLBACK (preferences_on_ok_clicked),
                            GTK_OBJECT (window_preferences));

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (window_preferences, window_preferences, "window_preferences");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_vbox, "preferences_vbox");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_notebook, "preferences_notebook");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_vbox, "preferences_working_dir_vbox");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_vbox_vbox, "preferences_working_dir_vbox_vbox");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_label, "preferences_working_dir_label");
  GLADE_HOOKUP_OBJECT (window_preferences, hbox3, "hbox3");
  GLADE_HOOKUP_OBJECT (window_preferences, label72, "label72");
  GLADE_HOOKUP_OBJECT (window_preferences, vbox12, "vbox12");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_entry, "preferences_working_dir_entry");
  GLADE_HOOKUP_OBJECT (window_preferences, label50, "label50");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_sources_vbox, "preferences_sources_vbox");
  GLADE_HOOKUP_OBJECT (window_preferences, vbox57, "vbox57");
  GLADE_HOOKUP_OBJECT (window_preferences, label161, "label161");
  GLADE_HOOKUP_OBJECT (window_preferences, hbox92, "hbox92");
  GLADE_HOOKUP_OBJECT (window_preferences, label162, "label162");
  GLADE_HOOKUP_OBJECT (window_preferences, hbox93, "hbox93");
  GLADE_HOOKUP_OBJECT (window_preferences, scrolledwindow16, "scrolledwindow16");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_sources_treeview, "preferences_sources_treeview");
  GLADE_HOOKUP_OBJECT (window_preferences, vbox58, "vbox58");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_remove_source_button, "preferences_remove_source_button");
  GLADE_HOOKUP_OBJECT (window_preferences, hbox94, "hbox94");
  GLADE_HOOKUP_OBJECT (window_preferences, label163, "label163");
  GLADE_HOOKUP_OBJECT (window_preferences, new_source_entry, "new_source_entry");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_add_source_button, "preferences_add_source_button");
  GLADE_HOOKUP_OBJECT (window_preferences, label160, "label160");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_vbox, "preferences_exclude_vbox");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_vbox_vbox, "preferences_exclude_vbox_vbox");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_label, "preferences_exclude_label");
  GLADE_HOOKUP_OBJECT (window_preferences, hbox81, "hbox81");
  GLADE_HOOKUP_OBJECT (window_preferences, label140, "label140");
  GLADE_HOOKUP_OBJECT (window_preferences, hbox82, "hbox82");
  GLADE_HOOKUP_OBJECT (window_preferences, scrolledwindow12, "scrolledwindow12");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_treeview, "preferences_exclude_treeview");
  GLADE_HOOKUP_OBJECT (window_preferences, vbox42, "vbox42");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_remove_exclude_button, "preferences_remove_exclude_button");
  GLADE_HOOKUP_OBJECT (window_preferences, hbox95, "hbox95");
  GLADE_HOOKUP_OBJECT (window_preferences, label164, "label164");
  GLADE_HOOKUP_OBJECT (window_preferences, new_exclude_entry, "new_exclude_entry");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_add_exclude_button, "preferences_add_exclude_button");
  GLADE_HOOKUP_OBJECT (window_preferences, label51, "label51");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_hbuttonbox, "preferences_hbuttonbox");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_close_button, "preferences_close_button");
  GLADE_HOOKUP_OBJECT (window_preferences, preferences_ok_button, "preferences_ok_button");

  return window_preferences;
}

GtkWidget*
create_gslapt (void)
{
  GtkWidget *gslapt;
  GtkWidget *gslapt_vbox;
  GtkWidget *top_menubar;
  GtkWidget *actions2;
  GtkWidget *actions2_menu;
  GtkWidget *update2;
  GtkWidget *image844;
  GtkWidget *upgrade2;
  GtkWidget *image845;
  GtkWidget *dist_upgrade2;
  GtkWidget *image846;
  GtkWidget *clean1;
  GtkWidget *image847;
  GtkWidget *separator6;
  GtkWidget *execute2;
  GtkWidget *image848;
  GtkWidget *separator5;
  GtkWidget *quit;
  GtkWidget *settings1;
  GtkWidget *settings1_menu;
  GtkWidget *preferences2;
  GtkWidget *image849;
  GtkWidget *help3;
  GtkWidget *help3_menu;
  GtkWidget *about3;
  GtkWidget *image850;
  GtkWidget *action_toolbar;
  GtkIconSize tmp_toolbar_icon_size;
  GtkWidget *tmp_image;
  GtkWidget *action_bar_update_button;
  GtkWidget *action_bar_upgrade_button;
  GtkWidget *action_bar_dist_upgrade_button;
  GtkWidget *action_bar_clean_button;
  GtkWidget *separatortoolitem1;
  GtkWidget *action_bar_execute_button;
  GtkWidget *separatortoolitem2;
  GtkWidget *action_bar_quit_button;
  GtkWidget *pkg_notebook_info_actionbox;
  GtkWidget *pkg_notebook;
  GtkWidget *search_tab_vbox;
  GtkWidget *search_tab_search_align;
  GtkWidget *search_tab_search_hbox;
  GtkWidget *search_tab_search_entry;
  GtkWidget *search_tab_search_button;
  GtkWidget *search_tab_clear_button;
  GtkWidget *search_tab_search_results_scrolled;
  GtkWidget *pkg_listing_treeview;
  GtkWidget *search_tab;
  GtkWidget *pkg_info_action_hbox;
  GtkWidget *pkg_info_frame;
  GtkWidget *pkg_info_action_table;
  GtkWidget *pkg_info_action_name_label;
  GtkWidget *pkg_info_action_conflicts_entry;
  GtkWidget *pkg_info_action_mirror_label;
  GtkWidget *pkg_info_action_location_label;
  GtkWidget *pkg_info_action_version_label;
  GtkWidget *pkg_info_action_size_label;
  GtkWidget *pkg_info_action_isize_label;
  GtkWidget *pkg_info_action_name_entry;
  GtkWidget *pkg_info_action_mirror_entry;
  GtkWidget *pkg_info_action_location_entry;
  GtkWidget *pkg_info_action_version_entry;
  GtkWidget *pkg_info_action_size_entry;
  GtkWidget *pkg_info_action_isize_entry;
  GtkWidget *pkg_info_action_required_entry;
  GtkWidget *pkg_info_action_description_entry;
  GtkWidget *pkg_info_action_suggests_entry;
  GtkWidget *pkg_info_action_description_label;
  GtkWidget *pkg_info_action_conflicts_label;
  GtkWidget *pkg_info_action_suggests_label;
  GtkWidget *pkg_info_action_required_label;
  GtkWidget *pkg_info_label;
  GtkWidget *pkg_action_frame;
  GtkWidget *pkg_action_vbox;
  GtkWidget *pkg_info_action_install_upgrade_button;
  GtkWidget *alignment27;
  GtkWidget *hbox78;
  GtkWidget *image746;
  GtkWidget *label131;
  GtkWidget *pkg_info_action_remove_button;
  GtkWidget *alignment28;
  GtkWidget *hbox79;
  GtkWidget *image747;
  GtkWidget *label132;
  GtkWidget *pkg_info_action_exclude_button;
  GtkWidget *alignment29;
  GtkWidget *hbox80;
  GtkWidget *image748;
  GtkWidget *label133;
  GtkWidget *pkg_action_label;
  GtkWidget *bottom_statusbar;
  GtkAccelGroup *accel_group;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  accel_group = gtk_accel_group_new ();

  gslapt = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_name (gslapt, "gslapt");
  gtk_window_set_title (GTK_WINDOW (gslapt), _("Gslapt"));
  gtk_window_set_default_size (GTK_WINDOW (gslapt), 600, 400);
  gtk_window_set_gravity (GTK_WINDOW (gslapt), GDK_GRAVITY_CENTER);

  gslapt_vbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (gslapt_vbox, "gslapt_vbox");
  gtk_widget_show (gslapt_vbox);
  gtk_container_add (GTK_CONTAINER (gslapt), gslapt_vbox);

  top_menubar = gtk_menu_bar_new ();
  gtk_widget_set_name (top_menubar, "top_menubar");
  gtk_widget_show (top_menubar);
  gtk_box_pack_start (GTK_BOX (gslapt_vbox), top_menubar, FALSE, FALSE, 0);

  actions2 = gtk_menu_item_new_with_mnemonic (_("_Actions"));
  gtk_widget_set_name (actions2, "actions2");
  gtk_widget_show (actions2);
  gtk_container_add (GTK_CONTAINER (top_menubar), actions2);

  actions2_menu = gtk_menu_new ();
  gtk_widget_set_name (actions2_menu, "actions2_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (actions2), actions2_menu);

  update2 = gtk_image_menu_item_new_with_mnemonic (_("_Update"));
  gtk_widget_set_name (update2, "update2");
  gtk_widget_show (update2);
  gtk_container_add (GTK_CONTAINER (actions2_menu), update2);
  gtk_widget_add_accelerator (update2, "activate", accel_group,
                              GDK_u, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image844 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image844, "image844");
  gtk_widget_show (image844);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (update2), image844);

  upgrade2 = gtk_image_menu_item_new_with_mnemonic (_("Up_grade"));
  gtk_widget_set_name (upgrade2, "upgrade2");
  gtk_widget_show (upgrade2);
  gtk_container_add (GTK_CONTAINER (actions2_menu), upgrade2);
  gtk_widget_add_accelerator (upgrade2, "activate", accel_group,
                              GDK_g, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image845 = gtk_image_new_from_stock ("gtk-goto-top", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image845, "image845");
  gtk_widget_show (image845);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (upgrade2), image845);

  dist_upgrade2 = gtk_image_menu_item_new_with_mnemonic (_("_Dist-Upgrade"));
  gtk_widget_set_name (dist_upgrade2, "dist_upgrade2");
  gtk_widget_show (dist_upgrade2);
  gtk_container_add (GTK_CONTAINER (actions2_menu), dist_upgrade2);
  gtk_widget_add_accelerator (dist_upgrade2, "activate", accel_group,
                              GDK_d, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image846 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image846, "image846");
  gtk_widget_show (image846);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (dist_upgrade2), image846);

  clean1 = gtk_image_menu_item_new_with_mnemonic (_("_Clean"));
  gtk_widget_set_name (clean1, "clean1");
  gtk_widget_show (clean1);
  gtk_container_add (GTK_CONTAINER (actions2_menu), clean1);
  gtk_widget_add_accelerator (clean1, "activate", accel_group,
                              GDK_c, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image847 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image847, "image847");
  gtk_widget_show (image847);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (clean1), image847);

  separator6 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator6, "separator6");
  gtk_widget_show (separator6);
  gtk_container_add (GTK_CONTAINER (actions2_menu), separator6);
  gtk_widget_set_sensitive (separator6, FALSE);

  execute2 = gtk_image_menu_item_new_with_mnemonic (_("_Execute"));
  gtk_widget_set_name (execute2, "execute2");
  gtk_widget_show (execute2);
  gtk_container_add (GTK_CONTAINER (actions2_menu), execute2);
  gtk_widget_add_accelerator (execute2, "activate", accel_group,
                              GDK_e, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image848 = gtk_image_new_from_stock ("gtk-yes", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image848, "image848");
  gtk_widget_show (image848);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (execute2), image848);

  separator5 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator5, "separator5");
  gtk_widget_show (separator5);
  gtk_container_add (GTK_CONTAINER (actions2_menu), separator5);
  gtk_widget_set_sensitive (separator5, FALSE);

  quit = gtk_image_menu_item_new_from_stock ("gtk-quit", accel_group);
  gtk_widget_set_name (quit, "quit");
  gtk_widget_show (quit);
  gtk_container_add (GTK_CONTAINER (actions2_menu), quit);

  settings1 = gtk_menu_item_new_with_mnemonic (_("_Settings"));
  gtk_widget_set_name (settings1, "settings1");
  gtk_widget_show (settings1);
  gtk_container_add (GTK_CONTAINER (top_menubar), settings1);

  settings1_menu = gtk_menu_new ();
  gtk_widget_set_name (settings1_menu, "settings1_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (settings1), settings1_menu);

  preferences2 = gtk_image_menu_item_new_with_mnemonic (_("_Preferences"));
  gtk_widget_set_name (preferences2, "preferences2");
  gtk_widget_show (preferences2);
  gtk_container_add (GTK_CONTAINER (settings1_menu), preferences2);
  gtk_widget_add_accelerator (preferences2, "activate", accel_group,
                              GDK_p, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image849 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image849, "image849");
  gtk_widget_show (image849);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (preferences2), image849);

  help3 = gtk_menu_item_new_with_mnemonic (_("_Help"));
  gtk_widget_set_name (help3, "help3");
  gtk_widget_show (help3);
  gtk_container_add (GTK_CONTAINER (top_menubar), help3);

  help3_menu = gtk_menu_new ();
  gtk_widget_set_name (help3_menu, "help3_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (help3), help3_menu);

  about3 = gtk_image_menu_item_new_with_mnemonic (_("About"));
  gtk_widget_set_name (about3, "about3");
  gtk_widget_show (about3);
  gtk_container_add (GTK_CONTAINER (help3_menu), about3);

  image850 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image850, "image850");
  gtk_widget_show (image850);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about3), image850);

  action_toolbar = gtk_toolbar_new ();
  gtk_widget_set_name (action_toolbar, "action_toolbar");
  gtk_widget_show (action_toolbar);
  gtk_box_pack_start (GTK_BOX (gslapt_vbox), action_toolbar, FALSE, FALSE, 0);
  gtk_toolbar_set_style (GTK_TOOLBAR (action_toolbar), GTK_TOOLBAR_BOTH);
  tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (action_toolbar));

  tmp_image = gtk_image_new_from_stock ("gtk-refresh", tmp_toolbar_icon_size);
  gtk_widget_show (tmp_image);
  action_bar_update_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Update"));
  gtk_widget_set_name (action_bar_update_button, "action_bar_update_button");
  gtk_widget_show (action_bar_update_button);
  gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_update_button);
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_update_button), tooltips, _("Update local package cache"), NULL);

  tmp_image = gtk_image_new_from_stock ("gtk-goto-top", tmp_toolbar_icon_size);
  gtk_widget_show (tmp_image);
  action_bar_upgrade_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Upgrade All"));
  gtk_widget_set_name (action_bar_upgrade_button, "action_bar_upgrade_button");
  gtk_widget_show (action_bar_upgrade_button);
  gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_upgrade_button);
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_upgrade_button), tooltips, _("Upgrade installed packages"), NULL);

  tmp_image = gtk_image_new_from_stock ("gtk-go-up", tmp_toolbar_icon_size);
  gtk_widget_show (tmp_image);
  action_bar_dist_upgrade_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Dist-Upgrade"));
  gtk_widget_set_name (action_bar_dist_upgrade_button, "action_bar_dist_upgrade_button");
  gtk_widget_show (action_bar_dist_upgrade_button);
  gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_dist_upgrade_button);
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_dist_upgrade_button), tooltips, _("Upgrade to newer release"), NULL);

  tmp_image = gtk_image_new_from_stock ("gtk-clear", tmp_toolbar_icon_size);
  gtk_widget_show (tmp_image);
  action_bar_clean_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Clean"));
  gtk_widget_set_name (action_bar_clean_button, "action_bar_clean_button");
  gtk_widget_show (action_bar_clean_button);
  gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_clean_button);
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_clean_button), tooltips, _("Clean archived packages off filesystem"), NULL);

  separatortoolitem1 = (GtkWidget*) gtk_separator_tool_item_new ();
  gtk_widget_set_name (separatortoolitem1, "separatortoolitem1");
  gtk_widget_show (separatortoolitem1);
  gtk_container_add (GTK_CONTAINER (action_toolbar), separatortoolitem1);

  tmp_image = gtk_image_new_from_stock ("gtk-yes", tmp_toolbar_icon_size);
  gtk_widget_show (tmp_image);
  action_bar_execute_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Execute"));
  gtk_widget_set_name (action_bar_execute_button, "action_bar_execute_button");
  gtk_widget_show (action_bar_execute_button);
  gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_execute_button);
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_execute_button), tooltips, _("Execute all scheduled actions in current transaction"), NULL);

  separatortoolitem2 = (GtkWidget*) gtk_separator_tool_item_new ();
  gtk_widget_set_name (separatortoolitem2, "separatortoolitem2");
  gtk_widget_show (separatortoolitem2);
  gtk_container_add (GTK_CONTAINER (action_toolbar), separatortoolitem2);

  action_bar_quit_button = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-quit");
  gtk_widget_set_name (action_bar_quit_button, "action_bar_quit_button");
  gtk_widget_show (action_bar_quit_button);
  gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_quit_button);
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_quit_button), tooltips, _("Quit"), NULL);

  pkg_notebook_info_actionbox = gtk_vbox_new (TRUE, 0);
  gtk_widget_set_name (pkg_notebook_info_actionbox, "pkg_notebook_info_actionbox");
  gtk_widget_show (pkg_notebook_info_actionbox);
  gtk_box_pack_start (GTK_BOX (gslapt_vbox), pkg_notebook_info_actionbox, TRUE, TRUE, 0);

  pkg_notebook = gtk_notebook_new ();
  gtk_widget_set_name (pkg_notebook, "pkg_notebook");
  gtk_widget_show (pkg_notebook);
  gtk_box_pack_start (GTK_BOX (pkg_notebook_info_actionbox), pkg_notebook, TRUE, TRUE, 0);
  gtk_notebook_set_scrollable (GTK_NOTEBOOK (pkg_notebook), TRUE);

  search_tab_vbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (search_tab_vbox, "search_tab_vbox");
  gtk_widget_show (search_tab_vbox);
  gtk_container_add (GTK_CONTAINER (pkg_notebook), search_tab_vbox);

  search_tab_search_align = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_set_name (search_tab_search_align, "search_tab_search_align");
  gtk_widget_show (search_tab_search_align);
  gtk_box_pack_start (GTK_BOX (search_tab_vbox), search_tab_search_align, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (search_tab_search_align), 1);

  search_tab_search_hbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_set_name (search_tab_search_hbox, "search_tab_search_hbox");
  gtk_widget_show (search_tab_search_hbox);
  gtk_container_add (GTK_CONTAINER (search_tab_search_align), search_tab_search_hbox);

  search_tab_search_entry = gtk_entry_new ();
  gtk_widget_set_name (search_tab_search_entry, "search_tab_search_entry");
  gtk_widget_show (search_tab_search_entry);
  gtk_box_pack_start (GTK_BOX (search_tab_search_hbox), search_tab_search_entry, TRUE, TRUE, 0);

  search_tab_search_button = gtk_button_new_with_mnemonic (_("Search"));
  gtk_widget_set_name (search_tab_search_button, "search_tab_search_button");
  gtk_widget_show (search_tab_search_button);
  gtk_box_pack_start (GTK_BOX (search_tab_search_hbox), search_tab_search_button, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, search_tab_search_button, _("Search for expression"), NULL);

  search_tab_clear_button = gtk_button_new_with_mnemonic (_("Clear"));
  gtk_widget_set_name (search_tab_clear_button, "search_tab_clear_button");
  gtk_widget_show (search_tab_clear_button);
  gtk_box_pack_start (GTK_BOX (search_tab_search_hbox), search_tab_clear_button, FALSE, FALSE, 0);

  search_tab_search_results_scrolled = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_set_name (search_tab_search_results_scrolled, "search_tab_search_results_scrolled");
  gtk_widget_show (search_tab_search_results_scrolled);
  gtk_box_pack_start (GTK_BOX (search_tab_vbox), search_tab_search_results_scrolled, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (search_tab_search_results_scrolled), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);

  pkg_listing_treeview = gtk_tree_view_new ();
  gtk_widget_set_name (pkg_listing_treeview, "pkg_listing_treeview");
  gtk_widget_show (pkg_listing_treeview);
  gtk_container_add (GTK_CONTAINER (search_tab_search_results_scrolled), pkg_listing_treeview);
  gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (pkg_listing_treeview), TRUE);
  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (pkg_listing_treeview), TRUE);

  search_tab = gtk_label_new_with_mnemonic (_("Packages"));
  gtk_widget_set_name (search_tab, "search_tab");
  gtk_widget_show (search_tab);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (pkg_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (pkg_notebook), 0), search_tab);

  pkg_info_action_hbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_set_name (pkg_info_action_hbox, "pkg_info_action_hbox");
  gtk_widget_show (pkg_info_action_hbox);
  gtk_box_pack_start (GTK_BOX (pkg_notebook_info_actionbox), pkg_info_action_hbox, TRUE, TRUE, 0);

  pkg_info_frame = gtk_frame_new (NULL);
  gtk_widget_set_name (pkg_info_frame, "pkg_info_frame");
  gtk_widget_show (pkg_info_frame);
  gtk_box_pack_start (GTK_BOX (pkg_info_action_hbox), pkg_info_frame, TRUE, TRUE, 0);

  pkg_info_action_table = gtk_table_new (10, 2, FALSE);
  gtk_widget_set_name (pkg_info_action_table, "pkg_info_action_table");
  gtk_widget_show (pkg_info_action_table);
  gtk_container_add (GTK_CONTAINER (pkg_info_frame), pkg_info_action_table);
  gtk_container_set_border_width (GTK_CONTAINER (pkg_info_action_table), 1);
  gtk_table_set_row_spacings (GTK_TABLE (pkg_info_action_table), 2);
  gtk_table_set_col_spacings (GTK_TABLE (pkg_info_action_table), 2);

  pkg_info_action_name_label = gtk_label_new (_("Name"));
  gtk_widget_set_name (pkg_info_action_name_label, "pkg_info_action_name_label");
  gtk_widget_show (pkg_info_action_name_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_name_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_name_label), 0, 0.5);

  pkg_info_action_conflicts_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_conflicts_entry, "pkg_info_action_conflicts_entry");
  gtk_widget_show (pkg_info_action_conflicts_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_conflicts_entry, 1, 2, 7, 8,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_conflicts_entry), FALSE);

  pkg_info_action_mirror_label = gtk_label_new (_("Mirror"));
  gtk_widget_set_name (pkg_info_action_mirror_label, "pkg_info_action_mirror_label");
  gtk_widget_show (pkg_info_action_mirror_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_mirror_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_mirror_label), 0, 0.5);

  pkg_info_action_location_label = gtk_label_new (_("Location"));
  gtk_widget_set_name (pkg_info_action_location_label, "pkg_info_action_location_label");
  gtk_widget_show (pkg_info_action_location_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_location_label, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_location_label), 0, 0.5);

  pkg_info_action_version_label = gtk_label_new (_("Version"));
  gtk_widget_set_name (pkg_info_action_version_label, "pkg_info_action_version_label");
  gtk_widget_show (pkg_info_action_version_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_version_label, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_version_label), 0, 0.5);

  pkg_info_action_size_label = gtk_label_new (_("Size"));
  gtk_widget_set_name (pkg_info_action_size_label, "pkg_info_action_size_label");
  gtk_widget_show (pkg_info_action_size_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_size_label, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_size_label), 0, 0.5);

  pkg_info_action_isize_label = gtk_label_new (_("Installed Size"));
  gtk_widget_set_name (pkg_info_action_isize_label, "pkg_info_action_isize_label");
  gtk_widget_show (pkg_info_action_isize_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_isize_label, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_isize_label), 0, 0.5);

  pkg_info_action_name_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_name_entry, "pkg_info_action_name_entry");
  gtk_widget_show (pkg_info_action_name_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_name_entry, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_name_entry), FALSE);

  pkg_info_action_mirror_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_mirror_entry, "pkg_info_action_mirror_entry");
  gtk_widget_show (pkg_info_action_mirror_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_mirror_entry, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_mirror_entry), FALSE);

  pkg_info_action_location_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_location_entry, "pkg_info_action_location_entry");
  gtk_widget_show (pkg_info_action_location_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_location_entry, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_location_entry), FALSE);

  pkg_info_action_version_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_version_entry, "pkg_info_action_version_entry");
  gtk_widget_show (pkg_info_action_version_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_version_entry, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_version_entry), FALSE);

  pkg_info_action_size_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_size_entry, "pkg_info_action_size_entry");
  gtk_widget_show (pkg_info_action_size_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_size_entry, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_size_entry), FALSE);

  pkg_info_action_isize_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_isize_entry, "pkg_info_action_isize_entry");
  gtk_widget_show (pkg_info_action_isize_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_isize_entry, 1, 2, 5, 6,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_isize_entry), FALSE);

  pkg_info_action_required_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_required_entry, "pkg_info_action_required_entry");
  gtk_widget_show (pkg_info_action_required_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_required_entry, 1, 2, 6, 7,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_required_entry), FALSE);

  pkg_info_action_description_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_description_entry, "pkg_info_action_description_entry");
  gtk_widget_show (pkg_info_action_description_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_description_entry, 1, 2, 9, 10,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_description_entry), FALSE);

  pkg_info_action_suggests_entry = gtk_entry_new ();
  gtk_widget_set_name (pkg_info_action_suggests_entry, "pkg_info_action_suggests_entry");
  gtk_widget_show (pkg_info_action_suggests_entry);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_suggests_entry, 1, 2, 8, 9,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (pkg_info_action_suggests_entry), FALSE);

  pkg_info_action_description_label = gtk_label_new (_("Description"));
  gtk_widget_set_name (pkg_info_action_description_label, "pkg_info_action_description_label");
  gtk_widget_show (pkg_info_action_description_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_description_label, 0, 1, 9, 10,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_description_label), 0, 0.5);

  pkg_info_action_conflicts_label = gtk_label_new (_("Conflicts"));
  gtk_widget_set_name (pkg_info_action_conflicts_label, "pkg_info_action_conflicts_label");
  gtk_widget_show (pkg_info_action_conflicts_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_conflicts_label, 0, 1, 7, 8,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_conflicts_label), 0, 0.5);

  pkg_info_action_suggests_label = gtk_label_new (_("Suggests"));
  gtk_widget_set_name (pkg_info_action_suggests_label, "pkg_info_action_suggests_label");
  gtk_widget_show (pkg_info_action_suggests_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_suggests_label, 0, 1, 8, 9,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_suggests_label), 0, 0.5);

  pkg_info_action_required_label = gtk_label_new (_("Required"));
  gtk_widget_set_name (pkg_info_action_required_label, "pkg_info_action_required_label");
  gtk_widget_show (pkg_info_action_required_label);
  gtk_table_attach (GTK_TABLE (pkg_info_action_table), pkg_info_action_required_label, 0, 1, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (pkg_info_action_required_label), 0, 0.5);

  pkg_info_label = gtk_label_new (_("Package Information"));
  gtk_widget_set_name (pkg_info_label, "pkg_info_label");
  gtk_widget_show (pkg_info_label);
  gtk_frame_set_label_widget (GTK_FRAME (pkg_info_frame), pkg_info_label);

  pkg_action_frame = gtk_frame_new (NULL);
  gtk_widget_set_name (pkg_action_frame, "pkg_action_frame");
  gtk_widget_show (pkg_action_frame);
  gtk_box_pack_start (GTK_BOX (pkg_info_action_hbox), pkg_action_frame, FALSE, TRUE, 0);

  pkg_action_vbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (pkg_action_vbox, "pkg_action_vbox");
  gtk_widget_show (pkg_action_vbox);
  gtk_container_add (GTK_CONTAINER (pkg_action_frame), pkg_action_vbox);

  pkg_info_action_install_upgrade_button = gtk_button_new ();
  gtk_widget_set_name (pkg_info_action_install_upgrade_button, "pkg_info_action_install_upgrade_button");
  gtk_widget_show (pkg_info_action_install_upgrade_button);
  gtk_box_pack_start (GTK_BOX (pkg_action_vbox), pkg_info_action_install_upgrade_button, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, pkg_info_action_install_upgrade_button, _("Install/Upgrade package"), NULL);

  alignment27 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment27, "alignment27");
  gtk_widget_show (alignment27);
  gtk_container_add (GTK_CONTAINER (pkg_info_action_install_upgrade_button), alignment27);

  hbox78 = gtk_hbox_new (FALSE, 2);
  gtk_widget_set_name (hbox78, "hbox78");
  gtk_widget_show (hbox78);
  gtk_container_add (GTK_CONTAINER (alignment27), hbox78);

  image746 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_BUTTON);
  gtk_widget_set_name (image746, "image746");
  gtk_widget_show (image746);
  gtk_box_pack_start (GTK_BOX (hbox78), image746, FALSE, FALSE, 0);

  label131 = gtk_label_new_with_mnemonic (_("Install"));
  gtk_widget_set_name (label131, "label131");
  gtk_widget_show (label131);
  gtk_box_pack_start (GTK_BOX (hbox78), label131, FALSE, FALSE, 0);

  pkg_info_action_remove_button = gtk_button_new ();
  gtk_widget_set_name (pkg_info_action_remove_button, "pkg_info_action_remove_button");
  gtk_widget_show (pkg_info_action_remove_button);
  gtk_box_pack_start (GTK_BOX (pkg_action_vbox), pkg_info_action_remove_button, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, pkg_info_action_remove_button, _("Remove package"), NULL);

  alignment28 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment28, "alignment28");
  gtk_widget_show (alignment28);
  gtk_container_add (GTK_CONTAINER (pkg_info_action_remove_button), alignment28);

  hbox79 = gtk_hbox_new (FALSE, 2);
  gtk_widget_set_name (hbox79, "hbox79");
  gtk_widget_show (hbox79);
  gtk_container_add (GTK_CONTAINER (alignment28), hbox79);

  image747 = gtk_image_new_from_stock ("gtk-stop", GTK_ICON_SIZE_BUTTON);
  gtk_widget_set_name (image747, "image747");
  gtk_widget_show (image747);
  gtk_box_pack_start (GTK_BOX (hbox79), image747, FALSE, FALSE, 0);

  label132 = gtk_label_new_with_mnemonic (_("Remove"));
  gtk_widget_set_name (label132, "label132");
  gtk_widget_show (label132);
  gtk_box_pack_start (GTK_BOX (hbox79), label132, FALSE, FALSE, 0);

  pkg_info_action_exclude_button = gtk_button_new ();
  gtk_widget_set_name (pkg_info_action_exclude_button, "pkg_info_action_exclude_button");
  gtk_widget_show (pkg_info_action_exclude_button);
  gtk_box_pack_start (GTK_BOX (pkg_action_vbox), pkg_info_action_exclude_button, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, pkg_info_action_exclude_button, _("Exclude package"), NULL);

  alignment29 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment29, "alignment29");
  gtk_widget_show (alignment29);
  gtk_container_add (GTK_CONTAINER (pkg_info_action_exclude_button), alignment29);

  hbox80 = gtk_hbox_new (FALSE, 2);
  gtk_widget_set_name (hbox80, "hbox80");
  gtk_widget_show (hbox80);
  gtk_container_add (GTK_CONTAINER (alignment29), hbox80);

  image748 = gtk_image_new_from_stock ("gtk-no", GTK_ICON_SIZE_BUTTON);
  gtk_widget_set_name (image748, "image748");
  gtk_widget_show (image748);
  gtk_box_pack_start (GTK_BOX (hbox80), image748, FALSE, FALSE, 0);

  label133 = gtk_label_new_with_mnemonic (_("Exclude"));
  gtk_widget_set_name (label133, "label133");
  gtk_widget_show (label133);
  gtk_box_pack_start (GTK_BOX (hbox80), label133, FALSE, FALSE, 0);

  pkg_action_label = gtk_label_new (_("Package Action"));
  gtk_widget_set_name (pkg_action_label, "pkg_action_label");
  gtk_widget_show (pkg_action_label);
  gtk_frame_set_label_widget (GTK_FRAME (pkg_action_frame), pkg_action_label);

  bottom_statusbar = gtk_statusbar_new ();
  gtk_widget_set_name (bottom_statusbar, "bottom_statusbar");
  gtk_widget_show (bottom_statusbar);
  gtk_box_pack_start (GTK_BOX (gslapt_vbox), bottom_statusbar, FALSE, FALSE, 0);

  g_signal_connect ((gpointer) gslapt, "destroy",
                    G_CALLBACK (on_gslapt_destroy),
                    NULL);
  g_signal_connect ((gpointer) update2, "activate",
                    G_CALLBACK (update_callback),
                    NULL);
  g_signal_connect ((gpointer) upgrade2, "activate",
                    G_CALLBACK (upgrade_callback),
                    NULL);
  g_signal_connect ((gpointer) dist_upgrade2, "activate",
                    G_CALLBACK (distupgrade_callback),
                    NULL);
  g_signal_connect ((gpointer) clean1, "activate",
                    G_CALLBACK (clean_callback),
                    NULL);
  g_signal_connect ((gpointer) execute2, "activate",
                    G_CALLBACK (execute_callback),
                    NULL);
  g_signal_connect ((gpointer) quit, "activate",
                    G_CALLBACK (on_gslapt_destroy),
                    NULL);
  g_signal_connect ((gpointer) preferences2, "activate",
                    G_CALLBACK (open_preferences),
                    NULL);
  g_signal_connect ((gpointer) about3, "activate",
                    G_CALLBACK (open_about),
                    NULL);
  g_signal_connect_swapped ((gpointer) action_bar_update_button, "clicked",
                            G_CALLBACK (update_callback),
                            GTK_OBJECT (gslapt));
  g_signal_connect_swapped ((gpointer) action_bar_upgrade_button, "clicked",
                            G_CALLBACK (upgrade_callback),
                            GTK_OBJECT (gslapt));
  g_signal_connect_swapped ((gpointer) action_bar_dist_upgrade_button, "clicked",
                            G_CALLBACK (distupgrade_callback),
                            GTK_OBJECT (gslapt));
  g_signal_connect ((gpointer) action_bar_clean_button, "clicked",
                    G_CALLBACK (clean_callback),
                    NULL);
  g_signal_connect_swapped ((gpointer) action_bar_execute_button, "clicked",
                            G_CALLBACK (execute_callback),
                            GTK_OBJECT (gslapt));
  g_signal_connect ((gpointer) action_bar_quit_button, "clicked",
                    G_CALLBACK (on_gslapt_destroy),
                    NULL);
  g_signal_connect_swapped ((gpointer) search_tab_search_button, "clicked",
                            G_CALLBACK (on_search_tab_search_button_clicked),
                            GTK_OBJECT (gslapt));
  g_signal_connect_swapped ((gpointer) search_tab_clear_button, "clicked",
                            G_CALLBACK (on_search_tab_clear_button_clicked),
                            GTK_OBJECT (search_tab_search_entry));
  g_signal_connect_swapped ((gpointer) pkg_info_action_install_upgrade_button, "clicked",
                            G_CALLBACK (add_pkg_for_install),
                            GTK_OBJECT (gslapt));
  g_signal_connect_swapped ((gpointer) pkg_info_action_remove_button, "clicked",
                            G_CALLBACK (add_pkg_for_removal),
                            GTK_OBJECT (gslapt));
  g_signal_connect_swapped ((gpointer) pkg_info_action_exclude_button, "clicked",
                            G_CALLBACK (add_pkg_for_exclude),
                            GTK_OBJECT (gslapt));

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (gslapt, gslapt, "gslapt");
  GLADE_HOOKUP_OBJECT (gslapt, gslapt_vbox, "gslapt_vbox");
  GLADE_HOOKUP_OBJECT (gslapt, top_menubar, "top_menubar");
  GLADE_HOOKUP_OBJECT (gslapt, actions2, "actions2");
  GLADE_HOOKUP_OBJECT (gslapt, actions2_menu, "actions2_menu");
  GLADE_HOOKUP_OBJECT (gslapt, update2, "update2");
  GLADE_HOOKUP_OBJECT (gslapt, image844, "image844");
  GLADE_HOOKUP_OBJECT (gslapt, upgrade2, "upgrade2");
  GLADE_HOOKUP_OBJECT (gslapt, image845, "image845");
  GLADE_HOOKUP_OBJECT (gslapt, dist_upgrade2, "dist_upgrade2");
  GLADE_HOOKUP_OBJECT (gslapt, image846, "image846");
  GLADE_HOOKUP_OBJECT (gslapt, clean1, "clean1");
  GLADE_HOOKUP_OBJECT (gslapt, image847, "image847");
  GLADE_HOOKUP_OBJECT (gslapt, separator6, "separator6");
  GLADE_HOOKUP_OBJECT (gslapt, execute2, "execute2");
  GLADE_HOOKUP_OBJECT (gslapt, image848, "image848");
  GLADE_HOOKUP_OBJECT (gslapt, separator5, "separator5");
  GLADE_HOOKUP_OBJECT (gslapt, quit, "quit");
  GLADE_HOOKUP_OBJECT (gslapt, settings1, "settings1");
  GLADE_HOOKUP_OBJECT (gslapt, settings1_menu, "settings1_menu");
  GLADE_HOOKUP_OBJECT (gslapt, preferences2, "preferences2");
  GLADE_HOOKUP_OBJECT (gslapt, image849, "image849");
  GLADE_HOOKUP_OBJECT (gslapt, help3, "help3");
  GLADE_HOOKUP_OBJECT (gslapt, help3_menu, "help3_menu");
  GLADE_HOOKUP_OBJECT (gslapt, about3, "about3");
  GLADE_HOOKUP_OBJECT (gslapt, image850, "image850");
  GLADE_HOOKUP_OBJECT (gslapt, action_toolbar, "action_toolbar");
  GLADE_HOOKUP_OBJECT (gslapt, action_bar_update_button, "action_bar_update_button");
  GLADE_HOOKUP_OBJECT (gslapt, action_bar_upgrade_button, "action_bar_upgrade_button");
  GLADE_HOOKUP_OBJECT (gslapt, action_bar_dist_upgrade_button, "action_bar_dist_upgrade_button");
  GLADE_HOOKUP_OBJECT (gslapt, action_bar_clean_button, "action_bar_clean_button");
  GLADE_HOOKUP_OBJECT (gslapt, separatortoolitem1, "separatortoolitem1");
  GLADE_HOOKUP_OBJECT (gslapt, action_bar_execute_button, "action_bar_execute_button");
  GLADE_HOOKUP_OBJECT (gslapt, separatortoolitem2, "separatortoolitem2");
  GLADE_HOOKUP_OBJECT (gslapt, action_bar_quit_button, "action_bar_quit_button");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_notebook_info_actionbox, "pkg_notebook_info_actionbox");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_notebook, "pkg_notebook");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab_vbox, "search_tab_vbox");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab_search_align, "search_tab_search_align");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab_search_hbox, "search_tab_search_hbox");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab_search_entry, "search_tab_search_entry");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab_search_button, "search_tab_search_button");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab_clear_button, "search_tab_clear_button");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab_search_results_scrolled, "search_tab_search_results_scrolled");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_listing_treeview, "pkg_listing_treeview");
  GLADE_HOOKUP_OBJECT (gslapt, search_tab, "search_tab");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_hbox, "pkg_info_action_hbox");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_frame, "pkg_info_frame");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_table, "pkg_info_action_table");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_name_label, "pkg_info_action_name_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_conflicts_entry, "pkg_info_action_conflicts_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_mirror_label, "pkg_info_action_mirror_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_location_label, "pkg_info_action_location_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_version_label, "pkg_info_action_version_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_size_label, "pkg_info_action_size_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_isize_label, "pkg_info_action_isize_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_name_entry, "pkg_info_action_name_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_mirror_entry, "pkg_info_action_mirror_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_location_entry, "pkg_info_action_location_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_version_entry, "pkg_info_action_version_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_size_entry, "pkg_info_action_size_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_isize_entry, "pkg_info_action_isize_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_required_entry, "pkg_info_action_required_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_description_entry, "pkg_info_action_description_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_suggests_entry, "pkg_info_action_suggests_entry");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_description_label, "pkg_info_action_description_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_conflicts_label, "pkg_info_action_conflicts_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_suggests_label, "pkg_info_action_suggests_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_required_label, "pkg_info_action_required_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_label, "pkg_info_label");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_action_frame, "pkg_action_frame");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_action_vbox, "pkg_action_vbox");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_install_upgrade_button, "pkg_info_action_install_upgrade_button");
  GLADE_HOOKUP_OBJECT (gslapt, alignment27, "alignment27");
  GLADE_HOOKUP_OBJECT (gslapt, hbox78, "hbox78");
  GLADE_HOOKUP_OBJECT (gslapt, image746, "image746");
  GLADE_HOOKUP_OBJECT (gslapt, label131, "label131");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_remove_button, "pkg_info_action_remove_button");
  GLADE_HOOKUP_OBJECT (gslapt, alignment28, "alignment28");
  GLADE_HOOKUP_OBJECT (gslapt, hbox79, "hbox79");
  GLADE_HOOKUP_OBJECT (gslapt, image747, "image747");
  GLADE_HOOKUP_OBJECT (gslapt, label132, "label132");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_info_action_exclude_button, "pkg_info_action_exclude_button");
  GLADE_HOOKUP_OBJECT (gslapt, alignment29, "alignment29");
  GLADE_HOOKUP_OBJECT (gslapt, hbox80, "hbox80");
  GLADE_HOOKUP_OBJECT (gslapt, image748, "image748");
  GLADE_HOOKUP_OBJECT (gslapt, label133, "label133");
  GLADE_HOOKUP_OBJECT (gslapt, pkg_action_label, "pkg_action_label");
  GLADE_HOOKUP_OBJECT (gslapt, bottom_statusbar, "bottom_statusbar");
  GLADE_HOOKUP_OBJECT_NO_REF (gslapt, tooltips, "tooltips");

  gtk_window_add_accel_group (GTK_WINDOW (gslapt), accel_group);

  return gslapt;
}

GtkWidget*
create_transaction_window (void)
{
  GtkWidget *transaction_window;
  GtkWidget *vbox47;
  GtkWidget *vbox61;
  GtkWidget *hbox97;
  GtkWidget *image852;
  GtkWidget *vbox62;
  GtkWidget *label167;
  GtkWidget *label168;
  GtkWidget *scrolledwindow18;
  GtkWidget *transaction_summary_treeview;
  GtkWidget *download_only_checkbutton;
  GtkWidget *hbuttonbox1;
  GtkWidget *button2;
  GtkWidget *button3;

  transaction_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_name (transaction_window, "transaction_window");
  gtk_container_set_border_width (GTK_CONTAINER (transaction_window), 12);
  gtk_window_set_title (GTK_WINDOW (transaction_window), _("Summary"));
  gtk_window_set_default_size (GTK_WINDOW (transaction_window), 200, 400);
  gtk_window_set_skip_taskbar_hint (GTK_WINDOW (transaction_window), TRUE);
  gtk_window_set_gravity (GTK_WINDOW (transaction_window), GDK_GRAVITY_CENTER);

  vbox47 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox47, "vbox47");
  gtk_widget_show (vbox47);
  gtk_container_add (GTK_CONTAINER (transaction_window), vbox47);

  vbox61 = gtk_vbox_new (FALSE, 2);
  gtk_widget_set_name (vbox61, "vbox61");
  gtk_widget_show (vbox61);
  gtk_box_pack_start (GTK_BOX (vbox47), vbox61, TRUE, TRUE, 2);
  gtk_container_set_border_width (GTK_CONTAINER (vbox61), 6);

  hbox97 = gtk_hbox_new (FALSE, 2);
  gtk_widget_set_name (hbox97, "hbox97");
  gtk_widget_show (hbox97);
  gtk_box_pack_start (GTK_BOX (vbox61), hbox97, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox97), 6);

  image852 = gtk_image_new_from_stock ("gtk-dialog-question", GTK_ICON_SIZE_DIALOG);
  gtk_widget_set_name (image852, "image852");
  gtk_widget_show (image852);
  gtk_box_pack_start (GTK_BOX (hbox97), image852, TRUE, TRUE, 0);
  gtk_misc_set_alignment (GTK_MISC (image852), 0, 0);

  vbox62 = gtk_vbox_new (FALSE, 2);
  gtk_widget_set_name (vbox62, "vbox62");
  gtk_widget_show (vbox62);
  gtk_box_pack_start (GTK_BOX (hbox97), vbox62, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (vbox62), 6);

  label167 = gtk_label_new (_("<span weight=\"bold\" size=\"large\">Apply the folowing changes?</span>"));
  gtk_widget_set_name (label167, "label167");
  gtk_widget_show (label167);
  gtk_box_pack_start (GTK_BOX (vbox62), label167, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label167), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label167), 0, 0);

  label168 = gtk_label_new (_("This is a summary of the changes about to be performed."));
  gtk_widget_set_name (label168, "label168");
  gtk_widget_show (label168);
  gtk_box_pack_start (GTK_BOX (vbox62), label168, FALSE, FALSE, 0);
  gtk_label_set_line_wrap (GTK_LABEL (label168), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label168), 0, 0);
  gtk_misc_set_padding (GTK_MISC (label168), 0, 6);

  scrolledwindow18 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_set_name (scrolledwindow18, "scrolledwindow18");
  gtk_widget_show (scrolledwindow18);
  gtk_box_pack_start (GTK_BOX (vbox61), scrolledwindow18, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow18), 1);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow18), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

  transaction_summary_treeview = gtk_tree_view_new ();
  gtk_widget_set_name (transaction_summary_treeview, "transaction_summary_treeview");
  gtk_widget_show (transaction_summary_treeview);
  gtk_container_add (GTK_CONTAINER (scrolledwindow18), transaction_summary_treeview);
  gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (transaction_summary_treeview), FALSE);
  gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (transaction_summary_treeview), TRUE);

  download_only_checkbutton = gtk_check_button_new_with_mnemonic (_("Download packages only"));
  gtk_widget_set_name (download_only_checkbutton, "download_only_checkbutton");
  gtk_widget_show (download_only_checkbutton);
  gtk_box_pack_start (GTK_BOX (vbox61), download_only_checkbutton, FALSE, TRUE, 0);

  hbuttonbox1 = gtk_hbutton_box_new ();
  gtk_widget_set_name (hbuttonbox1, "hbuttonbox1");
  gtk_widget_show (hbuttonbox1);
  gtk_box_pack_start (GTK_BOX (vbox47), hbuttonbox1, FALSE, TRUE, 1);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 2);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 6);

  button2 = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_set_name (button2, "button2");
  gtk_widget_show (button2);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2);
  GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);

  button3 = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_set_name (button3, "button3");
  gtk_widget_show (button3);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), button3);
  GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) transaction_window, "destroy_event",
                    G_CALLBACK (gtk_widget_destroy),
                    NULL);
  g_signal_connect_swapped ((gpointer) button2, "clicked",
                            G_CALLBACK (gtk_widget_destroy),
                            GTK_OBJECT (transaction_window));
  g_signal_connect_swapped ((gpointer) button3, "clicked",
                            G_CALLBACK (on_transaction_okbutton1_clicked),
                            GTK_OBJECT (transaction_window));

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (transaction_window, transaction_window, "transaction_window");
  GLADE_HOOKUP_OBJECT (transaction_window, vbox47, "vbox47");
  GLADE_HOOKUP_OBJECT (transaction_window, vbox61, "vbox61");
  GLADE_HOOKUP_OBJECT (transaction_window, hbox97, "hbox97");
  GLADE_HOOKUP_OBJECT (transaction_window, image852, "image852");
  GLADE_HOOKUP_OBJECT (transaction_window, vbox62, "vbox62");
  GLADE_HOOKUP_OBJECT (transaction_window, label167, "label167");
  GLADE_HOOKUP_OBJECT (transaction_window, label168, "label168");
  GLADE_HOOKUP_OBJECT (transaction_window, scrolledwindow18, "scrolledwindow18");
  GLADE_HOOKUP_OBJECT (transaction_window, transaction_summary_treeview, "transaction_summary_treeview");
  GLADE_HOOKUP_OBJECT (transaction_window, download_only_checkbutton, "download_only_checkbutton");
  GLADE_HOOKUP_OBJECT (transaction_window, hbuttonbox1, "hbuttonbox1");
  GLADE_HOOKUP_OBJECT (transaction_window, button2, "button2");
  GLADE_HOOKUP_OBJECT (transaction_window, button3, "button3");

  return transaction_window;
}

GtkWidget*
create_progress_window (void)
{
  GtkWidget *progress_window;
  GtkWidget *vbox49;
  GtkWidget *progress_progressbar;
  GtkWidget *progress_action;
  GtkWidget *progress_message;

  progress_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_name (progress_window, "progress_window");
  gtk_container_set_border_width (GTK_CONTAINER (progress_window), 12);
  gtk_window_set_title (GTK_WINDOW (progress_window), _("window1"));
  gtk_window_set_gravity (GTK_WINDOW (progress_window), GDK_GRAVITY_CENTER);

  vbox49 = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (vbox49, "vbox49");
  gtk_widget_show (vbox49);
  gtk_container_add (GTK_CONTAINER (progress_window), vbox49);
  gtk_container_set_border_width (GTK_CONTAINER (vbox49), 6);

  progress_progressbar = gtk_progress_bar_new ();
  gtk_widget_set_name (progress_progressbar, "progress_progressbar");
  gtk_widget_show (progress_progressbar);
  gtk_box_pack_start (GTK_BOX (vbox49), progress_progressbar, FALSE, TRUE, 0);
  gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progress_progressbar), _("in progress..."));

  progress_action = gtk_label_new ("");
  gtk_widget_set_name (progress_action, "progress_action");
  gtk_widget_show (progress_action);
  gtk_box_pack_start (GTK_BOX (vbox49), progress_action, TRUE, TRUE, 6);

  progress_message = gtk_label_new ("");
  gtk_widget_set_name (progress_message, "progress_message");
  gtk_widget_show (progress_message);
  gtk_box_pack_start (GTK_BOX (vbox49), progress_message, TRUE, TRUE, 6);

  g_signal_connect ((gpointer) progress_window, "destroy_event",
                    G_CALLBACK (gtk_main_quit),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (progress_window, progress_window, "progress_window");
  GLADE_HOOKUP_OBJECT (progress_window, vbox49, "vbox49");
  GLADE_HOOKUP_OBJECT (progress_window, progress_progressbar, "progress_progressbar");
  GLADE_HOOKUP_OBJECT (progress_window, progress_action, "progress_action");
  GLADE_HOOKUP_OBJECT (progress_window, progress_message, "progress_message");

  return progress_window;
}

GtkWidget*
create_about (void)
{
  GtkWidget *about;
  GtkWidget *dialog_vbox1;
  GtkWidget *vbox50;
  GtkWidget *label146;
  GtkWidget *label147;
  GtkWidget *label148;
  GtkWidget *label149;
  GtkWidget *dialog_action_area1;
  GtkWidget *closebutton1;

  about = gtk_dialog_new ();
  gtk_widget_set_name (about, "about");
  gtk_window_set_title (GTK_WINDOW (about), _("About gslapt"));
  gtk_window_set_position (GTK_WINDOW (about), GTK_WIN_POS_CENTER);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (about), TRUE);
  gtk_window_set_type_hint (GTK_WINDOW (about), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox1 = GTK_DIALOG (about)->vbox;
  gtk_widget_set_name (dialog_vbox1, "dialog_vbox1");
  gtk_widget_show (dialog_vbox1);

  vbox50 = gtk_vbox_new (TRUE, 0);
  gtk_widget_set_name (vbox50, "vbox50");
  gtk_widget_show (vbox50);
  gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox50, TRUE, TRUE, 0);

  label146 = gtk_label_new (_("<span weight=\"bold\" size=\"xx-large\">gslapt 0.1alpha</span>"));
  gtk_widget_set_name (label146, "label146");
  gtk_widget_show (label146);
  gtk_box_pack_start (GTK_BOX (vbox50), label146, TRUE, TRUE, 0);
  GTK_WIDGET_SET_FLAGS (label146, GTK_CAN_FOCUS);
  gtk_label_set_use_markup (GTK_LABEL (label146), TRUE);
  gtk_label_set_justify (GTK_LABEL (label146), GTK_JUSTIFY_RIGHT);
  gtk_label_set_selectable (GTK_LABEL (label146), TRUE);

  label147 = gtk_label_new (_("gslapt is a GTK+ frontend to slapt-get, an APT like package system for Slackware"));
  gtk_widget_set_name (label147, "label147");
  gtk_widget_show (label147);
  gtk_box_pack_start (GTK_BOX (vbox50), label147, TRUE, TRUE, 0);
  GTK_WIDGET_SET_FLAGS (label147, GTK_CAN_FOCUS);
  gtk_label_set_justify (GTK_LABEL (label147), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (label147), TRUE);
  gtk_label_set_selectable (GTK_LABEL (label147), TRUE);

  label148 = gtk_label_new (_("Copyright Jason Woodward, 2005"));
  gtk_widget_set_name (label148, "label148");
  gtk_widget_show (label148);
  gtk_box_pack_start (GTK_BOX (vbox50), label148, TRUE, TRUE, 0);
  GTK_WIDGET_SET_FLAGS (label148, GTK_CAN_FOCUS);
  gtk_label_set_justify (GTK_LABEL (label148), GTK_JUSTIFY_RIGHT);
  gtk_label_set_selectable (GTK_LABEL (label148), TRUE);

  label149 = gtk_label_new (_("http://software.jaso.org/#gslapt"));
  gtk_widget_set_name (label149, "label149");
  gtk_widget_show (label149);
  gtk_box_pack_start (GTK_BOX (vbox50), label149, TRUE, TRUE, 0);
  GTK_WIDGET_SET_FLAGS (label149, GTK_CAN_FOCUS);
  gtk_label_set_use_markup (GTK_LABEL (label149), TRUE);
  gtk_label_set_justify (GTK_LABEL (label149), GTK_JUSTIFY_CENTER);
  gtk_label_set_selectable (GTK_LABEL (label149), TRUE);

  dialog_action_area1 = GTK_DIALOG (about)->action_area;
  gtk_widget_set_name (dialog_action_area1, "dialog_action_area1");
  gtk_widget_show (dialog_action_area1);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);

  closebutton1 = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_set_name (closebutton1, "closebutton1");
  gtk_widget_show (closebutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (about), closebutton1, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (closebutton1, GTK_CAN_DEFAULT);

  g_signal_connect_swapped ((gpointer) closebutton1, "clicked",
                            G_CALLBACK (gtk_widget_destroy),
                            GTK_OBJECT (about));

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (about, about, "about");
  GLADE_HOOKUP_OBJECT_NO_REF (about, dialog_vbox1, "dialog_vbox1");
  GLADE_HOOKUP_OBJECT (about, vbox50, "vbox50");
  GLADE_HOOKUP_OBJECT (about, label146, "label146");
  GLADE_HOOKUP_OBJECT (about, label147, "label147");
  GLADE_HOOKUP_OBJECT (about, label148, "label148");
  GLADE_HOOKUP_OBJECT (about, label149, "label149");
  GLADE_HOOKUP_OBJECT_NO_REF (about, dialog_action_area1, "dialog_action_area1");
  GLADE_HOOKUP_OBJECT (about, closebutton1, "closebutton1");

  return about;
}

GtkWidget*
create_devel_warning_dialog (void)
{
  GtkWidget *devel_warning_dialog;
  GtkWidget *dialog_vbox2;
  GtkWidget *label169;
  GtkWidget *dialog_action_area2;
  GtkWidget *okbutton1;

  devel_warning_dialog = gtk_dialog_new ();
  gtk_widget_set_name (devel_warning_dialog, "devel_warning_dialog");
  gtk_container_set_border_width (GTK_CONTAINER (devel_warning_dialog), 6);
  gtk_window_set_title (GTK_WINDOW (devel_warning_dialog), _("WARNING"));
  gtk_window_set_position (GTK_WINDOW (devel_warning_dialog), GTK_WIN_POS_CENTER);
  gtk_window_set_type_hint (GTK_WINDOW (devel_warning_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
  gtk_window_set_gravity (GTK_WINDOW (devel_warning_dialog), GDK_GRAVITY_CENTER);

  dialog_vbox2 = GTK_DIALOG (devel_warning_dialog)->vbox;
  gtk_widget_set_name (dialog_vbox2, "dialog_vbox2");
  gtk_widget_show (dialog_vbox2);

  label169 = gtk_label_new (_("<b>Gslapt</b> is <b>alpha</b> quality software.  <span weight=\"bold\">It will crash and may leave your machine in an unusable state.</span>  Please use with caution.\n\nBug reports should go to the slapt-get-devel mailing list: slapt-get-devel@software.jaos.org"));
  gtk_widget_set_name (label169, "label169");
  gtk_widget_show (label169);
  gtk_box_pack_start (GTK_BOX (dialog_vbox2), label169, TRUE, TRUE, 2);
  GTK_WIDGET_SET_FLAGS (label169, GTK_CAN_FOCUS);
  gtk_label_set_use_markup (GTK_LABEL (label169), TRUE);
  gtk_label_set_line_wrap (GTK_LABEL (label169), TRUE);
  gtk_label_set_selectable (GTK_LABEL (label169), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label169), 0, 0);

  dialog_action_area2 = GTK_DIALOG (devel_warning_dialog)->action_area;
  gtk_widget_set_name (dialog_action_area2, "dialog_action_area2");
  gtk_widget_show (dialog_action_area2);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);

  okbutton1 = gtk_button_new_with_mnemonic (_("Dismiss"));
  gtk_widget_set_name (okbutton1, "okbutton1");
  gtk_widget_show (okbutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (devel_warning_dialog), okbutton1, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);

  g_signal_connect_swapped ((gpointer) okbutton1, "clicked",
                            G_CALLBACK (gtk_widget_destroy),
                            GTK_OBJECT (devel_warning_dialog));

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (devel_warning_dialog, devel_warning_dialog, "devel_warning_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (devel_warning_dialog, dialog_vbox2, "dialog_vbox2");
  GLADE_HOOKUP_OBJECT (devel_warning_dialog, label169, "label169");
  GLADE_HOOKUP_OBJECT_NO_REF (devel_warning_dialog, dialog_action_area2, "dialog_action_area2");
  GLADE_HOOKUP_OBJECT (devel_warning_dialog, okbutton1, "okbutton1");

  return devel_warning_dialog;
}