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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcellview.pre:69:    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));    } else {    gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(THIS->obj),NULL);    }    RETURN_THIS();   }    - GTK2.TreePath get_displayed_row() + +GTK2.TreePath get_displayed_row()   //! Returns a W(TreePath) referring to the currently displayed row. If no   //! row is currently displayed, 0 is returned.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {    GtkTreePath *path=gtk_cell_view_get_displayed_row(GTK_CELL_VIEW(THIS->obj));    push_gobjectclass(path,pgtk2_tree_path_program);    }   }
pike.git/src/post_modules/GTK2/source/gtkcellview.pre:112:    pgtk2_verify_inited();    {    struct object *o1;    get_all_args("set_background_color",args,"%o",&o1);    gtk_cell_view_set_background_color(GTK_CELL_VIEW(THIS->obj),    (GdkColor *)get_gdkobject(o1,color));    }    RETURN_THIS();   }    + array(GTK2.CellRenderer) get_cell_renderers() + //! Returns the cell renderers which have been added to this view. + { +  pgtk2_verify_inited(); +  pgtk2_pop_n_elems(args); +  { +  GList *gl,*g2; +  int i; +  +  gl=g2=gtk_cell_view_get_cell_renderers(GTK_CELL_VIEW(THIS->obj)); +  i=0; +  while (g2) { +  push_gobject(g2->data); +  g_object_ref(g2->data); +  i++; +  g2=g_list_next(g2); +  } +  f_aggregate(i); +  g_list_free(gl); +  } + }   endrequire;