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

use diagnostics;
use strict;
use feature 'state';

our @ISA = qw(Exporter);
our @EXPORT = qw(gtknew gtkset gtkadd gtkval_register gtkval_modify);

use c;
use log;
use common;

use Gtk2;

sub init() {
    !check_for_xserver() and print("Cannot be run in console mode.\n"), c::_exit(0);
    $::one_message_has_been_translated and warn("N() was called from $::one_message_has_been_translated BEFORE gtk2 initialisation, replace it with a N_() AND a translate() later.\n"), c::_exit(1);

    Gtk2->init;
    Locale::gettext::bind_textdomain_codeset($_, 'UTF8') foreach 'libDrakX', if_(!$::isInstall, 'libDrakX-standalone'),
        if_($::isRestore, 'draksnapshot'), if_($::isInstall, 'urpmi'),
        'drakx-net', 'drakx-kbd-mouse-x11', # shared translation
          @::textdomains;
    Glib->enable_exceptions2;
}
init() unless $::no_ugtk_init;
Glib->enable_exceptions2 if $::isInstall;



sub gtknew {
    my $class = shift;
    if (@_ % 2 != 0) {
	internal_error("gtknew $class: bad options @_");
    }
    if (my $r = find { ref $_->[0] } group_by2(@_)) {
	internal_error("gtknew $class: $r should be a string in @_");
    }
    my %opts = @_;
    _gtk(undef, $class, 'gtknew', \%opts);
}

sub gtkset {
    my $w = shift;
    my $class = ref($w);
    if (@_ % 2 != 0) {
	internal_error("gtkset $class: bad options @_");
    }
    if (my $r = find { ref $_->[0] } group_by2(@_)) {
	internal_error("gtkset $class: $r should be a string in @_");
    }
    my %opts = @_;

    $class =~ s/^(Gtk2|Gtk2::Gdk|mygtk2)::// or internal_error("gtkset unknown class $class");
    
    _gtk($w, $class, 'gtkset', \%opts);
}

sub gtkadd {
    my $w = shift;
    my $class = ref($w);
    if (@_ % 2 != 0) {
	internal_error("gtkadd $class: bad options @_");
    }
    if (my $r = find { ref $_->[0] } group_by2(@_)) {
	internal_error("gtkadd $class: $r should be a string in @_");
    }
    my %opts = @_;
    $class =~ s/^(Gtk2|Gtk2::Gdk|mygtk2)::// or internal_error("gtkadd unknown class $class");
    
    _gtk($w, $class, 'gtkadd', \%opts);
}


my %refs;

sub gtkval_register {
    my ($w, $ref, $sub) = @_;
    push @{$w->{_ref}}, $ref;
    $w->signal_connect(destroy => sub { 
	@{$refs{$ref}} = grep { $_->[1] != $w } @{$refs{$ref}};
	delete $refs{$ref} if !@{$refs{$ref}};
    });
    push @{$refs{$ref}}, [ $sub, $w ];
}
sub gtkval_modify {
    my ($ref, $val, @to_skip) = @_;
    my $prev = '' . $ref;
    $$ref = $val;
    if ($prev ne '' . $ref) {
	internal_error();
    }