8b16d4d412
2007-08-13 Lucas Rocha <lucasr@gnome.org> * src/*.c: added timeout option to all dialogs (Fixes bug #160654). Based on patch from Muthiah Annamalai <gnumuthu@users.sf.net>. svn path=/trunk/; revision=1231
36 lines
1.5 KiB
C
36 lines
1.5 KiB
C
#ifndef UTIL_H
|
|
#define UTIL_H
|
|
|
|
#include <gtk/gtk.h>
|
|
#include <glade/glade.h>
|
|
#include "zenity.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) (ZENITY_DATADIR "/" filename)
|
|
|
|
GladeXML* zenity_util_load_glade_file (const gchar *widget_root);
|
|
gchar * zenity_util_strip_newline (gchar *string);
|
|
gboolean zenity_util_fill_file_buffer (GtkTextBuffer *buffer,
|
|
const gchar *filename);
|
|
const gchar * zenity_util_stock_from_filename (const gchar *filename);
|
|
void zenity_util_set_window_icon (GtkWidget *widget,
|
|
const gchar *filename,
|
|
const gchar *default_file);
|
|
void zenity_util_set_window_icon_from_stock (GtkWidget *widget,
|
|
const gchar *filename,
|
|
const gchar *default_stock_id);
|
|
GdkPixbuf * zenity_util_pixbuf_new_from_file (GtkWidget *widget,
|
|
const gchar *filename);
|
|
void zenity_util_show_help (GError **error);
|
|
gint zenity_util_return_exit_code (ZenityExitCode value);
|
|
void zenity_util_show_dialog (GtkWidget *widget);
|
|
|
|
gboolean zenity_util_timeout_handle (void);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* UTIL_H */
|