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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcellview.pre:62:   //! Sets the row of the model that is currently displayed. If the path is   //! omitted, then the contents of the cellview "stick" at their last value;   //! this is not normally a desired result, but may be a needed intermediate   //! state if say, the mode becomes temporarily empty.   {    pgtk2_verify_inited();    if (args) {    struct object *o1;    get_all_args("set_displayed_row",args,"%o",&o1);    gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(THIS->obj), -  (GtkTreePath *)get_gobject(o1)); +  (GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program));    } else {    gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(THIS->obj),NULL);    }    RETURN_THIS();   }      +GTK2.TreePath get_displayed_row()   //! Returns a W(TreePath) referring to the currently displayed row. If no   //! row is currently displayed, 0 is returned.   {
pike.git/src/post_modules/GTK2/source/gtkcellview.pre:91:   mapping(string:int) get_size_of_row(GTK2.TreePath path)   //! Returns width and height of the size needed to display the model row   //! pointed to by path.   {    pgtk2_verify_inited();    {    struct object *o1;    GtkRequisition req;    get_all_args("get_size_of_row",args,"%o",&o1);    gtk_cell_view_get_size_of_row(GTK_CELL_VIEW(THIS->obj), -  (GtkTreePath *)get_gobject(o1),&req); +  (GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program),&req);    pgtk2_pop_n_elems(args);    ref_push_string(_STR("width")); push_int(req.width);    ref_push_string(_STR("height")); push_int(req.height);    f_aggregate_mapping(4);    }   }      void set_background_color(GDK2.Color color)   //! Sets the background color.   {