summaryrefslogtreecommitdiff
path: root/gsearchtool/src/gsearchtool-support.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsearchtool/src/gsearchtool-support.c')
-rw-r--r--gsearchtool/src/gsearchtool-support.c43
1 files changed, 19 insertions, 24 deletions
diff --git a/gsearchtool/src/gsearchtool-support.c b/gsearchtool/src/gsearchtool-support.c
index 54d1475a..0a56c6a9 100644
--- a/gsearchtool/src/gsearchtool-support.c
+++ b/gsearchtool/src/gsearchtool-support.c
@@ -1,32 +1,29 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * MATE Search Tool
+/* Copyright (C) 2002 the Free Software Foundation
+ * Copyright (C) 2012-2021 MATE Developers
*
- * File: gsearchtool-support.c
+ * This file is part of MATE Utils.
*
- * (C) 2002 the Free Software Foundation
+ * MATE Utils is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
*
- * Authors: Dennis Cranston <[email protected]>
- * George Lebl
+ * MATE Utils is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU General Public License
+ * along with MATE Utils. If not, see <https://www.gnu.org/licenses/>.
*
+ * Authors:
+ * Dennis Cranston <[email protected]>
+ * George Lebl
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <string.h>
@@ -449,10 +446,10 @@ get_file_type_description (const gchar * file,
}
if (content_type == NULL || g_content_type_is_unknown (content_type) == TRUE) {
- return g_strdup (g_content_type_get_description ("application/octet-stream"));
+ return g_content_type_get_description ("application/octet-stream");
}
- desc = g_strdup (g_content_type_get_description (content_type));
+ desc = g_content_type_get_description (content_type);
if (g_file_info_get_is_symlink (file_info) == TRUE) {
@@ -747,8 +744,6 @@ get_themed_icon_pixbuf (GThemedIcon * icon,
return pixbuf;
}
-
-
GdkPixbuf *
get_file_pixbuf (GSearchWindow * gsearch,
GFileInfo * file_info)