summaryrefslogtreecommitdiffstats
path: root/perl_checker_fake_packages/Gtk2.pm
blob: df62941da384b8f9c9c2113a4737f7d35e5d5e1a (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
package Gtk2;

our @ISA = qw();

sub Gtk2::ADD() {}
sub Gtk2::ALL_EVENTS_MASK() {}
sub Gtk2::APPLY() {}
sub Gtk2::ARROW() {}
sub Gtk2::ARROW_DOWN() {}
sub Gtk2::ARROW_LEFT() {}
sub Gtk2::ARROW_RIGHT() {}
sub Gtk2::ARROW_UP() {}
sub Gtk2::BASED_ARROW_DOWN() {}
sub Gtk2::BASED_ARROW_UP() {}
sub Gtk2::BOAT() {}
sub Gtk2::BOGOSITY() {}
sub Gtk2::BOLD() {}
sub Gtk2::BOTH() {}
sub Gtk2::BOTH_HORIZ() {}
sub Gtk2::BOTTOM_LEFT_CORNER() {}
sub Gtk2::BOTTOM_RIGHT_CORNER() {}
sub Gtk2::BOTTOM_SIDE() {}
sub Gtk2::BOTTOM_TEE() {}
sub Gtk2::BOTTOM_TO_TOP() {}
sub Gtk2::BOX_SPIRAL() {}
sub Gtk2::BUTTON1_MOTION_MASK() {}
sub Gtk2::BUTTON2_MOTION_MASK() {}
sub Gtk2::BUTTON3_MOTION_MASK() {}
sub Gtk2::BUTTON_MOTION_MASK() {}
sub Gtk2::BUTTON_PRESS() {}
sub Gtk2::BUTTON_PRESS_MASK() {}
sub Gtk2::BUTTON_RELEASE() {}
sub Gtk2::BUTTON_RELEASE_MASK() {}
sub Gtk2::CANCEL() {}
sub Gtk2::CAN_DEFAULT { my ($_widget) = @_ }
sub Gtk2::CAN_FOCUS { my ($_widget) = @_ }
sub Gtk2::CDROM() {}
sub Gtk2::CENTER_PTR() {}
sub Gtk2::CENTIMETERS() {}
sub Gtk2::CHECK_VERSION { my ($_class, $_major, $_minor, $_micro) = @_ }
sub Gtk2::CHILD_BUTTON() {}
sub Gtk2::CHILD_RADIOBUTTON() {}
sub Gtk2::CHILD_SPACE() {}
sub Gtk2::CHILD_TOGGLEBUTTON() {}
sub Gtk2::CHILD_WIDGET() {}
sub Gtk2::CIRCLE() {}
sub Gtk2::CLAMP { my ($_class, $_x, $_low, $_high) = @_ }
sub Gtk2::CLEAR() {}
sub Gtk2::CLIENT_EVENT() {}
sub Gtk2::CLOCK() {}
sub Gtk2::CLOSE() {}
sub Gtk2::COFFEE_MUG() {}
sub Gtk2::CONFIGURE() {}
sub Gtk2::CONVERT() {}
sub Gtk2::COPY() {}
sub Gtk2::CROSS() {}
sub Gtk2::CROSSHAIR() {}
sub Gtk2::CROSS_REVERSE() {}
sub Gtk2::CURSOR_IS_PIXMAP() {}
sub Gtk2::CUT() {}
sub Gtk2::DEFAULT_STYLE() {}
sub Gtk2::DELETE() {}
sub Gtk2::DIALOG_ERROR() {}
sub Gtk2::DIALOG_INFO() {}
sub Gtk2::DIALOG_QUESTION() {}
sub Gtk2::DIALOG_WARNING() {}
sub Gtk2::DIAMOND_CROSS() {}
sub Gtk2::DND() {}
sub Gtk2::DND_MULTIPLE() {}
sub Gtk2::DOT() {}
sub Gtk2::DOTBOX() {}
sub Gtk2::DOUBLE_ARROW() {}
sub Gtk2::DRAFT_LARGE() {}
sub Gtk2::DRAFT_SMALL() {}
sub Gtk2::DRAG_ENTER() {}
sub Gtk2::DRAG_LEAVE() {}
sub Gtk2::DRAG_MOTION() {}
sub Gtk2::DRAG_STATUS() {}
sub Gtk2::DRAPED_BOX() {}
sub Gtk2::DRAWABLE { my ($_widget) = @_ }
sub Gtk2::DROP_FINISHED() {}
sub Gtk2::DROP_START() {}
sub Gtk2::EDGE() {}
sub Gtk2::ENTER_NOTIFY() {}
sub Gtk2::ENTER_NOTIFY_MASK() {}
sub Gtk2::EXCHANGE() {}
sub Gtk2::EXECUTE() {}
sub Gtk2::EXPAND() {}
sub Gtk2::EXPOSE() {}
sub Gtk2::EXPOSURE_MASK() {}
sub Gtk2::FILL() {}
sub Gtk2::FIND() {}
sub Gtk2::FIND_AND_REPLACE() {}
sub Gtk2::FLAGS { my ($_self, $_set) = @_ }
sub Gtk2::FLEUR() {}
sub Gtk2::FLOPPY() {}
sub Gtk2::FOCUS_CHANGE() {}
sub Gtk2::FOCUS_CHANGE_MASK() {}
sub Gtk2::GET_FLAGS { my ($_widget) = @_ }
sub Gtk2::GOBBLER() {}
sub Gtk2::GOTO_BOTTOM() {}
sub Gtk2::GOTO_FIRST() {}
sub Gtk2::GOTO_LAST() {}
sub Gtk2::GOTO_TOP() {}
sub Gtk2::GO_BACK() {}
sub Gtk2::GO_DOWN() {}
sub Gtk2::GO_FORWARD() {}
sub Gtk2::GO_UP() {}
sub Gtk2::GUMBY() {}
sub Gtk2::HAND1() {}
sub Gtk2::HAND2() {}
sub Gtk2::HAS_DEFAULT { my ($_widget) = @_ }
sub Gtk2::HAS_FOCUS { my ($_widget) = @_ }
sub Gtk2::HAS_GRAB { my ($_widget) = @_ }
sub Gtk2::HEART() {}
sub Gtk2::HELP() {}
sub Gtk2::HOME() {}
sub Gtk2::ICON() {}
sub Gtk2::ICONS() {}
sub Gtk2::INCHES() {}
sub Gtk2::INDEX() {}
sub Gtk2::IRON_CROSS() {}
sub Gtk2::IS_SENSITIVE { my ($_widget) = @_ }
sub Gtk2::ITALIC() {}
sub Gtk2::JUMP_TO() {}
sub Gtk2::JUSTIFY_CENTER() {}
sub Gtk2::JUSTIFY_FILL() {}
sub Gtk2::JUSTIFY_LEFT() {}
sub Gtk2::JUSTIFY_RIGHT() {}
sub Gtk2::KEY_PRESS() {}
sub Gtk2::KEY_PRESS_MASK() {}
sub Gtk2::KEY_RELEASE() {}
sub Gtk2::KEY_RELEASE_MASK() {}
sub Gtk2::LAST_CURSOR() {}
sub Gtk2::LEAVE_NOTIFY() {}
sub Gtk2::LEAVE_NOTIFY_MASK() {}
sub Gtk2::LEFTBUTTON() {}
sub Gtk2::LEFT_PTR() {}
sub Gtk2::LEFT_SIDE() {}
sub Gtk2::LEFT_TEE() {}
sub Gtk2::LEFT_TO_RIGHT() {}
sub Gtk2::LL_ANGLE() {}
sub Gtk2::LR_ANGLE() {}
sub Gtk2::MAN() {}
sub Gtk2::MAP() {}
sub Gtk2::MAPPED { my ($_widget) = @_ }
sub Gtk2::MIDDLEBUTTON() {}
sub Gtk2::MISSING_IMAGE() {}
sub Gtk2::MOTION_NOTIFY() {}
sub Gtk2::MOUSE() {}
sub Gtk2::NEW() {}
sub Gtk2::NO() {}
sub Gtk2::NOTHING() {}
sub Gtk2::NO_EXPOSE() {}
sub Gtk2::NO_WINDOW { my ($_widget) = @_ }
sub Gtk2::OK() {}
sub Gtk2::OPEN() {}
sub Gtk2::ORIENTATION_HORIZONTAL() {}
sub Gtk2::ORIENTATION_VERTICAL() {}
sub Gtk2::PANGO_PIXELS { my ($_class, $_value) = @_ }
sub Gtk2::PANGO_SCALE_LARGE { my ($_class) = @_ }
sub Gtk2::PANGO_SCALE_MEDIUM { my ($_class) = @_ }
sub Gtk2::PANGO_SCALE_SMALL { my ($_class) = @_ }
sub Gtk2::PANGO_SCALE_XX_LARGE { my ($_class) = @_ }
sub Gtk2::PANGO_SCALE_XX_SMALL { my ($_class) = @_ }
sub Gtk2::PANGO_SCALE_X_LARGE { my ($_class) = @_ }
sub Gtk2::PANGO_SCALE_X_SMALL { my ($_class) = @_ }
sub Gtk2::PARENT_SENSITIVE { my ($_widget) = @_ }
sub Gtk2::PASTE() {}
sub Gtk2::PENCIL() {}
sub Gtk2::PIRATE() {}
sub Gtk2::PIXELS() {}
sub Gtk2::PLUS() {}
sub Gtk2::POINTER_MOTION_HINT_MASK() {}
sub Gtk2::POINTER_MOTION_MASK() {}
sub Gtk2::POLICY_ALWAYS() {}
sub Gtk2::POLICY_AUTOMATIC() {}
sub Gtk2::POLICY_NEVER() {}
sub Gtk2::POS_BOTTOM() {}
sub Gtk2::POS_LEFT() {}
sub Gtk2::POS_RIGHT() {}
sub Gtk2::POS_TOP() {}
sub Gtk2::PREFERENCES() {}
sub Gtk2::PRINT() {}
sub Gtk2::PRINT_PREVIEW() {}
sub Gtk2::PROPERTIES() {}
sub Gtk2::PROPERTY_CHANGE_MASK() {}
sub Gtk2::PROPERTY_NOTIFY() {}
sub Gtk2::PROXIMITY_IN() {}
sub Gtk2::PROXIMITY_IN_MASK() {}
sub Gtk2::PROXIMITY_OUT() {}
sub Gtk2::PROXIMITY_OUT_MASK() {}
sub Gtk2::QUESTION_ARROW() {}
sub Gtk2::QUIT() {}
sub Gtk2::REALIZED { my ($_widget) = @_ }
sub Gtk2::RECEIVES_DEFAULT { my ($_widget) = @_ }
sub Gtk2::REDO() {}
sub Gtk2::REFRESH() {}
sub Gtk2::REMOVE() {}
sub Gtk2::RESPONSE_ACCEPT() {}
sub Gtk2::RESPONSE_APPLY() {}
sub Gtk2::RESPONSE_CANCEL() {}
sub Gtk2::RESPONSE_CLOSE() {}
sub Gtk2::RESPONSE_DELETE_EVENT() {}
sub Gtk2::RESPONSE_HELP() {}
sub Gtk2::RESPONSE_NO() {}
sub Gtk2::RESPONSE_NONE() {}
sub Gtk2::RESPONSE_OK() {}
sub Gtk2::RESPONSE_REJECT() {}
sub Gtk2::RESPONSE_YES() {}
sub Gtk2::REVERT_TO_SAVED() {}
sub Gtk2::RIGHTBUTTON() {}
sub Gtk2::RIGHT_PTR() {}
sub Gtk2::RIGHT_SIDE() {}
sub Gtk2::RIGHT_TEE() {}
sub Gtk2::RIGHT_TO_LEFT() {}
sub Gtk2::ROOT_WINDOW { my ($_class) = @_ }
sub Gtk2::RTL_LOGO() {}
sub Gtk2::SAILBOAT() {}
sub Gtk2::SAVE() {}
sub Gtk2::SAVE_AS() {}
sub Gtk2::SB_DOWN_ARROW() {}
sub Gtk2::SB_H_DOUBLE_ARROW() {}
sub Gtk2::SB_LEFT_ARROW() {}
sub Gtk2::SB_RIGHT_ARROW() {}
sub Gtk2::SB_UP_ARROW() {}
sub Gtk2::SB_V_DOUBLE_ARROW() {}
sub Gtk2::SCROLL() {}
sub Gtk2::SCROLL_MASK() {}
sub Gtk2::SELECTION_BROWSE() {}
sub Gtk2::SELECTION_CLEAR() {}
sub Gtk2::SELECTION_MULTIPLE() {}
sub Gtk2::SELECTION_NONE() {}
sub Gtk2::SELECTION_NOTIFY() {}
sub Gtk2::SELECTION_REQUEST() {}
sub Gtk2::SELECTION_SINGLE() {}
sub Gtk2::SELECT_COLOR() {}
sub Gtk2::SELECT_FONT() {}
sub Gtk2::SENSITIVE { my ($_widget) = @_ }
sub Gtk2::SETTING() {}
sub Gtk2::SET_FLAGS { my ($_widget, $_flags) = @_ }
sub Gtk2::SHADOW_ETCHED_IN() {}
sub Gtk2::SHADOW_ETCHED_OUT() {}
sub Gtk2::SHADOW_IN() {}
sub Gtk2::SHADOW_NONE() {}
sub Gtk2::SHADOW_OUT() {}
sub Gtk2::SHRINK() {}
sub Gtk2::SHUTTLE() {}
sub Gtk2::SIZING() {}
sub Gtk2::SORT_ASCENDING() {}
sub Gtk2::SORT_DESCENDING() {}
sub Gtk2::SPELL_CHECK() {}
sub Gtk2::SPIDER() {}
sub Gtk2::SPRAYCAN() {}
sub Gtk2::SPREAD() {}
sub Gtk2::STAR() {}
sub Gtk2::START() {}
sub Gtk2::STATE { my ($_self, $_set) = @_ }
sub Gtk2::STATE_ACTIVE() {}
sub Gtk2::STATE_INSENSITIVE() {}
sub Gtk2::STATE_NORMAL() {}
sub Gtk2::STATE_PRELIGHT() {}
sub Gtk2::STATE_SELECTED() {}
sub Gtk2::STOP() {}
sub Gtk2::STRIKETHROUGH() {}
sub Gtk2::STRUCTURE_MASK() {}
sub Gtk2::SUBSTRUCTURE_MASK() {}
sub Gtk2::TARGET() {}
sub Gtk2::TCROSS() {}
sub Gtk2::TEXT() {}
sub Gtk2::TOPLEVEL { my ($_widget) = @_ }
sub Gtk2::TOP_LEFT_ARROW() {}
sub Gtk2::TOP_LEFT_CORNER() {}
sub Gtk2::TOP_RIGHT_CORNER() {}
sub Gtk2::TOP_SIDE() {}
sub Gtk2::TOP_TEE() {}
sub Gtk2::TOP_TO_BOTTOM() {}
sub Gtk2::TREK() {}
sub Gtk2::UL_ANGLE() {}
sub Gtk2::UMBRELLA() {}
sub Gtk2::UNDELETE() {}
sub Gtk2::UNDERLINE() {}
sub Gtk2::UNDO() {}
sub Gtk2::UNMAP() {}
sub Gtk2::UNSET_FLAGS { my ($_widget, $_flags) = @_ }
sub Gtk2::UPDATE_CONTINUOUS() {}
sub Gtk2::UPDATE_DELAYED() {}
sub Gtk2::UPDATE_DISCONTINUOUS() {}
sub Gtk2::UR_ANGLE() {}
sub Gtk2::VISIBILITY_NOTIFY() {}
sub Gtk2::VISIBILITY_NOTIFY_MASK() {}
sub Gtk2::VISIBLE { my ($_widget) = @_ }
sub Gtk2::WATCH() {}
sub Gtk2::WINDOW_STATE() {}
sub Gtk2::WIN_POS_CENTER() {}
sub Gtk2::WIN_POS_CENTER_ALWAYS() {}
sub Gtk2::WIN_POS_CENTER_ON_PARENT() {}
sub Gtk2::WIN_POS_MOUSE() {}
sub Gtk2::WIN_POS_NONE() {}
sub Gtk2::XID { my ($_drawable) = @_ }
sub Gtk2::XSetInputFocus { my ($_drawable) = @_ }
sub Gtk2::XTERM() {}
sub Gtk2::XWINDOW { my ($_drawable) = @_ }
sub Gtk2::X_CURSOR() {}
sub Gtk2::YES() {}
sub Gtk2::ZOOM_100() {}
sub Gtk2::ZOOM_FIT() {}
sub Gtk2::ZOOM_IN() {}
sub Gtk2::ZOOM_OUT() {}
sub Gtk2::_2BUTTON_PRESS() {}
sub Gtk2::_3BUTTON_PRESS() {}
sub Gtk2::_DESTROY() {}
sub Gtk2::_END() {}
sub Gtk2::_debug_print { my ($_expr, $_expect, $_check, $_eval_error) = @_ }
sub Gtk2::_do_checks { my ($_eval, $_expect, $_check) = @_ }
sub Gtk2::_flag_setget_wrap { my ($_self, $_flag_name, $_set) = @_ }
sub Gtk2::accel_group { my ($_socket) = @_ }
sub Gtk2::action_area { my ($_DUMMY0) = @_ }
sub Gtk2::activate { my ($_DUMMY0) = @_ }
sub Gtk2::activate_default { my ($_window) = @_ }
sub Gtk2::activate_focus { my ($_window) = @_ }
sub Gtk2::active {}
sub Gtk2::add { my ($_container, $_widget) = @_ }
sub Gtk2::add1 { my ($_paned, $_child) = @_ }
sub Gtk2::add2 { my ($_paned, $_child) = @_ }
sub Gtk2::add_accel_group { my ($_window, $_accel_group) = @_ }
sub Gtk2::add_accelerator { my ($_widget, $_accel_signal, $_accel_group, $_accel_key, $_accel_mods, $_accel_flags) = @_ }
sub Gtk2::add_action_widget { my ($_dialog, $_child, $_response_id) = @_ }
sub Gtk2::add_alpha { my ($_pixbuf, $_substitute_color, $_r, $_g, $_b) = @_ }
sub Gtk2::add_attribute { my ($_tree_column, $_cell_renderer, $_attribute, $_column) = @_ }
sub Gtk2::add_button { my ($_dialog, $_button_text, $_response_id) = @_ }
sub Gtk2::add_default_file { my ($_class, $_filename) = @_ }
sub Gtk2::add_events { my ($_widget, $_events) = @_ }
sub Gtk2::add_id { my ($_socket, $_window_id) = @_ }
sub Gtk2::add_source { my ($_icon_set, $_source) = @_ }
sub Gtk2::add_to_test_box { my ($_widget) = @_ }
sub Gtk2::add_with_viewport { my ($_scrolled_window, $_child) = @_ }
sub Gtk2::allocation { my ($_widget) = @_ }
sub Gtk2::append {}
sub Gtk2::append_column { my ($_tree_view, $_column) = @_ }
sub Gtk2::append_element { my ($_self, $_type, $_widget, $_text, $_tooltip, $_privat, $_icon, $_callback, $_user_data) = @_ }
sub Gtk2::append_index { my ($_path, $_index) = @_ }
sub Gtk2::append_item { my ($_self, $_text, $_tooltip, $_private, $_icon, $_callback, $_user_data) = @_ }
sub Gtk2::append_items { my ($_list, $_items) = @_ }
sub Gtk2::append_page { my ($_self, $_child, $_tab_label) = @_ }
sub Gtk2::append_page_menu { my ($_self, $_child, $_tab_label, $_menu_label) = @_ }
sub Gtk2::append_set {}
sub Gtk2::append_space { my ($_toolbar) = @_ }
sub Gtk2::append_widget { my ($_toolbar, $_widget, $_tooltip_text, $_tooltip_private_text) = @_ }
sub Gtk2::apply_button { my ($_dialog) = @_ }
sub Gtk2::apply_tag { my ($_buffer, $_tag, $_start, $_end) = @_ }
sub Gtk2::apply_tag_by_name { my ($_buffer, $_name, $_start, $_end) = @_ }
sub Gtk2::area { my ($_event) = @_ }
sub Gtk2::atom { my ($_event) = @_ }
sub Gtk2::attach { my ($_table, $_child, $_left_attach, $_right_attach, $_top_attach, $_bottom_attach, $_xoptions, $_yoptions, $_xpadding, $_ypadding) = @_ }
sub Gtk2::attach_defaults { my ($_table, $_widget, $_left, $_right, $_top, $_bottom) = @_ }
sub Gtk2::background_new { my ($_class, $_red, $_green, $_blue) = @_ }
sub Gtk2::backward_char { my ($_iter) = @_ }
sub Gtk2::backward_chars { my ($_iter, $_count) = @_ }
sub Gtk2::backward_cursor_position { my ($_iter) = @_ }
sub Gtk2::backward_cursor_positions { my ($_iter, $_count) = @_ }
sub Gtk2::backward_display_line { my ($_text_view, $_iter) = @_ }
sub Gtk2::backward_display_line_start { my ($_text_view, $_iter) = @_ }
sub Gtk2::backward_line { my ($_iter) = @_ }
sub Gtk2::backward_lines { my ($_iter, $_count) = @_ }
sub Gtk2::backward_sentence_start { my ($_iter) = @_ }
sub Gtk2::backward_sentence_starts { my ($_iter, $_count) = @_ }
sub Gtk2::backward_word_start { my ($_iter) = @_ }
sub Gtk2::backward_word_starts { my ($_iter, $_count) = @_ }
sub Gtk2::base_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::beep { my ($_class) = @_ }
sub Gtk2::begin_user_action { my ($_buffer) = @_ }
sub Gtk2::begins_tag { my ($_iter, $_tag) = @_ }
sub Gtk2::bg_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::black_gc { my ($_self, $_set) = @_ }
sub Gtk2::blue { my ($_self, $_v) = @_ }
sub Gtk2::button { my ($_event) = @_ }
sub Gtk2::button_area { my ($_dialog) = @_ }
sub Gtk2::can_default { my ($_self, $_set) = @_ }
sub Gtk2::can_focus { my ($_self, $_set) = @_ }
sub Gtk2::can_insert { my ($_iter, $_default_editability) = @_ }
sub Gtk2::cancel_button { my ($_DUMMY0) = @_ }
sub Gtk2::cell_is_visible { my ($_tree_column) = @_ }
sub Gtk2::change { my ($_list, $_attr) = @_ }
sub Gtk2::changed { my ($_adjustment) = @_ }
sub Gtk2::changed_mask { my ($_event) = @_ }
sub Gtk2::check_resize { my ($_container) = @_ }
sub Gtk2::child_focus { my ($_widget, $_direction) = @_ }
sub Gtk2::child_notify { my ($_widget, $_child_property) = @_ }
sub Gtk2::child_position { my ($_list, $_child) = @_ }
sub Gtk2::clamp_page { my ($_adjustment, $_lower, $_upper) = @_ }
sub Gtk2::clear { my ($_DUMMY0) = @_ }
sub Gtk2::clear_area { my ($_window, $_x, $_y, $_width, $_height) = @_ }
sub Gtk2::clear_area_e { my ($_window, $_x, $_y, $_width, $_height) = @_ }
sub Gtk2::clear_attributes { my ($_tree_column, $_cell_renderer) = @_ }
sub Gtk2::clear_marks { my ($_calendar) = @_ }
sub Gtk2::clicked { my ($_DUMMY0) = @_ }
sub Gtk2::collapse_all { my ($_tree_view) = @_ }
sub Gtk2::collapse_row { my ($_tree_view, $_path) = @_ }
sub Gtk2::colorsel { my ($_dialog) = @_ }
sub Gtk2::column_title_active { my ($_clist, $_column) = @_ }
sub Gtk2::column_title_passive { my ($_clist, $_column) = @_ }
sub Gtk2::column_titles_active { my ($_clist) = @_ }
sub Gtk2::column_titles_hide { my ($_clist) = @_ }
sub Gtk2::column_titles_passive { my ($_clist) = @_ }
sub Gtk2::column_titles_show { my ($_clist) = @_ }
sub Gtk2::columns_autosize { my ($_tree_view) = @_ }
sub Gtk2::compare { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::composite { my ($_src, $_dest, $_dest_x, $_dest_y, $_dest_width, $_dest_height, $_offset_x, $_offset_y, $_scale_x, $_scale_y, $_interp_type, $_overall_alpha) = @_ }
sub Gtk2::composite_color { my ($_src, $_dest, $_dest_x, $_dest_y, $_dest_width, $_dest_height, $_offset_x, $_offset_y, $_scale_x, $_scale_y, $_interp_type, $_overall_alpha, $_check_x, $_check_y, $_check_size, $_color1, $_color2) = @_ }
sub Gtk2::composite_color_simple { my ($_src, $_dest_width, $_dest_height, $_interp_type, $_overall_alpha, $_check_size, $_color1, $_color2) = @_ }
sub Gtk2::connect { my ($_class, $_target, $_name, $_callback, $_data) = @_ }
sub Gtk2::connect_after { my ($_class, $_target, $_name, $_callback, $_data) = @_ }
sub Gtk2::connect_menu { my ($_class, $_target, $_name, $_callback, $_data, $_type) = @_ }
sub Gtk2::connect_swapped { my ($_class, $_target, $_name, $_callback, $_data) = @_ }
sub Gtk2::context_changed { my ($_layout) = @_ }
sub Gtk2::copy { my ($_DUMMY0) = @_ }
sub Gtk2::copy_area { my ($_src_pixbuf, $_src_x, $_src_y, $_width, $_height, $_dest_pixbuf, $_dest_x, $_dest_y) = @_ }
sub Gtk2::copy_clipboard { my ($_editable) = @_ }
sub Gtk2::count { my ($_event) = @_ }
sub Gtk2::create_from_data {}
sub Gtk2::create_from_xpm { my ($_class, $_window, $_xparent_color, $_filename) = @_ }
sub Gtk2::create_from_xpm_d { my ($_class, $_window, $_xparent_color, $_data) = @_ }
sub Gtk2::create_item { my ($_factory, $_entry, $_callback_data, $_callback_type) = @_ }
sub Gtk2::create_items { my ($_factory, $_entries, $_callback_data) = @_ }
sub Gtk2::create_items_ac { my ($_factory, $_entries, $_callback_data, $_callback_type) = @_ }
sub Gtk2::create_mark { my ($_buffer, $_mark_name, $_where, $_left_gravity) = @_ }
sub Gtk2::create_pango_context { my ($_widget) = @_ }
sub Gtk2::create_pango_layout { my ($_widget, $_text) = @_ }
sub Gtk2::create_tag { my ($_buffer, $_tag_name) = @_ }
sub Gtk2::current_height { my ($_socket) = @_ }
sub Gtk2::current_width { my ($_socket) = @_ }
sub Gtk2::cut_clipboard { my ($_editable) = @_ }
sub Gtk2::dark_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::data { my ($_self) = @_ }
sub Gtk2::data_atom { my ($_sdata, $_index) = @_ }
sub Gtk2::deiconify { my ($_DUMMY0) = @_ }
sub Gtk2::delete { my ($_buffer, $_start, $_end) = @_ }
sub Gtk2::delete_interactive { my ($_buffer, $_start_iter, $_end_iter, $_default_editable) = @_ }
sub Gtk2::delete_mark { my ($_buffer, $_mark) = @_ }
sub Gtk2::delete_mark_by_name { my ($_buffer, $_name) = @_ }
sub Gtk2::delete_selection {}
sub Gtk2::delete_text { my ($_editable, $_start_pos, $_end_pos) = @_ }
sub Gtk2::deselect { my ($_item) = @_ }
sub Gtk2::destroy { my ($_DUMMY0) = @_ }
sub Gtk2::destroyed { my ($_widget, $_widget_pointer) = @_ }
sub Gtk2::detail { my ($_event) = @_ }
sub Gtk2::dir_list { my ($_dialog) = @_ }
sub Gtk2::direction { my ($_event) = @_ }
sub Gtk2::disable { my ($_tt) = @_ }
sub Gtk2::disable_activate { my ($_combo) = @_ }
sub Gtk2::disconnect { my ($_class, $_objref, $_closure) = @_ }
sub Gtk2::display_options { my ($_calendar, $_flags) = @_ }
sub Gtk2::down { my ($_path) = @_ }
sub Gtk2::draw_arc { my ($_drawable, $_gc, $_filled, $_x, $_y, $_width, $_height, $_angle1, $_angle2) = @_ }
sub Gtk2::draw_drawable { my ($_drawable, $_gc, $_src, $_xsrc, $_ysrc, $_xdest, $_ydest, $_width, $_height) = @_ }
sub Gtk2::draw_image { my ($_drawable, $_gc, $_image, $_xsrc, $_ysrc, $_xdest, $_ydest, $_width, $_height) = @_ }
sub Gtk2::draw_layout { my ($_drawable, $_gc, $_x, $_y, $_layout) = @_ }
sub Gtk2::draw_line { my ($_drawable, $_gc, $_x1, $_y1, $_x2, $_y2) = @_ }
sub Gtk2::draw_pixbuf { my ($_drawable, $_gc, $_pixbuf, $_src_x, $_src_y, $_dest_x, $_dest_y, $_width, $_height, $_dither, $_x_dither, $_y_dither) = @_ }
sub Gtk2::draw_point { my ($_drawable, $_gc, $_x, $_y) = @_ }
sub Gtk2::draw_rectangle { my ($_drawable, $_gc, $_filled, $_x, $_y, $_width, $_height) = @_ }
sub Gtk2::editable { my ($_iter, $_default_setting) = @_ }
sub Gtk2::enable { my ($_tt) = @_ }
sub Gtk2::end_drag_selection { my ($_list) = @_ }
sub Gtk2::end_selection { my ($_list) = @_ }
sub Gtk2::end_user_action { my ($_buffer) = @_ }
sub Gtk2::ends_line { my ($_iter) = @_ }
sub Gtk2::ends_sentence { my ($_iter) = @_ }
sub Gtk2::ends_tag { my ($_iter, $_tag) = @_ }
sub Gtk2::ends_word { my ($_iter) = @_ }
sub Gtk2::ensure_style { my ($_widget) = @_ }
sub Gtk2::enter { my ($_button) = @_ }
sub Gtk2::entry { my ($_combo) = @_ }
sub Gtk2::equal { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::equals { my ($_class, $_ptr1, $_ptr2) = @_ }
sub Gtk2::events_pending { my ($_class) = @_ }
sub Gtk2::exit { my ($_class, $_errorcode) = @_ }
sub Gtk2::expand { my ($_boxchild) = @_ }
sub Gtk2::expand_all { my ($_tree_view) = @_ }
sub Gtk2::expand_row { my ($_tree_view, $_path, $_open_all) = @_ }
sub Gtk2::family_new { my ($_class, $_family) = @_ }
sub Gtk2::fg_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::file_list { my ($_dialog) = @_ }
sub Gtk2::fileop_c_dir { my ($_dialog) = @_ }
sub Gtk2::fileop_del_file { my ($_dialog) = @_ }
sub Gtk2::fileop_dialog { my ($_dialog) = @_ }
sub Gtk2::fileop_entry { my ($_dialog) = @_ }
sub Gtk2::fileop_ren_file { my ($_dialog) = @_ }
sub Gtk2::fill {}
sub Gtk2::find_property { my ($_self, $_property_name) = @_ }
sub Gtk2::flush { my ($_class) = @_ }
sub Gtk2::focus {}
sub Gtk2::focus_in { my ($_socket) = @_ }
sub Gtk2::font_desc_new { my ($_class, $_desc) = @_ }
sub Gtk2::fontsel { my ($_dialog) = @_ }
sub Gtk2::forall { my ($_container, $_callback, $_callback_data) = @_ }
sub Gtk2::foreach { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::foreground_new { my ($_class, $_red, $_green, $_blue) = @_ }
sub Gtk2::foreign_new { my ($_class, $_anid) = @_ }
sub Gtk2::forward_char { my ($_iter) = @_ }
sub Gtk2::forward_chars { my ($_iter, $_count) = @_ }
sub Gtk2::forward_cursor_position { my ($_iter) = @_ }
sub Gtk2::forward_cursor_positions { my ($_iter, $_count) = @_ }
sub Gtk2::forward_display_line { my ($_text_view, $_iter) = @_ }
sub Gtk2::forward_display_line_end { my ($_text_view, $_iter) = @_ }
sub Gtk2::forward_line { my ($_iter) = @_ }
sub Gtk2::forward_lines { my ($_iter, $_count) = @_ }
sub Gtk2::forward_sentence_end { my ($_iter) = @_ }
sub Gtk2::forward_sentence_ends { my ($_iter, $_count) = @_ }
sub Gtk2::forward_to_end { my ($_iter) = @_ }
sub Gtk2::forward_to_line_end { my ($_iter) = @_ }
sub Gtk2::forward_word_end { my ($_iter) = @_ }
sub Gtk2::forward_word_ends { my ($_iter, $_count) = @_ }
sub Gtk2::fraction { my ($_self, $_frac) = @_ }
sub Gtk2::free { my ($_DUMMY0) = @_ }
sub Gtk2::freeze { my ($_DUMMY0) = @_ }
sub Gtk2::freeze_child_notify { my ($_widget) = @_ }
sub Gtk2::freeze_updates { my ($_window) = @_ }
sub Gtk2::from_string { my ($_class, $_str) = @_ }
sub Gtk2::fullscreen { my ($_window) = @_ }
sub Gtk2::get_accel_widget { my ($_accel_label) = @_ }
sub Gtk2::get_active { my ($_DUMMY0) = @_ }
sub Gtk2::get_adjustment { my ($_range) = @_ }
sub Gtk2::get_alignment { my ($_DUMMY0) = @_ }
sub Gtk2::get_approximate_char_width { my ($_metrics) = @_ }
sub Gtk2::get_approximate_digit_width { my ($_metrics) = @_ }
sub Gtk2::get_ascent { my ($_metrics) = @_ }
sub Gtk2::get_attributes { my ($_DUMMY0) = @_ }
sub Gtk2::get_base_dir { my ($_context) = @_ }
sub Gtk2::get_base_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_bg_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_bits_per_sample { my ($_pixbuf) = @_ }
sub Gtk2::get_black_gc { my ($_style) = @_ }
sub Gtk2::get_border_width { my ($_container) = @_ }
sub Gtk2::get_border_window_size { my ($_text_view, $_type) = @_ }
sub Gtk2::get_buffer { my ($_DUMMY0) = @_ }
sub Gtk2::get_bytes_in_line { my ($_iter) = @_ }
sub Gtk2::get_cell_type { my ($_clist, $_row, $_column) = @_ }
sub Gtk2::get_char_count { my ($_buffer) = @_ }
sub Gtk2::get_chars { my ($_editable, $_start_pos, $_end_pos) = @_ }
sub Gtk2::get_chars_in_line { my ($_iter) = @_ }
sub Gtk2::get_child { my ($_bin) = @_ }
sub Gtk2::get_child_requisition { my ($_widget, $_requisition) = @_ }
sub Gtk2::get_child_visible { my ($_widget) = @_ }
sub Gtk2::get_clickable { my ($_tree_column) = @_ }
sub Gtk2::get_col_spacing { my ($_table, $_column) = @_ }
sub Gtk2::get_colormap { my ($_drawable) = @_ }
sub Gtk2::get_colorspace { my ($_pixbuf) = @_ }
sub Gtk2::get_column { my ($_tree_view, $_n) = @_ }
sub Gtk2::get_column_type { my ($_tree_model, $_index) = @_ }
sub Gtk2::get_composite_name { my ($_widget) = @_ }
sub Gtk2::get_context { my ($_layout) = @_ }
sub Gtk2::get_context_id { my ($_statusbar, $_context_description) = @_ }
sub Gtk2::get_current_color { my ($_colorsel) = @_ }
sub Gtk2::get_current_page { my ($_notebook) = @_ }
sub Gtk2::get_cursor_visible { my ($_text_view) = @_ }
sub Gtk2::get_dark_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_data { my ($_self, $_key) = @_ }
sub Gtk2::get_decorated { my ($_window) = @_ }
sub Gtk2::get_decorations { my ($_window) = @_ }
sub Gtk2::get_default_col_spacing { my ($_table) = @_ }
sub Gtk2::get_default_direction { my ($_class) = @_ }
sub Gtk2::get_default_row_spacing { my ($_table) = @_ }
sub Gtk2::get_default_style { my ($_class) = @_ }
sub Gtk2::get_deleted { my ($_mark) = @_ }
sub Gtk2::get_depth { my ($_DUMMY0) = @_ }
sub Gtk2::get_descent { my ($_metrics) = @_ }
sub Gtk2::get_destroy_with_parent { my ($_window) = @_ }
sub Gtk2::get_digits { my ($_spin_button) = @_ }
sub Gtk2::get_direction { my ($_DUMMY0) = @_ }
sub Gtk2::get_direction_wildcarded { my ($_source) = @_ }
sub Gtk2::get_display { my ($_class) = @_ }
sub Gtk2::get_editable { my ($_DUMMY0) = @_ }
sub Gtk2::get_enable_search { my ($_tree_view) = @_ }
sub Gtk2::get_end_iter { my ($_buffer) = @_ }
sub Gtk2::get_events { my ($_DUMMY0) = @_ }
sub Gtk2::get_extension_events { my ($_widget) = @_ }
sub Gtk2::get_fg_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_filename { my ($_DUMMY0) = @_ }
sub Gtk2::get_fixed_width { my ($_tree_column) = @_ }
sub Gtk2::get_flags { my ($_tree_model) = @_ }
sub Gtk2::get_focus { my ($_window, $_focus) = @_ }
sub Gtk2::get_focus_hadjustment { my ($_container) = @_ }
sub Gtk2::get_focus_vadjustment { my ($_container) = @_ }
sub Gtk2::get_font_desc { my ($_style) = @_ }
sub Gtk2::get_font_description { my ($_context) = @_ }
sub Gtk2::get_font_name { my ($_DUMMY0) = @_ }
sub Gtk2::get_fraction { my ($_pbar) = @_ }
sub Gtk2::get_frame_extents { my ($_window) = @_ }
sub Gtk2::get_gravity { my ($_window) = @_ }
sub Gtk2::get_group { my ($_DUMMY0) = @_ }
sub Gtk2::get_hadjustment { my ($_DUMMY0) = @_ }
sub Gtk2::get_handle_position { my ($_handle_box) = @_ }
sub Gtk2::get_has_alpha { my ($_pixbuf) = @_ }
sub Gtk2::get_has_frame { my ($_window) = @_ }
sub Gtk2::get_has_resize_grip { my ($_statusbar) = @_ }
sub Gtk2::get_has_separator { my ($_dialog) = @_ }
sub Gtk2::get_has_window { my ($_fixed) = @_ }
sub Gtk2::get_headers_visible { my ($_tree_view) = @_ }
sub Gtk2::get_height { my ($_pixbuf) = @_ }
sub Gtk2::get_history { my ($_option_menu) = @_ }
sub Gtk2::get_homogeneous { my ($_DUMMY0) = @_ }
sub Gtk2::get_icon { my ($_window) = @_ }
sub Gtk2::get_icon_size { my ($_toolbar) = @_ }
sub Gtk2::get_id { my ($_DUMMY0) = @_ }
sub Gtk2::get_inconsistent { my ($_DUMMY0) = @_ }
sub Gtk2::get_indent { my ($_DUMMY0) = @_ }
sub Gtk2::get_insert { my ($_buffer) = @_ }
sub Gtk2::get_inverted { my ($_range) = @_ }
sub Gtk2::get_iter { my ($_tree_model, $_path) = @_ }
sub Gtk2::get_iter_at_line { my ($_buffer, $_line_number) = @_ }
sub Gtk2::get_iter_at_line_index { my ($_buffer, $_line_number, $_byte_index) = @_ }
sub Gtk2::get_iter_at_line_offset { my ($_buffer, $_iter, $_line_number, $_char_offset) = @_ }
sub Gtk2::get_iter_at_mark { my ($_buffer, $_mark) = @_ }
sub Gtk2::get_iter_at_offset { my ($_buffer, $_char_offset) = @_ }
sub Gtk2::get_iter_first { my ($_tree_model) = @_ }
sub Gtk2::get_iter_from_string { my ($_tree_model, $_path_string) = @_ }
sub Gtk2::get_iterator { my ($_list) = @_ }
sub Gtk2::get_justification { my ($_text_view) = @_ }
sub Gtk2::get_justify { my ($_DUMMY0) = @_ }
sub Gtk2::get_label { my ($_DUMMY0) = @_ }
sub Gtk2::get_label_align { my ($_o) = @_ }
sub Gtk2::get_label_widget { my ($_frame) = @_ }
sub Gtk2::get_language { my ($_DUMMY0) = @_ }
sub Gtk2::get_layout { my ($_label) = @_ }
sub Gtk2::get_left_gravity { my ($_mark) = @_ }
sub Gtk2::get_left_margin { my ($_text_view) = @_ }
sub Gtk2::get_length { my ($_text) = @_ }
sub Gtk2::get_light_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_line { my ($_iter) = @_ }
sub Gtk2::get_line_count { my ($_DUMMY0) = @_ }
sub Gtk2::get_line_index { my ($_iter) = @_ }
sub Gtk2::get_line_offset { my ($_iter) = @_ }
sub Gtk2::get_line_wrap { my ($_label) = @_ }
sub Gtk2::get_lower { my ($_adjustment) = @_ }
sub Gtk2::get_mark { my ($_buffer, $_name) = @_ }
sub Gtk2::get_max_width { my ($_tree_column) = @_ }
sub Gtk2::get_menu_label_text { my ($_notebook, $_child) = @_ }
sub Gtk2::get_metric { my ($_ruler) = @_ }
sub Gtk2::get_metrics { my ($_context, $_desc, $_language) = @_ }
sub Gtk2::get_mid_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_min_width { my ($_tree_column) = @_ }
sub Gtk2::get_mnemonic_keyval { my ($_label) = @_ }
sub Gtk2::get_mnemonic_widget { my ($_label) = @_ }
sub Gtk2::get_modal { my ($_window) = @_ }
sub Gtk2::get_mode { my ($_DUMMY0) = @_ }
sub Gtk2::get_model { my ($_tree_view) = @_ }
sub Gtk2::get_modified { my ($_buffer) = @_ }
sub Gtk2::get_n_channels { my ($_pixbuf) = @_ }
sub Gtk2::get_n_columns { my ($_tree_model) = @_ }
sub Gtk2::get_n_pages { my ($_notebook) = @_ }
sub Gtk2::get_name { my ($_DUMMY0) = @_ }
sub Gtk2::get_nth_page { my ($_notebook, $_page_num) = @_ }
sub Gtk2::get_offset { my ($_iter) = @_ }
sub Gtk2::get_orientation { my ($_DUMMY0) = @_ }
sub Gtk2::get_padding { my ($_misc) = @_ }
sub Gtk2::get_page_increment { my ($_adjustment) = @_ }
sub Gtk2::get_page_size { my ($_adjustment) = @_ }
sub Gtk2::get_pango_context { my ($_widget) = @_ }
sub Gtk2::get_parent { my ($_DUMMY0) = @_ }
sub Gtk2::get_parent_window { my ($_widget) = @_ }
sub Gtk2::get_path { my ($_tree_model, $_iter) = @_ }
sub Gtk2::get_path_str { my ($_self, $_iter) = @_ }
sub Gtk2::get_pixbuf { my ($_DUMMY0) = @_ }
sub Gtk2::get_pixels_above_lines { my ($_text_view) = @_ }
sub Gtk2::get_pixels_below_lines { my ($_text_view) = @_ }
sub Gtk2::get_pixels_inside_wrap { my ($_text_view) = @_ }
sub Gtk2::get_placement { my ($_scrolled_window) = @_ }
sub Gtk2::get_position { my ($_DUMMY0) = @_ }
sub Gtk2::get_preview_text { my ($_DUMMY0) = @_ }
sub Gtk2::get_previous_color { my ($_colorsel) = @_ }
sub Gtk2::get_program_class { my ($_class) = @_ }
sub Gtk2::get_property { my ($_object, $_property_name) = @_ }
sub Gtk2::get_pulse_step { my ($_pbar) = @_ }
sub Gtk2::get_radio { my ($_toggle) = @_ }
sub Gtk2::get_relief { my ($_button, $_newstyle) = @_ }
sub Gtk2::get_reorderable { my ($_DUMMY0) = @_ }
sub Gtk2::get_resizable { my ($_DUMMY0) = @_ }
sub Gtk2::get_resize_mode { my ($_container) = @_ }
sub Gtk2::get_right_margin { my ($_text_view) = @_ }
sub Gtk2::get_root_window { my ($_widget) = @_ }
sub Gtk2::get_row_spacing { my ($_table, $_row) = @_ }
sub Gtk2::get_rowstride { my ($_pixbuf) = @_ }
sub Gtk2::get_rules_hint { my ($_tree_view) = @_ }
sub Gtk2::get_scrollable { my ($_notebook) = @_ }
sub Gtk2::get_select_multiple { my ($_filesel) = @_ }
sub Gtk2::get_selectable {}
sub Gtk2::get_selected { my ($_o) = @_ }
sub Gtk2::get_selection { my ($_tree_view) = @_ }
sub Gtk2::get_selection_bound { my ($_buffer) = @_ }
sub Gtk2::get_sensitive { my ($_DUMMY0) = @_ }
sub Gtk2::get_set { my ($_self, $_prop, $_arg) = @_ }
sub Gtk2::get_shadow_type { my ($_DUMMY0) = @_ }
sub Gtk2::get_show_border { my ($_notebook) = @_ }
sub Gtk2::get_show_events { my ($_class) = @_ }
sub Gtk2::get_show_tabs { my ($_notebook) = @_ }
sub Gtk2::get_single_paragraph_mode { my ($_layout) = @_ }
sub Gtk2::get_size { my ($_DUMMY0) = @_ }
sub Gtk2::get_size_wildcarded { my ($_source) = @_ }
sub Gtk2::get_sizing { my ($_tree_column) = @_ }
sub Gtk2::get_slice {}
sub Gtk2::get_snap_edge { my ($_handle_box) = @_ }
sub Gtk2::get_sort_column_id { my ($_tree_column) = @_ }
sub Gtk2::get_sort_indicator { my ($_tree_column) = @_ }
sub Gtk2::get_sort_order { my ($_tree_column) = @_ }
sub Gtk2::get_spacing { my ($_DUMMY0) = @_ }
sub Gtk2::get_start_iter { my ($_buffer) = @_ }
sub Gtk2::get_state { my ($_DUMMY0) = @_ }
sub Gtk2::get_state_wildcarded { my ($_source) = @_ }
sub Gtk2::get_step_increment { my ($_adjustment) = @_ }
sub Gtk2::get_storage_type { my ($_image) = @_ }
sub Gtk2::get_string_from_iter { my ($_tree_model, $_iter) = @_ }
sub Gtk2::get_style {}
sub Gtk2::get_style_by_paths { my ($_class, $_settings, $_widget_path, $_class_path, $_type) = @_ }
sub Gtk2::get_tab_label { my ($_notebook, $_child) = @_ }
sub Gtk2::get_tab_label_text { my ($_notebook, $_child) = @_ }
sub Gtk2::get_tab_pos { my ($_notebook) = @_ }
sub Gtk2::get_text {}
sub Gtk2::get_text_aa_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_text_gc { my ($_style, $_state) = @_ }
sub Gtk2::get_time { my ($_event) = @_ }
sub Gtk2::get_title { my ($_DUMMY0) = @_ }
sub Gtk2::get_toggled_tags { my ($_self, $_toggled_on) = @_ }
sub Gtk2::get_tooltip_data { my ($_widget) = @_ }
sub Gtk2::get_tooltips { my ($_toolbar) = @_ }
sub Gtk2::get_toplevel { my ($_DUMMY0) = @_ }
sub Gtk2::get_transient_for { my ($_window) = @_ }
sub Gtk2::get_tree_view { my ($_selection) = @_ }
sub Gtk2::get_type { my ($_DUMMY0) = @_ }
sub Gtk2::get_type_hint { my ($_window) = @_ }
sub Gtk2::get_update_policy { my ($_range) = @_ }
sub Gtk2::get_upper { my ($_adjustment) = @_ }
sub Gtk2::get_use_markup { my ($_label) = @_ }
sub Gtk2::get_use_stock { my ($_button) = @_ }
sub Gtk2::get_use_underline { my ($_DUMMY0) = @_ }
sub Gtk2::get_vadjustment { my ($_DUMMY0) = @_ }
sub Gtk2::get_value { my ($_DUMMY0) = @_ }
sub Gtk2::get_value_as_int { my ($_spin_button) = @_ }
sub Gtk2::get_visibility { my ($_entry) = @_ }
sub Gtk2::get_visible { my ($_DUMMY0) = @_ }
sub Gtk2::get_visible_line_index { my ($_iter) = @_ }
sub Gtk2::get_visible_line_offset { my ($_iter) = @_ }
sub Gtk2::get_visible_slice { my ($_start, $_end) = @_ }
sub Gtk2::get_visible_text { my ($_start, $_end) = @_ }
sub Gtk2::get_white_gc { my ($_style) = @_ }
sub Gtk2::get_widget {}
sub Gtk2::get_width { my ($_DUMMY0) = @_ }
sub Gtk2::get_window { my ($_text_view, $_win) = @_ }
sub Gtk2::get_window_type {}
sub Gtk2::get_wrap { my ($_layout) = @_ }
sub Gtk2::get_wrap_mode { my ($_text_view) = @_ }
sub Gtk2::grab_default { my ($_widget) = @_ }
sub Gtk2::grab_focus { my ($_widget) = @_ }
sub Gtk2::green { my ($_self, $_v) = @_ }
sub Gtk2::group { my ($_event) = @_ }
sub Gtk2::handler_block { my ($_class, $_objref, $_closure) = @_ }
sub Gtk2::handler_unblock { my ($_class, $_objref, $_closure) = @_ }
sub Gtk2::hardware_keycode { my ($_event) = @_ }
sub Gtk2::has_tag { my ($_iter, $_tag) = @_ }
sub Gtk2::have_size { my ($_socket) = @_ }
sub Gtk2::height { my ($_DUMMY0) = @_ }
sub Gtk2::help_button { my ($_DUMMY0) = @_ }
sub Gtk2::hide { my ($_DUMMY0) = @_ }
sub Gtk2::hide_all { my ($_widget) = @_ }
sub Gtk2::hide_fileop_buttons { my ($_filesel) = @_ }
sub Gtk2::hide_on_delete { my ($_widget) = @_ }
sub Gtk2::history_menu { my ($_dialog) = @_ }
sub Gtk2::history_pulldown { my ($_dialog) = @_ }
sub Gtk2::homogeneous { my ($_box) = @_ }
sub Gtk2::hscrollbar { my ($_scrolled_window) = @_ }
sub Gtk2::hscrollbar_visible { my ($_scrolled_window) = @_ }
sub Gtk2::iconify { my ($_DUMMY0) = @_ }
sub Gtk2::idle_add { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::idle_remove { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::in { my ($_event) = @_ }
sub Gtk2::in_range { my ($_iter, $_start, $_end) = @_ }
sub Gtk2::init { my ($_class, $_a) = @_ }
sub Gtk2::init_check { my ($_class, $_a) = @_ }
sub Gtk2::insert {}
sub Gtk2::insert_after {}
sub Gtk2::insert_at_cursor { my ($_buffer, $_text, $_len) = @_ }
sub Gtk2::insert_before {}
sub Gtk2::insert_column { my ($_tree_view, $_column, $_position) = @_ }
sub Gtk2::insert_interactive { my ($_buffer, $_iter, $_text, $_len, $_default_editable) = @_ }
sub Gtk2::insert_interactive_at_cursor { my ($_buffer, $_text, $_len, $_default_editable) = @_ }
sub Gtk2::insert_items { my ($_list, $_items, $_position) = @_ }
sub Gtk2::insert_page { my ($_self, $_child, $_tab_label, $_position) = @_ }
sub Gtk2::insert_page_menu { my ($_self, $_child, $_tab_label, $_menu_label, $_position) = @_ }
sub Gtk2::insert_pixbuf { my ($_buffer, $_iter, $_pixbuf) = @_ }
sub Gtk2::insert_range { my ($_buffer, $_iter, $_start, $_end) = @_ }
sub Gtk2::insert_range_interactive { my ($_buffer, $_iter, $_start, $_end, $_default_editable) = @_ }
sub Gtk2::insert_text { my ($_editable, $_new_text, $_position) = @_ }
sub Gtk2::inside_sentence { my ($_iter) = @_ }
sub Gtk2::inside_word { my ($_iter) = @_ }
sub Gtk2::intern { my ($_self, $_name, $_flag) = @_ }
sub Gtk2::invalidate_rect { my ($_window, $_rect, $_invalidate_children) = @_ }
sub Gtk2::is_ancestor {}
sub Gtk2::is_connected { my ($_class, $_objref, $_closure) = @_ }
sub Gtk2::is_cursor_position { my ($_iter) = @_ }
sub Gtk2::is_descendant { my ($_path, $_ancestor) = @_ }
sub Gtk2::is_end { my ($_iter) = @_ }
sub Gtk2::is_focus { my ($_widget) = @_ }
sub Gtk2::is_hint { my ($_event) = @_ }
sub Gtk2::is_mapped { my ($_socket) = @_ }
sub Gtk2::is_secondary { my ($_boxchild) = @_ }
sub Gtk2::is_start { my ($_iter) = @_ }
sub Gtk2::is_viewable { my ($_window) = @_ }
sub Gtk2::is_visible { my ($_window) = @_ }
sub Gtk2::iter_children { my ($_tree_model, $_parent) = @_ }
sub Gtk2::iter_depth { my ($_tree_store, $_iter) = @_ }
sub Gtk2::iter_has_child { my ($_tree_model, $_iter) = @_ }
sub Gtk2::iter_is_selected { my ($_selection, $_iter) = @_ }
sub Gtk2::iter_is_valid { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::iter_n_children { my ($_tree_model, $_iter) = @_ }
sub Gtk2::iter_next { my ($_tree_model, $_iter_now) = @_ }
sub Gtk2::iter_nth_child { my ($_tree_model, $_parent, $_n) = @_ }
sub Gtk2::iter_parent { my ($_tree_model, $_child) = @_ }
sub Gtk2::keyboard_grab { my ($_class, $_window, $_owner_events, $_time) = @_ }
sub Gtk2::keyboard_ungrab { my ($_class, $_time) = @_ }
sub Gtk2::keyval { my ($_event) = @_ }
sub Gtk2::keyval_from_name { my ($_class, $_keyval_name) = @_ }
sub Gtk2::language_new { my ($_class, $_language) = @_ }
sub Gtk2::leave { my ($_button) = @_ }
sub Gtk2::length { my ($_DUMMY0) = @_ }
sub Gtk2::light_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::list { my ($_combo) = @_ }
sub Gtk2::log_fail { my ($_call, $_err) = @_ }
sub Gtk2::lookup { my ($_class, $_anid) = @_ }
sub Gtk2::lookup_icon_set { my ($_style, $_stock_id) = @_ }
sub Gtk2::lower {}
sub Gtk2::main { my ($_class) = @_ }
sub Gtk2::main_iteration { my ($_class) = @_ }
sub Gtk2::main_iteration_do { my ($_class, $_blocking) = @_ }
sub Gtk2::main_quit { my ($_class) = @_ }
sub Gtk2::main_vbox { my ($_dialog) = @_ }
sub Gtk2::main_window { my ($_class, $_args) = @_ }
sub Gtk2::make { my ($_event) = @_ }
sub Gtk2::make_test_box { my ($_class) = @_ }
sub Gtk2::map { my ($_widget) = @_ }
sub Gtk2::mark_day { my ($_calendar, $_day) = @_ }
sub Gtk2::maximize { my ($_DUMMY0) = @_ }
sub Gtk2::merge_child_shapes { my ($_window) = @_ }
sub Gtk2::mid_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::modality_window { my ($_plug) = @_ }
sub Gtk2::mode { my ($_event) = @_ }
sub Gtk2::modify_base { my ($_widget, $_state, $_color) = @_ }
sub Gtk2::modify_bg { my ($_widget, $_state, $_color) = @_ }
sub Gtk2::modify_fg { my ($_widget, $_state, $_color) = @_ }
sub Gtk2::modify_font { my ($_widget, $_font_desc) = @_ }
sub Gtk2::modify_text { my ($_widget, $_state, $_color) = @_ }
sub Gtk2::move {}
sub Gtk2::move_after { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::move_before { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::move_mark { my ($_buffer, $_mark, $_where) = @_ }
sub Gtk2::move_mark_by_name { my ($_buffer, $_name, $_where) = @_ }
sub Gtk2::move_mark_onscreen { my ($_text_view, $_mark) = @_ }
sub Gtk2::move_resize { my ($_window, $_x, $_y, $_width, $_height) = @_ }
sub Gtk2::move_visually { my ($_text_view, $_iter, $_count) = @_ }
sub Gtk2::name { my ($_atom) = @_ }
sub Gtk2::need_map { my ($_socket) = @_ }
sub Gtk2::new {}
sub Gtk2::new0 { my ($_class) = @_ }
sub Gtk2::new_first { my ($_class) = @_ }
sub Gtk2::new_from_file { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::new_from_icon_set { my ($_class, $_icon_set, $_size) = @_ }
sub Gtk2::new_from_image { my ($_class, $_image, $_mask) = @_ }
sub Gtk2::new_from_pixbuf { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::new_from_pixmap { my ($_class, $_pixmap, $_mask) = @_ }
sub Gtk2::new_from_stock {}
sub Gtk2::new_from_string { my ($_class, $_path) = @_ }
sub Gtk2::new_subpixbuf { my ($_src_pixbuf, $_src_x, $_src_y, $_width, $_height) = @_ }
sub Gtk2::new_window_state { my ($_event) = @_ }
sub Gtk2::new_with_label {}
sub Gtk2::new_with_label_from_widget { my ($_class, $_group, $_label) = @_ }
sub Gtk2::new_with_max_length { my ($_class, $_max) = @_ }
sub Gtk2::new_with_mnemonic {}
sub Gtk2::new_with_model { my ($_class, $_model) = @_ }
sub Gtk2::new_with_range { my ($_class, $_min, $_max, $_step) = @_ }
sub Gtk2::next { my ($_path) = @_ }
sub Gtk2::next_page { my ($_notebook) = @_ }
sub Gtk2::ok_button { my ($_DUMMY0) = @_ }
sub Gtk2::optimal_column_width { my ($_clist, $_column) = @_ }
sub Gtk2::order { my ($_class, $_first, $_second) = @_ }
sub Gtk2::orientation { my ($_self, $_ori) = @_ }
sub Gtk2::owner_get { my ($_class, $_selection) = @_ }
sub Gtk2::pack { my ($_boxchild) = @_ }
sub Gtk2::pack1 { my ($_paned, $_child, $_resize, $_shrink) = @_ }
sub Gtk2::pack2 { my ($_paned, $_child, $_resize, $_shrink) = @_ }
sub Gtk2::pack_end {}
sub Gtk2::pack_end_defaults { my ($_box, $_widget) = @_ }
sub Gtk2::pack_start {}
sub Gtk2::pack_start_defaults { my ($_box, $_widget) = @_ }
sub Gtk2::padding { my ($_boxchild) = @_ }
sub Gtk2::page_increment { my ($_self, $_value) = @_ }
sub Gtk2::page_num { my ($_notebook, $_child) = @_ }
sub Gtk2::page_size { my ($_self, $_value) = @_ }
sub Gtk2::parse { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::parse_string { my ($_class, $_rc_string) = @_ }
sub Gtk2::paste_clipboard { my ($_editable) = @_ }
sub Gtk2::path_is_selected { my ($_selection, $_path) = @_ }
sub Gtk2::place_cursor { my ($_buffer, $_where) = @_ }
sub Gtk2::place_cursor_onscreen { my ($_text_view) = @_ }
sub Gtk2::plug_widget { my ($_socket) = @_ }
sub Gtk2::plug_window { my ($_socket) = @_ }
sub Gtk2::pointer_address { my ($_class, $_ptr) = @_ }
sub Gtk2::pointer_grab { my ($_class, $_window, $_owner_events, $_event_mask, $_confine_to, $_cursor, $_time) = @_ }
sub Gtk2::pointer_is_grabbed { my ($_class) = @_ }
sub Gtk2::pointer_ungrab { my ($_class, $_time) = @_ }
sub Gtk2::pop { my ($_statusbar, $_context_id) = @_ }
sub Gtk2::popup { my ($_menu, $_parent_menu_shell, $_parent_menu_item, $_func, $_data, $_button, $_activate_time) = @_ }
sub Gtk2::popup_disable { my ($_notebook) = @_ }
sub Gtk2::popup_enable { my ($_notebook) = @_ }
sub Gtk2::popwin { my ($_combo) = @_ }
sub Gtk2::prepend {}
sub Gtk2::prepend_index { my ($_path, $_index) = @_ }
sub Gtk2::prepend_items { my ($_list, $_items) = @_ }
sub Gtk2::prepend_page { my ($_self, $_child, $_tab_label) = @_ }
sub Gtk2::prepend_page_menu { my ($_self, $_child, $_tab_label, $_menu_label) = @_ }
sub Gtk2::present { my ($_window) = @_ }
sub Gtk2::pressed { my ($_button) = @_ }
sub Gtk2::prev { my ($_path) = @_ }
sub Gtk2::prev_page { my ($_notebook) = @_ }
sub Gtk2::print_handler_args { my ($_test, $_data) = @_ }
sub Gtk2::process_all_updates { my ($_class) = @_ }
sub Gtk2::process_updates { my ($_window, $_update_children) = @_ }
sub Gtk2::property { my ($_event) = @_ }
sub Gtk2::pulse { my ($_pbar) = @_ }
sub Gtk2::push { my ($_statusbar, $_context_id, $_text) = @_ }
sub Gtk2::put { my ($_DUMMY0, $_DUMMY1, $_DUMMY2, $_DUMMY3) = @_ }
sub Gtk2::query_child_packing { my ($_self, $_child) = @_ }
sub Gtk2::query_tab_label_packing { my ($_self, $_child) = @_ }
sub Gtk2::queue_clear { my ($_widget) = @_ }
sub Gtk2::queue_clear_area { my ($_widget, $_x, $_y, $_width, $_height) = @_ }
sub Gtk2::queue_draw { my ($_widget) = @_ }
sub Gtk2::queue_draw_area { my ($_widget, $_x, $_y, $_width, $_height) = @_ }
sub Gtk2::queue_resize { my ($_widget) = @_ }
sub Gtk2::quit { my ($_class) = @_ }
sub Gtk2::raise { my ($_window) = @_ }
sub Gtk2::realize { my ($_widget) = @_ }
sub Gtk2::red { my ($_self, $_v) = @_ }
sub Gtk2::ref { my ($_DUMMY0) = @_ }
sub Gtk2::ref_count { my ($_object) = @_ }
sub Gtk2::ref_node { my ($_tree_model, $_iter) = @_ }
sub Gtk2::register_dnd { my ($_window) = @_ }
sub Gtk2::released { my ($_button) = @_ }
sub Gtk2::remove {}
sub Gtk2::remove_accelerator { my ($_widget, $_accel_group, $_accel_key, $_accel_mods) = @_ }
sub Gtk2::remove_all_tags { my ($_buffer, $_start, $_end) = @_ }
sub Gtk2::remove_column { my ($_tree_view, $_column) = @_ }
sub Gtk2::remove_items { my ($_list, $_items) = @_ }
sub Gtk2::remove_items_no_unref { my ($_list, $_items) = @_ }
sub Gtk2::remove_page { my ($_notebook, $_page_num) = @_ }
sub Gtk2::remove_tag { my ($_buffer, $_tag, $_start, $_end) = @_ }
sub Gtk2::remove_tag_by_name { my ($_buffer, $_name, $_start, $_end) = @_ }
sub Gtk2::render_icon { my ($_icon_set, $_style, $_direction, $_state, $_size, $_widget, $_detail) = @_ }
sub Gtk2::render_threshold_alpha { my ($_pixbuf, $_bitmap, $_src_x, $_src_y, $_dest_x, $_dest_y, $_width, $_height, $_alpha_threshold) = @_ }
sub Gtk2::render_to_drawable { my ($_pixbuf, $_drawable, $_gc, $_src_x, $_src_y, $_dest_x, $_dest_y, $_width, $_height, $_dither, $_x_dither, $_y_dither) = @_ }
sub Gtk2::render_to_drawable_alpha { my ($_pixbuf, $_drawable, $_src_x, $_src_y, $_dest_x, $_dest_y, $_width, $_height, $_alpha_mode, $_alpha_threshold, $_dither, $_x_dither, $_y_dither) = @_ }
sub Gtk2::reorder_child { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::reparent { my ($_window, $_new_parent, $_x, $_y) = @_ }
sub Gtk2::reparse_all { my ($_class) = @_ }
sub Gtk2::reparse_all_for_settings { my ($_class, $_settings, $_force_load) = @_ }
sub Gtk2::request_height { my ($_socket) = @_ }
sub Gtk2::request_width { my ($_socket) = @_ }
sub Gtk2::requestor { my ($_event) = @_ }
sub Gtk2::requisition { my ($_widget) = @_ }
sub Gtk2::reset_shapes { my ($_widget) = @_ }
sub Gtk2::reshow_with_initial_size { my ($_window) = @_ }
sub Gtk2::resize { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::resize_children { my ($_container) = @_ }
sub Gtk2::response { my ($_dialog, $_response_id) = @_ }
sub Gtk2::rgb_find_color { my ($_colormap, $_color) = @_ }
sub Gtk2::rise_new { my ($_class, $_rise) = @_ }
sub Gtk2::row_activated { my ($_tree_view, $_path, $_column) = @_ }
sub Gtk2::row_expanded { my ($_tree_view, $_path) = @_ }
sub Gtk2::run { my ($_dialog) = @_ }
sub Gtk2::same_app { my ($_DUMMY0) = @_ }
sub Gtk2::saturate_and_pixelate { my ($_src, $_dest, $_saturation, $_pixelate) = @_ }
sub Gtk2::scale { my ($_src, $_dest, $_dest_x, $_dest_y, $_dest_width, $_dest_height, $_offset_x, $_offset_y, $_scale_x, $_scale_y, $_interp_type) = @_ }
sub Gtk2::scale_new { my ($_class, $_scale_factor) = @_ }
sub Gtk2::scale_simple { my ($_src, $_dest_width, $_dest_height, $_interp_type) = @_ }
sub Gtk2::screen_height { my ($_class) = @_ }
sub Gtk2::screen_height_mm { my ($_class) = @_ }
sub Gtk2::screen_width { my ($_class) = @_ }
sub Gtk2::screen_width_mm { my ($_class) = @_ }
sub Gtk2::scroll { my ($_window, $_dx, $_dy) = @_ }
sub Gtk2::scroll_mark_onscreen { my ($_text_view, $_mark) = @_ }
sub Gtk2::scroll_to_cell { my ($_tree_view, $_path, $_column, $_use_align, $_row_align, $_col_align) = @_ }
sub Gtk2::scroll_to_iter { my ($_text_view, $_iter, $_within_margin, $_use_align, $_xalign, $_yalign) = @_ }
sub Gtk2::scroll_to_mark { my ($_text_view, $_mark, $_within_margin, $_use_align, $_xalign, $_yalign) = @_ }
sub Gtk2::scroll_to_point { my ($_tree_view, $_tree_x, $_tree_y) = @_ }
sub Gtk2::select { my ($_item) = @_ }
sub Gtk2::select_all { my ($_DUMMY0) = @_ }
sub Gtk2::select_child { my ($_list, $_child) = @_ }
sub Gtk2::select_day { my ($_calendar, $_day) = @_ }
sub Gtk2::select_item { my ($_list, $_item) = @_ }
sub Gtk2::select_iter { my ($_selection, $_iter) = @_ }
sub Gtk2::select_month { my ($_calendar, $_month, $_year) = @_ }
sub Gtk2::select_path { my ($_selection, $_path) = @_ }
sub Gtk2::select_range { my ($_selection, $_start_path, $_end_path) = @_ }
sub Gtk2::select_region { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::select_row { my ($_clist, $_row, $_column) = @_ }
sub Gtk2::selected_foreach { my ($_selection, $_func, $_data) = @_ }
sub Gtk2::selection { my ($_event) = @_ }
sub Gtk2::selection_add_target { my ($_widget, $_selection, $_target, $_info) = @_ }
sub Gtk2::selection_convert { my ($_widget, $_selection, $_target, $_time) = @_ }
sub Gtk2::selection_entry { my ($_dialog) = @_ }
sub Gtk2::selection_owner_set { my ($_widget, $_selection, $_time) = @_ }
sub Gtk2::selection_text { my ($_dialog) = @_ }
sub Gtk2::send_event { my ($_event) = @_ }
sub Gtk2::set {}
sub Gtk2::set_accel_widget { my ($_accel_label, $_accel_widget) = @_ }
sub Gtk2::set_activates_default { my ($_entry, $_setting) = @_ }
sub Gtk2::set_active { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_adjustment { my ($_range, $_adjustment) = @_ }
sub Gtk2::set_alignment {}
sub Gtk2::set_app_paintable { my ($_widget, $_app_paintable) = @_ }
sub Gtk2::set_attributes { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_auto_sort { my ($_clist, $_auto_sort) = @_ }
sub Gtk2::set_back_pixmap { my ($_window, $_pixmap, $_parent_relative) = @_ }
sub Gtk2::set_background {}
sub Gtk2::set_base_dir { my ($_context, $_direction) = @_ }
sub Gtk2::set_base_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_bg_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_black_gc { my ($_style, $_gc) = @_ }
sub Gtk2::set_blue { my ($_gc, $_v) = @_ }
sub Gtk2::set_border_width { my ($_cont, $_width) = @_ }
sub Gtk2::set_border_window_size { my ($_text_view, $_type, $_size) = @_ }
sub Gtk2::set_case_sensitive { my ($_combo, $_val) = @_ }
sub Gtk2::set_child_packing { my ($_box, $_widget, $_expand, $_fill, $_padding, $_pack_type) = @_ }
sub Gtk2::set_child_shapes { my ($_window) = @_ }
sub Gtk2::set_child_visible { my ($_widget, $_is_visible) = @_ }
sub Gtk2::set_clickable { my ($_tree_column, $_clickable) = @_ }
sub Gtk2::set_col_spacing { my ($_table, $_column, $_spacing) = @_ }
sub Gtk2::set_col_spacings { my ($_table, $_spacing) = @_ }
sub Gtk2::set_colormap { my ($_drawable, $_colormap) = @_ }
sub Gtk2::set_column_auto_resize { my ($_clist, $_column, $_auto_resize) = @_ }
sub Gtk2::set_column_justification { my ($_clist, $_column, $_justification) = @_ }
sub Gtk2::set_column_max_width { my ($_clist, $_column, $_max_width) = @_ }
sub Gtk2::set_column_min_width { my ($_clist, $_column, $_min_width) = @_ }
sub Gtk2::set_column_resizeable { my ($_clist, $_column, $_resizeable) = @_ }
sub Gtk2::set_column_title { my ($_clist, $_column, $_title) = @_ }
sub Gtk2::set_column_visibility { my ($_clist, $_column, $_visibility) = @_ }
sub Gtk2::set_column_widget { my ($_clist, $_column, $_widget) = @_ }
sub Gtk2::set_column_width { my ($_clist, $_column, $_width) = @_ }
sub Gtk2::set_composite_name { my ($_widget, $_name) = @_ }
sub Gtk2::set_current_color { my ($_colorsel, $_color) = @_ }
sub Gtk2::set_current_page { my ($_notebook, $_page_num) = @_ }
sub Gtk2::set_cursor {}
sub Gtk2::set_cursor_visible { my ($_text_view, $_setting) = @_ }
sub Gtk2::set_curve_type { my ($_curve, $_type) = @_ }
sub Gtk2::set_dark_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_data { my ($_self, $_key, $_data) = @_ }
sub Gtk2::set_decorated { my ($_window, $_setting) = @_ }
sub Gtk2::set_decorations { my ($_window, $_decorations) = @_ }
sub Gtk2::set_default { my ($_window, $_default_widget) = @_ }
sub Gtk2::set_default_direction { my ($_class, $_dir) = @_ }
sub Gtk2::set_default_response { my ($_dialog, $_response_id) = @_ }
sub Gtk2::set_default_size { my ($_window, $_width, $_height) = @_ }
sub Gtk2::set_delay { my ($_tooltips, $_delay) = @_ }
sub Gtk2::set_destroy_with_parent { my ($_window, $_setting) = @_ }
sub Gtk2::set_digits { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_direction { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_direction_wildcarded { my ($_source, $_setting) = @_ }
sub Gtk2::set_double_buffered { my ($_widget, $_double_buffered) = @_ }
sub Gtk2::set_draw_value { my ($_scale, $_draw_value) = @_ }
sub Gtk2::set_editable { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_enable_search { my ($_tree_view, $_setting) = @_ }
sub Gtk2::set_events { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_extension_events { my ($_widget, $_mode) = @_ }
sub Gtk2::set_fg_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_filename { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_fixed_width { my ($_tree_column, $_fixed_width) = @_ }
sub Gtk2::set_focus { my ($_window, $_focus) = @_ }
sub Gtk2::set_focus_child { my ($_container, $_child) = @_ }
sub Gtk2::set_focus_hadjustment { my ($_container, $_adjustment) = @_ }
sub Gtk2::set_focus_vadjustment { my ($_container, $_adjustment) = @_ }
sub Gtk2::set_font_desc { my ($_style, $_pango_font) = @_ }
sub Gtk2::set_font_description { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_font_name { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_foreground { my ($_clist, $_row, $_color) = @_ }
sub Gtk2::set_fraction { my ($_pbar, $_fraction) = @_ }
sub Gtk2::set_frame_dimensions { my ($_window, $_left, $_top, $_right, $_bottom) = @_ }
sub Gtk2::set_from_animation { my ($_image, $_animation) = @_ }
sub Gtk2::set_from_file { my ($_image, $_filename) = @_ }
sub Gtk2::set_from_image { my ($_image, $_gdk_image, $_mask) = @_ }
sub Gtk2::set_from_pixbuf { my ($_image, $_pixbuf) = @_ }
sub Gtk2::set_from_pixmap { my ($_image, $_pixmap, $_mask) = @_ }
sub Gtk2::set_from_stock { my ($_image, $_stock_id, $_size) = @_ }
sub Gtk2::set_gamma { my ($_curve, $_gamma) = @_ }
sub Gtk2::set_gravity { my ($_window, $_gravity) = @_ }
sub Gtk2::set_green { my ($_gc, $_v) = @_ }
sub Gtk2::set_group { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_hadjustment { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_handle_position { my ($_handle_box, $_position) = @_ }
sub Gtk2::set_has_frame { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_has_opacity_control { my ($_colorsel, $_flag) = @_ }
sub Gtk2::set_has_palette { my ($_colorsel, $_flag) = @_ }
sub Gtk2::set_has_resize_grip { my ($_statusbar, $_setting) = @_ }
sub Gtk2::set_has_separator { my ($_dialog, $_setting) = @_ }
sub Gtk2::set_has_window { my ($_fixed, $_has_window) = @_ }
sub Gtk2::set_headers_clickable { my ($_tree_view, $_setting) = @_ }
sub Gtk2::set_headers_visible { my ($_tree_view, $_setting) = @_ }
sub Gtk2::set_history { my ($_option_menu, $_index) = @_ }
sub Gtk2::set_homogeneous { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_icon {}
sub Gtk2::set_icon_name { my ($_window, $_name) = @_ }
sub Gtk2::set_icon_size { my ($_toolbar, $_icon_size) = @_ }
sub Gtk2::set_image { my ($_menu_item, $_image) = @_ }
sub Gtk2::set_inconsistent { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_increments { my ($_range, $_step, $_page) = @_ }
sub Gtk2::set_indent { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_inverted { my ($_range, $_setting) = @_ }
sub Gtk2::set_invisible_char { my ($_entry, $_ch) = @_ }
sub Gtk2::set_item_string { my ($_combo, $_item, $_item_value) = @_ }
sub Gtk2::set_justification { my ($_text_view, $_justification) = @_ }
sub Gtk2::set_justify { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_label { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_label_align { my ($_frame, $_xalign, $_yalign) = @_ }
sub Gtk2::set_label_widget { my ($_frame, $_label_widget) = @_ }
sub Gtk2::set_language { my ($_context, $_language) = @_ }
sub Gtk2::set_layout { my ($_box, $_style) = @_ }
sub Gtk2::set_left_margin { my ($_text_view, $_left_margin) = @_ }
sub Gtk2::set_light_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_line { my ($_iter, $_line_number) = @_ }
sub Gtk2::set_line_index { my ($_iter, $_byte_on_line) = @_ }
sub Gtk2::set_line_offset { my ($_iter, $_char_on_line) = @_ }
sub Gtk2::set_line_wrap { my ($_label, $_wrap) = @_ }
sub Gtk2::set_locale { my ($_class) = @_ }
sub Gtk2::set_lower { my ($_adjustment, $_value) = @_ }
sub Gtk2::set_markup {}
sub Gtk2::set_markup_with_mnemonic { my ($_label, $_str) = @_ }
sub Gtk2::set_max_length { my ($_entry, $_max) = @_ }
sub Gtk2::set_max_width { my ($_tree_column, $_max_width) = @_ }
sub Gtk2::set_menu { my ($_option_menu, $_menu) = @_ }
sub Gtk2::set_menu_label { my ($_notebook, $_child, $_menu_label) = @_ }
sub Gtk2::set_menu_label_text { my ($_notebook, $_child, $_menu_text) = @_ }
sub Gtk2::set_metric { my ($_ruler, $_metric) = @_ }
sub Gtk2::set_mid_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_min_width { my ($_tree_column, $_min_width) = @_ }
sub Gtk2::set_minmax_width { my ($_self, $_width) = @_ }
sub Gtk2::set_mnemonic_widget { my ($_label, $_widget) = @_ }
sub Gtk2::set_modal { my ($_window, $_setting) = @_ }
sub Gtk2::set_modal_hint { my ($_window, $_modal) = @_ }
sub Gtk2::set_mode { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_model { my ($_tree_view, $_model) = @_ }
sub Gtk2::set_modified { my ($_buffer, $_setting) = @_ }
sub Gtk2::set_name { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_numeric { my ($_spin_button, $_numeric) = @_ }
sub Gtk2::set_offset { my ($_iter, $_char_offset) = @_ }
sub Gtk2::set_orientation { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_override_redirect { my ($_window, $_override_redirect) = @_ }
sub Gtk2::set_padding { my ($_misc, $_xpad, $_ypad) = @_ }
sub Gtk2::set_page_increment { my ($_adjustment, $_value) = @_ }
sub Gtk2::set_page_size { my ($_adjustment, $_value) = @_ }
sub Gtk2::set_pattern { my ($_label, $_pattern) = @_ }
sub Gtk2::set_pixbuf { my ($_source, $_pixbuf) = @_ }
sub Gtk2::set_pixels_above_lines { my ($_text_view, $_pixels_above_lines) = @_ }
sub Gtk2::set_pixels_below_lines { my ($_text_view, $_pixels_below_lines) = @_ }
sub Gtk2::set_pixels_inside_wrap { my ($_text_view, $_pixels_inside_wrap) = @_ }
sub Gtk2::set_placement { my ($_scrolled_window, $_window_placement) = @_ }
sub Gtk2::set_policy { my ($_scrolled_window, $_hscrollbar_policy, $_vscrollbar_policy) = @_ }
sub Gtk2::set_position { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_preview_text { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_previous_color { my ($_colorsel, $_color) = @_ }
sub Gtk2::set_program_class { my ($_class, $_program_class) = @_ }
sub Gtk2::set_property { my ($_object, $_property_name, $_value) = @_ }
sub Gtk2::set_pulse_step { my ($_pbar, $_fraction) = @_ }
sub Gtk2::set_radio { my ($_toggle, $_radio) = @_ }
sub Gtk2::set_range {}
sub Gtk2::set_reallocate_redraws { my ($_container, $_needs_redraws) = @_ }
sub Gtk2::set_red { my ($_gc, $_v) = @_ }
sub Gtk2::set_redraw_on_allocate { my ($_widget, $_redraw_on_allocate) = @_ }
sub Gtk2::set_relief { my ($_button, $_newstyle) = @_ }
sub Gtk2::set_reorderable { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_resizable { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_resize_mode { my ($_container, $_resize_mode) = @_ }
sub Gtk2::set_response_sensitive { my ($_dialog, $_response_id, $_setting) = @_ }
sub Gtk2::set_rgb { my ($_gc, $_red, $_green, $_blue) = @_ }
sub Gtk2::set_right_margin { my ($_text_view, $_right_margin) = @_ }
sub Gtk2::set_role { my ($_window, $_role) = @_ }
sub Gtk2::set_row_height { my ($_clist, $_height) = @_ }
sub Gtk2::set_row_spacing { my ($_table, $_row, $_spacing) = @_ }
sub Gtk2::set_row_spacings { my ($_table, $_spacing) = @_ }
sub Gtk2::set_rules_hint { my ($_tree_view, $_setting) = @_ }
sub Gtk2::set_scroll_adjustments { my ($_widget, $_hadjustment, $_vadjustment) = @_ }
sub Gtk2::set_scrollable { my ($_notebook, $_scrollable) = @_ }
sub Gtk2::set_search_column { my ($_tree_view, $_column) = @_ }
sub Gtk2::set_select_function { my ($_selection, $_func, $_data) = @_ }
sub Gtk2::set_select_multiple { my ($_filesel, $_select_multiple) = @_ }
sub Gtk2::set_selectable {}
sub Gtk2::set_selection_mode { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_sensitive { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_shadow_type { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_show_border { my ($_notebook, $_show_border) = @_ }
sub Gtk2::set_show_events { my ($_class, $_show_events) = @_ }
sub Gtk2::set_show_tabs { my ($_notebook, $_show_tabs) = @_ }
sub Gtk2::set_single_paragraph_mode { my ($_layout, $_setting) = @_ }
sub Gtk2::set_size {}
sub Gtk2::set_size_wildcarded { my ($_source, $_setting) = @_ }
sub Gtk2::set_sizing { my ($_tree_column, $_type) = @_ }
sub Gtk2::set_snap_edge { my ($_handle_box, $_edge) = @_ }
sub Gtk2::set_snap_to_ticks { my ($_spin_button, $_snap) = @_ }
sub Gtk2::set_sort_column_id { my ($_tree_column, $_sort_column_id) = @_ }
sub Gtk2::set_sort_indicator { my ($_tree_column, $_setting) = @_ }
sub Gtk2::set_sort_order { my ($_tree_column, $_order) = @_ }
sub Gtk2::set_spacing { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_state { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_state_wildcarded { my ($_source, $_setting) = @_ }
sub Gtk2::set_static_gravities { my ($_window, $_use_static) = @_ }
sub Gtk2::set_step_increment { my ($_adjustment, $_value) = @_ }
sub Gtk2::set_style { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_submenu { my ($_menu_item, $_submenu) = @_ }
sub Gtk2::set_tab_label { my ($_notebook, $_child, $_tab_label) = @_ }
sub Gtk2::set_tab_label_packing { my ($_notebook, $_child, $_expand, $_fill, $_pack_type) = @_ }
sub Gtk2::set_tab_label_text { my ($_notebook, $_child, $_tab_text) = @_ }
sub Gtk2::set_tab_pos { my ($_notebook, $_pos) = @_ }
sub Gtk2::set_text {}
sub Gtk2::set_text_aa_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_text_gc { my ($_style, $_state, $_gc) = @_ }
sub Gtk2::set_text_with_mnemonic { my ($_label, $_str) = @_ }
sub Gtk2::set_tip { my ($_widget, $_tip_text, $o_tip_private) = @_ }
sub Gtk2::set_title { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_tooltips { my ($_toolbar, $_enable) = @_ }
sub Gtk2::set_transient_for { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_type_hint { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_update_policy { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_uposition { my ($_widget, $_x, $_y) = @_ }
sub Gtk2::set_upper { my ($_adjustment, $_value) = @_ }
sub Gtk2::set_use_arrows { my ($_combo, $_val) = @_ }
sub Gtk2::set_use_arrows_always { my ($_combo, $_val) = @_ }
sub Gtk2::set_use_markup { my ($_label, $_setting) = @_ }
sub Gtk2::set_use_stock { my ($_button, $_val) = @_ }
sub Gtk2::set_use_underline { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_vadjustment { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_value { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_value_in_list { my ($_combo, $_val, $_ok_if_empty) = @_ }
sub Gtk2::set_value_pos { my ($_scale, $_pos) = @_ }
sub Gtk2::set_visibility { my ($_entry, $_visibility) = @_ }
sub Gtk2::set_visible { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_visible_line_index { my ($_iter, $_byte_on_line) = @_ }
sub Gtk2::set_visible_line_offset { my ($_iter, $_char_on_line) = @_ }
sub Gtk2::set_white_gc { my ($_style, $_gc) = @_ }
sub Gtk2::set_widget { my ($_tree_column, $_widget) = @_ }
sub Gtk2::set_width { my ($_layout, $_width) = @_ }
sub Gtk2::set_wmclass { my ($_window, $_wmclass_name, $_wmclass_class) = @_ }
sub Gtk2::set_wrap { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::set_wrap_mode { my ($_text_view, $_wrap_mode) = @_ }
sub Gtk2::shape_combine_mask { my ($_DUMMY0, $_DUMMY1, $_DUMMY2, $_DUMMY3) = @_ }
sub Gtk2::shape_new { my ($_class, $_ink_rect, $_logical_rect) = @_ }
sub Gtk2::show { my ($_DUMMY0) = @_ }
sub Gtk2::show_all { my ($_widget) = @_ }
sub Gtk2::show_border { my ($_self, $_flag) = @_ }
sub Gtk2::show_fileop_buttons { my ($_filesel) = @_ }
sub Gtk2::show_now { my ($_widget) = @_ }
sub Gtk2::show_tabs { my ($_self, $_flag) = @_ }
sub Gtk2::show_unraised { my ($_window) = @_ }
sub Gtk2::sink { my ($_object) = @_ }
sub Gtk2::size { my ($_darea, $_width, $_height) = @_ }
sub Gtk2::size_new { my ($_class, $_size) = @_ }
sub Gtk2::size_request { my ($_widget) = @_ }
sub Gtk2::socket_window { my ($_plug) = @_ }
sub Gtk2::sort { my ($_clist) = @_ }
sub Gtk2::spacing { my ($_box) = @_ }
sub Gtk2::splice { my ($_list, $_other, $_pos, $_len) = @_ }
sub Gtk2::start_selection { my ($_list) = @_ }
sub Gtk2::starts_display_line { my ($_text_view, $_iter) = @_ }
sub Gtk2::starts_line { my ($_iter) = @_ }
sub Gtk2::starts_sentence { my ($_iter) = @_ }
sub Gtk2::starts_word { my ($_iter) = @_ }
sub Gtk2::state { my ($_DUMMY0) = @_ }
sub Gtk2::steal { my ($_socket, $_wid) = @_ }
sub Gtk2::step_increment { my ($_self, $_value) = @_ }
sub Gtk2::stick { my ($_DUMMY0) = @_ }
sub Gtk2::stop_emission_by_name { my ($_class, $_objref, $_detailed_signal) = @_ }
sub Gtk2::stretch_new { my ($_class, $_stretch) = @_ }
sub Gtk2::strikethrough_new { my ($_class, $_strikethrough) = @_ }
sub Gtk2::string { my ($_event) = @_ }
sub Gtk2::style_get_property { my ($_widget, $_property_name) = @_ }
sub Gtk2::style_new { my ($_class, $_style) = @_ }
sub Gtk2::subwindow { my ($_event) = @_ }
sub Gtk2::swap { my ($_DUMMY0, $_DUMMY1, $_DUMMY2) = @_ }
sub Gtk2::tab_pos { my ($_self, $_flag) = @_ }
sub Gtk2::target { my ($_event) = @_ }
sub Gtk2::test_string { my ($_class, $_file) = @_ }
sub Gtk2::text { my ($_self, $_text) = @_ }
sub Gtk2::text_aa_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::text_gc { my ($_state, $o_gc) = @_ }
sub Gtk2::text_length { my ($_entry) = @_ }
sub Gtk2::thaw { my ($_DUMMY0) = @_ }
sub Gtk2::thaw_child_notify { my ($_widget) = @_ }
sub Gtk2::thaw_updates { my ($_window) = @_ }
sub Gtk2::time { my ($_DUMMY0) = @_ }
sub Gtk2::timeout_add { my ($_DUMMY0, $_DUMMY1, $_DUMMY2, $_DUMMY3) = @_ }
sub Gtk2::timeout_remove { my ($_DUMMY0, $_DUMMY1) = @_ }
sub Gtk2::to_string { my ($_path) = @_ }
sub Gtk2::toggle { my ($_item) = @_ }
sub Gtk2::toggle_add_mode { my ($_list) = @_ }
sub Gtk2::toggle_expansion { my ($_self, $_path, $_open_all) = @_ }
sub Gtk2::toggle_focus_row { my ($_list) = @_ }
sub Gtk2::toggle_row { my ($_list, $_item) = @_ }
sub Gtk2::toggled { my ($_DUMMY0) = @_ }
sub Gtk2::toggles_tag { my ($_iter, $_tag) = @_ }
sub Gtk2::toplevel { my ($_socket) = @_ }
sub Gtk2::try_eval { my ($_eval, $_expect, $_check) = @_ }
sub Gtk2::try_get_set { my ($_method, $_old, $_new) = @_ }
sub Gtk2::try_method { my ($_method, $_args, $_expect, $_check) = @_ }
sub Gtk2::try_new { my ($_method, $_args, $_expect, $_check) = @_ }
sub Gtk2::type { my ($_DUMMY0) = @_ }
sub Gtk2::underline_new { my ($_class, $_underline) = @_ }
sub Gtk2::undo_selection { my ($_DUMMY0) = @_ }
sub Gtk2::unfullscreen { my ($_window) = @_ }
sub Gtk2::unmap { my ($_widget) = @_ }
sub Gtk2::unmark_day { my ($_calendar, $_day) = @_ }
sub Gtk2::unmaximize { my ($_DUMMY0) = @_ }
sub Gtk2::unparent { my ($_widget) = @_ }
sub Gtk2::unrealize { my ($_widget) = @_ }
sub Gtk2::unref { my ($_DUMMY0) = @_ }
sub Gtk2::unref_node { my ($_tree_model, $_iter) = @_ }
sub Gtk2::unselect_all { my ($_DUMMY0) = @_ }
sub Gtk2::unselect_child { my ($_list, $_child) = @_ }
sub Gtk2::unselect_item { my ($_list, $_item) = @_ }
sub Gtk2::unselect_iter { my ($_selection, $_iter) = @_ }
sub Gtk2::unselect_path { my ($_selection, $_path) = @_ }
sub Gtk2::unselect_row { my ($_clist, $_row, $_column) = @_ }
sub Gtk2::unset_icon_size { my ($_toolbar) = @_ }
sub Gtk2::unset_style { my ($_toolbar) = @_ }
sub Gtk2::unstick { my ($_DUMMY0) = @_ }
sub Gtk2::up { my ($_path) = @_ }
sub Gtk2::update_ui { my ($_class) = @_ }
sub Gtk2::upper { my ($_self, $_value) = @_ }
sub Gtk2::value { my ($_self, $_value) = @_ }
sub Gtk2::value_changed { my ($_adjustment) = @_ }
sub Gtk2::variant_new { my ($_class, $_variant) = @_ }
sub Gtk2::vbox { my ($_dialog) = @_ }
sub Gtk2::vscrollbar { my ($_scrolled_window) = @_ }
sub Gtk2::vscrollbar_visible { my ($_scrolled_window) = @_ }
sub Gtk2::weak_ref { my ($_object, $_notify, $_data) = @_ }
sub Gtk2::weight_new { my ($_class, $_weight) = @_ }
sub Gtk2::white_gc { my ($_self, $_set) = @_ }
sub Gtk2::widget { my ($_boxchild) = @_ }
sub Gtk2::width { my ($_DUMMY0) = @_ }
sub Gtk2::window { my ($_DUMMY0) = @_ }
sub Gtk2::withdraw { my ($_window) = @_ }
sub Gtk2::x { my ($_DUMMY0) = @_ }
sub Gtk2::x1 { my ($_segment) = @_ }
sub Gtk2::x2 { my ($_segment) = @_ }
sub Gtk2::x_root { my ($_DUMMY0) = @_ }
sub Gtk2::xembed_version { my ($_socket) = @_ }
sub Gtk2::y { my ($_DUMMY0) = @_ }
sub Gtk2::y1 { my ($_segment) = @_ }
sub Gtk2::y2 { my ($_segment) = @_ }
sub Gtk2::y_root { my ($_DUMMY0) = @_ }
span class="hl opt">} $oldmenuchoice = $menuchoice; } return 0; } ); #- make the DeviceURI from, try to probe for available variable to #- build a suitable URI. $printer->{currentqueue}{connect} = join '', ("smb://", ($smbuser && ($smbuser . ($smbpassword && ":$smbpassword") . '@')), ($workgroup && "$workgroup/"), ($smbserver || $smbserverip), "/$smbshare"); if (!$::testing && !files_exist('/usr/bin/smbclient')) { $in->do_pkgs->install('samba-client') or do { $in->ask_warn(N("Error"), N("Could not install the %s packages!", "Samba client") . " " . N("Aborting")); return 0; }; } $printer->{SPOOLER} eq 'cups' and printer::main::restart_queue($printer); 1; } sub setup_ncp { my ($printer, $in, $upNetwork) = @_; # Check whether the network functionality is configured and # running if (!check_network($printer, $in, $upNetwork, 0)) { return 0 }; # $in->set_help('setupNCP') if $::isInstall; my ($uri, $ncpuser, $ncppassword, $ncpserver, $ncpqueue); my $queue = $printer->{OLD_QUEUE}; if ($printer->{configured}{$queue} && $printer->{currentqueue}{connect} =~ m/^ncp:/) { $uri = $printer->{currentqueue}{connect}; my $parameters = $uri =~ m!^\s*ncp://(.*)$!; # Get the user's login and password from the URI if ($parameters =~ m!([^@]*)@([^@]+)!) { my $login = $1; $parameters = $2; if ($login =~ m!([^:]*):([^:]*)!) { $ncpuser = $1; $ncppassword = $2; } else { $ncpuser = $login; $ncppassword = ""; } } else { $ncpuser = ""; $ncppassword = ""; } # Get the workgroup, server, and share name if ($parameters =~ m!([^/]+)/([^/]+)$!) { $ncpserver = $1; $ncpqueue = $2; } else { die qq(The "ncp://" URI must at least contain the server name and the share name!\n); } } return 0 if !$in->ask_from(N("NetWare Printer Options"), N("To print on a NetWare printer, you need to provide the NetWare print server name (Note! it may be different from its TCP/IP hostname!) as well as the print queue name for the printer you wish to access and any applicable user name and password."), [ { label => N("Printer Server"), val => \$ncpserver }, { label => N("Print Queue Name"), val => \$ncpqueue }, { label => N("User name"), val => \$ncpuser }, { label => N("Password"), val => \$ncppassword, hidden => 1 } ], complete => sub { unless ($ncpserver ne "") { $in->ask_warn(N("Error"), N("NCP server name missing!")); return 1, 0; } unless ($ncpqueue ne "") { $in->ask_warn(N("Error"), N("NCP queue name missing!")); return 1, 1; } return 0; } ); # Generate the Foomatic URI $printer->{currentqueue}{connect} = join '', ("ncp://", ($ncpuser && ($ncpuser . ($ncppassword && ":$ncppassword") . '@')), "$ncpserver/$ncpqueue"); if (!$::testing && !files_exist('/usr/bin/nprint')) { $in->do_pkgs->install('ncpfs') or do { $in->ask_warn(N("Error"), N("Could not install the %s packages!", "ncpfs") . " " . N("Aborting")); return 0; }; } 1; } sub setup_socket { my ($printer, $in, $upNetwork) = @_; # Check whether the network functionality is configured and # running if (!check_network($printer, $in, $upNetwork, 0)) { return 0 }; # $in->set_help('setupSocket') if $::isInstall; my ($uri, $remotehost, $remoteport); my $queue = $printer->{OLD_QUEUE}; if ($printer->{configured}{$queue} && $printer->{currentqueue}{connect} =~ m!^(socket:|ptal://?hpjd:)!) { $uri = $printer->{currentqueue}{connect}; if ($uri =~ m!^ptal:!) { if ($uri =~ m!^ptal://?hpjd:([^/:]+):([0-9]+)/?\s*$!) { my $ptalport = $2 - 9100; ($remotehost, $remoteport) = ($1, $ptalport); } elsif ($uri =~ m!^ptal://?hpjd:([^/:]+)\s*$!) { ($remotehost, $remoteport) = ($1, 9100); } } else { ($remotehost, $remoteport) = $uri =~ m!^\s*socket://([^/:]+):([0-9]+)/?\s*$!; } } else { $remotehost = ""; $remoteport = "9100"; } my $autodetect = 0; my @autodetected; my $menuentries; my @menuentrieslist; my $menuchoice = ""; my $oldmenuchoice = ""; if ($printer->{AUTODETECT}) { $autodetect = 1; my $_w = $in->wait_message(N("Printer auto-detection"), N("Scanning network...")); @autodetected = printer::detect::net_detect(); my ($host, $port); foreach my $p (@autodetected) { my $menustr; if ($p->{port} =~ m!^socket://([^:]+):(\d+)$!) { $host = $1; $port = $2; } if ($p->{val}{DESCRIPTION}) { $menustr = $p->{val}{DESCRIPTION}; $menustr .= N(", host \"%s\", port %s", $host, $port); } else { $menustr = N("Host \"%s\", port %s", $host, $port); } $menuentries->{$menustr} = $p->{port}; if ($host eq $remotehost && $host eq $remotehost) { $menuchoice = $menustr; } } @menuentrieslist = sort { $menuentries->{$a} cmp $menuentries->{$b}; } keys(%$menuentries); if ($printer->{configured}{$queue} && $printer->{currentqueue}{connect} =~ m!^(socket:|ptal://?hpjd:)! && $menuchoice eq "") { my $menustr; if ($printer->{currentqueue}{make}) { $menustr = "$printer->{currentqueue}{make} $printer->{currentqueue}{model}"; $menustr .= N(", host \"%s\", port %s", $remotehost, $remoteport); } else { $menustr = N("Host \"%s\", port %s", $remotehost, $remoteport); } $menuentries->{$menustr} = "socket://$remotehost:$remoteport"; unshift(@menuentrieslist, $menustr); $menuchoice = $menustr; } if ($#menuentrieslist < 0) { $autodetect = 0; } elsif ($menuchoice eq "") { $menuchoice = $menuentrieslist[0]; if ($menuentries->{$menuentrieslist[0]} =~ m!^socket://([^:]+):(\d+)$!) { $remotehost = $1; $remoteport = $2; } } $oldmenuchoice = $menuchoice; } return 0 if !$in->ask_from_( { title => N("TCP/Socket Printer Options"), messages => ($autodetect ? N("Choose one of the auto-detected printers from the list or enter the hostname or IP and the optional port number (default is 9100) in the input fields.") : N("To print to a TCP or socket printer, you need to provide the host name or IP of the printer and optionally the port number (default is 9100). On HP JetDirect servers the port number is usually 9100, on other servers it can vary. See the manual of your hardware.")), callbacks => { complete => sub { unless ($remotehost ne "") { $in->ask_warn(N("Error"), N("Printer host name or IP missing!")); return 1, 0; } unless ($remoteport =~ /^[0-9]+$/) { $in->ask_warn(N("Error"), N("The port number should be an integer!")); return 1, 1; } return 0; }, changed => sub { return 0 if !$autodetect; if ($oldmenuchoice ne $menuchoice) { if ($menuentries->{$menuchoice} =~ m!^socket://([^:]+):(\d+)$!) { $remotehost = $1; $remoteport = $2; } $oldmenuchoice = $menuchoice; } return 0; } } }, [ { label => ($autodetect ? "" : N("Printer host name or IP")), val => \$remotehost }, { label => ($autodetect ? "" : N("Port")), val => \$remoteport }, if_($autodetect, { val => \$menuchoice, list => \@menuentrieslist, not_edit => 0, format => \&translate, sort => 0, allow_empty_list => 1, type => 'list' }) ] ); #- make the Foomatic URI $printer->{currentqueue}{connect} = join '', ("socket://$remotehost", $remoteport ? ":$remoteport" : ()); #- LPD and LPRng need netcat ('nc') to access to socket printers if (($printer->{SPOOLER} eq 'lpd' || $printer->{SPOOLER} eq 'lprng') && !$::testing && !files_exist('/usr/bin/nc')) { $in->do_pkgs->install('nc') or do { $in->ask_warn(N("Error"), N("Could not install the %s packages!", "nc") . " " . N("Aborting")); return 0; } } # Auto-detect printer model my $modelinfo; if ($printer->{AUTODETECT}) { $modelinfo = printer::detect::getSNMPModel($remotehost); } my $auto_hpoj; if (defined($modelinfo) && $modelinfo->{MANUFACTURER} ne "" && $modelinfo->{MODEL} ne "") { $auto_hpoj = 1; } else { $auto_hpoj = 0; } # Do configuration of multi-function devices and look up model name # in the printer database setup_common($printer, $in, "$modelinfo->{MANUFACTURER} $modelinfo->{MODEL}", $printer->{currentqueue}{connect}, $auto_hpoj, ({port => $printer->{currentqueue}{connect}, val => $modelinfo })); 1; } sub setup_uri { my ($printer, $in, $upNetwork) = @_; # $in->set_help('setupURI') if $::isInstall; if ($printer->{AUTODETECT} && $printer->{SPOOLER} eq 'cups') { my $_w = $in->wait_message(N("Printerdrake"), N("Refreshing Device URI list...")); printer::services::restart("cups"); } return if !$in->ask_from(N("Printer Device URI"), N("You can specify directly the URI to access the printer. The URI must fulfill either the CUPS or the Foomatic specifications. Note that not all URI types are supported by all the spoolers."), [ { label => N("Printer Device URI"), val => \$printer->{currentqueue}{connect}, list => [ if_($printer->{currentqueue}{connect}, $printer->{currentqueue}{connect}), ($printer->{SPOOLER} eq 'cups' ? printer::cups::lpinfo_v() : ("parallel:/", "usb:/", "serial:/", "http://", "ipp://", "lpd://", "smb://", "ncp://", "socket://", "ptal:/mlc:", "ptal:/hpjd:", "file:/", 'postpipe:""')), ], not_edit => 0, sort => 0 }, ], complete => sub { unless ($printer->{currentqueue}{connect} =~ /[^:]+:.+/) { $in->ask_warn(N("Error"), N("A valid URI must be entered!")); return 1, 0; } return 0; } ); # Non-local printer, check network and abort if no network available if ($printer->{currentqueue}{connect} !~ m!^(file|parallel|usb|serial|mtink|ptal://?mlc):/! && !check_network($printer, $in, $upNetwork, 0)) { return 0; # If the chosen protocol needs additional software, install it. } elsif ($printer->{currentqueue}{connect} =~ /^lpd:/ && $printer->{SPOOLER} eq 'lpd' && !$::testing && !files_exist('/usr/bin/rlpr')) { # LPD does not support filtered queues to a remote LPD server by itself # It needs an additional program as "rlpr" $in->do_pkgs->install('rlpr') or do { $in->ask_warn(N("Error"), N("Could not install the %s packages!", "rlpr") . " " . N("Aborting")); return 0; }; } elsif ($printer->{currentqueue}{connect} =~ /^smb:/ && !$::testing && !files_exist('/usr/bin/smbclient')) { $in->do_pkgs->install('samba-client') or do { $in->ask_warn(N("Error"), N("Could not install the %s packages!", "Samba client") . " " . N("Aborting")); return 0; }; } elsif ($printer->{currentqueue}{connect} =~ /^ncp:/ && !$::testing && !files_exist('/usr/bin/nprint')) { $in->do_pkgs->install('ncpfs') or do { $in->ask_warn(N("Error"), N("Could not install the %s packages!", "ncpfs") . " " . N("Aborting")); return 0; }; } elsif ($printer->{currentqueue}{connect} =~ /^socket:/ && #- LPD and LPRng need netcat ('nc') to access to socket printers ($printer->{SPOOLER} eq 'lpd' || $printer->{SPOOLER} eq 'lprng') && !$::testing && !files_exist('/usr/bin/nc')) { $in->do_pkgs->install('nc') or do { $in->ask_warn(N("Error"), N("Could not install the %s packages!", "nc") . " " . N("Aborting")); return 0; }; } if ($printer->{currentqueue}{connect} =~ m!^socket://([^:/]+)! || $printer->{currentqueue}{connect} =~ m!^lpd://([^:/]+)! || $printer->{currentqueue}{connect} =~ m!^http://([^:/]+)! || $printer->{currentqueue}{connect} =~ m!^ipp://([^:/]+)!) { # Auto-detect printer model (works if host is an ethernet-connected # printer) my $remotehost = $1; my $modelinfo = printer::detect::getSNMPModel($remotehost); my $auto_hpoj; if (defined($modelinfo) && $modelinfo->{MANUFACTURER} ne "" && $modelinfo->{MODEL} ne "") { $in->ask_warn(N("Information"), N("Detected model: %s %s", $modelinfo->{MANUFACTURER}, $modelinfo->{MODEL})); $auto_hpoj = 1; } else { $auto_hpoj = 0; } # Do configuration of multi-function devices and look up model name # in the printer database setup_common($printer, $in, "$modelinfo->{MANUFACTURER} $modelinfo->{MODEL}", $printer->{currentqueue}{connect}, $auto_hpoj, ({port => $printer->{currentqueue}{connect}, val => $modelinfo })); } 1; } sub setup_postpipe { my ($printer, $in) = @_; # $in->set_help('setupPostpipe') if $::isInstall; my $uri; my $commandline; my $queue = $printer->{OLD_QUEUE}; if ($printer->{configured}{$queue} && $printer->{currentqueue}{connect} =~ m/^postpipe:/) { $uri = $printer->{currentqueue}{connect}; $commandline = $1 if $uri =~ m!^\s*postpipe:"(.*)"$!; } else { $commandline = ""; } return if !$in->ask_from(N("Pipe into command"), N("Here you can specify any arbitrary command line into which the job should be piped instead of being sent directly to a printer."), [ { label => N("Command line"), val => \$commandline }, ], complete => sub { unless ($commandline ne "") { $in->ask_warn(N("Error"), N("A command line must be entered!")); return 1, 0; } return 0; } ); #- make the Foomatic URI $printer->{currentqueue}{connect} = "postpipe:$commandline"; 1; } sub setup_common { my ($printer, $in, $makemodel, $device, $do_auto_detect, @autodetected) = @_; #- Check whether the printer is an HP multi-function device and #- configure HPOJ if it is one my $ptaldevice = ""; my $isHPOJ = 0; my $w; if ($device =~ m!^/dev/! || $device =~ m!^socket://!) { # Ask user whether he has a multi-function device when he didn't # do auto-detection or when auto-detection failed my $searchunknown = N("Unknown model"); if (!$do_auto_detect || $makemodel eq $searchunknown || $makemodel =~ /^\s*$/) { local $::isWizard = 0; if (!$printer->{noninteractive}) { $isHPOJ = $in->ask_yesorno(N("Add a new printer"), N("Is your printer a multi-function device from HP or Sony (OfficeJet, PSC, LaserJet 1100/1200/1220/3200/3300 with scanner, DeskJet 450, Sony IJP-V100), an HP PhotoSmart or an HP LaserJet 2200?"), 0); } } if ($makemodel =~ /HP\s+(OfficeJet|PSC|PhotoSmart|LaserJet\s+(1200|1220|2200|3200|33.0)|(DeskJet|dj)\s*450)/i || $makemodel =~ /Sony\s+IJP[\s\-]+V[\s\-]+100/i || $isHPOJ) { # Install HPOJ package my $hpojinstallfailed = 0; if (!$::testing && !files_exist(qw(/usr/sbin/ptal-mlcd /usr/sbin/ptal-init /usr/bin/xojpanel /usr/sbin/lsusb))) { if ($::noX) { $hpojinstallfailed = 1; } else { $w = $in->wait_message(N("Printerdrake"), N("Installing HPOJ package...")) if !$printer->{noninteractive}; $in->do_pkgs->install('hpoj', 'xojpanel', 'usbutils') or do { $in->ask_warn(N("Warning"), N("Could not install the %s packages!", "HPOJ") . " " . N("Only printing will be possible on the %s.", $makemodel)); $hpojinstallfailed = 1; }; } } # Configure and start HPOJ undef $w; $w = $in->wait_message( N("Printerdrake"), N("Checking device and configuring HPOJ...")) if !$printer->{noninteractive}; eval { $ptaldevice = printer::main::configure_hpoj ($device, @autodetected) if !$hpojinstallfailed }; if (my $err = $@) { warn qq(HPOJ conf failure: "$err"); log::l(qq(HPOJ conf failure: "$err")); } if ($ptaldevice) { # HPOJ has determined the device name, make use of it if we # didn't know it before if (!$do_auto_detect || !$makemodel || $makemodel eq $searchunknown || $makemodel =~ /^\s*$/) { $makemodel = $ptaldevice; $makemodel =~ s/^.*:([^:]+)$/$1/; $makemodel =~ s/_/ /g; if ($makemodel =~ /^\s*IJP/i) { $makemodel = "Sony $makemodel"; } else { $makemodel = "HP $makemodel"; } } # Configure scanning with SANE on the MF device if ($makemodel !~ /HP\s+PhotoSmart/i && $makemodel !~ /HP\s+LaserJet\s+2200/i && $makemodel !~ /HP\s+(DeskJet|dj)\s*450/i) { # Install SANE if (!$::testing && (!files_exist(qw(/usr/bin/scanimage /usr/bin/xscanimage /etc/sane.d/dll.conf /usr/lib/libsane-hpoj.so.1)) || (!files_exist(qw(/usr/bin/xsane)) && !files_exist(qw(/usr/bin/kooka)) && !$in->do_pkgs->is_installed('scanner-gui')))) { undef $w; $w = $in->wait_message( N("Printerdrake"), N("Installing SANE packages...")) if !$printer->{noninteractive}; $::noX or $in->do_pkgs->install('sane-backends', 'sane-frontends', 'scanner-gui', 'libsane-hpoj1') or do { $in->ask_warn(N("Warning"), N("Could not install the %s packages!", "SANE") . " " . N("Scanning on the %s will not be possible.", $makemodel)); }; } # Configure the HPOJ SANE backend printer::main::config_sane(); } # Configure photo card access with mtools and MToolsFM if (($makemodel =~ /HP\s+PhotoSmart/i || $makemodel =~ /HP\s+PSC\s*9[05]0/i || $makemodel =~ /HP\s+PSC\s*135\d/i || $makemodel =~ /HP\s+PSC\s*21[57]\d/i || $makemodel =~ /HP\s+PSC\s*22\d\d/i || $makemodel =~ /HP\s+PSC\s*2[45]\d\d/i || $makemodel =~ /HP\s+OfficeJet\s+D\s*1[45]5/i || $makemodel =~ /HP\s+OfficeJet\s+71[34]0/i || $makemodel =~ /HP\s+(DeskJet|dj)\s*450/i) && $makemodel !~ /HP\s+PhotoSmart\s+7150/i) { # Install mtools and MToolsFM if (!$::testing && !files_exist(qw(/usr/bin/mdir /usr/bin/mcopy /usr/bin/MToolsFM ))) { undef $w; $w = $in->wait_message( N("Printerdrake"), N("Installing mtools packages...")) if !$printer->{noninteractive}; $::noX or $in->do_pkgs->install('mtools', 'mtoolsfm') or do { $in->ask_warn(N("Warning"), N("Could not install the %s packages!", "Mtools") . " " . N("Photo memory card access on the %s will not be possible.", $makemodel)); }; } # Configure mtools/MToolsFM for photo card access printer::main::config_photocard(); } if (!$printer->{noninteractive}) { my $text = ""; # Inform user about how to scan with his MF device $text = scanner_help($makemodel, "ptal://$ptaldevice"); if ($text) { undef $w; $in->ask_warn( N("Scanning on your HP multi-function device"), $text); } # Inform user about how to access photo cards with his # MF device $text = photocard_help($makemodel, "ptal://$ptaldevice"); if ($text) { undef $w; $in->ask_warn(N("Photo memory card access on your HP multi-function device"), $text); } } # make the DeviceURI from $ptaldevice. $printer->{currentqueue}{connect} = "ptal://" . $ptaldevice; } else { # make the DeviceURI from $device. $printer->{currentqueue}{connect} = $device; } $w = $in->wait_message( N("Printerdrake"), N("Checking device and configuring HPOJ...")) if !$printer->{noninteractive} && !defined($w); } else { # make the DeviceURI from $device. $printer->{currentqueue}{connect} = $device; } } else { # make the DeviceURI from $device. $printer->{currentqueue}{connect} = $device; } if ($printer->{currentqueue}{connect} !~ /:/) { if ($printer->{currentqueue}{connect} =~ /usb/) { $printer->{currentqueue}{connect} = "usb:" . $printer->{currentqueue}{connect}; } elsif ($printer->{currentqueue}{connect} =~ /(serial|tty)/) { $printer->{currentqueue}{connect} = "serial:" . $printer->{currentqueue}{connect}; } elsif ($printer->{currentqueue}{connect} =~ /(printers|parallel|parport|lp\d)/) { $printer->{currentqueue}{connect} = "parallel:" . $printer->{currentqueue}{connect}; } else { $printer->{currentqueue}{connect} = "file:" . $printer->{currentqueue}{connect}; } } #- if CUPS is the spooler, make sure that CUPS knows the device if ($printer->{SPOOLER} eq "cups" && $device !~ /^lpd:/ && $device !~ /^smb:/ && $device !~ /^socket:/ && $device !~ /^http:/ && $device !~ /^ipp:/) { my $_w = $in->wait_message( N("Printerdrake"), N("Making printer port available for CUPS...")) if !$printer->{noninteractive}; printer::main::assure_device_is_available_for_cups($ptaldevice || $device); } #- Read the printer driver database if necessary if (keys %printer::main::thedb == 0) { my $_w = $in->wait_message( N("Printerdrake"), N("Reading printer database...")) if !$printer->{noninteractive}; printer::main::read_printer_db($printer, $printer->{SPOOLER}); } #- Search the database entry which matches the detected printer best my $descr = ""; foreach (@autodetected) { $device eq $_->{port} or next; my ($automake, $automodel, $autodescr, $autocmdset, $autosku) = ($_->{val}{MANUFACTURER}, $_->{val}{MODEL}, $_->{val}{DESCRIPTION}, $_->{val}{'COMMAND SET'}, $_->{val}{SKU}); # Clean some manufacturer's names my $descrmake = printer::main::clean_manufacturer_name($automake); if ($automake && $autosku) { $descr = "$descrmake|$autosku"; } elsif ($automake && $automodel) { $descr = "$descrmake|$automodel"; } elsif ($autodescr) { $descr = $autodescr; $descr =~ s/ /|/; } elsif ($automodel) { $descr = $automodel; $descr =~ s/ /|/; } elsif ($automake) { $descr = "$descrmake|"; } # Remove manufacturer's name from the beginning of the # description (do not do this with manufacturer names which # contain odd characters) $descr =~ s/^$descrmake\|\s*$descrmake\s*/$descrmake|/i if $descrmake && $descrmake !~ m![\\/\(\)\[\]\|\.\$\@\%\*\?]!; # Clean up the description from noise which makes the best match # difficult $descr =~ s/\s+[Ss]eries//i; $descr =~ s/\s+\(?[Pp]rinter\)?$//i; $printer->{DBENTRY} = ""; # Try to find an exact match, check both whether the detected # make|model is in the make|model of the database entry and vice versa # If there is more than one matching database entry, the longest match # counts. my $matchlength = -100; foreach my $entry (keys %printer::main::thedb) { # Try to match the device ID string of the auto-detection if ($printer::main::thedb{$entry}{make} =~ /Generic/i) { # Database entry for generic printer, check printer # languages (command set) my $_cmd = $printer::main::thedb{$entry}{devidcmd}; if ($printer::main::thedb{$entry}{model} =~ m!PCL\s*5/5e!i) { # Generic PCL 5/5e Printer if ($autocmdset =~ /(^|[:,])PCL\s*\-*\s*(5|)([,;]|$)/i) { if ($matchlength < -50) { $matchlength = -50; $printer->{DBENTRY} = $entry; next; } } } elsif ($printer::main::thedb{$entry}{model} =~ m!PCL\s*(6|XL)!i) { # Generic PCL 6/XL Printer if ($autocmdset =~ /(^|[:,])PCL\s*\-*\s*(6|XL)([,;]|$)/i) { if ($matchlength < -40) { $matchlength = -40; $printer->{DBENTRY} = $entry; next; } } } elsif ($printer::main::thedb{$entry}{model} =~ m!(PostScript)!i) { # Generic PostScript Printer if ($autocmdset =~ /(^|[:,])(PS|POSTSCRIPT)[^:;,]*([,;]|$)/i) { if ($matchlength < -10) { $matchlength = -10; $printer->{DBENTRY} = $entry; next; } } } } else { # "Real" manufacturer, check manufacturer, model, and/or # description my $matched = 1; my ($mfg, $mdl, $des); if ($mfg = $printer::main::thedb{$entry}{devidmake}) { $mfg =~ s/Hewlett[-\s_]Packard/HP/i; if (uc($mfg) ne uc($automake)) { $matched = 0; } } if ($mdl = $printer::main::thedb{$entry}{devidmodel}) { if ($mdl ne $automodel) { $matched = 0; } } if ($des = $printer::main::thedb{$entry}{deviddesc}) { $des =~ s/Hewlett[-\s_]Packard/HP/; $des =~ s/HEWLETT[-\s_]PACKARD/HP/; if ($des ne $autodescr) { $matched = 0; } } if ($matched && ($des || $mfg && $mdl)) { # Full match to known auto-detection data $printer->{DBENTRY} = $entry; $matchlength = 1000; last; } } # Do not search human-readable make and model names if we had an # exact match or a match to the auto-detection ID string next if $matchlength >= 100; # Try to match the (human-readable) make and model of the # Foomatic database or of thr PPD file my $dbmakemodel; if ($printer->{expert}) { $dbmakemodel = $1 if $entry =~ m/^(.*)\|[^\|]*$/; } else { $dbmakemodel = $entry; } # Don't try to match if the database entry does not provide # make and model next unless $dbmakemodel; # If make and model match exactly, we have found the correct # entry and we can stop searching human-readable makes and # models if (lc($dbmakemodel) eq lc($descr)) { $printer->{DBENTRY} = $entry; $matchlength = 100; next; } # Matching a part of the human-readable makes and models # should only be done if the search term is not the name of # an old model, otherwise the newest, not yet listed models # match with the oldest model of the manufacturer (as the # Epson Stylus Photo 900 with the original Epson Stylus Photo) my @badsearchterms = ("HP|DeskJet", "HP|LaserJet", "HP|DesignJet", "HP|OfficeJet", "HP|PhotoSmart", "EPSON|Stylus", "EPSON|Stylus Color", "EPSON|Stylus Photo", "EPSON|Stylus Pro", "XEROX|WorkCentre", "XEROX|DocuPrint"); if (!member($descr, @badsearchterms)) { my $searchterm = $descr; my $lsearchterm = length($searchterm); $searchterm =~ s!([\\/\(\)\[\]\|\.\$\@\%\*\?])!\\$1!g; if ($lsearchterm > $matchlength && $dbmakemodel =~ m!$searchterm!i) { $matchlength = $lsearchterm; $printer->{DBENTRY} = $entry; } } if (!member($dbmakemodel, @badsearchterms)) { my $searchterm = $dbmakemodel; my $lsearchterm = length($searchterm); $searchterm =~ s!([\\/\(\)\[\]\|\.\$\@\%\*\?])!\\$1!g; if ($lsearchterm > $matchlength && $descr =~ m!$searchterm!i) { $matchlength = $lsearchterm; $printer->{DBENTRY} = $entry; } } } # No matching printer found, try a best match as last mean (not # when generating queues non-interactively) if (!$printer->{noninteractive}) { $printer->{DBENTRY} ||= bestMatchSentence($descr, keys %printer::main::thedb); # If the manufacturer was not guessed correctly, discard the # guess. my $guessedmake = lc($1) if $printer->{DBENTRY} =~ /^([^\|]+)\|/; if ($guessedmake !~ /Generic/i && $descr !~ /$guessedmake/i && ($guessedmake ne "hp" || $descr !~ /Hewlett[\s-]+Packard/i)) { $printer->{DBENTRY} = "" }; } } #- Pre-fill the "Description" field with the printer's model name if (!$printer->{currentqueue}{desc} && $descr) { $printer->{currentqueue}{desc} = $descr; $printer->{currentqueue}{desc} =~ s/\|/ /g; } #- When we have chosen a printer here, the question whether the #- automatically chosen model from the database is correct, should #- have "This model is correct" as default answer delete($printer->{MANUALMODEL}); 1; } sub choose_printer_name { my ($printer, $in) = @_; # Name, description, location # $in->set_help('setupPrinterName') if $::isInstall; my $default = $printer->{currentqueue}{queue}; $in->ask_from_( { title => N("Enter Printer Name and Comments"), #cancel => !$printer->{configured}{$queue} ? '' : N("Remove queue"), callbacks => { complete => sub { unless ($printer->{currentqueue}{queue} =~ /^\w+$/) { $in->ask_warn(N("Error"), N("Name of printer should contain only letters, numbers and the underscore")); return 1, 0; } local $::isWizard = 0; if ($printer->{configured}{$printer->{currentqueue}{queue}} && $printer->{currentqueue}{queue} ne $default && !$in->ask_yesorno(N("Warning"), N("The printer \"%s\" already exists,\ndo you really want to overwrite its configuration?", $printer->{currentqueue}{queue}), 0)) { return 1, 0; # Let the user correct the name } return 0; }, }, messages => N("Every printer needs a name (for example \"printer\"). The Description and Location fields do not need to be filled in. They are comments for the users.") }, [ { label => N("Name of printer"), val => \$printer->{currentqueue}{queue} }, { label => N("Description"), val => \$printer->{currentqueue}{desc} }, { label => N("Location"), val => \$printer->{currentqueue}{loc} }, ]) or return 0; $printer->{QUEUE} = $printer->{currentqueue}{queue}; 1; } sub get_db_entry { my ($printer, $in) = @_; #- Read the printer driver database if necessary if (keys %printer::main::thedb == 0) { my $_w = $in->wait_message(N("Printerdrake"), N("Reading printer database...")) if $printer->{noninteractive}; printer::main::read_printer_db($printer, $printer->{SPOOLER}); } my $_w = $in->wait_message(N("Printerdrake"), N("Preparing printer database...")) if !$printer->{noninteractive}; my $queue = $printer->{OLD_QUEUE}; if ($printer->{configured}{$queue}) { # The queue was already configured if ($printer->{configured}{$queue}{queuedata}{foomatic}) { # The queue was configured with Foomatic my $driverstr; if ($printer->{configured}{$queue}{queuedata}{driver} eq "Postscript") { $driverstr = "PostScript"; } else { $driverstr = "GhostScript + $printer->{configured}{$queue}{queuedata}{driver}"; } my $make = uc($printer->{configured}{$queue}{queuedata}{make}); my $model = $printer->{configured}{$queue}{queuedata}{model}; if ($printer->{expert}) { $printer->{DBENTRY} = "$make|$model|$driverstr"; # database key contains the "(recommended)" for the # recommended driver, so add it if necessary unless (exists($printer::main::thedb{$printer->{DBENTRY}})) { $printer->{DBENTRY} .= " (recommended)"; } } else { $printer->{DBENTRY} = "$make|$model"; } $printer->{OLD_CHOICE} = $printer->{DBENTRY}; } elsif ($printer->{configured}{$queue}{queuedata}{ppd}) { # Do we have a native CUPS driver or a PostScript PPD file? $printer->{DBENTRY} = printer::main::get_descr_from_ppd($printer) || $printer->{DBENTRY}; unless (exists($printer::main::thedb{$printer->{DBENTRY}})) { $printer->{DBENTRY} .= " (recommended)"; } $printer->{OLD_CHOICE} = $printer->{DBENTRY}; } my ($make, $model); if ($printer->{DBENTRY} eq "") { # Point the list cursor at least to manufacturer and model of # the printer $printer->{DBENTRY} = ""; if ($printer->{configured}{$queue}{queuedata}{foomatic}) { $make = uc($printer->{configured}{$queue}{queuedata}{make}); $model = $printer->{configured}{$queue}{queuedata}{model}; } elsif ($printer->{configured}{$queue}{queuedata}{ppd}) { my $makemodel = printer::main::get_descr_from_ppd($printer); if ($makemodel =~ m!^([^\|]+)\|([^\|]+)(|\|.*)$!) { $make = $1; $model = $2; } } foreach my $key (keys %printer::main::thedb) { if ($printer->{expert} && $key =~ /^$make\|$model\|.*\(recommended\)$/ || !$printer->{expert} && $key =~ /^$make\|$model$/) { $printer->{DBENTRY} = $key; } } } if ($printer->{DBENTRY} eq "") { # Exact match of make and model did not work, try to clean # up the model name $model =~ s/PS//; $model =~ s/PostScript//i; $model =~ s/Series//i; foreach my $key (keys %printer::main::thedb) { if ($printer->{expert} && $key =~ /^$make\|$model\|.*\(recommended\)$/ || !$printer->{expert} && $key =~ /^$make\|$model$/) { $printer->{DBENTRY} = $key; } } } if ($printer->{DBENTRY} eq "" && $make ne "") { # Exact match with cleaned-up model did not work, try a best match my $matchstr = "$make|$model"; $printer->{DBENTRY} = bestMatchSentence($matchstr, keys %printer::main::thedb); # If the manufacturer was not guessed correctly, discard the # guess. my $guessedmake = lc($1) if $printer->{DBENTRY} =~ /^([^\|]+)\|/; if ($matchstr !~ /$guessedmake/i && ($guessedmake ne "hp" || $matchstr !~ /Hewlett[\s-]+Packard/i)) { $printer->{DBENTRY} = "" }; } if ($printer->{DBENTRY} eq "") { # Set the OLD_CHOICE to a non-existing value $printer->{OLD_CHOICE} = "XXX"; } } else { if ($printer->{expert} && $printer->{DBENTRY} !~ /(recommended)/) { my ($make, $model) = $printer->{DBENTRY} =~ /^([^\|]+)\|([^\|]+)\|/; foreach my $key (keys %printer::main::thedb) { if ($key =~ /^$make\|$model\|.*\(recommended\)$/) { $printer->{DBENTRY} = $key; } } } $printer->{OLD_CHOICE} = $printer->{DBENTRY}; } 1; } sub is_model_correct { my ($printer, $in) = @_; # $in->set_help('chooseModel') if $::isInstall; my $dbentry = $printer->{DBENTRY}; if (!$dbentry) { # If printerdrake could not determine the model, omit this dialog and # let the user choose manually. $printer->{MANUALMODEL} = 1; return 1; } $dbentry =~ s/\|/ /g; my $res = $in->ask_from_list_( N("Your printer model"), N("Printerdrake has compared the model name resulting from the printer auto-detection with the models listed in its printer database to find the best match. This choice can be wrong, especially when your printer is not listed at all in the database. So check whether the choice is correct and click \"The model is correct\" if so and if not, click \"Select model manually\" so that you can choose your printer model manually on the next screen. For your printer Printerdrake has found: %s", $dbentry), [N("The model is correct"), N("Select model manually")], ($printer->{MANUALMODEL} ? N("Select model manually") : N("The model is correct"))); return 0 if !$res; $printer->{MANUALMODEL} = $res eq N("Select model manually"); 1; } sub choose_model { my ($printer, $in) = @_; # $in->set_help('chooseModel') if $::isInstall; #- Read the printer driver database if necessary if (keys %printer::main::thedb == 0) { my $_w = $in->wait_message(N("Printerdrake"), N("Reading printer database...")); printer::main::read_printer_db($printer, $printer->{SPOOLER}); } unless (exists($printer::main::thedb{$printer->{DBENTRY}})) { $printer->{DBENTRY} = N("Raw printer (No driver)"); } # Choose the printer/driver from the list my $choice = $printer->{DBENTRY}; my $loadppdchosen = 0; while (1) { if ($in->ask_from_({ title => N("Printer model selection"), messages => N("Which printer model do you have?") . N(" Please check whether Printerdrake did the auto-detection of your printer model correctly. Find the correct model in the list when a wrong model or \"Raw printer\" is highlighted.") . " " . N("If your printer is not listed, choose a compatible (see printer manual) or a similar one."), #cancel => (""), #ok => (""), }, [ # List the printers/drivers { val => \$choice, format => \&translate, sort => 1, separator => "|", tree_expanded => 0, quit_if_double_click => 1, allow_empty_list => 1, list => [ keys %printer::main::thedb ] }, # Button to install a manufacturer-supplied PPD file { clicked_may_quit => sub { $loadppdchosen = 1; 1; }, val => N("Install a manufacturer-supplied PPD file") }, ])) { $printer->{DBENTRY} = $choice if !$loadppdchosen; } else { return 0; } last if !$loadppdchosen; # Install a manufacturer-supplied PPD file my $ppdentry; if ($ppdentry = installppd($printer, $in)) { $choice = $ppdentry; } $loadppdchosen = 0; } return 1; } sub installppd { my ($printer, $in) = @_; # Install a manufacturer-supplied PPD file # The dialogs to choose the PPD file should appear as extra # windows and not embedded in the "Add printer" wizard. local $::isWizard = 0; my $ppdfile; my ($mediachoice); while (1) { # Tell user about PPD file installation $in->ask_from('Printerdrake', N("Every PostScript printer is delivered with a PPD file which describes the printer's options and features.") . " " . N("This file is usually somewhere on the CD with the Windows and Mac drivers delivered with the printer.") . " " . N("You can find the PPD files also on the manufacturer's web sites.") . " " . N("If you have Windows installed on your machine, you can find the PPD file on your Windows partition, too.") . "\n" . N("Installing the printer's PPD file and using it when setting up the printer makes all options of the printer available which are provided by the printer's hardware") . "\n" . N("Here you can choose the PPD file to be installed on your machine, it will then be used for the setup of your printer."), [ { label => N("Install PPD file from"), val => \$mediachoice, list => [N("CD-ROM"), N("Floppy Disk"), N("Other place")], not_edit => 1, sort => 0 }, ], ) or return 0; my $dir; if ($mediachoice eq N("CD-ROM")) { $dir = "/mnt/cdrom"; } elsif ($mediachoice eq N("Floppy Disk")) { $dir = "/mnt/floppy"; } elsif ($mediachoice eq N("Other place")) { $dir = "/mnt"; } else { return 0; } # Let user select a PPD file from a floppy, hard disk, ... $ppdfile = $in->ask_file(N("Select PPD file"), $dir); last if !$ppdfile; if (! -r $ppdfile) { $in->ask_warn(N("Error"), N("The PPD file %s does not exist or is unreadable!", $ppdfile)); next; } if (! printer::main::checkppd($printer, $ppdfile)) { $in->ask_warn(N("Error"), N("The PPD file %s does not conform with the PPD specifications!", $ppdfile)); next; } last; } return 0 if !$ppdfile; # Install the PPD file in /usr/share/cups/ppd/printerdrake/ my $_w = $in->wait_message(N("Printerdrake"), N("Installing PPD file...")); my $ppdentry = printer::main::installppd($printer, $ppdfile); undef $_w; return $ppdentry; } my %lexmarkinkjet_options = ( 'parallel:/dev/lp0' => " -o Port=ParPort1", 'parallel:/dev/lp1' => " -o Port=ParPort2", 'parallel:/dev/lp2' => " -o Port=ParPort3", 'usb:/dev/usb/lp0' => " -o Port=USB1", 'usb:/dev/usb/lp1' => " -o Port=USB2", 'usb:/dev/usb/lp2' => " -o Port=USB3", 'file:/dev/lp0' => " -o Port=ParPort1", 'file:/dev/lp1' => " -o Port=ParPort2", 'file:/dev/lp2' => " -o Port=ParPort3", 'file:/dev/usb/lp0' => " -o Port=USB1", 'file:/dev/usb/lp1' => " -o Port=USB2", 'file:/dev/usb/lp2' => " -o Port=USB3", ); my %drv_x125_options = ( 'usb:/dev/usb/lp0' => " -o Device=usb_lp1", 'usb:/dev/usb/lp1' => " -o Device=usb_lp2", 'usb:/dev/usb/lp2' => " -o Device=usb_lp3", 'usb:/dev/usb/lp3' => " -o Device=usb_lp3", 'file:/dev/usb/lp0' => " -o Device=usb_lp1", 'file:/dev/usb/lp1' => " -o Device=usb_lp2", 'file:/dev/usb/lp2' => " -o Device=usb_lp3", 'file:/dev/usb/lp3' => " -o Device=usb_lp3", ); sub get_printer_info { my ($printer, $in) = @_; my $queue = $printer->{OLD_QUEUE}; my $oldchoice = $printer->{OLD_CHOICE}; my $newdriver = 0; if (!$printer->{configured}{$queue} || # New queue or ($oldchoice && $printer->{DBENTRY} && # make/model/driver changed ($oldchoice ne $printer->{DBENTRY} || $printer->{currentqueue}{driver} ne $printer::main::thedb{$printer->{DBENTRY}}{driver}))) { delete($printer->{currentqueue}{printer}); delete($printer->{currentqueue}{ppd}); $printer->{currentqueue}{foomatic} = 0; # Read info from printer database foreach (qw(printer ppd driver make model)) { #- copy some parameter, shorter that way... $printer->{currentqueue}{$_} = $printer::main::thedb{$printer->{DBENTRY}}{$_}; } $newdriver = 1; } # Use the "printer" and not the "foomatic" field to identify a Foomatic # queue because in a new queue "foomatic" is not set yet. if ($printer->{currentqueue}{printer} || # We have a Foomatic queue $printer->{currentqueue}{ppd}) { # We have a PPD queue if ($printer->{currentqueue}{printer}) { # Foomatic queue? # In case of a new queue "foomatic" was not set yet $printer->{currentqueue}{foomatic} = 1; $printer->{currentqueue}{ppd} = undef; } elsif ($printer->{currentqueue}{ppd}) { # PPD queue? # If we had a Foomatic queue before, unmark the flag and # initialize the "printer" and "driver" fields $printer->{currentqueue}{foomatic} = 0; $printer->{currentqueue}{printer} = undef; $printer->{currentqueue}{driver} = "PPD"; } # Now get the options for this printer/driver combo if ($printer->{configured}{$queue} && ($printer->{configured}{$queue}{queuedata}{foomatic} || $printer->{configured}{$queue}{queuedata}{ppd})) { if (!$newdriver) { # The user didn't change the printer/driver $printer->{ARGS} = $printer->{configured}{$queue}{args}; } elsif ($printer->{currentqueue}{foomatic}) { # The queue was already configured with Foomatic ... # ... and the user has chosen another printer/driver $printer->{ARGS} = printer::main::read_foomatic_options($printer); } elsif ($printer->{currentqueue}{ppd}) { # ... and the user has chosen another printer/driver $printer->{ARGS} = printer::main::read_ppd_options($printer); } } else { # The queue was not configured with Foomatic before # Set some special options $printer->{SPECIAL_OPTIONS} = ''; # Default page size depending on the country/language # (US/Canada -> Letter, Others -> A4) my $pagesize; if ($printer->{PAPERSIZE}) { $printer->{SPECIAL_OPTIONS} .= " -o PageSize=$printer->{PAPERSIZE}"; } elsif (($pagesize = $in->{lang}) || ($pagesize = $ENV{LC_PAPER}) || ($pagesize = $ENV{LANG}) || ($pagesize = $ENV{LANGUAGE}) || ($pagesize = $ENV{LC_ALL})) { if ($pagesize =~ /^en_CA/ || $pagesize =~ /^fr_CA/ || $pagesize =~ /^en_US/) { $pagesize = "Letter"; } else { $pagesize = "A4"; } $printer->{SPECIAL_OPTIONS} .= " -o PageSize=$pagesize"; } # Do not embed the following messages in the add-printer # wizard. local $::isWizard = 0; # oki4w driver -> OKI winprinter which needs the # oki4daemon to work if ($printer->{currentqueue}{driver} eq 'oki4w') { if ($printer->{currentqueue}{connect} !~ m!^(parallel|file):/dev/lp0$!) { $::noX || $in->ask_warn(N("OKI winprinter configuration"), N("You are configuring an OKI laser winprinter. These printers\nuse a very special communication protocol and therefore they work only when connected to the first parallel port. When your printer is connected to another port or to a print server box please connect the printer to the first parallel port before you print a test page. Otherwise the printer will not work. Your connection type setting will be ignored by the driver.")); } $printer->{currentqueue}{connect} = 'file:/dev/null'; # Start the oki4daemon services::start_service_on_boot('oki4daemon'); printer::services::start('oki4daemon'); # Set permissions my $h = { cups => sub { set_permissions('/dev/oki4drv', '660', 'lp', 'sys') }, pdq => sub { set_permissions('/dev/oki4drv', '666') } }; my $s = $h->{$printer->{SPOOLER}} ||= sub { set_permissions('/dev/oki4drv', '660', 'lp', 'lp') }; &$s; } elsif ($printer->{currentqueue}{driver} eq 'lexmarkinkjet') { # Set "Port" option my $opt = $lexmarkinkjet_options{$printer->{currentqueue}{connect}}; if ($opt) { $printer->{SPECIAL_OPTIONS} .= $opt; } else { $::noX || $in->ask_warn(N("Lexmark inkjet configuration"), N("The inkjet printer drivers provided by Lexmark only support local printers, no printers on remote machines or print server boxes. Please connect your printer to a local port or configure it on the machine where it is connected to.")); return 0; } # Set device permissions if ($printer->{currentqueue}{connect} =~ /^\s*(file|parallel|usb):(\S*)\s*$/) { if ($printer->{SPOOLER} eq 'cups') { set_permissions($2, '660', 'lp', 'sys'); } elsif ($printer->{SPOOLER} eq 'pdq') { set_permissions($2, '666'); } else { set_permissions($2, '660', 'lp', 'lp'); } } # This is needed to have the device not blocked by the # spooler backend. $printer->{currentqueue}{connect} = 'file:/dev/null'; #install packages my $drivertype = $printer->{currentqueue}{model}; if ($drivertype eq 'Z22') { $drivertype = 'Z32' } if ($drivertype eq 'Z23') { $drivertype = 'Z33' } $drivertype = lc($drivertype); if (!files_exist("/usr/local/lexmark/$drivertype/$drivertype")) { eval { $::noX or $in->do_pkgs->install("lexmark-drivers-$drivertype") }; } if (!files_exist("/usr/local/lexmark/$drivertype/$drivertype")) { # Driver installation failed, probably we do not have # the commercial CDs $::noX || $in->ask_warn(N("Lexmark inkjet configuration"), N("To be able to print with your Lexmark inkjet and this configuration, you need the inkjet printer drivers provided by Lexmark (http://www.lexmark.com/). Click on the \"Drivers\" link. Then choose your model and afterwards \"Linux\" as operating system. The drivers come as RPM packages or shell scripts with interactive graphical installation. You do not need to do this configuration by the graphical frontends. Cancel directly after the license agreement. Then print printhead alignment pages with \"lexmarkmaintain\" and adjust the head alignment settings with this program.")); } } elsif ($printer->{currentqueue}{driver} eq 'drv_x125') { # Set "Device" option my $opt = $drv_x125_options{$printer->{currentqueue}{connect}}; if ($opt) { $printer->{SPECIAL_OPTIONS} .= $opt; } else { $::noX || $in->ask_warn(N("Lexmark X125 configuration"), N("The driver for this printer only supports printers locally connected via USB, no printers on remote machines or print server boxes. Please connect your printer to a local USB port or configure it on the machine where it is connected to.")); return 0; } # Set device permissions if ($printer->{currentqueue}{connect} =~ /^\s*(file|parallel|usb):(\S*)\s*$/) { if ($printer->{SPOOLER} eq 'cups') { set_permissions($2, '660', 'lp', 'sys'); } elsif ($printer->{SPOOLER} eq 'pdq') { set_permissions($2, '666'); } else { set_permissions($2, '660', 'lp', 'lp'); } } # This is needed to have the device not blocked by the # spooler backend. $printer->{currentqueue}{connect} = 'file:/dev/null'; } elsif ($printer->{currentqueue}{driver} eq 'ml85p') { # Check whether printer is on first parallel port if ($printer->{currentqueue}{connect} !~ m!^\s*(parallel|file):/dev/(lp|printers/)0\s*$!) { $::noX || $in->ask_warn(N("Samsung ML/QL-85G configuration"), N("The driver for this printer only supports printers locally connected on the first parallel port, no printers on remote machines or print server boxes or on other parallel ports. Please connect your printer to the first parallel port or configure it on the machine where it is connected to.")); return 0; } # Set driver executable permissions if ($printer->{SPOOLER} eq 'cups') { set_permissions('/usr/bin/ml85p', '4750', 'root', 'sys'); } elsif ($printer->{SPOOLER} eq 'pdq') { set_permissions('/usr/bin/ml85p', '4755', 'root', 'sys'); } else { set_permissions('/usr/bin/ml85p', '4750', 'root', 'lp'); } # This is needed to have the device not blocked by the # spooler backend. $printer->{currentqueue}{connect} = 'file:/dev/null'; } elsif (($printer->{currentqueue}{driver} =~ m!^\s*lbp[46]60\s*$!) || ($printer->{currentqueue}{ppd} && ($printer->{currentqueue}{ppd} =~ m!Canon-LBP-[46]60-lbp[46]60.ppd!))) { # Check whether printer is on first parallel port if ($printer->{currentqueue}{connect} !~ m!^\s*(parallel|file):/dev/(lp|printers/)0\s*$!) { $::noX || $in->ask_warn(N("Canon LBP-460/660 configuration"), N("The driver for this printer only supports printers locally connected on the first parallel port, no printers on remote machines or print server boxes or on other parallel ports. Please connect your printer to the first parallel port or configure it on the machine where it is connected to.")); return 0; } # Set driver executable permissions if ($printer->{SPOOLER} eq 'cups') { set_permissions('/usr/bin/lbp660', '4750', 'root', 'sys'); } elsif ($printer->{SPOOLER} eq 'pdq') { set_permissions('/usr/bin/lbp660', '4755', 'root', 'sys'); } else { set_permissions('/usr/bin/lbp660', '4750', 'root', 'lp'); } # This is needed to have the device not blocked by the # spooler backend. $printer->{currentqueue}{connect} = 'file:/dev/null'; } elsif ($printer->{currentqueue}{printer} eq 'HP-LaserJet_1000') { $in->ask_warn(N("Firmware-Upload for HP LaserJet 1000"), $hp1000fwtext); } if ($printer->{currentqueue}{foomatic}) { # Foomatic queue? $printer->{ARGS} = printer::main::read_foomatic_options($printer); } elsif ($printer->{currentqueue}{ppd}) { # PPD queue? $printer->{ARGS} = printer::main::read_ppd_options($printer); } delete($printer->{SPECIAL_OPTIONS}); } } 1; } sub setup_options { my ($printer, $in) = @_; my @simple_options = ("PageSize", # Media properties "MediaType", "Form", "InputSlot", # Trays "Tray", "OutBin", "OutputBin", "FaceUp", "FaceDown", "Collate", "Manual", "ManualFeed", "Manualfeed", "ManualFeeder", "Feeder", "Duplex", # Double-sided printing "Binding", "Tumble", "DoubleSided", "Resolution", # Resolution/Quality "GSResolution", "HWResolution", "JCLResolution", "Quality", "PrintQuality", "PrintoutQuality", "QualityType", "ImageType", "stpImageType", "EconoMode", "JCLEconoMode", "FastRes", "JCLFastRes", "InkType", # Colour/Gray/BW, 4-ink/6-ink "stpInkType", "Mode", "OutputMode", "OutputType", "ColorMode", "ColorModel", "PrintingMode", "Monochrome", "BlackOnly", "Grayscale", "GrayScale", "Colour", "Color", "Gamma", # Lighter/Darker "GammaCorrection", "GammaGeneral", "MasterGamma", "StpGamma", "stpGamma", "EconoMode", # Ink/Toner saving "Economode", "TonerSaving", "JCLEconomode", "HPNup", # Other useful options "InstalledMemory", # Laser printer hardware config "Option1", "Option2", "Option3", "Option4", "Option5", "Option6", "Option7", "Option8", "Option9", "Option10", "Option11", "Option12", "Option13", "Option14", "Option15", "Option16", "Option17", "Option18", "Option19", "Option20", "Option21", "Option22", "Option23", "Option24", "Option25", "Option26", "Option27", "Option28", "Option29", "Option30" ); # $in->set_help('setupOptions') if $::isInstall; if ($printer->{currentqueue}{printer} || # We have a Foomatic queue $printer->{currentqueue}{ppd}) { # We have a CUPS+PPD queue # Set up the widgets for the option dialog my $helptext = N("Printer default settings You should make sure that the page size and the ink type/printing mode (if available) and also the hardware configuration of laser printers (memory, duplex unit, extra trays) are set correctly. Note that with a very high printout quality/resolution printing can get substantially slower."); my @widgets; my @userinputs; my @choicelists; my @shortchoicelists; my $i; my @oldgroup = ("", ""); for ($i = 0; $i <= $#{$printer->{ARGS}}; $i++) { # Do not show hidden options (member options of a forced # composite option) next if $printer->{ARGS}[$i]{hidden}; my $optshortdefault = $printer->{ARGS}[$i]{default}; # Should the option only show when the "Advanced" button was # clicked? my $advanced = ((defined($printer->{ARGS}[$i]{group}) && $printer->{ARGS}[$i]{group} !~ /^(|General|.*install.*)$/i) || (!($printer->{ARGS}[$i]{group}) && !member($printer->{ARGS}[$i]{name}, @simple_options)) ? 1 : 0); # Group header if ($printer->{ARGS}[$i]{group} ne $oldgroup[$advanced]) { my $_level = $#{$printer->{ARGS}[$i]{grouptrans}}; $oldgroup[$advanced] = $printer->{ARGS}[$i]{group}; if ($printer->{ARGS}[$i]{group}) { push(@widgets, { val => join(" / ", @{$printer->{ARGS}[$i]{grouptrans}}), advanced => $advanced }); } } if ($printer->{ARGS}[$i]{type} eq 'enum') { # enumerated option $choicelists[$i] = []; $shortchoicelists[$i] = []; foreach my $choice (@{$printer->{ARGS}[$i]{vals}}) { push(@{$choicelists[$i]}, $choice->{comment}); push(@{$shortchoicelists[$i]}, $choice->{value}); if ($choice->{value} eq $optshortdefault) { $userinputs[$i] = $choice->{comment}; } } push(@widgets, { label => $printer->{ARGS}[$i]{comment}, val => \$userinputs[$i], not_edit => 1, list => \@{$choicelists[$i]}, sort => 0, advanced => $advanced, help => $helptext }) if $printer->{ARGS}[$i]{name} ne 'PageRegion'; } elsif ($printer->{ARGS}[$i]{type} eq 'bool') { # boolean option $choicelists[$i] = [($printer->{ARGS}[$i]{comment_true} || $printer->{ARGS}[$i]{name} || "Yes"), ($printer->{ARGS}[$i]{comment_false} || $printer->{ARGS}[$i]{name_false} || "No")]; $shortchoicelists[$i] = []; my $numdefault = ($optshortdefault =~ m!^\s*(true|on|yes|1)\s*$! ? "1" : "0"); $userinputs[$i] = $choicelists[$i][1-$numdefault]; push(@widgets, { label => $printer->{ARGS}[$i]{comment}, val => \$userinputs[$i], not_edit => 1, list => \@{$choicelists[$i]}, sort => 0, advanced => $advanced, help => $helptext }); } else { # numerical option $choicelists[$i] = []; $shortchoicelists[$i] = []; $userinputs[$i] = $optshortdefault; push(@widgets, { label => $printer->{ARGS}[$i]{comment} . " ($printer->{ARGS}[$i]{min}... " . "$printer->{ARGS}[$i]{max})", #type => 'range', #min => $printer->{ARGS}[$i]{min}, #max => $printer->{ARGS}[$i]{max}, val => \$userinputs[$i], advanced => $advanced, help => $helptext }); } } # Show the options dialog. The call-back function does a # range check of the numerical options. my $windowtitle = "$printer->{currentqueue}{make} $printer->{currentqueue}{model}"; if ($printer->{expert}) { my $driver; if ($driver = $printer->{currentqueue}{driver}) { if ($printer->{currentqueue}{foomatic}) { if ($driver eq 'Postscript') { $driver = "PostScript"; } else { $driver = "GhostScript + $driver"; } } elsif ($printer->{currentqueue}{ppd}) { if ($printer->{DBENTRY}) { $driver = $1 if $printer->{DBENTRY} =~ /^[^\|]*\|[^\|]*\|(.*)$/; } else { $driver = printer::main::get_descr_from_ppd($printer); if ($driver =~ /^[^\|]*\|[^\|]*$/) { # No driver info $driver = "PPD"; } else { $driver = $1 if $driver =~ /^[^\|]*\|[^\|]*\|(.*)$/; } } } } if ($driver) { $windowtitle .= ", $driver"; } } # Do not show the options setup dialog when installing a new printer # in recommended mode without "Manual configuration" turned on. if ((!$printer->{NEW} || $printer->{expert} || $printer->{MANUAL}) && !$printer->{noninteractive}) { return 0 if !$in->ask_from( $windowtitle, N("Printer default settings"), \@widgets, complete => sub { my $i; for ($i = 0; $i <= $#{$printer->{ARGS}}; $i++) { if ($printer->{ARGS}[$i]{type} eq 'int' || $printer->{ARGS}[$i]{type} eq 'float') { if ($printer->{ARGS}[$i]{type} eq 'int' && $userinputs[$i] !~ /^[\-\+]?[0-9]+$/) { $in->ask_warn(N("Error"), N("Option %s must be an integer number!", $printer->{ARGS}[$i]{comment})); return 1, $i; } if ($printer->{ARGS}[$i]{type} eq 'float' && $userinputs[$i] !~ /^[\-\+]?[0-9\.]+$/) { $in->ask_warn(N("Error"), N("Option %s must be a number!", $printer->{ARGS}[$i]{comment})); return 1, $i; } if ($userinputs[$i] < $printer->{ARGS}[$i]{min} || $userinputs[$i] > $printer->{ARGS}[$i]{max}) { $in->ask_warn(N("Error"), N("Option %s out of range!", $printer->{ARGS}[$i]{comment})); return 1, $i; } } } return 0; }); } # Read out the user's choices and generate the appropriate command # line arguments @{$printer->{currentqueue}{options}} = (); for ($i = 0; $i <= $#{$printer->{ARGS}}; $i++) { # We did not show hidden options, so we do not have user input # to add to the option list next if $printer->{ARGS}[$i]{hidden}; push(@{$printer->{currentqueue}{options}}, "-o"); if ($printer->{ARGS}[$i]{type} eq 'enum') { # enumerated option my $j; for ($j = 0; $j <= $#{$choicelists[$i]}; $j++) { if ($choicelists[$i][$j] eq $userinputs[$i]) { $printer->{ARGS}[$i]{default} = $shortchoicelists[$i][$j]; push(@{$printer->{currentqueue}{options}}, $printer->{ARGS}[$i]{name} . "=" . $shortchoicelists[$i][$j]); } } } elsif ($printer->{ARGS}[$i]{type} eq 'bool') { # boolean option my $v = ($choicelists[$i][0] eq $userinputs[$i] ? "1" : "0"); $printer->{ARGS}[$i]{default} = $v; push(@{$printer->{currentqueue}{options}}, $printer->{ARGS}[$i]{name} . "=" . $v); } else { # numerical option $printer->{ARGS}[$i]{default} = $userinputs[$i]; push(@{$printer->{currentqueue}{options}}, $printer->{ARGS}[$i]{name} . "=" . $userinputs[$i]); } } } 1; } sub setasdefault { my ($printer, $in) = @_; # $in->set_help('setupAsDefault') if $::isInstall; if ($printer->{DEFAULT} eq '' || # We have no default printer, # so set the current one as default $in->ask_yesorno(N("Printerdrake"), N("Do you want to set this printer (\"%s\")\nas the default printer?", $printer->{QUEUE}), 0)) { # Ask the user $printer->{DEFAULT} = $printer->{QUEUE}; printer::default::set_printer($printer); } } sub print_testpages { my ($printer, $in, $upNetwork) = @_; # $in->set_help('printTestPages') if $::isInstall; # print test pages my $res2 = 0; my %options = (alta4 => 0, altletter => 0, ascii => 0, photo => 0, standard => 1); my %old_options = (alta4 => 0, altletter => 0, ascii => 0, photo => 0, standard => 1); my $oldres2 = 0; my $res1 = $in->ask_from_( { title => N("Test pages"), messages => N("Please select the test pages you want to print. Note: the photo test page can take a rather long time to get printed and on laser printers with too low memory it can even not come out. In most cases it is enough to print the standard test page."), cancel => (!$printer->{NEW} ? N("Cancel") : ($::isWizard ? N("Previous") : N("No test pages"))), ok => ($::isWizard ? N("Next") : N("Print")), callbacks => { changed => sub { if ($oldres2 ne $res2) { if ($res2) { foreach my $opt (keys %options) { $options{$opt} = 0; $old_options{$opt} = 0; } } $oldres2 = $res2; } foreach my $opt (keys %options) { if ($old_options{$opt} ne $options{$opt}) { if ($options{$opt}) { $res2 = 0; $oldres2 = 0; } $old_options{standard} = $options{standard}; } } return 0; } } }, [ { text => N("Standard test page"), type => 'bool', val => \$options{standard} }, if_($printer->{expert}, { text => N("Alternative test page (Letter)"), type => 'bool', val => \$options{altletter} }), if_($printer->{expert}, { text => N("Alternative test page (A4)"), type => 'bool', val => \$options{alta4} }), { text => N("Photo test page"), type => 'bool', val => \$options{photo} }, #{ text => N("Plain text test page"), type => 'bool', # val => \$options{ascii} } if_($::isWizard, { text => N("Do not print any test page"), type => 'bool', val => \$res2 }) ]); $res2 = 1 if !($options{standard} || $options{altletter} || $options{alta4} || $options{photo} || $options{ascii}); if ($res1 && !$res2) { my @lpq_output; { my $_w = $in->wait_message(N("Printerdrake"), N("Printing test page(s)...")); $upNetwork and do { &$upNetwork(); undef $upNetwork; sleep(1) }; my $stdtestpage = "/usr/share/printer-testpages/testprint.ps"; my $altlttestpage = "/usr/share/printer-testpages/testpage.ps"; my $alta4testpage = "/usr/share/printer-testpages/testpage-a4.ps"; my $phototestpage = "/usr/share/printer-testpages/photo-testpage.jpg"; my $asciitestpage = "/usr/share/printer-testpages/testpage.asc"; my @testpages; # Install the filter to convert the photo test page to PS if ($printer->{SPOOLER} ne "cups" && $options{photo} && !$::testing && !files_exist('/usr/bin/convert')) { $in->do_pkgs->install('ImageMagick') or do { # Do not embed this message in the add-printer # wizard. local $::isWizard = 0; $in->ask_warn(N("Warning"), N("Could not install the %s package!", "ImageMagick") . " " . N("Skipping photo test page.")); $options{photo} = 0; }; } # set up list of pages to print $options{standard} and push @testpages, $stdtestpage; $options{altletter} and push @testpages, $altlttestpage; $options{alta4} and push @testpages, $alta4testpage; $options{photo} and push @testpages, $phototestpage; $options{ascii} and push @testpages, $asciitestpage; # Nothing to print return 1 if $#testpages < 0; # print the stuff @lpq_output = printer::main::print_pages($printer, @testpages); } my $dialogtext; if (@lpq_output) { $dialogtext = N("Test page(s) have been sent to the printer. It may take some time before the printer starts. Printing status:\n%s\n\n", @lpq_output); } else { $dialogtext = N("Test page(s) have been sent to the printer. It may take some time before the printer starts.\n"); } if ($printer->{NEW} == 0) { # Do not embed the following messages in the add-printer # wizard. local $::isWizard = 0; $in->ask_warn(N("Printerdrake"),$dialogtext); return 1; } else { $in->ask_yesorno(N("Printerdrake"), $dialogtext . N("Did it work properly?"), 1) and return 1; } } else { return($::isWizard ? $res1 : 1); } return 2; } sub printer_help { my ($printer, $in) = @_; my $spooler = $printer->{SPOOLER}; $spooler = "cups" if $spooler eq "rcups";