mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpwidgets: GimpColorSelector and GimpController are abstract.
This commit is contained in:
parent
8822ca71a2
commit
9ff663ccb2
2 changed files with 6 additions and 7 deletions
|
@ -85,8 +85,7 @@ static void gimp_color_selector_emit_model_visible_changed (GimpColorSelector
|
||||||
GimpColorSelectorModel model);
|
GimpColorSelectorModel model);
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_PRIVATE (GimpColorSelector, gimp_color_selector,
|
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GimpColorSelector, gimp_color_selector, GTK_TYPE_BOX)
|
||||||
GTK_TYPE_BOX)
|
|
||||||
|
|
||||||
#define parent_class gimp_color_selector_parent_class
|
#define parent_class gimp_color_selector_parent_class
|
||||||
|
|
||||||
|
@ -200,7 +199,7 @@ gimp_color_selector_dispose (GObject *object)
|
||||||
/* public functions */
|
/* public functions */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gimp_color_selector_new:
|
* gimp_color_selector_new: (skip)
|
||||||
* @selector_type: The #GType of the selector to create.
|
* @selector_type: The #GType of the selector to create.
|
||||||
* @color: The initial color to be edited.
|
* @color: The initial color to be edited.
|
||||||
* @channel: The selector's initial channel.
|
* @channel: The selector's initial channel.
|
||||||
|
@ -212,7 +211,7 @@ gimp_color_selector_dispose (GObject *object)
|
||||||
* Please use gimp_color_selection_new() for the "GIMP-typical" color
|
* Please use gimp_color_selection_new() for the "GIMP-typical" color
|
||||||
* selection widget. Also see gimp_color_button_new().
|
* selection widget. Also see gimp_color_button_new().
|
||||||
*
|
*
|
||||||
* Retunn value: the new #GimpColorSelector widget.
|
* Returns: the new #GimpColorSelector widget.
|
||||||
**/
|
**/
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gimp_color_selector_new (GType selector_type,
|
gimp_color_selector_new (GType selector_type,
|
||||||
|
|
|
@ -81,9 +81,9 @@ static void gimp_controller_get_property (GObject *object,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GimpController, gimp_controller, G_TYPE_OBJECT,
|
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GimpController, gimp_controller, G_TYPE_OBJECT,
|
||||||
G_ADD_PRIVATE (GimpController)
|
G_ADD_PRIVATE (GimpController)
|
||||||
G_IMPLEMENT_INTERFACE (GIMP_TYPE_CONFIG, NULL))
|
G_IMPLEMENT_INTERFACE (GIMP_TYPE_CONFIG, NULL))
|
||||||
|
|
||||||
#define parent_class gimp_controller_parent_class
|
#define parent_class gimp_controller_parent_class
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue