[gimp/gtk3-port: 22/236] app: remove GTK_OBJECT() cast



commit 7e6776dcb0aa1552839c542ce36f3dce88ced712
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 15 12:29:48 2010 +0200

    app: remove GTK_OBJECT() cast

 app/widgets/gimpbrusheditor.c |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/app/widgets/gimpbrusheditor.c b/app/widgets/gimpbrusheditor.c
index f0885ad..d45d476 100644
--- a/app/widgets/gimpbrusheditor.c
+++ b/app/widgets/gimpbrusheditor.c
@@ -150,8 +150,7 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
   gtk_widget_show (box);
 
   /*  brush radius scale  */
-  editor->radius_data =
-    GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.1, 1000.0, 0.1, 1.0, 0.0));
+  editor->radius_data = gtk_adjustment_new (0.0, 0.1, 1000.0, 0.1, 1.0, 0.0);
   scale = gimp_spin_scale_new (editor->radius_data, _("Radius"), 1);
   gtk_box_pack_start (GTK_BOX (editor->options_box), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
@@ -161,8 +160,7 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
                     editor);
 
   /*  number of spikes  */
-  editor->spikes_data =
-    GTK_ADJUSTMENT (gtk_adjustment_new (2.0, 2.0, 20.0, 1.0, 1.0, 0.0));
+  editor->spikes_data = gtk_adjustment_new (2.0, 2.0, 20.0, 1.0, 1.0, 0.0);
   scale = gimp_spin_scale_new (editor->spikes_data, _("Spikes"), 0);
   gtk_box_pack_start (GTK_BOX (editor->options_box), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
@@ -172,8 +170,7 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
                     editor);
 
   /*  brush hardness scale  */
-  editor->hardness_data =
-    GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.1, 0.0));
+  editor->hardness_data = gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.1, 0.0);
   scale = gimp_spin_scale_new (editor->hardness_data, _("Hardness"), 2);
   gtk_box_pack_start (GTK_BOX (editor->options_box), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
@@ -183,8 +180,7 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
                     editor);
 
   /*  brush aspect ratio scale  */
-  editor->aspect_ratio_data =
-    GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 1.0, 20.0, 0.1, 1.0, 0.0));
+  editor->aspect_ratio_data = gtk_adjustment_new (0.0, 1.0, 20.0, 0.1, 1.0, 0.0);
   scale = gimp_spin_scale_new (editor->aspect_ratio_data, _("Aspect ratio"), 1);
   gtk_box_pack_start (GTK_BOX (editor->options_box), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
@@ -194,8 +190,7 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
                     editor);
 
   /*  brush angle scale  */
-  editor->angle_data =
-    GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 180.0, 0.1, 1.0, 0.0));
+  editor->angle_data = gtk_adjustment_new (0.0, 0.0, 180.0, 0.1, 1.0, 0.0);
   scale = gimp_spin_scale_new (editor->angle_data, _("Angle"), 1);
   gtk_box_pack_start (GTK_BOX (editor->options_box), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
@@ -205,8 +200,7 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
                     editor);
 
   /*  brush spacing  */
-  editor->spacing_data =
-    GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 1.0, 5000.0, 1.0, 10.0, 0.0));
+  editor->spacing_data = gtk_adjustment_new (0.0, 1.0, 5000.0, 1.0, 10.0, 0.0);
   scale = gimp_spin_scale_new (editor->spacing_data, _("Spacing"), 1);
   gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (scale), 1.0, 200.0);
   gtk_box_pack_start (GTK_BOX (editor->options_box), scale, FALSE, FALSE, 0);



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