[gtkmm/gtkmm-2-24] Fix the make check build.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-2-24] Fix the make check build.
- Date: Fri, 14 Jan 2011 13:33:37 +0000 (UTC)
commit 737f1caa45d74671b6acb20afb06ec938697656b
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jan 14 14:33:26 2011 +0100
Fix the make check build.
* demos/gtk-demo/example_treeview_editable_cells.cc:
* demos/gtk-demo/example_treeview_treestore.cc: Use get_first_cell() instead
of deprecated get_first_cell_renderer().
ChangeLog | 8 ++++++++
demos/gtk-demo/example_treeview_editable_cells.cc | 4 ++--
demos/gtk-demo/example_treeview_treestore.cc | 12 ++++++------
3 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3bd8224..b21d6ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-14 Murray Cumming <murrayc murrayc com>
+
+ Fix the make check build.
+
+ * demos/gtk-demo/example_treeview_editable_cells.cc:
+ * demos/gtk-demo/example_treeview_treestore.cc: Use get_first_cell() instead
+ of deprecated get_first_cell_renderer().
+
2011-01-12 Murray Cumming <murrayc murrayc com>
Fix the make check build.
diff --git a/demos/gtk-demo/example_treeview_editable_cells.cc b/demos/gtk-demo/example_treeview_editable_cells.cc
index a2958cd..e48298a 100644
--- a/demos/gtk-demo/example_treeview_editable_cells.cc
+++ b/demos/gtk-demo/example_treeview_editable_cells.cc
@@ -247,7 +247,7 @@ void Example_TreeView_EditableCells::add_columns()
Gtk::TreeView::Column* pViewColumn = Gtk::manage(new Gtk::TreeView::Column("Number", m_columns.number));
//connect signal handlers for auto-storing of edited cell data
- Gtk::CellRenderer* pCellRenderer = pViewColumn->get_first_cell_renderer();
+ Gtk::CellRenderer* pCellRenderer = pViewColumn->get_first_cell();
Gtk::CellRendererText* pCellRenderText = dynamic_cast<Gtk::CellRendererText*>(pCellRenderer);
if(pCellRenderText)
{
@@ -265,7 +265,7 @@ void Example_TreeView_EditableCells::add_columns()
Gtk::TreeView::Column* pViewColumn = Gtk::manage(new Gtk::TreeView::Column("Product", m_columns.product));
//connect signal handlers for auto-storing of edited cell data
- Gtk::CellRenderer* pCellRenderer = pViewColumn->get_first_cell_renderer();
+ Gtk::CellRenderer* pCellRenderer = pViewColumn->get_first_cell();
Gtk::CellRendererText* pCellRenderText = dynamic_cast<Gtk::CellRendererText*>(pCellRenderer);
if(pCellRenderText)
{
diff --git a/demos/gtk-demo/example_treeview_treestore.cc b/demos/gtk-demo/example_treeview_treestore.cc
index c526851..4f5a814 100644
--- a/demos/gtk-demo/example_treeview_treestore.cc
+++ b/demos/gtk-demo/example_treeview_treestore.cc
@@ -333,7 +333,7 @@ void Example_TreeView_TreeStore::add_columns()
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count-1);
if(pColumn)
{
- Gtk::CellRenderer* pRenderer = pColumn->get_first_cell_renderer();
+ Gtk::CellRenderer* pRenderer = pColumn->get_first_cell();
pRenderer->property_xalign().set_value(0.0);
pColumn->set_clickable();
@@ -346,7 +346,7 @@ void Example_TreeView_TreeStore::add_columns()
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count-1);
if(pColumn)
{
- Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell_renderer());
+ Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell());
pRenderer->property_xalign().set_value(0.0);
pColumn->add_attribute(pRenderer->property_visible(), m_columns.visible);
@@ -364,7 +364,7 @@ void Example_TreeView_TreeStore::add_columns()
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count-1);
if(pColumn)
{
- Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell_renderer());
+ Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell());
pRenderer->property_xalign().set_value(0.0);
pColumn->add_attribute(pRenderer->property_visible(), m_columns.visible);
@@ -381,7 +381,7 @@ void Example_TreeView_TreeStore::add_columns()
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count-1);
if(pColumn)
{
- Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell_renderer());
+ Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell());
pRenderer->property_xalign().set_value(0.0);
pColumn->add_attribute(pRenderer->property_visible(), m_columns.visible);
@@ -399,7 +399,7 @@ void Example_TreeView_TreeStore::add_columns()
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count-1);
if(pColumn)
{
- Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell_renderer());
+ Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell());
pRenderer->property_xalign().set_value(0.0);
pColumn->add_attribute(pRenderer->property_visible(), m_columns.visible);
@@ -416,7 +416,7 @@ void Example_TreeView_TreeStore::add_columns()
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count-1);
if(pColumn)
{
- Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell_renderer());
+ Gtk::CellRendererToggle* pRenderer = static_cast<Gtk::CellRendererToggle*>(pColumn->get_first_cell());
pRenderer->property_xalign().set_value(0.0);
pColumn->add_attribute(pRenderer->property_visible(), m_columns.visible);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]