summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooser.h
diff options
context:
space:
mode:
authorJonh Wendell <jonh.wendell@linux.intel.com>2013-06-17 15:47:56 -0300
committerFederico Mena Quintero <federico@gnome.org>2013-06-19 13:37:35 -0500
commit84b4910b39bdd85195887437445a8f089cda621f (patch)
tree0d6ef223d8634a5b09025d80eab187908968b89c /gtk/gtkfilechooser.h
parent159cccfe7b50e1e0fbede08132abfc74f4206fdb (diff)
downloadgtk+-84b4910b39bdd85195887437445a8f089cda621f.tar.gz
filechooser: Add gtk_file_chooser_get_current_name()
Currently you can only set the current filename, but not get it. It's useful to be able to get it in save dialogs, where the user has typed the desired filename and you are not in a real directory (recent used, for example). https://bugzilla.gnome.org/show_bug.cgi?id=702497
Diffstat (limited to 'gtk/gtkfilechooser.h')
-rw-r--r--gtk/gtkfilechooser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkfilechooser.h b/gtk/gtkfilechooser.h
index 0705737cd8..6dff84ec2b 100644
--- a/gtk/gtkfilechooser.h
+++ b/gtk/gtkfilechooser.h
@@ -153,8 +153,10 @@ gboolean gtk_file_chooser_get_create_folders (GtkFileChooser *choose
/* Suggested name for the Save-type actions
*/
GDK_AVAILABLE_IN_ALL
-void gtk_file_chooser_set_current_name (GtkFileChooser *chooser,
- const gchar *name);
+void gtk_file_chooser_set_current_name (GtkFileChooser *chooser,
+ const gchar *name);
+GDK_AVAILABLE_IN_3_10
+gchar *gtk_file_chooser_get_current_name (GtkFileChooser *chooser);
/* Filename manipulation
*/