gtkmm-documentation r41 - in trunk: . examples/book/treeview/list
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkmm-documentation r41 - in trunk: . examples/book/treeview/list
- Date: Sun, 6 Apr 2008 12:16:41 +0100 (BST)
Author: murrayc
Date: Sun Apr 6 12:16:41 2008
New Revision: 41
URL: http://svn.gnome.org/viewvc/gtkmm-documentation?rev=41&view=rev
Log:
2008-04-06 Murray Cumming <murrayc murrayc com>
* examples/book/treeview/list/examplewindow.cc
constructor: Use Gtk::manage() on the cell renderer, to prevent a leak.
Modified:
trunk/ChangeLog
trunk/examples/book/treeview/list/examplewindow.cc
Modified: trunk/examples/book/treeview/list/examplewindow.cc
==============================================================================
--- trunk/examples/book/treeview/list/examplewindow.cc (original)
+++ trunk/examples/book/treeview/list/examplewindow.cc Sun Apr 6 12:16:41 2008
@@ -75,7 +75,7 @@
"%010d" /* 10 digits, using leading zeroes. */);
//Display a progress bar instead of a decimal number:
- Gtk::CellRendererProgress* cell = new Gtk::CellRendererProgress;
+ Gtk::CellRendererProgress* cell = Gtk::manage(new Gtk::CellRendererProgress);
int cols_count = m_TreeView.append_column("Some percentage", *cell);
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count - 1);
if(pColumn)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]