summaryrefslogtreecommitdiffstats
path: root/plugins/filebrowser/gedit-file-browser-utils.h
blob: 165f513a22811ae3910b4c15a80f5a8131a251ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * gedit-file-browser-utils.h - Gedit plugin providing easy file access
 * from the sidepanel
 *
 * Copyright (C) 2006 - Jesse van den Kieboom <jesse@icecrew.nl>
 *
 * 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, 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, see <http://www.gnu.org/licenses/>.
 */

#ifndef GEDIT_FILE_BROWSER_UTILS_H
#define GEDIT_FILE_BROWSER_UTILS_H

#include <gedit/gedit-window.h>
#include <gio/gio.h>

gchar           *gedit_file_browser_utils_name_from_themed_icon         (GIcon          *icon);
GdkPixbuf	*gedit_file_browser_utils_pixbuf_from_theme	        (gchar const    *name,
									 GtkIconSize     size);

GdkPixbuf	*gedit_file_browser_utils_pixbuf_from_icon	        (GIcon          *icon,
									 GtkIconSize     size);
GdkPixbuf	*gedit_file_browser_utils_pixbuf_from_file        	(GFile          *file,
									 GtkIconSize     size,
									 gboolean        use_symbolic);
gchar           *gedit_file_browser_utils_symbolic_icon_name_from_file  (GFile *file);
gchar		*gedit_file_browser_utils_file_basename		        (GFile          *file);

gboolean	 gedit_file_browser_utils_confirmation_dialog	        (GeditWindow    *window,
									 GtkMessageType  type,
									 gchar const    *message,
									 gchar const    *secondary,
									 gchar const    *button_label);

#endif /* GEDIT_FILE_BROWSER_UTILS_H */
/* ex:set ts=8 noet: */