On Fri, Aug 07, 2009 at 11:43:54AM +0200, Christopher Roy Bratusek wrote:
> Hi all,
>
> I'm currently updating rep-gtk to the gtk+ 2.12 API. All of a sudden
> rep-gtk uses the old glue-code-generator (build-gtk.jl) from guile-gtk
> (which has been supersedded by guile-gnome). And when defining several
> stuff it generates incompatible pointers -> non-working functions.
First of all: Thanks for resurrecting rep(-gtk)! I switched back to
sawfish recently and try rep(-gtk) for prototyping Gtk+
applications. So it would really be good to catch up stable 2.16
API. I just started digging through rep(-gtk) source code.
> Since I'm still not that familiar with librep (or any alternative) to
> fix it up myself, but I may give you some examples, perhaps some of you
> may have a look at it? That would be definitively great!
>
> (define-func gtk_scale_button_new
> ;; gtk/gtkscalebutton.h
> GtkWidget
> ((GtkIconSize size)
> (double min)
> (double max)
> (double step)
> (string icons)))
>
> -> the fifth arguement is a "const char **" rep-gtk does not like that
>
You should use ((tvec string) icons)
See my attached patch for gtk_about_dialog_* functions.
Jürgen
>From 269bfb52b1d7d13bb5eef53ff34625b357b0cb84 Mon Sep 17 00:00:00 2001
From: Juergen Hoetzel <[email protected]>
Date: Sat, 22 Aug 2009 17:19:02 +0200
Subject: [PATCH] added gtk-about-dialog-set-(authors|documenters|artists)
---
gtk.defs | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/gtk.defs b/gtk.defs
index 7be2251..d6e5e21 100644
--- a/gtk.defs
+++ b/gtk.defs
@@ -5104,28 +5104,28 @@
; static_string
; ((GtkAboutDialog dialog)))
;
-;(define-func gtk_about_dialog_set_authors
-; none
-; ((GtkAboutDialog dialog)
-; (string authors)))
-;
+(define-func gtk_about_dialog_set_authors
+ none
+ ((GtkAboutDialog dialog)
+ ((tvec string in) authors)))
+
;(define-func gtk_about_dialog_get_documenters
; static_string
; ((GtkAboutDialog dialog)))
;
-;(define-func gtk_about_dialog_set_documenters
-; none
-; ((GtkAboutDialog dialog)
-; (string documenters)))
-;
+(define-func gtk_about_dialog_set_documenters
+ none
+ ((GtkAboutDialog dialog)
+ ((tvec string in) documenters)))
+
;(define-func gtk_about_dialog_get_artists
; static_string
; ((GtkAboutDialog dialog)))
;
-;(define-func gtk_about_dialog_set_artists
-; none
-; ((GtkAboutDialog dialog)
-; (string artists)))
+(define-func gtk_about_dialog_set_artists
+ none
+ ((GtkAboutDialog dialog)
+ ((tvec string in) artists)))
(define-func gtk_about_dialog_get_translator_credits
static_string
--
1.6.4