@@ -656,62 +656,104 @@ JNIEXPORT void JNICALL GTK4_NATIVE(gtk_1expander_1set_1child)
656656}
657657#endif
658658
659- #ifndef NO_gtk_1file_1chooser_1get_1file
660- JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1chooser_1get_1file )
659+ #ifndef NO_gtk_1file_1dialog_1get_1default_1filter
660+ JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1dialog_1get_1default_1filter )
661661 (JNIEnv * env , jclass that , jlong arg0 )
662662{
663663 jlong rc = 0 ;
664- GTK4_NATIVE_ENTER (env , that , gtk_1file_1chooser_1get_1file_FUNC );
665- rc = (jlong )gtk_file_chooser_get_file (( GtkFileChooser * )arg0 );
666- GTK4_NATIVE_EXIT (env , that , gtk_1file_1chooser_1get_1file_FUNC );
664+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1get_1default_1filter_FUNC );
665+ rc = (jlong )gtk_file_dialog_get_default_filter (( GtkFileDialog * )arg0 );
666+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1get_1default_1filter_FUNC );
667667 return rc ;
668668}
669669#endif
670670
671- #ifndef NO_gtk_1file_1chooser_1get_1files
672- JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1chooser_1get_1files )
673- (JNIEnv * env , jclass that , jlong arg0 )
671+ #ifndef NO_gtk_1file_1dialog_1new
672+ JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1dialog_1new )
673+ (JNIEnv * env , jclass that )
674674{
675675 jlong rc = 0 ;
676- GTK4_NATIVE_ENTER (env , that , gtk_1file_1chooser_1get_1files_FUNC );
677- rc = (jlong )gtk_file_chooser_get_files (( GtkFileChooser * ) arg0 );
678- GTK4_NATIVE_EXIT (env , that , gtk_1file_1chooser_1get_1files_FUNC );
676+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1new_FUNC );
677+ rc = (jlong )gtk_file_dialog_new ( );
678+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1new_FUNC );
679679 return rc ;
680680}
681681#endif
682682
683- #ifndef NO_gtk_1file_1chooser_1set_1current_1folder
684- JNIEXPORT jboolean JNICALL GTK4_NATIVE (gtk_1file_1chooser_1set_1current_1folder )
685- (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlong arg2 )
683+ #ifndef NO_gtk_1file_1dialog_1open
684+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1open )
685+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlong arg2 , jlong arg3 , jlong arg4 )
686686{
687- jboolean rc = 0 ;
688- GTK4_NATIVE_ENTER (env , that , gtk_1file_1chooser_1set_1current_1folder_FUNC );
689- rc = (jboolean )gtk_file_chooser_set_current_folder ((GtkFileChooser * )arg0 , (GFile * )arg1 , (GError * * )arg2 );
690- GTK4_NATIVE_EXIT (env , that , gtk_1file_1chooser_1set_1current_1folder_FUNC );
687+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1open_FUNC );
688+ gtk_file_dialog_open ((GtkFileDialog * )arg0 , (GtkWindow * )arg1 , (GCancellable * )arg2 , (GAsyncReadyCallback )arg3 , (gpointer )arg4 );
689+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1open_FUNC );
690+ }
691+ #endif
692+
693+ #ifndef NO_gtk_1file_1dialog_1open_1finish
694+ JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1dialog_1open_1finish )
695+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlongArray arg2 )
696+ {
697+ jlong * lparg2 = NULL ;
698+ jlong rc = 0 ;
699+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1open_1finish_FUNC );
700+ if (arg2 ) if ((lparg2 = (* env )-> GetLongArrayElements (env , arg2 , NULL )) == NULL ) goto fail ;
701+ rc = (jlong )gtk_file_dialog_open_finish ((GtkFileDialog * )arg0 , (GAsyncResult * )arg1 , (GError * * )lparg2 );
702+ fail :
703+ if (arg2 && lparg2 ) (* env )-> ReleaseLongArrayElements (env , arg2 , lparg2 , 0 );
704+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1open_1finish_FUNC );
691705 return rc ;
692706}
693707#endif
694708
695- #ifndef NO_gtk_1file_1chooser_1set_1file
696- JNIEXPORT jboolean JNICALL GTK4_NATIVE (gtk_1file_1chooser_1set_1file )
697- (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlong arg2 )
709+ #ifndef NO_gtk_1file_1dialog_1open_1multiple
710+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1open_1multiple )
711+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlong arg2 , jlong arg3 , jlong arg4 )
698712{
699- jboolean rc = 0 ;
700- GTK4_NATIVE_ENTER (env , that , gtk_1file_1chooser_1set_1file_FUNC );
701- rc = (jboolean )gtk_file_chooser_set_file ((GtkFileChooser * )arg0 , (GFile * )arg1 , (GError * * )arg2 );
702- GTK4_NATIVE_EXIT (env , that , gtk_1file_1chooser_1set_1file_FUNC );
713+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1open_1multiple_FUNC );
714+ gtk_file_dialog_open_multiple ((GtkFileDialog * )arg0 , (GtkWindow * )arg1 , (GCancellable * )arg2 , (GAsyncReadyCallback )arg3 , (gpointer )arg4 );
715+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1open_1multiple_FUNC );
716+ }
717+ #endif
718+
719+ #ifndef NO_gtk_1file_1dialog_1open_1multiple_1finish
720+ JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1dialog_1open_1multiple_1finish )
721+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlongArray arg2 )
722+ {
723+ jlong * lparg2 = NULL ;
724+ jlong rc = 0 ;
725+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1open_1multiple_1finish_FUNC );
726+ if (arg2 ) if ((lparg2 = (* env )-> GetLongArrayElements (env , arg2 , NULL )) == NULL ) goto fail ;
727+ rc = (jlong )gtk_file_dialog_open_multiple_finish ((GtkFileDialog * )arg0 , (GAsyncResult * )arg1 , (GError * * )lparg2 );
728+ fail :
729+ if (arg2 && lparg2 ) (* env )-> ReleaseLongArrayElements (env , arg2 , lparg2 , 0 );
730+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1open_1multiple_1finish_FUNC );
703731 return rc ;
704732}
705733#endif
706734
707- #ifndef NO_gtk_1file_1dialog_1new
708- JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1dialog_1new )
709- (JNIEnv * env , jclass that )
735+ #ifndef NO_gtk_1file_1dialog_1save
736+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1save )
737+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlong arg2 , jlong arg3 , jlong arg4 )
738+ {
739+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1save_FUNC );
740+ gtk_file_dialog_save ((GtkFileDialog * )arg0 , (GtkWindow * )arg1 , (GCancellable * )arg2 , (GAsyncReadyCallback )arg3 , (gpointer )arg4 );
741+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1save_FUNC );
742+ }
743+ #endif
744+
745+ #ifndef NO_gtk_1file_1dialog_1save_1finish
746+ JNIEXPORT jlong JNICALL GTK4_NATIVE (gtk_1file_1dialog_1save_1finish )
747+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 , jlongArray arg2 )
710748{
749+ jlong * lparg2 = NULL ;
711750 jlong rc = 0 ;
712- GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1new_FUNC );
713- rc = (jlong )gtk_file_dialog_new ();
714- GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1new_FUNC );
751+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1save_1finish_FUNC );
752+ if (arg2 ) if ((lparg2 = (* env )-> GetLongArrayElements (env , arg2 , NULL )) == NULL ) goto fail ;
753+ rc = (jlong )gtk_file_dialog_save_finish ((GtkFileDialog * )arg0 , (GAsyncResult * )arg1 , (GError * * )lparg2 );
754+ fail :
755+ if (arg2 && lparg2 ) (* env )-> ReleaseLongArrayElements (env , arg2 , lparg2 , 0 );
756+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1save_1finish_FUNC );
715757 return rc ;
716758}
717759#endif
@@ -742,6 +784,36 @@ JNIEXPORT jlong JNICALL GTK4_NATIVE(gtk_1file_1dialog_1select_1folder_1finish)
742784}
743785#endif
744786
787+ #ifndef NO_gtk_1file_1dialog_1set_1default_1filter
788+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1set_1default_1filter )
789+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 )
790+ {
791+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1set_1default_1filter_FUNC );
792+ gtk_file_dialog_set_default_filter ((GtkFileDialog * )arg0 , (GtkFileFilter * )arg1 );
793+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1set_1default_1filter_FUNC );
794+ }
795+ #endif
796+
797+ #ifndef NO_gtk_1file_1dialog_1set_1filters
798+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1set_1filters )
799+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 )
800+ {
801+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1set_1filters_FUNC );
802+ gtk_file_dialog_set_filters ((GtkFileDialog * )arg0 , (GListModel * )arg1 );
803+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1set_1filters_FUNC );
804+ }
805+ #endif
806+
807+ #ifndef NO_gtk_1file_1dialog_1set_1initial_1file
808+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1set_1initial_1file )
809+ (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 )
810+ {
811+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1set_1initial_1file_FUNC );
812+ gtk_file_dialog_set_initial_file ((GtkFileDialog * )arg0 , (GFile * )arg1 );
813+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1set_1initial_1file_FUNC );
814+ }
815+ #endif
816+
745817#ifndef NO_gtk_1file_1dialog_1set_1initial_1folder
746818JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1set_1initial_1folder )
747819 (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 )
@@ -752,6 +824,34 @@ JNIEXPORT void JNICALL GTK4_NATIVE(gtk_1file_1dialog_1set_1initial_1folder)
752824}
753825#endif
754826
827+ #ifndef NO_gtk_1file_1dialog_1set_1initial_1name
828+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1set_1initial_1name )
829+ (JNIEnv * env , jclass that , jlong arg0 , jbyteArray arg1 )
830+ {
831+ jbyte * lparg1 = NULL ;
832+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1set_1initial_1name_FUNC );
833+ if (arg1 ) if ((lparg1 = (* env )-> GetByteArrayElements (env , arg1 , NULL )) == NULL ) goto fail ;
834+ gtk_file_dialog_set_initial_name ((GtkFileDialog * )arg0 , (char * )lparg1 );
835+ fail :
836+ if (arg1 && lparg1 ) (* env )-> ReleaseByteArrayElements (env , arg1 , lparg1 , 0 );
837+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1set_1initial_1name_FUNC );
838+ }
839+ #endif
840+
841+ #ifndef NO_gtk_1file_1dialog_1set_1title
842+ JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1file_1dialog_1set_1title )
843+ (JNIEnv * env , jclass that , jlong arg0 , jbyteArray arg1 )
844+ {
845+ jbyte * lparg1 = NULL ;
846+ GTK4_NATIVE_ENTER (env , that , gtk_1file_1dialog_1set_1title_FUNC );
847+ if (arg1 ) if ((lparg1 = (* env )-> GetByteArrayElements (env , arg1 , NULL )) == NULL ) goto fail ;
848+ gtk_file_dialog_set_title ((GtkFileDialog * )arg0 , (char * )lparg1 );
849+ fail :
850+ if (arg1 && lparg1 ) (* env )-> ReleaseByteArrayElements (env , arg1 , lparg1 , 0 );
851+ GTK4_NATIVE_EXIT (env , that , gtk_1file_1dialog_1set_1title_FUNC );
852+ }
853+ #endif
854+
755855#ifndef NO_gtk_1frame_1set_1child
756856JNIEXPORT void JNICALL GTK4_NATIVE (gtk_1frame_1set_1child )
757857 (JNIEnv * env , jclass that , jlong arg0 , jlong arg1 )
0 commit comments