[gnote] Use get_first_cell to get CellRenderer in recentchanges
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use get_first_cell to get CellRenderer in recentchanges
- Date: Wed, 1 Jun 2011 20:10:26 +0000 (UTC)
commit f8504af8a9a93546d7042395b1159323aeb3949a
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Tue May 31 23:06:50 2011 +0300
Use get_first_cell to get CellRenderer in recentchanges
src/recentchanges.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index c9870b7..ffba9d3 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -854,8 +854,7 @@ namespace gnote {
if (m_tree->get_selection()->is_selected(dest_path)
&& (ev->state & (Gdk::CONTROL_MASK | Gdk::SHIFT_MASK)) == 0) {
if (column && (ev->button == 1)) {
- Glib::ListHandle<Gtk::CellRenderer *> renderers = column->get_cell_renderers();
- Gtk::CellRenderer *renderer = *renderers.begin();
+ Gtk::CellRenderer *renderer = column->get_first_cell();
Gdk::Rectangle background_area;
m_tree->get_background_area (dest_path, *column, background_area);
Gdk::Rectangle cell_area;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]