Commit 2cd25ec8 authored by Michael Natterer's avatar Michael Natterer 😴

modules: turn GimpColorWheel into a proper dynamically loaded type

So it works with all GObject versions, until we determine how useful
it is generally, and what API it should get for possible
libgimpwidgets inclusion.
parent a2334b0b
......@@ -88,6 +88,7 @@ gimp_module_query (GTypeModule *module)
gimp_module_register (GTypeModule *module)
color_wheel_register_type (module);
colorsel_wheel_register_type (module);
return TRUE;
......@@ -115,11 +115,17 @@ static void gimp_color_wheel_move (GimpColorWheel *wheel,
static guint wheel_signals[LAST_SIGNAL];
G_DEFINE_TYPE (GimpColorWheel, gimp_color_wheel, GTK_TYPE_WIDGET)
G_DEFINE_DYNAMIC_TYPE (GimpColorWheel, gimp_color_wheel, GTK_TYPE_WIDGET)
#define parent_class gimp_color_wheel_parent_class
color_wheel_register_type (GTypeModule *module)
gimp_color_wheel_register_type (module);
static void
gimp_color_wheel_class_init (GimpColorWheelClass *class)
......@@ -196,6 +202,11 @@ gimp_color_wheel_class_init (GimpColorWheelClass *class)
g_type_class_add_private (object_class, sizeof (GimpColorWheelPrivate));
static void
gimp_color_wheel_class_finalize (GimpColorWheelClass *klass)
static void
gimp_color_wheel_init (GimpColorWheel *wheel)
......@@ -72,6 +72,8 @@ struct _GimpColorWheelClass
void color_wheel_register_type (GTypeModule *module);
GType gimp_color_wheel_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_color_wheel_new (void);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment