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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkaspectframe.pre:26:   //! lower (or rightmost). If 'obey_child' is true, the frame will use the   //! aspect ratio of it's (one and only) child widget instead of 'ratio'.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args>0 && TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    struct pike_string *label;    FLOAT_TYPE xalign=0.5,yalign=0.5,ratio=1.0;    INT_TYPE obey_child=1;    GtkWidget *gaf; -  get_all_args("create",args,"%t.%f%f%f%i",&label,&xalign,&yalign, +  get_all_args(NULL,args,"%t.%f%f%f%i",&label,&xalign,&yalign,    &ratio,&obey_child);    ref_push_string(label);    f_string_to_utf8(1);    gaf=gtk_aspect_frame_new(CGSTR0(Pike_sp[-1].u.string),    xalign,yalign,ratio,obey_child);    pop_stack();    THIS->obj=G_OBJECT(gaf);    } else {    INIT_WITH_PROPS(GTK_TYPE_ASPECT_FRAME);    }    pgtk2_pop_n_elems(args);    pgtk2__init_this_object();   }