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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkviewport.pre:21:   //! Create a new viewport. The adjustments are used to select what   //! part of the viewport to view to the user. They are normally   //! connected to a scrollbar or something similar.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct object *o1,*o2=NULL;    GtkWidget *gv; -  get_all_args("create",args,"%o.%o",&o1,&o2); +  get_all_args(NULL,args,"%o.%o",&o1,&o2);    gv=gtk_viewport_new(GTK_ADJUSTMENT(get_gobject(o1)),    GTK_ADJUSTMENT(get_gobject(o2)));    THIS->obj=G_OBJECT(gv);    } else {    INIT_WITH_PROPS(GTK_TYPE_VIEWPORT);    }    pgtk2_pop_n_elems(args);    } else {    GtkWidget *gv;    gv=gtk_viewport_new(NULL,NULL);