~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to pango.defs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  (of-object "PangoColor")
14
14
  (c-name "pango_color_copy")
15
15
  (return-type "PangoColor*")
 
16
  (caller-owns-return #t)
16
17
)
17
18
 
18
19
(define-method free
48
49
  (of-object "PangoAttribute")
49
50
  (c-name "pango_attribute_copy")
50
51
  (return-type "PangoAttribute*")
 
52
  (caller-owns-return #t)
51
53
)
52
54
 
53
55
(define-method destroy
291
293
  (of-object "PangoAttrList")
292
294
  (c-name "pango_attr_list_copy")
293
295
  (return-type "PangoAttrList*")
 
296
  (caller-owns-return #t)
294
297
)
295
298
 
296
299
(define-method insert
335
338
  (of-object "PangoAttrList")
336
339
  (c-name "pango_attr_list_filter")
337
340
  (return-type "PangoAttrList*")
 
341
  (caller-owns-return #t)
338
342
  (parameters
339
343
    '("PangoAttrFilterFunc" "func")
340
344
    '("gpointer" "data")
345
349
  (of-object "PangoAttrList")
346
350
  (c-name "pango_attr_list_get_iterator")
347
351
  (return-type "PangoAttrIterator*")
 
352
  (caller-owns-return #t)
348
353
)
349
354
 
350
355
(define-method range
367
372
  (of-object "PangoAttrIterator")
368
373
  (c-name "pango_attr_iterator_copy")
369
374
  (return-type "PangoAttrIterator*")
 
375
  (caller-owns-return #t)
370
376
)
371
377
 
372
378
(define-method destroy
527
533
  (of-object "PangoContext")
528
534
  (c-name "pango_context_load_font")
529
535
  (return-type "PangoFont*")
 
536
  (caller-owns-return #t)
530
537
  (parameters
531
538
    '("const-PangoFontDescription*" "desc")
532
539
  )
536
543
  (of-object "PangoContext")
537
544
  (c-name "pango_context_load_fontset")
538
545
  (return-type "PangoFontset*")
 
546
  (caller-owns-return #t)
539
547
  (parameters
540
548
    '("const-PangoFontDescription*" "desc")
541
549
    '("PangoLanguage*" "language")
702
710
  (of-object "PangoCoverage")
703
711
  (c-name "pango_coverage_copy")
704
712
  (return-type "PangoCoverage*")
 
713
  (caller-owns-return #t)
705
714
)
706
715
 
707
716
(define-method get
906
915
  (of-object "PangoFontDescription")
907
916
  (c-name "pango_font_description_copy")
908
917
  (return-type "PangoFontDescription*")
 
918
  (caller-owns-return #t)
909
919
)
910
920
 
911
921
(define-method copy_static
1252
1262
  (of-object "PangoFontFace")
1253
1263
  (c-name "pango_font_face_describe")
1254
1264
  (return-type "PangoFontDescription*")
 
1265
  (caller-owns-return #t)
1255
1266
)
1256
1267
 
1257
1268
(define-method get_face_name
1279
1290
  (of-object "PangoFont")
1280
1291
  (c-name "pango_font_describe")
1281
1292
  (return-type "PangoFontDescription*")
 
1293
  (caller-owns-return #t)
1282
1294
)
1283
1295
 
1284
1296
(define-method get_coverage
1285
1297
  (of-object "PangoFont")
1286
1298
  (c-name "pango_font_get_coverage")
1287
1299
  (return-type "PangoCoverage*")
 
1300
  (caller-owns-return #t)
1288
1301
  (parameters
1289
1302
    '("PangoLanguage*" "language")
1290
1303
  )
1304
1317
  (of-object "PangoFont")
1305
1318
  (c-name "pango_font_get_metrics")
1306
1319
  (return-type "PangoFontMetrics*")
 
1320
  (caller-owns-return #t)
1307
1321
  (parameters
1308
1322
    '("PangoLanguage*" "language" (null-ok) (default "NULL"))
1309
1323
  )
1424
1438
  (of-object "PangoFontMap")
1425
1439
  (c-name "pango_font_map_load_font")
1426
1440
  (return-type "PangoFont*")
 
1441
  (caller-owns-return #t)
1427
1442
  (parameters
1428
1443
    '("PangoContext*" "context")
1429
1444
    '("const-PangoFontDescription*" "desc")
1434
1449
  (of-object "PangoFontMap")
1435
1450
  (c-name "pango_font_map_load_fontset")
1436
1451
  (return-type "PangoFontset*")
 
1452
  (caller-owns-return #t)
1437
1453
  (parameters
1438
1454
    '("PangoContext*" "context")
1439
1455
    '("const-PangoFontDescription*" "desc")
1457
1473
  (return-type "const-char*")
1458
1474
)
1459
1475
 
 
1476
(define-method create_context
 
1477
  (of-object "PangoFontMap")
 
1478
  (c-name "pango_font_map_create_context")
 
1479
  (return-type "PangoContext*")
 
1480
  (caller-owns-return #t)
 
1481
)
 
1482
 
1460
1483
(define-virtual load_font
1461
1484
  (of-object "PangoFontMap")
1462
1485
  (return-type "PangoFont*")
1498
1521
  (of-object "PangoFontset")
1499
1522
  (c-name "pango_fontset_get_font")
1500
1523
  (return-type "PangoFont*")
 
1524
  (caller-owns-return #t)
1501
1525
  (parameters
1502
1526
    '("guint" "wc")
1503
1527
  )
1507
1531
  (of-object "PangoFontset")
1508
1532
  (c-name "pango_fontset_get_metrics")
1509
1533
  (return-type "PangoFontMetrics*")
 
1534
  (caller-owns-return #t)
1510
1535
)
1511
1536
 
1512
1537
(define-method foreach
1613
1638
  (of-object "PangoGlyphItem")
1614
1639
  (c-name "pango_glyph_item_split")
1615
1640
  (return-type "PangoGlyphItem*")
 
1641
  (caller-owns-return #t)
1616
1642
  (parameters
1617
1643
    '("const-char*" "text")
1618
1644
    '("int" "split_index")
1674
1700
  (of-object "PangoGlyphString")
1675
1701
  (c-name "pango_glyph_string_copy")
1676
1702
  (return-type "PangoGlyphString*")
 
1703
  (caller-owns-return #t)
1677
1704
)
1678
1705
 
1679
1706
(define-method free
1784
1811
  (of-object "PangoItem")
1785
1812
  (c-name "pango_item_copy")
1786
1813
  (return-type "PangoItem*")
 
1814
  (caller-owns-return #t)
1787
1815
)
1788
1816
 
1789
1817
(define-method free
1796
1824
  (of-object "PangoItem")
1797
1825
  (c-name "pango_item_split")
1798
1826
  (return-type "PangoItem*")
 
1827
  (caller-owns-return #t)
1799
1828
  (parameters
1800
1829
    '("int" "split_index")
1801
1830
    '("int" "split_offset")
1824
1853
  (of-object "PangoLayout")
1825
1854
  (c-name "pango_layout_copy")
1826
1855
  (return-type "PangoLayout*")
 
1856
  (caller-owns-return #t)
1827
1857
)
1828
1858
 
1829
1859
(define-method get_context
2024
2054
  (of-object "PangoLayout")
2025
2055
  (c-name "pango_layout_get_tabs")
2026
2056
  (return-type "PangoTabArray*")
 
2057
  (caller-owns-return #t)
2027
2058
)
2028
2059
 
2029
2060
(define-method set_single_paragraph_mode
2287
2318
  (of-object "PangoLayout")
2288
2319
  (c-name "pango_layout_get_iter")
2289
2320
  (return-type "PangoLayoutIter*")
 
2321
  (caller-owns-return #t)
2290
2322
)
2291
2323
 
2292
2324
(define-method free
2805
2837
  (of-object "PangoTabArray")
2806
2838
  (c-name "pango_tab_array_copy")
2807
2839
  (return-type "PangoTabArray*")
 
2840
  (caller-owns-return #t)
2808
2841
)
2809
2842
 
2810
2843
(define-method free
2879
2912
  (of-object "PangoMatrix")
2880
2913
  (c-name "pango_matrix_copy")
2881
2914
  (return-type "PangoMatrix*")
 
2915
  (caller-owns-return #t)
2882
2916
)
2883
2917
 
2884
2918
(define-method free