diff options
author | Erick PĂ©rez Castellanos <erick.red@gmail.com> | 2012-02-06 10:17:38 -0500 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-02-07 15:22:40 +0100 |
commit | 66b6b5427d77b0579c403b0e7bdf72b051047ae9 (patch) | |
tree | 3b79e77d2c127f3482f377cbcb210a8545ec6426 /vapi | |
parent | 6279247aae73b4d4de1148af1a6defbdfee6555d (diff) | |
download | gnome-contacts-66b6b5427d77b0579c403b0e7bdf72b051047ae9.tar.gz |
Adding support for UmCropArea widget from gnome-control-center.
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/custom.vapi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vapi/custom.vapi b/vapi/custom.vapi index d947f9b..c046977 100644 --- a/vapi/custom.vapi +++ b/vapi/custom.vapi @@ -57,3 +57,15 @@ namespace Gtk { [CCode (cname = "gtk_builder_add_from_resource")] public static unowned uint my_builder_add_from_resource (Gtk.Builder builder, string path) throws GLib.Error; } + +[CCode (cprefix = "Um", lower_case_cprefix = "um_", cheader_filename = "um-crop-area.h")] +namespace Um { + public class CropArea : Gtk.DrawingArea { + [CCode (has_construct_function = false, type = "GtkWidget*")] + public CropArea (); + public void set_min_size (int width, int height); + public void set_constrain_aspect (bool constrain); + public void set_picture (Gdk.Pixbuf pixbuf); + public Gdk.Pixbuf get_picture (); + } +} |