summaryrefslogtreecommitdiff
path: root/plugins/filebrowser/pluma-file-browser-utils.h
blob: 0ac4296a36dc982b639763f95c49f3eee81655a8 (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
#ifndef __PLUMA_FILE_BROWSER_UTILS_H__
#define __PLUMA_FILE_BROWSER_UTILS_H__

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

GdkPixbuf *pluma_file_browser_utils_pixbuf_from_theme     (gchar const *name,
                                                           GtkIconSize size);

GdkPixbuf *pluma_file_browser_utils_pixbuf_from_icon	  (GIcon * icon,
                                                           GtkIconSize size);
GdkPixbuf *pluma_file_browser_utils_pixbuf_from_file	  (GFile * file,
                                                           GtkIconSize size);

gchar * pluma_file_browser_utils_file_basename		  (GFile * file);
gchar * pluma_file_browser_utils_uri_basename             (gchar const * uri);

gboolean pluma_file_browser_utils_confirmation_dialog     (PlumaWindow * window,
                                                           GtkMessageType type,
                                                           gchar const *message,
		                                           gchar const *secondary, 
		                                           gchar const * button_stock, 
		                                           gchar const * button_label);

#endif /* __PLUMA_FILE_BROWSER_UTILS_H__ */

// ex:ts=8:noet: