1 /* Eye Of Gnome - General Utilities 2 * 3 * Copyright (C) 2006 The Free Software Foundation 4 * 5 * Author: Lucas Rocha <lucasr@gnome.org> 6 * 7 * Based on code by: 8 * - Jens Finke <jens@gnome.org> 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License along 21 * with this program; if not, write to the Free Software Foundation, Inc., 22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23 */ 24 25 #ifndef __EOG_UTIL_H__ 26 #define __EOG_UTIL_H__ 27 28 #include <gtk/gtk.h> 29 30 G_BEGIN_DECLS 31 32 G_GNUC_INTERNAL 33 void eog_util_show_help (const gchar *section, 34 GtkWindow *parent); 35 36 G_GNUC_INTERNAL 37 gchar *eog_util_make_valid_utf8 (const gchar *name); 38 39 G_GNUC_INTERNAL 40 GSList *eog_util_parse_uri_string_list_to_file_list (const gchar *uri_list); 41 42 G_GNUC_INTERNAL 43 GSList *eog_util_string_list_to_file_list (GSList *string_list); 44 45 G_GNUC_INTERNAL 46 GSList *eog_util_strings_to_file_list (gchar **strings); 47 48 G_GNUC_INTERNAL 49 GSList *eog_util_string_array_to_list (const gchar **files, 50 gboolean create_uri); 51 52 G_GNUC_INTERNAL 53 gchar **eog_util_string_array_make_absolute (gchar **files); 54 55 G_GNUC_INTERNAL 56 gboolean eog_util_launch_desktop_file (const gchar *filename, 57 guint32 user_time); 58 59 G_GNUC_INTERNAL 60 const gchar *eog_util_dot_dir (void); 61 62 G_GNUC_INTERNAL 63 char * eog_util_filename_get_extension (const char * filename); 64 65 G_GNUC_INTERNAL 66 gboolean eog_util_file_is_persistent (GFile *file); 67 68 G_GNUC_INTERNAL 69 void eog_util_show_file_in_filemanager (GFile *file, 70 GtkWindow *toplevel); 71 72 #ifdef HAVE_LIBPORTAL 73 G_GNUC_INTERNAL 74 gboolean eog_util_is_running_inside_flatpak (void); 75 76 G_GNUC_INTERNAL 77 void eog_util_open_file_with_flatpak_portal (GFile *file, 78 GtkWindow *window); 79 80 void eog_util_set_wallpaper_with_portal (GFile *file, 81 GtkWindow *window); 82 #endif 83 84 G_END_DECLS 85 86 #endif /* __EOG_UTIL_H__ */ 87