diff options
Diffstat (limited to 'ui/simple_dialog.h')
-rw-r--r-- | ui/simple_dialog.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ui/simple_dialog.h b/ui/simple_dialog.h index d99b0ee3..d8e01000 100644 --- a/ui/simple_dialog.h +++ b/ui/simple_dialog.h @@ -13,6 +13,10 @@ #ifndef __SIMPLE_DIALOG_UI_H__ #define __SIMPLE_DIALOG_UI_H__ +#include <glib.h> + +#include <stdbool.h> + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -93,12 +97,12 @@ typedef enum { * get rid of primary_start and primary_end and reduce the amount of * gymnastics we have to do in the Qt UI. */ -extern gpointer simple_dialog(ESD_TYPE_E type, gint btn_mask, - const gchar *msg_format, ...) +extern void *simple_dialog(ESD_TYPE_E type, int btn_mask, + const char *msg_format, ...) G_GNUC_PRINTF(3, 4); -extern gpointer simple_dialog_async(ESD_TYPE_E type, gint btn_mask, - const gchar *msg_format, ...) +extern void *simple_dialog_async(ESD_TYPE_E type, int btn_mask, + const char *msg_format, ...) G_GNUC_PRINTF(3, 4); /** Surround the primary dialog message text by @@ -122,7 +126,7 @@ extern char *simple_dialog_format_message(const char *msg); * Alert box, with optional "don't show this message again" variable * and checkbox, and optional secondary text. */ -extern void simple_message_box(ESD_TYPE_E type, gboolean *notagain, +extern void simple_message_box(ESD_TYPE_E type, bool *notagain, const char *secondary_msg, const char *msg_format, ...) G_GNUC_PRINTF(4, 5); |