[Xfce4-commits] [xfce/tumbler] 01/01: Fix identation + close thumbnailers directory
noreply at xfce.org
noreply at xfce.org
Sun Sep 2 11:06:16 CEST 2018
This is an automated email from the git hooks/post-receive script.
a l i 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 xfce/tumbler.
commit c401355a3adb1d0fc4784ae98eca50bc04664fab
Author: Ali Abdallah <ali at xfce.org>
Date: Sun Sep 2 11:05:37 2018 +0200
Fix identation + close thumbnailers directory
---
.../desktop-thumbnailer-provider.c | 24 +++++++++++++---------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/plugins/desktop-thumbnailer/desktop-thumbnailer-provider.c b/plugins/desktop-thumbnailer/desktop-thumbnailer-provider.c
index e1455e7..7bf2a3f 100644
--- a/plugins/desktop-thumbnailer/desktop-thumbnailer-provider.c
+++ b/plugins/desktop-thumbnailer/desktop-thumbnailer-provider.c
@@ -127,7 +127,7 @@ desktop_thumbnailer_get_from_desktop_file (GFile *file,
/* determine the Exec of the desktop thumbnailer */
exec = g_key_file_get_string (key_file, "Thumbnailer Entry",
- "Exec", &error);
+ "Exec", &error);
if (exec == NULL)
{
g_warning (_("Malformed file \"%s\": %s"), filename, error->message);
@@ -193,11 +193,11 @@ desktop_thumbnailer_get_thumbnailers_from_dir (GList *thumbnailers,
base_name != NULL;
base_name = g_dir_read_name (dir))
{
- GFileType type;
- GFile *file;
- DesktopThumbnailer *thumbnailer = NULL;
+ GFileType type;
+ GFile *file;
+ DesktopThumbnailer *thumbnailer = NULL;
- /* skip files that don't end with the .thumbnailer extension */
+ /* skip files that don't end with the .thumbnailer extension */
if (!g_str_has_suffix (base_name, ".thumbnailer"))
continue;
@@ -206,15 +206,19 @@ desktop_thumbnailer_get_thumbnailers_from_dir (GList *thumbnailers,
/* try to load the file if it is regular */
if (type == G_FILE_TYPE_REGULAR)
- thumbnailer = desktop_thumbnailer_get_from_desktop_file (file, uri_schemes);
+ thumbnailer = desktop_thumbnailer_get_from_desktop_file (file, uri_schemes);
g_object_unref (file);
if (thumbnailer)
- {
- thumbnailers = g_list_append (thumbnailers, thumbnailer);
- }
- }
+ {
+
+ thumbnailers = g_list_append (thumbnailers, thumbnailer);
+ }
+ }
+
+ g_dir_close(dir);
+
return thumbnailers;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list