diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2021-10-14 01:19:13 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2022-01-12 00:17:54 +0100 |
commit | 0733806c026504db7f644abd2d04385f54161773 (patch) | |
tree | 36135991dcc9dc02fcd30c5ea7b460197a9ce507 /vapi | |
parent | 0f525b5083fdb3b21fca1799b0a90affed5ca7f0 (diff) | |
download | gnome-contacts-0733806c026504db7f644abd2d04385f54161773.tar.gz |
Port to GTK4 and libadwaita
This is a mega-commit which ports Contacts to GTK4 and libadwaita, the
library which provides GNOME-specific widgets on top of GTK4.
This change also now follows the new mockups of Contacts, which use a
boxed list style to convey contact information.
There is a minor set of known issues which we'll still need to solve
later (preferably):
* For now, taking a picture with your webcam is not implemented. In
GTK3, we used to do this with Cheese, but this hasn't been ported to
GTK4. Ideally, we could just directly use Pipewire though.
* Some CRITICALs when we have some unexpectedly long names or property
values
* The delete button is gone for most properties. This probably needs to
be rethough at the design level on how we want to deal with it.
* We're still blocked a bit on libedataserverui not having a GTK4 port
yet.
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/custom.vapi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vapi/custom.vapi b/vapi/custom.vapi index c48e3e8..5d1484d 100644 --- a/vapi/custom.vapi +++ b/vapi/custom.vapi @@ -1,11 +1,11 @@ [CCode (cprefix = "Cc", lower_case_cprefix = "cc_", cheader_filename = "cc-crop-area.h")] namespace Cc { - 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 (); - } + public class CropArea : Gtk.Widget { + [CCode (has_construct_function = false, type = "GtkWidget*")] + public CropArea (); + public void set_min_size (int width, int height); + public void set_paintable (Gdk.Paintable paintable); + public Gdk.Paintable get_paintable (); + public Gdk.Pixbuf create_pixbuf (); + } } |