This repository has been archived on 2024-11-22. You can view files and clone it, but cannot push or open issues or pull requests.
zenity/src/util.h

42 lines
1.8 KiB
C
Raw Normal View History

2003-01-03 13:26:04 +00:00
#ifndef UTIL_H
#define UTIL_H
#include <gtk/gtk.h>
#include "zenity.h"
2003-01-03 13:26:04 +00:00
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
2003-01-03 13:26:04 +00:00
G_BEGIN_DECLS
#define ZENITY_UI_FILE_FULLPATH ZENITY_DATADIR "/zenity.ui"
#define ZENITY_UI_FILE_RELATIVEPATH "./zenity.ui"
#define ZENITY_IMAGE_FULLPATH(filename) (ZENITY_DATADIR "/" filename)
GtkBuilder* zenity_util_load_ui_file (const gchar *widget_root, ...) G_GNUC_NULL_TERMINATED;
gchar * zenity_util_strip_newline (gchar *string);
gboolean zenity_util_fill_file_buffer (GtkTextBuffer *buffer,
const gchar *filename);
const gchar * zenity_util_icon_name_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_icon_name(GtkWidget *widget,
const gchar *filename,
const gchar *default_icon_name);
void zenity_util_set_window_icon_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_exit_code_with_data (ZenityExitCode value,
ZenityData *data);
void zenity_util_show_dialog (GtkWidget *widget, Window parent);
gboolean zenity_util_timeout_handle (gpointer data);
2003-01-03 13:26:04 +00:00
G_END_DECLS
#endif /* UTIL_H */