[gimp] app: remove GimpBucketFillMode from gimp_display_shell_dnd_bucket_fill()



commit f04b2d4a19db91f1cb3af606ba5d54d2305777c3
Author: Michael Natterer <mitch gimp org>
Date:   Tue Apr 29 00:25:02 2014 +0200

    app: remove GimpBucketFillMode from gimp_display_shell_dnd_bucket_fill()
    
    because it's not used any longer, and rename the function to
    gimp_display_shell_dnd_fill().

 app/display/gimpdisplayshell-dnd.c |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-dnd.c b/app/display/gimpdisplayshell-dnd.c
index fb12e57..dff32e3 100644
--- a/app/display/gimpdisplayshell-dnd.c
+++ b/app/display/gimpdisplayshell-dnd.c
@@ -334,10 +334,9 @@ gimp_display_shell_drop_svg (GtkWidget     *widget,
 }
 
 static void
-gimp_display_shell_dnd_bucket_fill (GimpDisplayShell   *shell,
-                                    GimpBucketFillMode  fill_mode,
-                                    const GimpRGB      *color,
-                                    GimpPattern        *pattern)
+gimp_display_shell_dnd_fill (GimpDisplayShell *shell,
+                             const GimpRGB    *color,
+                             GimpPattern      *pattern)
 {
   GimpImage    *image = gimp_display_get_image (shell->display);
   GimpDrawable *drawable;
@@ -401,9 +400,8 @@ gimp_display_shell_drop_pattern (GtkWidget    *widget,
   GIMP_LOG (DND, NULL);
 
   if (GIMP_IS_PATTERN (viewable))
-    gimp_display_shell_dnd_bucket_fill (GIMP_DISPLAY_SHELL (data),
-                                        GIMP_PATTERN_BUCKET_FILL,
-                                        NULL, GIMP_PATTERN (viewable));
+    gimp_display_shell_dnd_fill (GIMP_DISPLAY_SHELL (data),
+                                 NULL, GIMP_PATTERN (viewable));
 }
 
 static void
@@ -415,9 +413,8 @@ gimp_display_shell_drop_color (GtkWidget     *widget,
 {
   GIMP_LOG (DND, NULL);
 
-  gimp_display_shell_dnd_bucket_fill (GIMP_DISPLAY_SHELL (data),
-                                      GIMP_FG_BUCKET_FILL,
-                                      color, NULL);
+  gimp_display_shell_dnd_fill (GIMP_DISPLAY_SHELL (data),
+                               color, NULL);
 }
 
 static void


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