[niepce] ui: LibraryCellRenderer size vfunc don't need the pixbuf



commit 6a1e5b5208b631289bcaf9cd7ddc9140a915d00d
Author: Hubert Figuière <hub figuiere net>
Date:   Sat Jan 11 13:48:54 2020 -0500

    ui: LibraryCellRenderer size vfunc don't need the pixbuf

 src/niepce/ui/librarycellrenderer.cpp | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/niepce/ui/librarycellrenderer.cpp b/src/niepce/ui/librarycellrenderer.cpp
index 3df57a3..7c4aec3 100644
--- a/src/niepce/ui/librarycellrenderer.cpp
+++ b/src/niepce/ui/librarycellrenderer.cpp
@@ -197,7 +197,6 @@ void
 LibraryCellRenderer::get_preferred_width_vfunc(Gtk::Widget& /*widget*/,
                                                int& minimum_width, int& natural_width) const
 {
-    Glib::RefPtr<Gdk::Pixbuf> pixbuf = property_pixbuf();
     int maxdim = m_size + pad() * 2;
     minimum_width = natural_width = maxdim;
 }
@@ -206,7 +205,6 @@ void
 LibraryCellRenderer::get_preferred_height_vfunc(Gtk::Widget& /*widget*/,
                                                 int& minimum_height, int& natural_height) const
 {
-    Glib::RefPtr<Gdk::Pixbuf> pixbuf = property_pixbuf();
     int maxdim = m_size + pad() * 2;
     minimum_height = natural_height = maxdim;
 }


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