Browse Source

* fixes for gtk win32

peter 25 years ago
parent
commit
d633e8d9e1
42 changed files with 224 additions and 101 deletions
  1. 1 1
      packages/gtk/examples/Makefile
  2. 1 1
      packages/gtk/examples/Makefile.fpc
  3. 4 4
      packages/gtk/examples/scribble.pp
  4. 5 2
      packages/gtk/gdk/gdk.pp
  5. 5 2
      packages/gtk/gdk/gdkprivate.pp
  6. 5 2
      packages/gtk/glib/glib.pp
  7. 5 2
      packages/gtk/glib/gmodule.pp
  8. 5 2
      packages/gtk/gtk/gtk.pp
  9. 5 2
      packages/gtk/gtk/gtkaccellabel.pp
  10. 5 2
      packages/gtk/gtk/gtkbindings.pp
  11. 6 3
      packages/gtk/gtk/gtkbox.pp
  12. 5 2
      packages/gtk/gtk/gtkbutton.pp
  13. 6 3
      packages/gtk/gtk/gtkclist.pp
  14. 5 2
      packages/gtk/gtk/gtkcombo.pp
  15. 6 3
      packages/gtk/gtk/gtkctree.pp
  16. 5 2
      packages/gtk/gtk/gtkeditable.pp
  17. 6 3
      packages/gtk/gtk/gtkentry.pp
  18. 5 2
      packages/gtk/gtk/gtkhandlebox.pp
  19. 5 2
      packages/gtk/gtk/gtkitemfactory.pp
  20. 5 2
      packages/gtk/gtk/gtklist.pp
  21. 5 2
      packages/gtk/gtk/gtkmenu.pp
  22. 6 3
      packages/gtk/gtk/gtkmenuitem.pp
  23. 6 3
      packages/gtk/gtk/gtkmenushell.pp
  24. 6 3
      packages/gtk/gtk/gtknotebook.pp
  25. 11 8
      packages/gtk/gtk/gtkpacker.pp
  26. 5 2
      packages/gtk/gtk/gtkpaned.pp
  27. 5 2
      packages/gtk/gtk/gtkpixmap.pp
  28. 5 2
      packages/gtk/gtk/gtkpreview.pp
  29. 5 2
      packages/gtk/gtk/gtkprogress.pp
  30. 5 2
      packages/gtk/gtk/gtkprogressbar.pp
  31. 5 2
      packages/gtk/gtk/gtkrange.pp
  32. 5 2
      packages/gtk/gtk/gtkscrolledwindow.pp
  33. 5 2
      packages/gtk/gtk/gtksignal.pp
  34. 5 2
      packages/gtk/gtk/gtksocket.pp
  35. 5 2
      packages/gtk/gtk/gtkspinbutton.pp
  36. 7 4
      packages/gtk/gtk/gtktable.pp
  37. 5 2
      packages/gtk/gtk/gtktext.pp
  38. 5 2
      packages/gtk/gtk/gtktipsquery.pp
  39. 5 2
      packages/gtk/gtk/gtktree.pp
  40. 5 2
      packages/gtk/gtk/gtktreeitem.pp
  41. 13 4
      packages/gtk/gtk/gtkwidget.pp
  42. 5 2
      packages/gtk/gtk/gtkwindow.pp

+ 1 - 1
packages/gtk/examples/Makefile

@@ -185,7 +185,7 @@ endif
 # Targets
 # Targets
 
 
 override DIROBJECTS+=$(wildcard tutorial)
 override DIROBJECTS+=$(wildcard tutorial)
-override EXEOBJECTS+=entry notebook scribble-simple clist ttt_test pixmap list progressbar filesel
+override EXEOBJECTS+=entry notebook scribble clist ttt_test pixmap list progressbar filesel
 
 
 # Clean
 # Clean
 
 

+ 1 - 1
packages/gtk/examples/Makefile.fpc

@@ -4,7 +4,7 @@
 
 
 [targets]
 [targets]
 dirs=tutorial
 dirs=tutorial
-programs=entry notebook scribble-simple clist ttt_test pixmap list progressbar filesel
+programs=entry notebook scribble clist ttt_test pixmap list progressbar filesel
 
 
 [require]
 [require]
 packages=gtk
 packages=gtk

+ 4 - 4
packages/gtk/examples/scribble-simple.pp → packages/gtk/examples/scribble.pp

@@ -4,7 +4,7 @@
   Converted from C to Pascal by Frank Loemker
   Converted from C to Pascal by Frank Loemker
   <[email protected]>
   <[email protected]>
 }
 }
-program scribblesimple;
+program scribble;
 uses
 uses
   glib,Gdk,Gtk;
   glib,Gdk,Gtk;
 
 
@@ -148,7 +148,7 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:18  michael
-  + removed logs
- 
+  Revision 1.1  2000-09-09 18:41:38  peter
+    * fixes for gtk win32
+
 }
 }

+ 5 - 2
packages/gtk/gdk/gdk.pp

@@ -39,7 +39,7 @@ uses
     gdkdll='gdk-1.3';
     gdkdll='gdk-1.3';
   {$define gtkwin}
   {$define gtkwin}
 
 
-  {$packrecords 4}
+  {$packrecords C}
 {$else}
 {$else}
   const
   const
     gdkdll='gdk';
     gdkdll='gdk';
@@ -86,7 +86,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2000-09-06 21:14:28  peter
+  Revision 1.5  2000-09-09 18:41:38  peter
+    * fixes for gtk win32
+
+  Revision 1.4  2000/09/06 21:14:28  peter
     * packrecords 4 for win32, packrecords c for linux
     * packrecords 4 for win32, packrecords c for linux
 
 
   Revision 1.3  2000/08/06 10:46:23  peter
   Revision 1.3  2000/08/06 10:46:23  peter

+ 5 - 2
packages/gtk/gdk/gdkprivate.pp

@@ -37,7 +37,7 @@
           resize_count : guint8;
           resize_count : guint8;
           window_type : guint8;
           window_type : guint8;
           ref_count : guint;
           ref_count : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           extension_events : gint;
           extension_events : gint;
           filters : PGList;
           filters : PGList;
           colormap : PGdkColormap;
           colormap : PGdkColormap;
@@ -315,7 +315,10 @@ function  GDK_font_lookup(xid : longint) : PGdkFont;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:19  michael
+  Revision 1.3  2000-09-09 18:41:38  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:19  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/glib/glib.pp

@@ -35,7 +35,7 @@ interface
     glibdll='glib-1.3';
     glibdll='glib-1.3';
   {$define gtkwin}
   {$define gtkwin}
 
 
-  {$packrecords 4}
+  {$packrecords C}
 {$else}
 {$else}
   const
   const
     glibdll='glib';
     glibdll='glib';
@@ -1650,7 +1650,10 @@ procedure set_year(var a : TGDate; __year : guint);
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2000-09-06 21:14:28  peter
+  Revision 1.5  2000-09-09 18:41:38  peter
+    * fixes for gtk win32
+
+  Revision 1.4  2000/09/06 21:14:28  peter
     * packrecords 4 for win32, packrecords c for linux
     * packrecords 4 for win32, packrecords c for linux
 
 
   Revision 1.3  2000/08/06 10:46:23  peter
   Revision 1.3  2000/08/06 10:46:23  peter

+ 5 - 2
packages/gtk/glib/gmodule.pp

@@ -38,7 +38,7 @@ uses
     gmoduledll='gmodule-1.3';
     gmoduledll='gmodule-1.3';
   {$define gtkwin}
   {$define gtkwin}
 
 
-  {$packrecords 4}
+  {$packrecords C}
 {$else}
 {$else}
   const
   const
     gmoduledll='gmodule';
     gmoduledll='gmodule';
@@ -76,7 +76,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2000-09-06 21:14:28  peter
+  Revision 1.5  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.4  2000/09/06 21:14:28  peter
     * packrecords 4 for win32, packrecords c for linux
     * packrecords 4 for win32, packrecords c for linux
 
 
   Revision 1.3  2000/08/06 10:46:23  peter
   Revision 1.3  2000/08/06 10:46:23  peter

+ 5 - 2
packages/gtk/gtk/gtk.pp

@@ -39,7 +39,7 @@ uses
     gtkdll='gtk-1.3';
     gtkdll='gtk-1.3';
   {$define gtkwin}
   {$define gtkwin}
 
 
-  {$packrecords 4}
+  {$packrecords c}
 {$else}
 {$else}
   const
   const
     gtkdll='gtk';
     gtkdll='gtk';
@@ -78,7 +78,10 @@ Type
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2000-09-06 21:13:55  peter
+  Revision 1.5  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.4  2000/09/06 21:13:55  peter
     * packrecords 4 for win32, packrecords c for linux
     * packrecords 4 for win32, packrecords c for linux
 
 
   Revision 1.3  2000/08/06 10:46:23  peter
   Revision 1.3  2000/08/06 10:46:23  peter

+ 5 - 2
packages/gtk/gtk/gtkaccellabel.pp

@@ -29,7 +29,7 @@
           mod_name_alt : Pgchar;
           mod_name_alt : Pgchar;
           mod_separator : Pgchar;
           mod_separator : Pgchar;
           accel_seperator : Pgchar;
           accel_seperator : Pgchar;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
 const
 const
@@ -88,7 +88,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:20  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:20  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkbindings.pp

@@ -45,7 +45,7 @@ function  gtk_pattern_match_simple(pattern:Pgchar; thestring:Pgchar):gboolean;cd
           keyval : guint;
           keyval : guint;
           modifiers : guint;
           modifiers : guint;
           binding_set : PGtkBindingSet;
           binding_set : PGtkBindingSet;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           set_next : PGtkBindingEntry;
           set_next : PGtkBindingEntry;
           hash_next : PGtkBindingEntry;
           hash_next : PGtkBindingEntry;
           signals : PGtkBindingSignal;
           signals : PGtkBindingSignal;
@@ -129,7 +129,10 @@ procedure set_in_emission(var a : TGtkBindingEntry; __in_emission : guint);
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 6 - 3
packages/gtk/gtk/gtkbox.pp

@@ -14,7 +14,7 @@
             container : TGtkContainer;
             container : TGtkContainer;
             children : PGList;
             children : PGList;
             spacing : gint16;
             spacing : gint16;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
          end;
          end;
 
 
     const
     const
@@ -33,7 +33,7 @@ procedure set_homogeneous(var a : TGtkBox; __homogeneous : guint);
        TGtkBoxChild = record
        TGtkBoxChild = record
             widget : PGtkWidget;
             widget : PGtkWidget;
             padding : guint16;
             padding : guint16;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
          end;
          end;
 
 
     const
     const
@@ -134,7 +134,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkbutton.pp

@@ -13,7 +13,7 @@
        TGtkButton = record
        TGtkButton = record
             bin : TGtkBin;
             bin : TGtkBin;
             child : PGtkWidget;
             child : PGtkWidget;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
          end;
          end;
 
 
     const
     const
@@ -114,7 +114,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 6 - 3
packages/gtk/gtk/gtkclist.pp

@@ -136,7 +136,7 @@
             min_width : gint;
             min_width : gint;
             max_width : gint;
             max_width : gint;
             justification : TGtkJustification;
             justification : TGtkJustification;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
          end;
          end;
 
 
        TGtkCListRow = record
        TGtkCListRow = record
@@ -147,7 +147,7 @@
             style : PGtkStyle;
             style : PGtkStyle;
             data : gpointer;
             data : gpointer;
             destroy : TGtkDestroyNotify;
             destroy : TGtkDestroyNotify;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
          end;
          end;
        TGtkCellText = record
        TGtkCellText = record
             thetype : TGtkCellType;
             thetype : TGtkCellType;
@@ -433,7 +433,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkcombo.pp

@@ -19,7 +19,7 @@
           list : PGtkWidget;
           list : PGtkWidget;
           entry_change_id : guint;
           entry_change_id : guint;
           list_change_id : guint;
           list_change_id : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           current_button : guint16;
           current_button : guint16;
           activate_id : guint;
           activate_id : guint;
        end;
        end;
@@ -144,7 +144,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 6 - 3
packages/gtk/gtk/gtkctree.pp

@@ -42,7 +42,7 @@
           tree_indent : gint;
           tree_indent : gint;
           tree_spacing : gint;
           tree_spacing : gint;
           tree_column : gint;
           tree_column : gint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           drag_compare : TGtkCTreeCompareDragFunc;
           drag_compare : TGtkCTreeCompareDragFunc;
        end;
        end;
 
 
@@ -60,7 +60,7 @@
           pixmap_opened : PGdkPixmap;
           pixmap_opened : PGdkPixmap;
           mask_opened : PGdkBitmap;
           mask_opened : PGdkBitmap;
           level : guint16;
           level : guint16;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
      TGtkCTreeClass = record
      TGtkCTreeClass = record
@@ -267,7 +267,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkeditable.pp

@@ -16,7 +16,7 @@
           current_pos : guint;
           current_pos : guint;
           selection_start_pos : guint;
           selection_start_pos : guint;
           selection_end_pos : guint;
           selection_end_pos : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           ic : PGdkIC;
           ic : PGdkIC;
           ic_attr : PGdkICAttr;
           ic_attr : PGdkICAttr;
           clipboard_text : Pgchar;
           clipboard_text : Pgchar;
@@ -140,7 +140,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 6 - 3
packages/gtk/gtk/gtkentry.pp

@@ -20,12 +20,12 @@
           text_length : guint16;
           text_length : guint16;
           text_max_length : guint16;
           text_max_length : guint16;
           scroll_offset : gint;
           scroll_offset : gint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           timer : guint32;
           timer : guint32;
           button : guint;
           button : guint;
           char_offset : Pgint;
           char_offset : Pgint;
           text_mb : Pgchar;
           text_mb : Pgchar;
-          flag1 : word;
+          flag1 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -123,7 +123,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:21  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:21  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkhandlebox.pp

@@ -15,7 +15,7 @@
           bin_window : PGdkWindow;
           bin_window : PGdkWindow;
           float_window : PGdkWindow;
           float_window : PGdkWindow;
           shadow_type : TGtkShadowType;
           shadow_type : TGtkShadowType;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           deskoff_x : gint;
           deskoff_x : gint;
           deskoff_y : gint;
           deskoff_y : gint;
           attach_allocation : TGtkAllocation;
           attach_allocation : TGtkAllocation;
@@ -156,7 +156,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:22  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:22  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkitemfactory.pp

@@ -53,7 +53,7 @@
           path : Pgchar;
           path : Pgchar;
           accelerator_key : guint;
           accelerator_key : guint;
           accelerator_mods : guint;
           accelerator_mods : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           dummy : Pgchar;
           dummy : Pgchar;
           widgets : PGSList;
           widgets : PGSList;
        end;
        end;
@@ -157,7 +157,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:22  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:22  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtklist.pp

@@ -23,7 +23,7 @@
           anchor : gint;
           anchor : gint;
           drag_pos : gint;
           drag_pos : gint;
           anchor_state : TGtkStateType;
           anchor_state : TGtkStateType;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -142,7 +142,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:22  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:22  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkmenu.pp

@@ -23,7 +23,7 @@
           position_func_data : gpointer;
           position_func_data : gpointer;
           toplevel : PGtkWidget;
           toplevel : PGtkWidget;
           tearoff_window : PGtkWidget;
           tearoff_window : PGtkWidget;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -101,7 +101,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:22  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:22  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 6 - 3
packages/gtk/gtk/gtkmenuitem.pp

@@ -16,7 +16,7 @@
             accelerator_signal : guint;
             accelerator_signal : guint;
             toggle_size : guint16;
             toggle_size : guint16;
             accelerator_width : guint16;
             accelerator_width : guint16;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
             timer : guint;
             timer : guint;
          end;
          end;
 
 
@@ -47,7 +47,7 @@ procedure set_right_justify(var a : TGtkMenuItem; __right_justify : guint);
        TGtkMenuItemClass = record
        TGtkMenuItemClass = record
           parent_class : TGtkItemClass;
           parent_class : TGtkItemClass;
           toggle_size : guint;
           toggle_size : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           activate : procedure (menu_item:PGtkMenuItem);cdecl;
           activate : procedure (menu_item:PGtkMenuItem);cdecl;
           activate_item : procedure (menu_item:PGtkMenuItem);cdecl;
           activate_item : procedure (menu_item:PGtkMenuItem);cdecl;
         end;
         end;
@@ -146,7 +146,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:22  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:22  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 6 - 3
packages/gtk/gtk/gtkmenushell.pp

@@ -15,7 +15,7 @@
           children : PGList;
           children : PGList;
           active_menu_item : PGtkWidget;
           active_menu_item : PGtkWidget;
           parent_menu_shell : PGtkWidget;
           parent_menu_shell : PGtkWidget;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           activate_time : guint32;
           activate_time : guint32;
        end;
        end;
 
 
@@ -53,7 +53,7 @@ procedure set_ignore_enter(var a : TGtkMenuShell; __ignore_enter : guint);
      PGtkMenuShellClass = ^TGtkMenuShellClass;
      PGtkMenuShellClass = ^TGtkMenuShellClass;
      TGtkMenuShellClass = record
      TGtkMenuShellClass = record
           parent_class : TGtkContainerClass;
           parent_class : TGtkContainerClass;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           deactivate : procedure (menu_shell:PGtkMenuShell); cdecl;
           deactivate : procedure (menu_shell:PGtkMenuShell); cdecl;
           selection_done : procedure (menu_shell:PGtkMenuShell);cdecl;
           selection_done : procedure (menu_shell:PGtkMenuShell);cdecl;
           move_current : procedure (menu_shell:PGtkMenuShell; direction:TGtkMenuDirectionType);cdecl;
           move_current : procedure (menu_shell:PGtkMenuShell; direction:TGtkMenuDirectionType);cdecl;
@@ -190,7 +190,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:22  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:22  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 6 - 3
packages/gtk/gtk/gtknotebook.pp

@@ -24,7 +24,7 @@
           timer : guint32;
           timer : guint32;
           tab_hborder : guint16;
           tab_hborder : guint16;
           tab_vborder : guint16;
           tab_vborder : guint16;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
      TGtkNotebookClass = record
      TGtkNotebookClass = record
@@ -36,7 +36,7 @@
           child : PGtkWidget;
           child : PGtkWidget;
           tab_label : PGtkWidget;
           tab_label : PGtkWidget;
           menu_label : PGtkWidget;
           menu_label : PGtkWidget;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           requisition : TGtkRequisition;
           requisition : TGtkRequisition;
           allocation : TGtkAllocation;
           allocation : TGtkAllocation;
           pad1 : gint16;
           pad1 : gint16;
@@ -344,7 +344,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:22  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:22  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 11 - 8
packages/gtk/gtk/gtkpacker.pp

@@ -51,9 +51,9 @@ type
           anchor : TGtkAnchorType;
           anchor : TGtkAnchorType;
           side : TGtkSideType;
           side : TGtkSideType;
           options : TGtkPackerOptions;
           options : TGtkPackerOptions;
-          flag0 : guint;
-          flag1 : guint;
-          flag2 : guint16;
+          flag0 : longint;
+          flag1 : longint;
+          flag2 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
      PGtkPacker = ^TGtkPacker;
      PGtkPacker = ^TGtkPacker;
@@ -61,10 +61,10 @@ type
           parent : TGtkContainer;
           parent : TGtkContainer;
           children : PGList;
           children : PGList;
           spacing : guint;
           spacing : guint;
-          flag0 : guint;
-          flag1 : guint;
-          flag2 : guint16;
-       end;
+          flag0 : longint;
+          flag1 : longint;
+          flag2 : {$ifdef win32}longint{$else}word{$endif};
+      end;
 
 
      PGtkPackerClass = ^TGtkPackerClass;
      PGtkPackerClass = ^TGtkPackerClass;
      TGtkPackerClass = record
      TGtkPackerClass = record
@@ -114,7 +114,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:23  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:23  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkpaned.pp

@@ -23,7 +23,7 @@
           last_allocation : gint;
           last_allocation : gint;
           min_position : gint;
           min_position : gint;
           max_position : gint;
           max_position : gint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           handle_xpos : gint16;
           handle_xpos : gint16;
           handle_ypos : gint16;
           handle_ypos : gint16;
        end;
        end;
@@ -164,7 +164,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:23  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:23  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkpixmap.pp

@@ -15,7 +15,7 @@
           pixmap : PGdkPixmap;
           pixmap : PGdkPixmap;
           mask : PGdkBitmap;
           mask : PGdkBitmap;
           pixmap_insensitive : PGdkPixmap;
           pixmap_insensitive : PGdkPixmap;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
   const
   const
      bm_TGtkPixmap_build_insensitive = $1;
      bm_TGtkPixmap_build_insensitive = $1;
@@ -77,7 +77,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:23  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:23  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkpreview.pp

@@ -18,7 +18,7 @@
           bpp : guint16;
           bpp : guint16;
           rowstride : guint16;
           rowstride : guint16;
           dither : TGdkRgbDither;
           dither : TGdkRgbDither;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
   const
   const
      bm_TGtkPreview_type = $1;
      bm_TGtkPreview_type = $1;
@@ -121,7 +121,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:23  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:23  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkprogress.pp

@@ -17,7 +17,7 @@
           format : Pgchar;
           format : Pgchar;
           x_align : gfloat;
           x_align : gfloat;
           y_align : gfloat;
           y_align : gfloat;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -106,7 +106,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:23  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:23  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkprogressbar.pp

@@ -26,7 +26,7 @@
           activity_pos : gint;
           activity_pos : gint;
           activity_step : guint;
           activity_step : guint;
           activity_blocks : guint;
           activity_blocks : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -93,7 +93,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:23  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:23  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkrange.pp

@@ -20,7 +20,7 @@
             y_click_point : gint16;
             y_click_point : gint16;
             button : guint8;
             button : guint8;
             digits : gint8;
             digits : gint8;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
             timer : guint32;
             timer : guint32;
             old_value : gfloat;
             old_value : gfloat;
             old_lower : gfloat;
             old_lower : gfloat;
@@ -179,7 +179,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkscrolledwindow.pp

@@ -14,7 +14,7 @@
           container : TGtkBin;
           container : TGtkBin;
           hscrollbar : PGtkWidget;
           hscrollbar : PGtkWidget;
           vscrollbar : PGtkWidget;
           vscrollbar : PGtkWidget;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -138,7 +138,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtksignal.pp

@@ -19,7 +19,7 @@
             object_type : TGtkType;
             object_type : TGtkType;
             signal_id : guint;
             signal_id : guint;
             signal_name : Pgchar;
             signal_name : Pgchar;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
             signal_flags : TGtkSignalRunType;
             signal_flags : TGtkSignalRunType;
             return_val : TGtkType;
             return_val : TGtkType;
             nparams : guint;
             nparams : guint;
@@ -97,7 +97,10 @@ procedure set_is_user_signal(var a : TGtkSignalQuery; __is_user_signal : guint);
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtksocket.pp

@@ -17,7 +17,7 @@
           current_width : guint16;
           current_width : guint16;
           current_height : guint16;
           current_height : guint16;
           plug_window : PGdkWindow;
           plug_window : PGdkWindow;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -108,7 +108,10 @@ procedure set_need_map(var a : TGtkSocket; __need_map : guint);
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkspinbutton.pp

@@ -29,7 +29,7 @@
           climb_rate : gfloat;
           climb_rate : gfloat;
           timer_step : gfloat;
           timer_step : gfloat;
           update_policy : TGtkSpinButtonUpdatePolicy;
           update_policy : TGtkSpinButtonUpdatePolicy;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -217,7 +217,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 7 - 4
packages/gtk/gtk/gtktable.pp

@@ -22,7 +22,7 @@
           ncols : guint16;
           ncols : guint16;
           column_spacing : guint16;
           column_spacing : guint16;
           row_spacing : guint16;
           row_spacing : guint16;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
      TGtkTableClass = record
      TGtkTableClass = record
@@ -37,14 +37,14 @@
           bottom_attach : guint16;
           bottom_attach : guint16;
           xpadding : guint16;
           xpadding : guint16;
           ypadding : guint16;
           ypadding : guint16;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
      TGtkTableRowCol = record
      TGtkTableRowCol = record
           requisition : guint16;
           requisition : guint16;
           allocation : guint16;
           allocation : guint16;
           spacing : guint16;
           spacing : guint16;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -265,7 +265,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtktext.pp

@@ -41,7 +41,7 @@
           first_cut_pixels : guint;
           first_cut_pixels : guint;
           first_onscreen_hor_pixel : guint;
           first_onscreen_hor_pixel : guint;
           first_onscreen_ver_pixel : guint;
           first_onscreen_ver_pixel : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           freeze_count : guint;
           freeze_count : guint;
           text_properties : PGList;
           text_properties : PGList;
           text_properties_end : PGList;
           text_properties_end : PGList;
@@ -189,7 +189,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtktipsquery.pp

@@ -12,7 +12,7 @@
      PGtkTipsQuery = ^TGtkTipsQuery;
      PGtkTipsQuery = ^TGtkTipsQuery;
      TGtkTipsQuery = record
      TGtkTipsQuery = record
           thelabel : TGtkLabel;
           thelabel : TGtkLabel;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
           label_inactive : Pgchar;
           label_inactive : Pgchar;
           label_no_tip : Pgchar;
           label_no_tip : Pgchar;
           caller : PGtkWidget;
           caller : PGtkWidget;
@@ -99,7 +99,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtktree.pp

@@ -25,7 +25,7 @@
           level : guint;
           level : guint;
           indent_value : guint;
           indent_value : guint;
           current_indent : guint;
           current_indent : guint;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -140,7 +140,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtktreeitem.pp

@@ -17,7 +17,7 @@
           plus_pix_widget : PGtkWidget;
           plus_pix_widget : PGtkWidget;
           minus_pix_widget : PGtkWidget;
           minus_pix_widget : PGtkWidget;
           pixmaps : PGList;
           pixmaps : PGList;
-          flag0 : word;
+          flag0 : {$ifdef win32}longint{$else}word{$endif};
        end;
        end;
 
 
   const
   const
@@ -93,7 +93,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:24  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:24  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 13 - 4
packages/gtk/gtk/gtkwidget.pp

@@ -29,6 +29,14 @@
        GTK_APP_PAINTABLE = 1 shl 19;
        GTK_APP_PAINTABLE = 1 shl 19;
        GTK_RECEIVES_DEFAULT = 1 shl 20;
        GTK_RECEIVES_DEFAULT = 1 shl 20;
 
 
+    type
+       TGtkRcFlags = longint;
+    const
+       GTK_RC_FG = 1;
+       GTK_RC_BG = 2;
+       GTK_RC_TEXT = 4;
+       GTK_RC_BASE = 8;
+
     type
     type
        PGtkRequisition = ^TGtkRequisition;
        PGtkRequisition = ^TGtkRequisition;
        TGtkRequisition = record
        TGtkRequisition = record
@@ -160,9 +168,6 @@
 
 
      PGtkThemeEngine = ^TGtkThemeEngine;
      PGtkThemeEngine = ^TGtkThemeEngine;
 
 
-     TGtkRcFlags = (GTK_RC_FG := 1 shl 0,GTK_RC_BG := 1 shl 1,GTK_RC_TEXT := 1 shl 2,
-       GTK_RC_BASE := 1 shl 3);
-
      PGtkRcStyle = ^TGtkRcStyle;
      PGtkRcStyle = ^TGtkRcStyle;
      TGtkRcStyle = record
      TGtkRcStyle = record
           name : Pgchar;
           name : Pgchar;
@@ -178,6 +183,7 @@
           engine_data : gpointer;
           engine_data : gpointer;
        end;
        end;
 
 
+
 {*************************************
 {*************************************
       Insertion from gtktheme
       Insertion from gtktheme
 *************************************}
 *************************************}
@@ -546,7 +552,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:33:25  michael
+  Revision 1.3  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.2  2000/07/13 11:33:25  michael
   + removed logs
   + removed logs
  
  
 }
 }

+ 5 - 2
packages/gtk/gtk/gtkwindow.pp

@@ -21,7 +21,7 @@
             default_widget : PGtkWidget;
             default_widget : PGtkWidget;
             transient_parent : PGtkWindow;
             transient_parent : PGtkWindow;
             resize_count : gushort;
             resize_count : gushort;
-            flag0 : word;
+            flag0 : {$ifdef win32}longint{$else}word{$endif};
          end;
          end;
 
 
     const
     const
@@ -183,7 +183,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2000-09-06 21:13:55  peter
+  Revision 1.5  2000-09-09 18:41:39  peter
+    * fixes for gtk win32
+
+  Revision 1.4  2000/09/06 21:13:55  peter
     * packrecords 4 for win32, packrecords c for linux
     * packrecords 4 for win32, packrecords c for linux
 
 
   Revision 1.3  2000/09/06 20:48:11  peter
   Revision 1.3  2000/09/06 20:48:11  peter