gtkmm2/gtkmm2-null.patch

15 lines
799 B
Diff

Index: gtkmm-2.10.8/gtk/gtkmm/treeview.cc
===================================================================
--- gtkmm-2.10.8.orig/gtk/gtkmm/treeview.cc
+++ gtkmm-2.10.8/gtk/gtkmm/treeview.cc
@@ -236,7 +236,8 @@ bool TreeView::get_path_at_pos(int x, in
int TreeView::insert_column(const Glib::ustring& title, CellRenderer& cell, int position)
{
return gtk_tree_view_insert_column_with_attributes(
- gobj(), position, const_cast<char*>(title.c_str()), cell.gobj(), (void*)0); //Note that some compilers need the extra (void*) clue.
+ gobj(), position, const_cast<char*>(title.c_str()), cell.gobj(), NULL); //Note that some compilers need the extra (void*) clue.
+// But I'm changing it to NULL anyway.
}
int TreeView::append_column(const Glib::ustring& title, CellRenderer& cell)