app: peek/poke much less in GimpGradientEditor internals
Add gimp_gradient_editor_get_selection() and set_selection() and use them in gradient-editor-commands.c
This commit is contained in:
@ -108,15 +108,23 @@ struct _GimpGradientEditorClass
|
||||
|
||||
GType gimp_gradient_editor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GtkWidget * gimp_gradient_editor_new (GimpContext *context,
|
||||
GimpMenuFactory *menu_factory);
|
||||
GtkWidget * gimp_gradient_editor_new (GimpContext *context,
|
||||
GimpMenuFactory *menu_factory);
|
||||
|
||||
void gimp_gradient_editor_edit_left_color (GimpGradientEditor *editor);
|
||||
void gimp_gradient_editor_edit_right_color (GimpGradientEditor *editor);
|
||||
void gimp_gradient_editor_get_selection (GimpGradientEditor *editor,
|
||||
GimpGradient **gradient,
|
||||
GimpGradientSegment **left,
|
||||
GimpGradientSegment **right);
|
||||
void gimp_gradient_editor_set_selection (GimpGradientEditor *editor,
|
||||
GimpGradientSegment *left,
|
||||
GimpGradientSegment *right);
|
||||
|
||||
void gimp_gradient_editor_zoom (GimpGradientEditor *editor,
|
||||
GimpZoomType zoom_type,
|
||||
gdouble delta);
|
||||
void gimp_gradient_editor_edit_left_color (GimpGradientEditor *editor);
|
||||
void gimp_gradient_editor_edit_right_color (GimpGradientEditor *editor);
|
||||
|
||||
void gimp_gradient_editor_zoom (GimpGradientEditor *editor,
|
||||
GimpZoomType zoom_type,
|
||||
gdouble delta);
|
||||
|
||||
|
||||
#endif /* __GIMP_GRADIENT_EDITOR_H__ */
|
||||
|
||||
Reference in New Issue
Block a user