mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimp, libgimpcolor, libgimpconfig: Convert to derivable types
Also converted GimpPreview and GimpScrolledPreview as they are the parents of several of these widgets.
This commit is contained in:
parent
eb1e21f9f7
commit
048b2c437d
16 changed files with 136 additions and 241 deletions
|
@ -50,17 +50,17 @@ enum
|
|||
PROP_DRAWABLE
|
||||
};
|
||||
|
||||
struct _GimpAspectPreviewPrivate
|
||||
typedef struct _GimpAspectPreviewPrivate
|
||||
{
|
||||
GimpDrawable *drawable;
|
||||
};
|
||||
} GimpAspectPreviewPrivate;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
gboolean update;
|
||||
} PreviewSettings;
|
||||
|
||||
#define GET_PRIVATE(obj) (((GimpAspectPreview *) (obj))->priv)
|
||||
#define GET_PRIVATE(obj) (gimp_aspect_preview_get_instance_private ((GimpAspectPreview *) (obj)))
|
||||
|
||||
|
||||
static void gimp_aspect_preview_constructed (GObject *object);
|
||||
|
@ -140,8 +140,6 @@ gimp_aspect_preview_class_init (GimpAspectPreviewClass *klass)
|
|||
static void
|
||||
gimp_aspect_preview_init (GimpAspectPreview *preview)
|
||||
{
|
||||
preview->priv = gimp_aspect_preview_get_instance_private (preview);
|
||||
|
||||
g_object_set (gimp_preview_get_area (GIMP_PREVIEW (preview)),
|
||||
"check-size", gimp_check_size (),
|
||||
"check-type", gimp_check_type (),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue