[gimp] Bug 641761 - "Smooth Stroke" option in Blend tool



commit 543b97bfb30b1b5290e2a0e1073de7705f205dab
Author: Michael Natterer <mitch gimp org>
Date:   Mon Feb 14 10:38:32 2011 +0100

    Bug 641761 - "Smooth Stroke" option in Blend tool
    
    Show the smooth stroke options only for paint tools.

 app/tools/gimppaintoptions-gui.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimppaintoptions-gui.c b/app/tools/gimppaintoptions-gui.c
index 95285f2..1a486a5 100644
--- a/app/tools/gimppaintoptions-gui.c
+++ b/app/tools/gimppaintoptions-gui.c
@@ -213,9 +213,13 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
       gtk_widget_show (frame);
     }
 
-  frame = smoothing_options_gui (options, tool_type);
-  gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
-  gtk_widget_show (frame);
+  /*  the "smooth stroke" options  */
+  if (g_type_is_a (tool_type, GIMP_TYPE_PAINT_TOOL))
+    {
+      frame = smoothing_options_gui (options, tool_type);
+      gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
+      gtk_widget_show (frame);
+    }
 
   /*  the "incremental" toggle  */
   if (tool_type == GIMP_TYPE_PENCIL_TOOL     ||



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