[gnome-text-editor: 1/2] window: add application/x-zerosize to open dialog




commit 78aef777a46daba17b4fe8ff5f97d2d1c426a0a7
Author: Jake Dane <3689-jakedane users noreply gitlab gnome org>
Date:   Mon Oct 17 17:00:42 2022 +0000

    window: add application/x-zerosize to open dialog
    
    As follow up for commit 5e002c5a, that added the application/x-zerosize
    mimetype to the desktop file in, this adds that mimetype also to the
    filter in the the file open dialog.
    
    Fixes #486.

 src/editor-window-actions.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/editor-window-actions.c b/src/editor-window-actions.c
index ff2548a..8e540e2 100644
--- a/src/editor-window-actions.c
+++ b/src/editor-window-actions.c
@@ -380,6 +380,7 @@ editor_window_actions_open_cb (GtkWidget  *widget,
   text_files = gtk_file_filter_new ();
   gtk_file_filter_set_name (text_files, _("Text Files"));
   gtk_file_filter_add_mime_type (text_files, "text/plain");
+  gtk_file_filter_add_mime_type (text_files, "application/x-zerosize");
   gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (native), g_object_ref (text_files));
 
 #ifdef __APPLE__


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]