Re: Adjustment problem



On Tue, 2006-10-31 at 15:34 -0600, Paul Davis wrote:
> Murray,
> 
> From what I can tell, these are being implemented twice.
[snip]
>   g_object_class_install_property (gobject_class,
>                                    PROP_VALUE,
>                                    g_param_spec_double ("value",
>                             P_("Value"),
>                             P_("The value of the adjustment"),
>                             -G_MAXDOUBLE,
>                             G_MAXDOUBLE,
>                             0.0,
>                             GTK_PARAM_READWRITE));
> 
> And gtk_adjustment_new looks like this:
> 
> GtkObject*
> gtk_adjustment_new (gdouble value,
>             gdouble lower,
>             gdouble upper,
>             gdouble step_increment,
>             gdouble page_increment,
>             gdouble page_size)
> {
>     return g_object_new (GTK_TYPE_ADJUSTMENT,
>                "lower", lower,
>                "upper", upper,
>                "step-increment", step_increment,
>                "page-increment", page_increment,
>                "page-size", page_size,
>                "value", value,
>                NULL);
> }
> 
> gdouble
> gtk_adjustment_get_value (GtkAdjustment *adjustment)
> {
>   g_return_val_if_fail (GTK_IS_ADJUSTMENT (adjustment), 0.);
> 
>   return adjustment->value;
> } 

Again, if you look at get_property() you should see that it is using
adjustment->value there too.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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