summaryrefslogtreecommitdiff
path: root/src/util.h
blob: a9a7ded4aac263b7b4fbd1ba7e4d753e2239d9ab (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
#ifndef UTIL_H 
#define UTIL_H

#include <gtk/gtk.h>
#include <glade/glade.h>

G_BEGIN_DECLS

#define ZENITY_GLADE_FILE_FULLPATH		ZENITY_DATADIR "/zenity.glade"
#define ZENITY_GLADE_FILE_RELATIVEPATH		"./zenity.glade"
#define ZENITY_IMAGE_FULLPATH(filename)		(g_strconcat (ZENITY_DATADIR, "/", filename, NULL))

GladeXML*	zenity_util_load_glade_file 		(const gchar *widget_root);

gboolean	zenity_util_fill_file_buffer 		(GtkTextBuffer *buffer, 
					      		 const gchar   *filename);

void		zenity_util_set_window_icon 		(GtkWidget	*widget,
					     		 const gchar	*filename);

void		zenity_util_set_window_icon_from_stock (GtkWidget	*widget,
							const gchar	*stock_id);

gboolean        zenity_util_show_help                   (const gchar *path,
                                                         const gchar *document,
                                                         GError **error);
G_END_DECLS

#endif /* UTIL_H */