[gtkmm] CssSection: Change CssSectionType to CssSection::Typewq.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] CssSection: Change CssSectionType to CssSection::Typewq.
- Date: Thu, 27 Apr 2017 19:53:03 +0000 (UTC)
commit 2b03a6dfc82c0383cebd52e443350d384ad32b7e
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 27 20:56:05 2017 +0200
CssSection: Change CssSectionType to CssSection::Typewq.
gtk/src/csssection.ccg | 2 ++
gtk/src/csssection.hg | 5 +++--
tools/m4/convert_gtk.m4 | 2 +-
3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/csssection.ccg b/gtk/src/csssection.ccg
index 1738356..5d78289 100644
--- a/gtk/src/csssection.ccg
+++ b/gtk/src/csssection.ccg
@@ -15,3 +15,5 @@
*/
#include <gtk/gtk.h>
+
+using Type = Gtk::CssSection::Type;
diff --git a/gtk/src/csssection.hg b/gtk/src/csssection.hg
index 4e585f0..8f035f0 100644
--- a/gtk/src/csssection.hg
+++ b/gtk/src/csssection.hg
@@ -25,7 +25,6 @@ typedef struct _GtkCssSection GtkCssSection;
namespace Gtk
{
-_WRAP_ENUM(CssSectionType, GtkCssSectionType)
/** Defines a part of a CSS document.
* Because sections are nested into one another, you can use get_parent()
@@ -42,7 +41,9 @@ class CssSection final
_IGNORE(gtk_css_section_ref, gtk_css_section_unref)
public:
- _WRAP_METHOD(CssSectionType get_section_type() const, gtk_css_section_get_section_type)
+ _WRAP_ENUM(Type, GtkCssSectionType)
+
+ _WRAP_METHOD(Type get_section_type() const, gtk_css_section_get_section_type)
_WRAP_METHOD(Glib::RefPtr<CssSection> get_parent(), gtk_css_section_get_parent, refreturn)
_WRAP_METHOD(Glib::RefPtr<const CssSection> get_parent() const, gtk_css_section_get_parent, refreturn,
constversion)
_WRAP_METHOD(Glib::RefPtr<Gio::File> get_file(), gtk_css_section_get_file, refreturn)
diff --git a/tools/m4/convert_gtk.m4 b/tools/m4/convert_gtk.m4
index 74171f9..74282d9 100644
--- a/tools/m4/convert_gtk.m4
+++ b/tools/m4/convert_gtk.m4
@@ -76,7 +76,7 @@ _CONV_ENUM(Gtk,CellRendererMode)
_CONV_ENUM(Gtk,CellRendererState)
_CONV_ENUM(Gtk,CornerType)
_CONV_ENUM(Gtk,CssProviderError)
-_CONV_ENUM(Gtk,CssSectionType)
+_CONV_INCLASS_ENUM(Gtk,CssSection,Type)
_CONV_ENUM(Gtk,CurveType)
_CONV_ENUM(Gtk,DeleteType)
_CONV_ENUM(Gtk,DestDefaults)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]