summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--ChangeLog.pre-2-63
-rw-r--r--ChangeLog.pre-2-83
-rw-r--r--docs/reference/ChangeLog4
-rw-r--r--docs/reference/gtk/gtk-sections.txt2
-rw-r--r--gtk/gtkfilechooser.c42
-rw-r--r--gtk/gtkfilechooser.h3
8 files changed, 63 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d3264f947..b100642c79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 8d3264f947..b100642c79 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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.
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 8d3264f947..b100642c79 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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.
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 8d3264f947..b100642c79 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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.
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog
index 5cd8b8db7e..a9179fb419 100644
--- a/docs/reference/ChangeLog
+++ b/docs/reference/ChangeLog
@@ -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.
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index c5082c9fc1..5e3ba347e2 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -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
diff --git a/gtk/gtkfilechooser.c b/gtk/gtkfilechooser.c
index 1a790c8946..9e82eb3159 100644
--- a/gtk/gtkfilechooser.c
+++ b/gtk/gtkfilechooser.c
@@ -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;
+}
diff --git a/gtk/gtkfilechooser.h b/gtk/gtkfilechooser.h
index 26db8456ee..7c5f958ee2 100644
--- a/gtk/gtkfilechooser.h
+++ b/gtk/gtkfilechooser.h
@@ -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
*/