~ubuntu-branches/ubuntu/quantal/gimp/quantal-updates

« back to all changes in this revision

Viewing changes to plug-ins/pygimp/gimpui.defs

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-05-20 19:21:01 UTC
  • mfrom: (1.1.26) (0.4.16 sid)
  • Revision ID: package-import@ubuntu.com-20120520192101-bs7zetx8ffoq2nfv
Tags: 2.8.0-2ubuntu1
* Merge from Debian unstable (LP: #908472). Remaining Changes:
  - debian/patches/02_help-message.patch,
    debian/patches/03_gimp.desktop.in.in.patch:
    + Update some strings for Ubuntu
  - debian/control:
    + Update description
  - debian/rules:
    + Set gettext domain and update translation templates
* Drop the following patches that were applied upstream:
  - debian/patches/ghost-cursor.patch: fix Wacom tablet cursor events
  - debian/patches/embed-page-setup-dialog.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
  (gtype-id "GIMP_TYPE_STRING_COMBO_BOX")
358
358
)
359
359
 
 
360
(define-object UnitComboBox
 
361
  (in-module "Gimp")
 
362
  (parent "GtkComboBox")
 
363
  (c-name "GimpUnitComboBox")
 
364
  (gtype-id "GIMP_TYPE_UNIT_COMBO_BOX")
 
365
)
 
366
 
360
367
(define-object UnitMenu
361
368
  (in-module "Gimp")
362
369
  (parent "GtkOptionMenu")
363
370
  (c-name "GimpUnitMenu")
364
371
  (gtype-id "GIMP_TYPE_UNIT_MENU")
 
372
  (deprecated "use gimpui.UnitComboBox instead")
365
373
)
366
374
 
367
375
(define-object VectorsComboBox
471
479
  )
472
480
)
473
481
 
 
482
(define-enum Unit
 
483
  (in-module "Gimp")
 
484
  (c-name "GimpUnit")
 
485
;; FIXME: make GimpUnit enum more binding-friendly -- gimp_unit_get_type()
 
486
;;  (gtype-id "GIMP_TYPE_UNIT")
 
487
  (values
 
488
    '("pixel" "GIMP_UNIT_PIXEL")
 
489
    '("inch" "GIMP_UNIT_INCH")
 
490
    '("mm" "GIMP_UNIT_MM")
 
491
    '("point" "GIMP_UNIT_POINT")
 
492
    '("pica" "GIMP_UNIT_PICA")
 
493
  )
 
494
)
 
495
 
474
496
(define-enum ZoomType
475
497
  (in-module "Gimp")
476
498
  (c-name "GimpZoomType")
776
798
  (return-type "GimpColorDisplay*")
777
799
)
778
800
 
 
801
(define-method convert_surface
 
802
  (of-object "GimpColorDisplay")
 
803
  (c-name "gimp_color_display_convert_surface")
 
804
  (return-type "none")
 
805
  (parameters
 
806
    '("cairo_surface_t*" "surface")
 
807
  )
 
808
)
 
809
 
779
810
(define-method convert
780
811
  (of-object "GimpColorDisplay")
781
812
  (c-name "gimp_color_display_convert")
787
818
    '("gint" "bpp")
788
819
    '("gint" "bpl")
789
820
  )
 
821
  (deprecated "use convert_surface(cairo_surface_t*) instead")
790
822
)
791
823
 
792
824
(define-method load_state
912
944
  )
913
945
)
914
946
 
 
947
(define-method convert_surface
 
948
  (of-object "GimpColorDisplayStack")
 
949
  (c-name "gimp_color_display_stack_convert_surface")
 
950
  (return-type "none")
 
951
  (parameters
 
952
    '("cairo_surface_t*" "surface")
 
953
  )
 
954
)
 
955
 
915
956
(define-method convert
916
957
  (of-object "GimpColorDisplayStack")
917
958
  (c-name "gimp_color_display_stack_convert")
923
964
    '("gint" "bpp")
924
965
    '("gint" "bpl")
925
966
  )
 
967
  (deprecated "use convert_surface(cairo_surface_t*) instead")
926
968
)
927
969
 
928
970
 
2598
2640
 
2599
2641
 
2600
2642
 
 
2643
;; From gimpunitcombobox.h
 
2644
 
 
2645
(define-function gimp_unit_combo_box_get_type
 
2646
  (c-name "gimp_unit_combo_box_get_type")
 
2647
  (return-type "GType")
 
2648
)
 
2649
 
 
2650
(define-function gimp_unit_combo_box_new
 
2651
  (c-name "gimp_unit_combo_box_new")
 
2652
  (is-constructor-of "GimpUnitComboBox")
 
2653
  (return-type "GtkWidget*")
 
2654
)
 
2655
 
 
2656
(define-function gimp_unit_combo_box_new_with_model
 
2657
  (c-name "gimp_unit_combo_box_new_with_model")
 
2658
  (is-constructor-of "GimpUnitComboBox")
 
2659
  (return-type "GtkWidget*")
 
2660
  (properties
 
2661
    '("model" (optional))
 
2662
  )
 
2663
)
 
2664
 
 
2665
(define-method get_active
 
2666
  (of-object "GimpUnitComboBox")
 
2667
  (c-name "gimp_unit_combo_box_get_active")
 
2668
  (return-type "GimpUnit")
 
2669
)
 
2670
 
 
2671
(define-method set_active
 
2672
  (of-object "GimpUnitComboBox")
 
2673
  (c-name "gimp_unit_combo_box_set_active")
 
2674
  (return-type "none")
 
2675
  (parameters
 
2676
    '("GimpUnit" "unit")
 
2677
  )
 
2678
)
 
2679
 
 
2680
 
 
2681
 
2601
2682
;; From gimpunitmenu.h
2602
2683
 
2603
2684
(define-function gimp_unit_menu_get_type
2604
2685
  (c-name "gimp_unit_menu_get_type")
2605
2686
  (return-type "GType")
 
2687
  (deprecated "use gimpui.UnitComboBox instead")
2606
2688
)
2607
2689
 
2608
2690
(define-function gimp_unit_menu_new
2616
2698
    '("gboolean" "show_percent")
2617
2699
    '("gboolean" "show_custom")
2618
2700
  )
 
2701
  (deprecated "use gimpui.UnitComboBox instead")
2619
2702
)
2620
2703
 
2621
2704
(define-method set_unit
2625
2708
  (parameters
2626
2709
    '("GimpUnit" "unit")
2627
2710
  )
 
2711
  (deprecated "use gimpui.UnitComboBox instead")
2628
2712
)
2629
2713
 
2630
2714
(define-method get_unit
2631
2715
  (of-object "GimpUnitMenu")
2632
2716
  (c-name "gimp_unit_menu_get_unit")
2633
2717
  (return-type "GimpUnit")
 
2718
  (deprecated "use gimpui.UnitComboBox instead")
2634
2719
)
2635
2720
 
2636
2721
(define-method set_pixel_digits
2640
2725
  (parameters
2641
2726
    '("gint" "digits")
2642
2727
  )
 
2728
  (deprecated "use gimpui.UnitComboBox instead")
2643
2729
)
2644
2730
 
2645
2731
(define-method get_pixel_digits
2646
2732
  (of-object "GimpUnitMenu")
2647
2733
  (c-name "gimp_unit_menu_get_pixel_digits")
2648
2734
  (return-type "gint")
 
2735
  (deprecated "use gimpui.UnitComboBox instead")
2649
2736
)
2650
2737
 
2651
2738