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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkvscrollbar.pre:1: + /* -*- C -*- */ + class GTK2.VScrollbar; + inherit GTK2.Scrollbar;    -  + //! General documentation: See W(Scrollbar) + //! IMG: GTK2.VScrollbar(GTK2.Adjustment())->set_size_request(15,60) +  + void create(GTK2.Adjustment|mapping(string:mixed)|void pos_or_props) + //! Used to create a new vscrollbar widget. + { +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup(); +  if (args) { +  if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) { +  struct object *o1; +  GtkWidget *gv; +  get_all_args("create",args,"%o",&o1); +  gv=gtk_vscrollbar_new(GTK_ADJUSTMENT(get_gobject(o1))); +  THIS->obj=G_OBJECT(gv); +  } else { +  INIT_WITH_PROPS(GTK_TYPE_VSCROLLBAR); +  } +  pgtk2_pop_n_elems(args); +  } else { +  GtkWidget *gv; +  gv=gtk_vscrollbar_new(NULL); +  THIS->obj=G_OBJECT(gv); +  } +  pgtk2__init_this_object(); + }   Newline at end of file added.