Hi,
I wanted to use a gtk_file_chooser_button, but I couldn't because gtk_file_chooser_button_new doesn't exist (v2.0.3 and svn-version). So I added it (and some others) in gtkfilechooser.inc (see enclosed diff). Is this the right place ? I still have to find out how to get the file-name out of the control. If this patch gets included, would it be backported to 2.0.3 ? Since I need 2.0.3 for my arm-board and svn is broken for arm-linux I would like to have it. If it is not possible I will have to patch it myself every time I get a new 2.0.3.
Regards,
Koenraad Lelong.
Index: fpc/packages/extra/gtk2/gtk+/gtk/gtkfilechooser.inc
===================================================================
--- fpc/packages/extra/gtk2/gtk+/gtk/gtkfilechooser.inc (revision 3714)
+++ fpc/packages/extra/gtk2/gtk+/gtk/gtkfilechooser.inc (working copy)
@@ -31,6 +31,9 @@
 
 function GTK_FILE_CHOOSER_ERROR : TGQuark;
 
+function gtk_file_chooser_button_new(title:Pgchar; 
action:TGtkFileChooserAction):PGtkWidget;cdecl;external gtklib name 
'gtk_file_chooser_button_new';
+function gtk_file_chooser_button_new_with_backend(title:Pgchar; 
action:TGtkFileChooserAction;backend:Pgchar):PGtkWidget;cdecl;external gtklib 
name 'gtk_file_chooser_button_new_with_backend';
+function 
gtk_file_chooser_button_new_with_dialog(dialog:PGtkWidget):PGtkWidget;cdecl;external
 gtklib name 'gtk_file_chooser_button_new_with_dialog';
 
 
 function gtk_file_chooser_get_type:GType;cdecl;external gtklib name 
'gtk_file_chooser_get_type';
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to