git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37661
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GtkTreeIter *iter,
GtkTreeIter *child);
GtkTreeIter *iter,
GtkTreeIter *child);
-static void gtk_list_store_set_n_columns (GtkWxListStore *list_store,
- gint n_columns);
-static void gtk_list_store_set_column_type (GtkWxListStore *list_store,
- gint column,
- GType type);
-
static GObjectClass *parent_class = NULL;
GType
static GObjectClass *parent_class = NULL;
GType
-wxgtk_list_store_get_type (void)
+gtk_wx_list_store_get_type (void)
{
static GType list_store_type = 0;
{
static GType list_store_type = 0;
/* GtkWxListStore *list_store = GTK_WX_LIST_STORE (object); */
/* we need to sort out, which class deletes what */
/* GtkWxListStore *list_store = GTK_WX_LIST_STORE (object); */
/* we need to sort out, which class deletes what */
+ /* delete list_store->model; */
/* must chain up */
(* parent_class->finalize) (object);
/* must chain up */
(* parent_class->finalize) (object);
if (n >= (int) list_store->model->GetNumberOfRows())
return FALSE;
if (n >= (int) list_store->model->GetNumberOfRows())
return FALSE;
- iter->user_data = (gpointer) n++;
+ iter->user_data = (gpointer) ++n;
= gtk_cell_renderer_text_new();
GtkTreeViewColumn *column
= gtk_cell_renderer_text_new();
GtkTreeViewColumn *column
- = gtk_tree_view_column_new_with_attributes( wxGTK_CONV(label), renderer, "text", index, NULL );
+ = gtk_tree_view_column_new_with_attributes( wxGTK_CONV(label), renderer, "text", -1, NULL );
gtk_tree_view_append_column( GTK_TREE_VIEW(m_widget), column );
gtk_tree_view_append_column( GTK_TREE_VIEW(m_widget), column );