[niepce] ui: fix an unused argument warning in LibraryCellRenderer



commit c6debd98d4c1dabd7ca9af43754fc9709951e2a8
Author: Hubert Figuière <hub figuiere net>
Date:   Tue Jan 24 12:13:47 2017 -0500

    ui: fix an unused argument warning in LibraryCellRenderer

 src/niepce/ui/librarycellrenderer.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/niepce/ui/librarycellrenderer.cpp b/src/niepce/ui/librarycellrenderer.cpp
index f5baf21..f76f755 100644
--- a/src/niepce/ui/librarycellrenderer.cpp
+++ b/src/niepce/ui/librarycellrenderer.cpp
@@ -291,11 +291,11 @@ LibraryCellRenderer::render_vfunc(const Cairo::RefPtr<Cairo::Context>& cr,
 
 
 bool
-LibraryCellRenderer::activate_vfunc(GdkEvent *event, Gtk::Widget & ,
+LibraryCellRenderer::activate_vfunc(GdkEvent * /*event*/, Gtk::Widget & ,
                                     const Glib::ustring &, const Gdk::Rectangle& /*bg*/,
                                     const Gdk::Rectangle & cell_area, Gtk::CellRendererState)
 {
-    DBG_OUT("On click. Event %p", event);
+    DBG_OUT("activate event");
     if(this->ClickableCellRenderer::is_hit()) {
 
         this->ClickableCellRenderer::reset_hit();
@@ -319,7 +319,7 @@ LibraryCellRenderer::activate_vfunc(GdkEvent *event, Gtk::Widget & ,
         y = this->ClickableCellRenderer::y();
         DBG_OUT("r(%d, %d, %d, %d) p(%f, %f)", rect.x, rect.y,
                 rect.width, rect.height, x, y);
-        bool hit = (rect.x <= x) && (rect.x + rect.width >= x) 
+        bool hit = (rect.x <= x) && (rect.x + rect.width >= x)
             && (rect.y <= y) && (rect.y + rect.height >= y);
         if(!hit) {
             DBG_OUT("not a hit");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]