summaryrefslogtreecommitdiffstats
path: root/src/ui/previewholder.h
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2017-10-22 18:10:41 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-01-18 13:12:18 +0000
commit5219c13e20a4aa3ba155ea4f3f4ecd5aab0a9d4e (patch)
treea48a960be706a52f3e1735abbc47750cc5c5e88f /src/ui/previewholder.h
parentRemove unused abstract class PreviewFillable (diff)
downloadinkscape-5219c13e20a4aa3ba155ea4f3f4ecd5aab0a9d4e.tar.gz
inkscape-5219c13e20a4aa3ba155ea4f3f4ecd5aab0a9d4e.zip
PreviewHolder: derive from Gtk::Bin
Also, remove an intermediate container between the bin and the scrolled window.
Diffstat (limited to 'src/ui/previewholder.h')
-rw-r--r--src/ui/previewholder.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/previewholder.h b/src/ui/previewholder.h
index 1aeec476d..b12bd466e 100644
--- a/src/ui/previewholder.h
+++ b/src/ui/previewholder.h
@@ -17,7 +17,7 @@
# include "config.h"
#endif
-#include <gtkmm/box.h>
+#include <gtkmm/bin.h>
namespace Gtk {
class Grid;
@@ -32,7 +32,7 @@ namespace UI {
class Previewable;
-class PreviewHolder : public Gtk::Box
+class PreviewHolder : public Gtk::Bin
{
public:
PreviewHolder();
@@ -54,7 +54,6 @@ public:
virtual bool getWrap() const { return _wrap; }
protected:
- virtual void get_preferred_height_vfunc(int& minimum_height, int& natural_height) const override;
virtual bool on_scroll_event(GdkEventScroll*);
private: