[gdlmm] Wrap DockItemGrip + fix get_grip



commit 64ea48da80320d13f146aea0b35d07932e007e3f
Author: Fabien Parent <parent f gmail com>
Date:   Mon Sep 5 20:35:50 2011 +0200

    Wrap DockItemGrip + fix get_grip

 gdl/src/dockitem.hg      |    2 +-
 gdl/src/dockitemgrip.ccg |   22 ++++++++++++++++++++++
 gdl/src/dockitemgrip.hg  |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 gdl/src/filelist.am      |    3 ++-
 4 files changed, 71 insertions(+), 2 deletions(-)
---
diff --git a/gdl/src/dockitem.hg b/gdl/src/dockitem.hg
index 426e7e9..f22aa62 100644
--- a/gdl/src/dockitem.hg
+++ b/gdl/src/dockitem.hg
@@ -50,7 +50,7 @@ public:
   
   _WRAP_METHOD(void set_tablabel(Gtk::Widget& tablabel), gdl_dock_item_set_tablabel)
 
-  _WRAP_METHOD(GtkWidget* get_grip() const, gdl_dock_item_get_grip)
+  _WRAP_METHOD(Gtk::Widget* get_grip() const, gdl_dock_item_get_grip)
   
   _WRAP_METHOD(void hide_grip(), gdl_dock_item_hide_grip)
   
diff --git a/gdl/src/dockitemgrip.ccg b/gdl/src/dockitemgrip.ccg
new file mode 100644
index 0000000..bd8b8be
--- /dev/null
+++ b/gdl/src/dockitemgrip.ccg
@@ -0,0 +1,22 @@
+/* Copyright (c) 2011  Fabien Parent <parent f gmail com>
+ *
+ * This file is part of gdlmm.
+ *
+ * gdlmm is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 2.1 of the License,
+ * or (at your option) any later version.
+ *
+ * gdlmm is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace Gdl
+{
+
+} // namespace Gdl
diff --git a/gdl/src/dockitemgrip.hg b/gdl/src/dockitemgrip.hg
new file mode 100644
index 0000000..aa08fd4
--- /dev/null
+++ b/gdl/src/dockitemgrip.hg
@@ -0,0 +1,46 @@
+/* Copyright (c) 2011  Fabien Parent <parent f gmail com>
+ *
+ * This file is part of gdlmm.
+ *
+ * gdlmm is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 2.1 of the License,
+ * or (at your option) any later version.
+ *
+ * gdlmm is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+_DEFS(gdlmm,gdl)
+_PINCLUDE(gtkmm/private/container_p.h)
+
+#include <gtkmm/container.h>
+
+#include "dock.h"
+#include "dockmaster.h"
+
+namespace Gdl
+{
+
+_CC_INCLUDE(gdl/gdl-dock-item-grip.h)
+
+class DockItemGrip : public Gtk::Container
+{
+  _CLASS_GTKOBJECT(DockItemGrip, GdlDockItemGrip, GDL_DOCK_ITEM_GRIP, Gtk::Container, GtkContainer)
+
+public:
+  _CTOR_DEFAULT
+  
+  _WRAP_METHOD(void set_label(Gtk::Widget& label), gdl_dock_item_grip_set_label)
+  
+  _WRAP_METHOD(void hide_handle(), gdl_dock_item_grip_hide_handle)
+  
+  _WRAP_METHOD(void show_handle(), gdl_dock_item_grip_show_handle)
+};
+
+} // namespace Gdl
diff --git a/gdl/src/filelist.am b/gdl/src/filelist.am
index 7b24088..3f949f5 100644
--- a/gdl/src/filelist.am
+++ b/gdl/src/filelist.am
@@ -15,5 +15,6 @@ files_hg  = \
 	dockmaster.hg \
 	docklayout.hg \
 	dock.hg \
-	dockbar.hg
+	dockbar.hg \
+	dockitemgrip.hg
 files_ccg = $(files_hg:.hg=.ccg)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]