eb05362005-11-05Henrik Grubbström (Grubba) /* -*- C -*- */
7e1f682005-12-18Martin Nilsson class GTK2.VScrollbar;
1a05542005-07-28Martin Nilsson inherit GTK2.Scrollbar; //! General documentation: See W(Scrollbar)
27a6df2006-01-05Marcus Comstedt //! IMG: GTK2.VScrollbar(GTK2.Adjustment())->set_size_request(15,60)
1a05542005-07-28Martin Nilsson 
3d76632005-11-03Lance Dillon void create(GTK2.Adjustment|mapping(string:mixed)|void pos_or_props)
1a05542005-07-28Martin Nilsson //! Used to create a new vscrollbar widget.
3d76632005-11-03Lance Dillon {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_not_inited(); pgtk2_verify_setup();
3d76632005-11-03Lance Dillon  if (args) {
017b572011-10-28Henrik Grubbström (Grubba)  if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {
3d76632005-11-03Lance Dillon  struct object *o1; GtkWidget *gv;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
3d76632005-11-03Lance Dillon  gv=gtk_vscrollbar_new(GTK_ADJUSTMENT(get_gobject(o1))); THIS->obj=G_OBJECT(gv); } else { INIT_WITH_PROPS(GTK_TYPE_VSCROLLBAR); }
ba9e802006-02-27Martin Stjernholm  pgtk2_pop_n_elems(args);
3d76632005-11-03Lance Dillon  } else { GtkWidget *gv; gv=gtk_vscrollbar_new(NULL); THIS->obj=G_OBJECT(gv); }
ba9e802006-02-27Martin Stjernholm  pgtk2__init_this_object();
3d76632005-11-03Lance Dillon }