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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkscrolledwindow.pre:1:   /* -*- C -*- */   class GTK2.ScrolledWindow;   inherit GTK2.Bin;      //! Scrolled windows are used to create a scrollable area with another - //! widget insite it. You may insert any type of widget into a scrolled - //! window, and it will be accessible regardless of the size by using + //! widget inside it. You may insert any type of widget into a scrolled + //! window, and it will be accessible regardless of its size by using   //! the scrollbars.   //!<p>   //! IMG: GTK2.ScrolledWindow(GTK2.Adjustment(),GTK2.Adjustment())->add(GTK2.Label("A small label"))->set_policy(GTK2.POLICY_AUTOMATIC,GTK2.POLICY_AUTOMATIC)   //! IMG: GTK2.ScrolledWindow(GTK2.Adjustment(),GTK2.Adjustment())->add(GTK2.Label("A small label"))->set_policy(GTK2.POLICY_AUTOMATIC,GTK2.POLICY_AUTOMATIC)   //! IMG: GTK2.ScrolledWindow(GTK2.Adjustment(),GTK2.Adjustment())->add(GTK2.Label("A small label")) - //! IMG: GTK2.ScrolledWindow(GTK2.Adjustment(),GTK2.Adjustment())->add(GTK2.Label("a ver huge label")) + //! IMG: GTK2.ScrolledWindow(GTK2.Adjustment(),GTK2.Adjustment())->add(GTK2.Label("a very huge label"))   //! </p>      //! Properties:   //! GTK2.Adjustment hadjustment   //! int hscrollbar-policy   //! int shadow-type   //! GTK2.Adjustment vadjustment   //! int vscrollbar-policy   //! int window-placement   //! <p>
pike.git/src/post_modules/GTK2/source/gtkscrolledwindow.pre:31:   void create(?GTK2.Adjustment|mapping(string:mixed)|void hadjustment_or_props,    ?GTK2.Adjustment vadjustments)   //! The two adjustments are most commonly set to 0.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct object *o1,*o2=NULL;    GtkWidget *gs; -  get_all_args("create",args,"%o.%o",&o1,&o2); +  get_all_args(NULL,args,"%o.%o",&o1,&o2);    gs=gtk_scrolled_window_new(    GTK_ADJUSTMENT(get_gobject(o1)),    GTK_ADJUSTMENT(get_gobject(o2)));    THIS->obj=G_OBJECT(gs);    } else {    INIT_WITH_PROPS(GTK_TYPE_SCROLLED_WINDOW);    }    pgtk2_pop_n_elems(args);    } else {    GtkWidget *gs;
pike.git/src/post_modules/GTK2/source/gtkscrolledwindow.pre:79:   //! gtk_container_add, depending on whether or not the child supports   //! the set_scroll_adjustments signal.   //! <p>   //! What this means in practice is that you do not have to care about   //! this at all, it's all handled automatically.   //! </p>   {    GtkWidget *victim;    struct object *o;    -  get_all_args("add",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    victim=GTK_WIDGET(get_gobject(o));    if (!(GTK_WIDGET_GET_CLASS(victim)->set_scroll_adjustments_signal))    gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(THIS->obj),    victim);    else    gtk_container_add(GTK_CONTAINER(THIS->obj),victim);    RETURN_THIS();   }      void set_placement(int window_placement);