Re: Adjustment problem
- From: Murray Cumming <murrayc murrayc com>
- To: Paul Davis <pjdavis engineering uiowa edu>
- Cc: "Amadeus W.M." <amadeus84 verizon net>, gtkmm-list gnome org
- Subject: Re: Adjustment problem
- Date: Wed, 01 Nov 2006 18:16:21 +0100
On Wed, 2006-11-01 at 11:09 -0600, Paul Davis wrote:
[snip]
> Should really look something like:
>
> GtkAdjustment*
> gtk_adjustment_new( double value, double lower, et al )
> {
> GObject* obj = g_object_new( GTK_TYPE_ADJUSTMENT, NULL ) ;
> GtkAdjustment* adjustment = GTK_ADJUSTMENT( obj ) ;
>
> adjustment->value = value ;
> adjustment->lower = lower ;
>
> ... and so on ...
>
> }
No, _new() functions should, in general, do nothing more than call
g_object_new(), so that it's easy for language bindings to instantiate
derived GTypes.
--
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]