[Gd-hackers] fix duim/platform/gtk+/gtk2 compilation with gtk 2.10

Danny Milosavljevic danny_milo at yahoo.com
Wed Jan 3 03:16:58 CET 2007


Hi,

I patched duim/platform/gtk+/gtk2 in order to get it compile with gtk 2.10 (tested only with gwydion dylan).

Index: gtk-internal-support.dylan
===================================================================
--- gtk-internal-support.dylan  (Revision 11120)
+++ gtk-internal-support.dylan  (Arbeitskopie)
@@ -2,13 +2,6 @@
 
 c-include("gtk/gtk.h");
 
-define class <value-cell> (<object>)
-  slot value-cell-value, required-init-keyword: value:
-end;
-
-define sealed domain make (singleton(<value-cell>));
-define sealed domain initialize (<value-cell>);
-
 define method export-value(cls == <GCallback>, value :: <function>) => (result :: <function-pointer>);
   make(<function-pointer>, pointer: value.callback-entry); 
 end method export-value;
@@ -25,7 +18,7 @@
 
 define sealed method import-value(cls == <object>, the-value :: <gpointer>) 
  => (result :: <object>);
-  value-cell-value(heap-object-at(the-value.raw-value));
+  heap-object-at(the-value.raw-value).value;
 end method import-value;
 
 define method make(type :: subclass(<GTypeInstance>), #rest args, 
Index: gtk.intr
===================================================================
--- gtk.intr    (Revision 11120)
+++ gtk.intr    (Arbeitskopie)
@@ -3,6 +3,7 @@
 define interface
   #include "gtk/gtk.h",
     import: all-recursive,
+    import: "stdio.h" => none,
     exclude: {
        "g_scanner_cur_value", // returns a union of size 8
        "glib_dummy_decl",
@@ -10,6 +11,7 @@
        "_g_param_type_register_static_constant",
        "g_thread_init_with_errorcheck_mutexes",
        "_gtk_container_clear_resize_widgets"
+        //"struct _GdkPixbufModule"
        },
     equate: {"gchar*" => <c-string>,
              "char*" => <c-string>},

Pfad: .
URL: svn://anonsvn.gwydiondylan.org/scm/svn/dylan/trunk/duim/platform/gtk+/gtk2
Basis des Projektarchivs: svn://anonsvn.gwydiondylan.org/scm/svn/dylan
UUID des Projektarchivs: 4f5ac42c-83e7-0310-beca-a700b25708b8
Revision: 11120
Knotentyp: Verzeichnis
Plan: normal
Letzter Autor: prom
Letzte geänderte Rev: 9616
Letztes Änderungsdatum: 2004-11-26 05:07:47 +0100 (Fre, 26 Nov 2004)




More information about the hackers mailing list