[gtkmm] TreeView: Change TreeViewGridLines to GridLines.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] TreeView: Change TreeViewGridLines to GridLines.
- Date: Thu, 27 Apr 2017 19:53:48 +0000 (UTC)
commit c30652d657719a5ce79cf09b5add297d6336e68b
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 27 21:33:57 2017 +0200
TreeView: Change TreeViewGridLines to GridLines.
gtk/src/treeview.ccg | 2 ++
gtk/src/treeview.hg | 6 +++---
tools/m4/convert_gtk.m4 | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/src/treeview.ccg b/gtk/src/treeview.ccg
index 17ea640..e22f95b 100644
--- a/gtk/src/treeview.ccg
+++ b/gtk/src/treeview.ccg
@@ -25,6 +25,8 @@
#include <gtkmm/entry.h>
#include <gtk/gtk.h>
+using GridLines = Gtk::TreeView::GridLines;
+
namespace
{
diff --git a/gtk/src/treeview.hg b/gtk/src/treeview.hg
index 5ba464b..6128838 100644
--- a/gtk/src/treeview.hg
+++ b/gtk/src/treeview.hg
@@ -38,7 +38,6 @@ namespace Gtk
{
_CC_INCLUDE(gtk/gtk.h)
-_WRAP_ENUM(TreeViewGridLines, GtkTreeViewGridLines)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
@@ -105,6 +104,7 @@ class TreeView
gtk_tree_view_insert_column_with_data_func, gtk_tree_view_get_drag_dest_row,
gtk_tree_view_get_dest_row_at_pos)
public:
_WRAP_ENUM(DropPosition, GtkTreeViewDropPosition)
+ _WRAP_ENUM(GridLines, GtkTreeViewGridLines)
/** A visible column in a Gtk::TreeView widget.
*/
@@ -707,8 +707,8 @@ public:
*/
void unset_row_separator_func();
- _WRAP_METHOD(void set_grid_lines(TreeViewGridLines grid_lines), gtk_tree_view_set_grid_lines)
- _WRAP_METHOD(TreeViewGridLines get_grid_lines() const, gtk_tree_view_get_grid_lines)
+ _WRAP_METHOD(void set_grid_lines(GridLines grid_lines), gtk_tree_view_set_grid_lines)
+ _WRAP_METHOD(GridLines get_grid_lines() const, gtk_tree_view_get_grid_lines)
_WRAP_METHOD(void set_enable_tree_lines(bool enable = true), gtk_tree_view_set_enable_tree_lines)
_WRAP_METHOD(bool get_enable_tree_lines() const, gtk_tree_view_get_enable_tree_lines)
diff --git a/tools/m4/convert_gtk.m4 b/tools/m4/convert_gtk.m4
index ac0a350..3b6f2a9 100644
--- a/tools/m4/convert_gtk.m4
+++ b/tools/m4/convert_gtk.m4
@@ -122,7 +122,7 @@ _CONV_ENUM(Gtk,ToolPaletteDragTargets)
_CONV_INCLASS_ENUM(Gtk,TreeModel,Flags)
_CONV_ENUM(Gtk,TreeViewColumnSizing)
_CONV_INCLASS_ENUM(Gtk,TreeView,DropPosition)
-_CONV_ENUM(Gtk,TreeViewGridLines)
+_CONV_INCLASS_ENUM(Gtk,TreeView,GridLines)
_CONV_ENUM(Gtk,UpdateType)
_CONV_ENUM(Gtk,Visibility)
_CONV_ENUM(Gtk,WindowPosition)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]