[gtkmm] Gtk::FileFilter, RecentFilter, TextTagTable, TreeViewColumn: Implement Buildable
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::FileFilter, RecentFilter, TextTagTable, TreeViewColumn: Implement Buildable
- Date: Wed, 26 Jul 2017 11:38:51 +0000 (UTC)
commit 5dc7fda5295ffc0a6bdf708b759a0468e6473ee5
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed Jul 26 13:29:55 2017 +0200
Gtk::FileFilter, RecentFilter, TextTagTable, TreeViewColumn: Implement Buildable
The corresponding gtk+ classes implement GtkBuildable.
gtk/src/filefilter.hg | 4 +++-
gtk/src/recentfilter.hg | 4 +++-
gtk/src/texttagtable.hg | 6 ++++--
gtk/src/treeviewcolumn.hg | 11 +++++++----
4 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/gtk/src/filefilter.hg b/gtk/src/filefilter.hg
index 455b62c..4975559 100644
--- a/gtk/src/filefilter.hg
+++ b/gtk/src/filefilter.hg
@@ -16,6 +16,7 @@
*/
#include <glibmm/object.h>
+#include <gtkmm/buildable.h>
_DEFS(gtkmm,gtk)
_PINCLUDE(glibmm/private/object_p.h)
@@ -38,10 +39,11 @@ namespace Gtk
* Normally, filters are used by adding them to a Gtk::FileChooser. See Gtk::FileChooser::add_filter().
* But it is also possible to manually use a filter on a file with filter().
*/
-class FileFilter : public Glib::Object
+class FileFilter : public Glib::Object, public Buildable
{
_CLASS_GOBJECT(FileFilter, GtkFileFilter, GTK_FILE_FILTER, Glib::Object, GObject)
_DERIVES_INITIALLY_UNOWNED()
+ _IMPLEMENTS_INTERFACE(Buildable)
protected:
_CTOR_DEFAULT
diff --git a/gtk/src/recentfilter.hg b/gtk/src/recentfilter.hg
index 5eb900b..47cfe7f 100644
--- a/gtk/src/recentfilter.hg
+++ b/gtk/src/recentfilter.hg
@@ -16,6 +16,7 @@
*/
#include <glibmm/object.h>
+#include <gtkmm/buildable.h>
_DEFS(gtkmm,gtk)
_PINCLUDE(glibmm/private/object_p.h)
@@ -43,10 +44,11 @@ namespace Gtk
*
* @ingroup RecentFiles
*/
-class RecentFilter : public Glib::Object
+class RecentFilter : public Glib::Object, public Buildable
{
_CLASS_GOBJECT(RecentFilter, GtkRecentFilter, GTK_RECENT_FILTER, Glib::Object, GObject)
_DERIVES_INITIALLY_UNOWNED()
+ _IMPLEMENTS_INTERFACE(Buildable)
protected:
_CTOR_DEFAULT
diff --git a/gtk/src/texttagtable.hg b/gtk/src/texttagtable.hg
index 956ff30..ea4b85d 100644
--- a/gtk/src/texttagtable.hg
+++ b/gtk/src/texttagtable.hg
@@ -17,6 +17,7 @@
*/
#include <glibmm/object.h>
+#include <gtkmm/buildable.h>
#include <gtkmm/texttag.h>
_DEFS(gtkmm,gtk)
@@ -35,9 +36,10 @@ class TextTag;
*
* @ingroup TextView
*/
-class TextTagTable : public Glib::Object
+class TextTagTable : public Glib::Object, public Buildable
{
- _CLASS_GOBJECT(TextTagTable, GtkTextTagTable, GTK_TEXT_TAG_TABLE, Glib::Object, GObject)
+ _CLASS_GOBJECT(TextTagTable, GtkTextTagTable, GTK_TEXT_TAG_TABLE, Glib::Object, GObject)
+ _IMPLEMENTS_INTERFACE(Buildable)
protected:
_CTOR_DEFAULT
diff --git a/gtk/src/treeviewcolumn.hg b/gtk/src/treeviewcolumn.hg
index d0f81e7..661d895 100644
--- a/gtk/src/treeviewcolumn.hg
+++ b/gtk/src/treeviewcolumn.hg
@@ -24,6 +24,7 @@ _CONFIGINCLUDE(gtkmmconfig.h)
#include <gdkmm/window.h>
#include <gtkmm/treemodel.h>
#include <gtkmm/celllayout.h>
+#include <gtkmm/buildable.h>
#include <gtkmm/cellrenderer_generation.h>
_DEFS(gtkmm,gtk)
_PINCLUDE(gtkmm/private/object_p.h)
@@ -47,11 +48,13 @@ class TreeView;
*/
class GTKMM_API TreeViewColumn
: public Object,
- public CellLayout
+ public CellLayout,
+ public Buildable
{
-_CLASS_GTKOBJECT(TreeViewColumn, GtkTreeViewColumn, GTK_TREE_VIEW_COLUMN, Object, GObject)
-_IMPLEMENTS_INTERFACE(CellLayout)
-_IGNORE(gtk_tree_view_column_set_cell_data_func)
+ _CLASS_GTKOBJECT(TreeViewColumn, GtkTreeViewColumn, GTK_TREE_VIEW_COLUMN, Object, GObject)
+ _IMPLEMENTS_INTERFACE(CellLayout)
+ _IMPLEMENTS_INTERFACE(Buildable)
+ _IGNORE(gtk_tree_view_column_set_cell_data_func)
public:
_WRAP_ENUM(Sizing, GtkTreeViewColumnSizing)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]