[dia] [warningectomy] dynamic cast to GtkAdjustment*



commit ea1bef0e3f4c378a37d569d7a06d3705cd23a62f
Author: Hans Breuer <hans breuer org>
Date:   Sat Apr 12 23:00:27 2014 +0200

    [warningectomy] dynamic cast to GtkAdjustment*
    
    With gtk-3.0 the return value is changed to GtkAdjustment* so this will
    become a no-op. With gtk-2-2x remove the warning.

 lib/prop_sdarray_widget.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/prop_sdarray_widget.c b/lib/prop_sdarray_widget.c
index 438c8e8..86c1df8 100644
--- a/lib/prop_sdarray_widget.c
+++ b/lib/prop_sdarray_widget.c
@@ -82,10 +82,10 @@ _cell_renderer_real_new (const Property *p)
   GtkAdjustment *adj;
 
   /* must be non NULL to make it editable */
-  adj = gtk_adjustment_new (prop->real_data,
+  adj = GTK_ADJUSTMENT (gtk_adjustment_new (prop->real_data,
                            numdata->min, numdata->max,
                            numdata->step, 
-                           10.0 * numdata->step, 0);
+                           10.0 * numdata->step, 0));
 
   g_object_set (G_OBJECT (cren), "adjustment", adj, NULL);
 


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