[gtkmm] Gtk::TreeModelFilter, TreeModelSort: Implement TreeDragSource
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::TreeModelFilter, TreeModelSort: Implement TreeDragSource
- Date: Wed, 26 Jul 2017 11:39:01 +0000 (UTC)
commit 0a6e15a1367e376355514e941563dca2215347c2
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed Jul 26 13:33:06 2017 +0200
Gtk::TreeModelFilter, TreeModelSort: Implement TreeDragSource
The corresponding gtk+ classes implement GtkTreeDragSource.
gtk/src/treemodelfilter.hg | 5 ++++-
gtk/src/treemodelsort.hg | 8 +++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/treemodelfilter.hg b/gtk/src/treemodelfilter.hg
index f523452..170705f 100644
--- a/gtk/src/treemodelfilter.hg
+++ b/gtk/src/treemodelfilter.hg
@@ -18,6 +18,7 @@
#include <gtkmm/treeiter.h>
#include <gtkmm/treemodel.h>
+#include <gtkmm/treedragsource.h>
// We couldn't include it in treemodel.h, but doing it here makes it easier for people.
#include <gtkmm/treepath.h>
@@ -33,10 +34,12 @@ namespace Gtk
*/
class TreeModelFilter :
public Glib::Object,
- public TreeModel
+ public TreeModel,
+ public TreeDragSource
{
_CLASS_GOBJECT(TreeModelFilter, GtkTreeModelFilter, GTK_TREE_MODEL_FILTER, Glib::Object, GObject)
_IMPLEMENTS_INTERFACE(TreeModel)
+ _IMPLEMENTS_INTERFACE(TreeDragSource)
protected:
diff --git a/gtk/src/treemodelsort.hg b/gtk/src/treemodelsort.hg
index 5ec12e8..523f471 100644
--- a/gtk/src/treemodelsort.hg
+++ b/gtk/src/treemodelsort.hg
@@ -22,6 +22,7 @@ _PINCLUDE(glibmm/private/object_p.h)
#include <gtkmm/treeiter.h>
#include <gtkmm/treemodel.h>
#include <gtkmm/treesortable.h>
+#include <gtkmm/treedragsource.h>
// We couldn't include it in treemodel.h, but doing it here makes it easier for people.
#include <gtkmm/treepath.h>
@@ -48,11 +49,16 @@ namespace Gtk
*
* @ingroup TreeView
*/
-class TreeModelSort : public Glib::Object, public TreeModel, public TreeSortable
+class TreeModelSort :
+ public Glib::Object,
+ public TreeModel,
+ public TreeSortable,
+ public TreeDragSource
{
_CLASS_GOBJECT(TreeModelSort, GtkTreeModelSort, GTK_TREE_MODEL_SORT, Glib::Object, GObject)
_IMPLEMENTS_INTERFACE(TreeModel)
_IMPLEMENTS_INTERFACE(TreeSortable)
+ _IMPLEMENTS_INTERFACE(TreeDragSource)
protected:
_WRAP_CTOR(TreeModelSort(const Glib::RefPtr<TreeModel>& model), gtk_tree_model_sort_new_with_model)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]