[glom/gtkmm4v4: 18/37] gtkmm4: FlowTable: Derive from WidgetCustomDraw
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v4: 18/37] gtkmm4: FlowTable: Derive from WidgetCustomDraw
- Date: Wed, 15 Mar 2017 14:55:29 +0000 (UTC)
commit b423eca6309f3dd4857b9e472d2a940a4a2ce820
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Mar 14 09:43:10 2017 +0100
gtkmm4: FlowTable: Derive from WidgetCustomDraw
Now necessary if we want an on_draw() to override.
glom/utility_widgets/flowtable.cc | 2 ++
glom/utility_widgets/flowtable.h | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/glom/utility_widgets/flowtable.cc b/glom/utility_widgets/flowtable.cc
index acf3b72..3b8087f 100644
--- a/glom/utility_widgets/flowtable.cc
+++ b/glom/utility_widgets/flowtable.cc
@@ -29,6 +29,8 @@ namespace Glom
{
FlowTable::FlowTable()
+: Glib::ObjectBase("flowtable"),
+ Gtk::WidgetCustomDraw();
: m_design_mode(false)
{
//Default to disabling drag and drop:
diff --git a/glom/utility_widgets/flowtable.h b/glom/utility_widgets/flowtable.h
index 67053b2..2677bcc 100644
--- a/glom/utility_widgets/flowtable.h
+++ b/glom/utility_widgets/flowtable.h
@@ -24,11 +24,14 @@
#include <glom/utility_widgets/eggspreadtablemm/eggspreadtabledndmm.h>
#include "layoutwidgetbase.h"
#include <gtkmm/box.h>
+#include <gtkmm/widgetcustomdraw.h>
namespace Glom
{
-class FlowTable : public Egg::SpreadTableDnd
+class FlowTable
+: public Gtk::WidgetCustomDraw,
+ public Egg::SpreadTableDnd
{
public:
FlowTable();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]