mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Add setter and getter for the ::show-hidden property. (#145610, Jeff
2004-08-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooser.[hc]: Add setter and getter for the ::show-hidden property. (#145610, Jeff Franks)
This commit is contained in:
parent
ea94ec3672
commit
a2ae16ad30
@ -1,5 +1,8 @@
|
||||
2004-08-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooser.[hc]: Add setter and getter for the
|
||||
::show-hidden property. (#145610, Jeff Franks)
|
||||
|
||||
* tests/testiconview.c: Add buttons to select and unselect all
|
||||
nodes, make the popup menu actually work.
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-08-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooser.[hc]: Add setter and getter for the
|
||||
::show-hidden property. (#145610, Jeff Franks)
|
||||
|
||||
* tests/testiconview.c: Add buttons to select and unselect all
|
||||
nodes, make the popup menu actually work.
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-08-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooser.[hc]: Add setter and getter for the
|
||||
::show-hidden property. (#145610, Jeff Franks)
|
||||
|
||||
* tests/testiconview.c: Add buttons to select and unselect all
|
||||
nodes, make the popup menu actually work.
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-08-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooser.[hc]: Add setter and getter for the
|
||||
::show-hidden property. (#145610, Jeff Franks)
|
||||
|
||||
* tests/testiconview.c: Add buttons to select and unselect all
|
||||
nodes, make the popup menu actually work.
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-08-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtk-sections.txt: Add gtk_file_chooser_[sg]et_show_hidden.
|
||||
|
||||
2004-08-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtk-sections.txt: Add hover-expand setter and getter.
|
||||
|
@ -1178,6 +1178,8 @@ gtk_file_chooser_set_local_only
|
||||
gtk_file_chooser_get_local_only
|
||||
gtk_file_chooser_set_select_multiple
|
||||
gtk_file_chooser_get_select_multiple
|
||||
gtk_file_chooser_set_show_hidden
|
||||
gtk_file_chooser_get_show_hidden
|
||||
gtk_file_chooser_set_current_name
|
||||
gtk_file_chooser_get_filename
|
||||
gtk_file_chooser_set_filename
|
||||
|
@ -1784,3 +1784,45 @@ gtk_file_chooser_list_shortcut_folder_uris (GtkFileChooser *chooser)
|
||||
gtk_file_paths_free (folders);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_file_chooser_set_show_hidden:
|
||||
* @chooser: a #GtkFileChooser
|
||||
* @show_hidden: %TRUE if hidden files and folders should be displayed.
|
||||
*
|
||||
* Sets whether hidden files and folders are displayed in the file selector.
|
||||
*
|
||||
* Since: 2.6
|
||||
**/
|
||||
void
|
||||
gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser,
|
||||
gboolean show_hidden)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_FILE_CHOOSER (chooser));
|
||||
|
||||
g_object_set (chooser, "show-hidden", show_hidden, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_file_chooser_get_show_hidden:
|
||||
* @chooser: a #GtkFileChooser
|
||||
*
|
||||
* Gets whether hidden files and folders are displayed in the file selector.
|
||||
* See gtk_file_chooser_set_show_hidden().
|
||||
*
|
||||
* Return value: %TRUE if hidden files and folders are displayed.
|
||||
*
|
||||
* Since: 2.6
|
||||
**/
|
||||
gboolean
|
||||
gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser)
|
||||
{
|
||||
gboolean show_hidden;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_FILE_CHOOSER (chooser), FALSE);
|
||||
|
||||
g_object_get (chooser, "show-hidden", &show_hidden, NULL);
|
||||
|
||||
return show_hidden;
|
||||
}
|
||||
|
@ -64,6 +64,9 @@ gboolean gtk_file_chooser_get_local_only (GtkFileChooser
|
||||
void gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser,
|
||||
gboolean select_multiple);
|
||||
gboolean gtk_file_chooser_get_select_multiple (GtkFileChooser *chooser);
|
||||
void gtk_file_chooser_set_show_hidden (GtkFileChooser *chooser,
|
||||
gboolean show_hidden);
|
||||
gboolean gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser);
|
||||
|
||||
/* Suggested name for the Save-type actions
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user