mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
libgimp: use G_DECLARE_FINAL_TYPE() for GimpImageComboBox.
This commit is contained in:
parent
9e0a75cd87
commit
aa2527843b
2 changed files with 5 additions and 16 deletions
|
@ -48,8 +48,6 @@
|
|||
#define WIDTH_REQUEST 200
|
||||
|
||||
|
||||
typedef struct _GimpImageComboBoxClass GimpImageComboBoxClass;
|
||||
|
||||
struct _GimpImageComboBox
|
||||
{
|
||||
GimpIntComboBox parent_instance;
|
||||
|
@ -59,11 +57,6 @@ struct _GimpImageComboBox
|
|||
GDestroyNotify data_destroy;
|
||||
};
|
||||
|
||||
struct _GimpImageComboBoxClass
|
||||
{
|
||||
GimpIntComboBoxClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
static void gimp_image_combo_box_finalize (GObject *object);
|
||||
|
||||
|
@ -87,8 +80,7 @@ static void gimp_image_combo_box_changed (GimpImageComboBox *combo_box);
|
|||
static const GtkTargetEntry target = { "application/x-gimp-image-id", 0 };
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpImageComboBox, gimp_image_combo_box,
|
||||
GIMP_TYPE_INT_COMBO_BOX)
|
||||
G_DEFINE_TYPE (GimpImageComboBox, gimp_image_combo_box, GIMP_TYPE_INT_COMBO_BOX)
|
||||
|
||||
#define parent_class gimp_image_combo_box_parent_class
|
||||
|
||||
|
|
|
@ -40,15 +40,12 @@ typedef gboolean (* GimpImageConstraintFunc) (GimpImage *image,
|
|||
|
||||
|
||||
#define GIMP_TYPE_IMAGE_COMBO_BOX (gimp_image_combo_box_get_type ())
|
||||
#define GIMP_IMAGE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_IMAGE_COMBO_BOX, GimpImageComboBox))
|
||||
#define GIMP_IS_IMAGE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_IMAGE_COMBO_BOX)
|
||||
G_DECLARE_FINAL_TYPE (GimpImageComboBox, gimp_image_combo_box, GIMP, IMAGE_COMBO_BOX, GimpIntComboBox)
|
||||
|
||||
|
||||
GType gimp_image_combo_box_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GtkWidget * gimp_image_combo_box_new (GimpImageConstraintFunc constraint,
|
||||
gpointer data,
|
||||
GDestroyNotify data_destroy);
|
||||
GtkWidget * gimp_image_combo_box_new (GimpImageConstraintFunc constraint,
|
||||
gpointer data,
|
||||
GDestroyNotify data_destroy);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue