[Xfce4-commits] [apps/ristretto] 01/01: Add support for Canon CR2 format
noreply at xfce.org
noreply at xfce.org
Tue Apr 16 16:04:29 CEST 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/ristretto.
commit 6d43825421d77c3fefca3df9202d5e5ae9a5b89c
Author: Igor <f2404 at yandex.ru>
Date: Tue Apr 16 10:02:36 2019 -0400
Add support for Canon CR2 format
https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1778695
---
src/image_list.c | 2 ++
src/main_window.c | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/src/image_list.c b/src/image_list.c
index 9665ed4..e9b943f 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -325,6 +325,8 @@ rstto_image_list_init(RsttoImageList *image_list)
image_list->priv->filter = gtk_file_filter_new ();
g_object_ref_sink (image_list->priv->filter);
gtk_file_filter_add_pixbuf_formats (image_list->priv->filter);
+ /* see https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1778695 */
+ gtk_file_filter_add_mime_type (image_list->priv->filter, "image/x-canon-cr2");
image_list->priv->cb_rstto_image_list_compare_func = (GCompareFunc)cb_rstto_image_list_image_name_compare_func;
diff --git a/src/main_window.c b/src/main_window.c
index fbada25..6b6a9a9 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -834,6 +834,8 @@ rstto_main_window_init (RsttoMainWindow *window)
window->priv->filter = gtk_file_filter_new ();
g_object_ref_sink (window->priv->filter);
gtk_file_filter_add_pixbuf_formats (window->priv->filter);
+ /* see https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1778695 */
+ gtk_file_filter_add_mime_type (window->priv->filter, "image/x-canon-cr2");
/* D-Bus stuff */
@@ -3147,6 +3149,8 @@ cb_rstto_main_window_open_image (GtkWidget *widget, RsttoMainWindow *window)
}
gtk_file_filter_add_pixbuf_formats (filter);
+ /* see https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1778695 */
+ gtk_file_filter_add_mime_type (filter, "image/x-canon-cr2");
gtk_file_filter_set_name (filter, _("Images"));
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list