[gimp/wip/nielsdg/gimp-type-rgb-signals] Use GIMP_TYPE_RGB instead of G_TYPE_POINTER



commit 88a17bcd9feb7b64ea81b9ce2eb1fcdea5f91b89
Author: Niels De Graef <niels degraef barco com>
Date:   Mon May 4 21:33:37 2020 +0200

    Use GIMP_TYPE_RGB instead of G_TYPE_POINTER
    
    That way, bindings can set the correct signature for callbacks.

 libgimpwidgets/gimpcolorselector.c | 6 +++---
 libgimpwidgets/gimppickbutton.c    | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgimpwidgets/gimpcolorselector.c b/libgimpwidgets/gimpcolorselector.c
index 2215e14616..c03b01d7db 100644
--- a/libgimpwidgets/gimpcolorselector.c
+++ b/libgimpwidgets/gimpcolorselector.c
@@ -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",
diff --git a/libgimpwidgets/gimppickbutton.c b/libgimpwidgets/gimppickbutton.c
index f5891204c7..43ab6ae9ad 100644
--- a/libgimpwidgets/gimppickbutton.c
+++ b/libgimpwidgets/gimppickbutton.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]