mirror of https://github.com/GNOME/gimp.git
Use GIMP_TYPE_RGB instead of G_TYPE_POINTER
That way, bindings can set the correct signature for callbacks.
This commit is contained in:
parent
82e945d945
commit
4729fc8dec
|
@ -90,10 +90,10 @@ gimp_color_selector_class_init (GimpColorSelectorClass *klass)
|
|||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GimpColorSelectorClass, color_changed),
|
||||
NULL, NULL,
|
||||
_gimp_widgets_marshal_VOID__POINTER_POINTER,
|
||||
_gimp_widgets_marshal_VOID__BOXED_BOXED,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_POINTER,
|
||||
G_TYPE_POINTER);
|
||||
GIMP_TYPE_RGB,
|
||||
GIMP_TYPE_RGB);
|
||||
|
||||
selector_signals[CHANNEL_CHANGED] =
|
||||
g_signal_new ("channel-changed",
|
||||
|
|
|
@ -79,7 +79,7 @@ gimp_pick_button_class_init (GimpPickButtonClass* klass)
|
|||
/**
|
||||
* GimpPickButton::color-picked:
|
||||
* @gimppickbutton: the object which received the signal.
|
||||
* @arg1: pointer to a #GimpRGB structure that holds the picked color
|
||||
* @color: pointer to a #GimpRGB structure that holds the picked color
|
||||
*
|
||||
* This signal is emitted when the user has picked a color.
|
||||
**/
|
||||
|
@ -90,7 +90,7 @@ gimp_pick_button_class_init (GimpPickButtonClass* klass)
|
|||
G_STRUCT_OFFSET (GimpPickButtonClass, color_picked),
|
||||
NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
GIMP_TYPE_RGB);
|
||||
|
||||
object_class->dispose = gimp_pick_button_dispose;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ VOID: ENUM, BOOLEAN
|
|||
VOID: INT, INT
|
||||
VOID: OBJECT
|
||||
VOID: OBJECT, INT
|
||||
VOID: POINTER, POINTER
|
||||
VOID: BOXED, BOXED
|
||||
VOID: STRING, FLAGS
|
||||
VOID: STRING, INT
|
||||
VOID: DOUBLE, DOUBLE
|
||||
|
|
Loading…
Reference in New Issue