summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/gtksymbols_p.h
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2009-07-20 15:42:39 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-07-20 15:42:39 (GMT)
commitdc76e15214c2ad2f49bf62bc969a89438dc36ee7 (patch)
treeac4612f5952076fc13d8878b89e2c47d8608f281 /src/gui/styles/gtksymbols_p.h
parent20e056ec5f8abf68beee9bb45bbaf3570a4bd9c6 (diff)
downloadQt-dc76e15214c2ad2f49bf62bc969a89438dc36ee7.zip
Qt-dc76e15214c2ad2f49bf62bc969a89438dc36ee7.tar.gz
Qt-dc76e15214c2ad2f49bf62bc969a89438dc36ee7.tar.bz2
Return selectedFilter in QGtkStyle file dialogs
Function setupGtkFileChooser is modified to optionally build a map of GtkFileFilters. File dialog methods then use gtk_file_chooser_get_filename to get the current GtkFileFilter and look it up in the map produced by setupGtkFileChooser. This value is then saved in the selectedFilter pointer. Merge-request: 846 Reviewed-by: Jens Bache-Wiig <jbache@trolltech.com>
Diffstat (limited to 'src/gui/styles/gtksymbols_p.h')
-rw-r--r--src/gui/styles/gtksymbols_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/styles/gtksymbols_p.h b/src/gui/styles/gtksymbols_p.h
index b0195d2..18c6dc5 100644
--- a/src/gui/styles/gtksymbols_p.h
+++ b/src/gui/styles/gtksymbols_p.h
@@ -162,6 +162,7 @@ typedef void (*Ptr_gtk_file_filter_set_name)(GtkFileFilter *, const gchar *);
typedef void (*Ptr_gtk_file_filter_add_pattern)(GtkFileFilter *filter, const gchar *pattern);
typedef void (*Ptr_gtk_file_chooser_add_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
typedef void (*Ptr_gtk_file_chooser_set_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
+typedef GtkFileFilter* (*Ptr_gtk_file_chooser_get_filter)(GtkFileChooser *chooser);
typedef gchar* (*Ptr_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
typedef GSList* (*Ptr_gtk_file_chooser_get_filenames)(GtkFileChooser *chooser);
typedef GtkWidget* (*Ptr_gtk_file_chooser_dialog_new)(const gchar *title,
@@ -302,6 +303,7 @@ public:
static Ptr_gtk_file_filter_add_pattern gtk_file_filter_add_pattern;
static Ptr_gtk_file_chooser_add_filter gtk_file_chooser_add_filter;
static Ptr_gtk_file_chooser_set_filter gtk_file_chooser_set_filter;
+ static Ptr_gtk_file_chooser_get_filter gtk_file_chooser_get_filter;
static Ptr_gtk_file_chooser_dialog_new gtk_file_chooser_dialog_new;
static Ptr_gtk_file_chooser_set_current_folder gtk_file_chooser_set_current_folder;
static Ptr_gtk_file_chooser_get_filename gtk_file_chooser_get_filename;