[gimp/gimp-2-10] app: make gimp_gradient_editor_update() private
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: make gimp_gradient_editor_update() private
- Date: Thu, 21 Jun 2018 12:01:02 +0000 (UTC)
commit 1ce50d9881f7c275e6459b49cee382151a197ced
Author: Michael Natterer <mitch gimp org>
Date: Thu Jun 21 13:57:39 2018 +0200
app: make gimp_gradient_editor_update() private
(cherry picked from commit 02b6ff24da45117587f548a05c1ca8a0cc24e864)
app/widgets/gimpgradienteditor.c | 22 +++++++++-------------
app/widgets/gimpgradienteditor.h | 1 -
2 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/app/widgets/gimpgradienteditor.c b/app/widgets/gimpgradienteditor.c
index 0d4ccd414f..771f9a78f2 100644
--- a/app/widgets/gimpgradienteditor.c
+++ b/app/widgets/gimpgradienteditor.c
@@ -116,6 +116,7 @@ static void gimp_gradient_editor_set_data (GimpDataEditor *editor,
static void gimp_gradient_editor_set_context (GimpDocked *docked,
GimpContext *context);
+static void gimp_gradient_editor_update (GimpGradientEditor *editor);
static void gimp_gradient_editor_gradient_dirty (GimpGradientEditor *editor,
GimpGradient *gradient);
static void gradient_editor_drop_gradient (GtkWidget *widget,
@@ -537,19 +538,6 @@ gimp_gradient_editor_new (GimpContext *context,
NULL);
}
-void
-gimp_gradient_editor_update (GimpGradientEditor *editor)
-{
- GimpGradient *gradient = NULL;
-
- g_return_if_fail (GIMP_IS_GRADIENT_EDITOR (editor));
-
- if (GIMP_DATA_EDITOR (editor)->data)
- gradient = GIMP_GRADIENT (GIMP_DATA_EDITOR (editor)->data);
-
- control_update (editor, gradient, FALSE);
-}
-
void
gimp_gradient_editor_zoom (GimpGradientEditor *editor,
GimpZoomType zoom_type)
@@ -615,6 +603,14 @@ gimp_gradient_editor_zoom (GimpGradientEditor *editor,
/* private functions */
+static void
+gimp_gradient_editor_update (GimpGradientEditor *editor)
+{
+ GimpGradient *gradient = GIMP_GRADIENT (GIMP_DATA_EDITOR (editor)->data);
+
+ control_update (editor, gradient, FALSE);
+}
+
static void
gimp_gradient_editor_gradient_dirty (GimpGradientEditor *editor,
GimpGradient *gradient)
diff --git a/app/widgets/gimpgradienteditor.h b/app/widgets/gimpgradienteditor.h
index 8f0429a0c3..5fc1582a41 100644
--- a/app/widgets/gimpgradienteditor.h
+++ b/app/widgets/gimpgradienteditor.h
@@ -111,7 +111,6 @@ GType gimp_gradient_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_gradient_editor_new (GimpContext *context,
GimpMenuFactory *menu_factory);
-void gimp_gradient_editor_update (GimpGradientEditor *editor);
void gimp_gradient_editor_zoom (GimpGradientEditor *editor,
GimpZoomType zoom_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]