[glom] ImageGlom: Set an appropriate default file filter.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] ImageGlom: Set an appropriate default file filter.
- Date: Thu, 14 Jul 2011 11:40:29 +0000 (UTC)
commit f91cee66628b90211f09a10f84bc2adc553b927b
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jul 14 13:40:14 2011 +0200
ImageGlom: Set an appropriate default file filter.
* glom/utility_widgets/imageglom.cc: evince-view sets its own default,
but that's not ideal for us.
ChangeLog | 7 +++++++
glom/utility_widgets/imageglom.cc | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0a6bd88..024f9cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-07-14 Murray Cumming <murrayc murrayc com>
+ ImageGlom: Set an appropriate default file filter.
+
+ * glom/utility_widgets/imageglom.cc: evince-view sets its own default,
+ but that's not ideal for us.
+
+2011-07-14 Murray Cumming <murrayc murrayc com>
+
ImageGlom: Use G_FILE_ATTRIBUTE_STANDARD_ICON
* glom/utility_widgets/imageglom.cc: If G_FILE_ATTRIBUTE_THUMBNAIL_PATH
diff --git a/glom/utility_widgets/imageglom.cc b/glom/utility_widgets/imageglom.cc
index 36a5e12..7329c93 100644
--- a/glom/utility_widgets/imageglom.cc
+++ b/glom/utility_widgets/imageglom.cc
@@ -601,6 +601,9 @@ static void set_file_filter_images(Gtk::FileChooser& file_chooser)
ev_document_factory_add_filters(GTK_WIDGET(file_chooser.gobj()), 0);
+ //Make Images the currently-selected one:
+ file_chooser.set_filter(filter);
+
/* ev_document_factory_add_filters() add this already:
filter = Gtk::FileFilter::create();
filter->set_name(_("All Files"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]