[rep-gtk] ...
- From: Christopher Bratusek <chrisb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rep-gtk] ...
- Date: Fri, 7 Aug 2009 09:46:12 +0000 (UTC)
commit 803c1d59a0f7d01e7d4ccd9252aaad86da5621ee
Author: chrisb <zanghar freenet de>
Date: Fri Aug 7 11:45:21 2009 +0200
...
ChangeLog | 12 ++++++++++++
gtktree.defs | 28 +++++++++++++++++++++++++++-
rep-gtk.c | 2 ++
3 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3d09d83..41c15a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-08-07 Christopher Bratusek <zanghar freenet de>
+ * gtktree.defs: implementing GtkTreeView [part3]
+ *********** gtktreeselection.h ***********
+ boxed GtkTreeSelectionFunc
+ boxed GtkDestroyNotify
+ gtk_tree_selection_set_select_function
+ gtk_tree_selection_get_selected [not working, not compiled]
+
2009-08-06 Christopher Bratusek <zanghar freenet de>
* gtktree.defs: implementing GtkTreeView [part2]
*********** gtktreemodel.h ***********
@@ -53,6 +61,10 @@
gtk_tree_model_get
gtk_tree_model_get_valist
gtk_tree_model_foreach [not working, not compiled]
+ == GtkTreeModel 2.12 API complete ==
+ == GtkTreeIter 2.12 API complete ==
+ == GtkTreePath 2.12 API complete ==
+ == GtkTreeRowReference 2.12 API complete ==
2009-08-01 Christopher Bratusek <zanghar freenet de>
* build-gtk.jl: define-type GQuark (basic)
diff --git a/gtktree.defs b/gtktree.defs
index 30fb316..9b112df 100644
--- a/gtktree.defs
+++ b/gtktree.defs
@@ -273,7 +273,22 @@
GtkSelectionMode
((GtkTreeSelection selection)))
-;; XXX gtk_tree_view_set_select_function needs GtkTreeSelectionFunc
+(define-boxed GtkTreeSelectionFunc
+ ((GtkTreeSelection selection)
+ (GtkTreeModel model)
+ (GtkTreePath path)
+ (bool selected)
+ (GPointer data)))
+
+(define-boxed GtkDestroyNotify
+ ((GPointer data)))
+
+(define-func gtk_tree_selection_set_select_function
+ none
+ ((GtkTreeSelection selection)
+ (GtkTreeSelectionFunc func)
+ (GPointer data)
+ (GtkDestroyNotify destroy)))
(define-func gtk_tree_selection_get_user_data
GPointer
@@ -283,6 +298,17 @@
GtkTreeView
((GtkTreeSelection selection)))
+;(define-func gtk_tree_selection_get_selected
+; bool
+; ((GtkTreeSelection selection)
+; (GtkTreeModel model)
+; (GtkTreeIter iter)))
+
+;(define-func gtk_tree_selection_get_selected_rows
+; (list string)
+; ((GtkTreeSelection selection)
+; (GtkTreeModel model)))
+
(define-object GtkTreeView (GtkContainer))
(define-func gtk_tree_view_new
diff --git a/rep-gtk.c b/rep-gtk.c
index 0dabd0a..8f53d7a 100644
--- a/rep-gtk.c
+++ b/rep-gtk.c
@@ -174,6 +174,8 @@ sgtk_try_missing_type (char *name)
{ "GdkGC", G_TYPE_BOXED },
{ "GdkPixbuf", G_TYPE_BOXED }, /* XXX okay? */
{ "GtkTextIter", G_TYPE_BOXED },
+ { "GtkTreeIter", G_TYPE_BOXED },
+ { "GtkTreeModelForeachFunc", G_TYPE_BOOLEAN },
{ "GtkToolbarStyle", G_TYPE_ENUM },
{ "GtkToolbarChildType", G_TYPE_ENUM },
{ "GtkTreeViewMode", G_TYPE_ENUM },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]