pike.git / src / post_modules / GTK2 / source / gtkadjustment.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkadjustment.pre:44:   //! "larger" one. The page_size argument usually corresponds somehow   //! to the visible area of a panning widget. The upper argument is   //! used to represent the bottom most or right most coordinate in a   //! panning widget's child. Therefore it is not always the largest   //! number that value can take, since the page_size of such widgets is   //! usually non-zero.   //!   //! All values are optional, they default to 0.0.   //! For most widgets the unit is pixels.   { -  pgtk_verify_not_inited(); -  pgtk_verify_setup(); +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup();    if (args) {    GtkObject *ga;    if (Pike_sp[-args].type==PIKE_T_FLOAT) {    FLOAT_TYPE val,lower,upper,step_inc,page_inc,page_size;    val=lower=upper=step_inc=page_inc=page_size=0.0;    get_all_args("create",args,"%f.%f%f%f%f%f",&val,&lower,&upper,    &step_inc,&page_inc,&page_size);    ga=gtk_adjustment_new(val,lower,upper,step_inc,page_inc,page_size);    THIS->obj=G_OBJECT(ga);    } else {    INIT_WITH_PROPS(GTK_TYPE_ADJUSTMENT);    } -  my_pop_n_elems(args); +  pgtk2_pop_n_elems(args);    } else {    GtkObject *ga;    ga=gtk_adjustment_new(0.0,0.0,0.0,0.0,0.0,0.0);    THIS->obj=G_OBJECT(ga);    } -  pgtk__init_this_object(); +  pgtk2__init_this_object();   }      float get_value();   //! Gets the current value.      void set_value(float to);   //! Sets the value. The value is clamped to lie between lower and upper.   //! <p>   //! Note that for adjustments which are used in a W(Scrollbar), the effective   //! range of allowed values goes from lower to upper-page_size.