filechooser: Drop gtk_file_chooser_[un]select_file

Most use cases for these apis can be handled with
gtk_file_chooser_set_file and/or
gtk_file_chooser_set_current_folder.
This commit is contained in:
Matthias Clasen 2020-07-09 00:46:55 -04:00
parent 2321e9de05
commit dcee15c0f1
4 changed files with 10 additions and 14 deletions

View File

@ -1300,8 +1300,6 @@ gtk_file_chooser_get_current_name
<SUBSECTION> <SUBSECTION>
gtk_file_chooser_get_file gtk_file_chooser_get_file
gtk_file_chooser_set_file gtk_file_chooser_set_file
gtk_file_chooser_select_file
gtk_file_chooser_unselect_file
gtk_file_chooser_get_files gtk_file_chooser_get_files
gtk_file_chooser_set_current_folder gtk_file_chooser_set_current_folder
gtk_file_chooser_get_current_folder gtk_file_chooser_get_current_folder

View File

@ -121,13 +121,6 @@ gboolean gtk_file_chooser_set_file (GtkFileChooser *chooser,
GFile *file, GFile *file,
GError **error); GError **error);
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
gboolean gtk_file_chooser_select_file (GtkFileChooser *chooser,
GFile *file,
GError **error);
GDK_AVAILABLE_IN_ALL
void gtk_file_chooser_unselect_file (GtkFileChooser *chooser,
GFile *file);
GDK_AVAILABLE_IN_ALL
GSList * gtk_file_chooser_get_files (GtkFileChooser *chooser); GSList * gtk_file_chooser_get_files (GtkFileChooser *chooser);
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
gboolean gtk_file_chooser_set_current_folder (GtkFileChooser *chooser, gboolean gtk_file_chooser_set_current_folder (GtkFileChooser *chooser,

View File

@ -113,7 +113,11 @@ GtkFileSystem *_gtk_file_chooser_get_file_system (GtkFileChooser *cho
void gtk_file_chooser_select_all (GtkFileChooser *chooser); void gtk_file_chooser_select_all (GtkFileChooser *chooser);
void gtk_file_chooser_unselect_all (GtkFileChooser *chooser); void gtk_file_chooser_unselect_all (GtkFileChooser *chooser);
gboolean gtk_file_chooser_select_file (GtkFileChooser *chooser,
GFile *file,
GError **error);
void gtk_file_chooser_unselect_file (GtkFileChooser *chooser,
GFile *file);
G_END_DECLS G_END_DECLS
#endif /* __GTK_FILE_CHOOSER_PRIVATE_H__ */ #endif /* __GTK_FILE_CHOOSER_PRIVATE_H__ */

View File

@ -28,6 +28,7 @@
#include "gtksignallistitemfactory.h" #include "gtksignallistitemfactory.h"
#include "gtkentry.h" #include "gtkentry.h"
#include "gtkfilechooserdialog.h" #include "gtkfilechooserdialog.h"
#include "gtkfilechooserprivate.h"
#include "gtkimage.h" #include "gtkimage.h"
#include "gtklabel.h" #include "gtklabel.h"
#include "gtkliststore.h" #include "gtkliststore.h"