chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random play menu item
[disorder]
/
disobedience
/
misc.c
diff --git
a/disobedience/misc.c
b/disobedience/misc.c
index 1cb6d5a0439a839ff4b2dd1f937ffd3b9d8197bb..c2686543eff851c969ec713179f8e58b1d1e1325 100644
(file)
--- a/
disobedience/misc.c
+++ b/
disobedience/misc.c
@@
-93,13
+93,13
@@
GdkPixbuf *find_image(const char *name) {
return pb;
}
return pb;
}
-/** @brief Pop up a
n error
message */
-void popup_
error(
const char *msg) {
+/** @brief Pop up a message */
+void popup_
msg(GtkMessageType mt,
const char *msg) {
GtkWidget *w;
w = gtk_message_dialog_new(GTK_WINDOW(toplevel),
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
GtkWidget *w;
w = gtk_message_dialog_new(GTK_WINDOW(toplevel),
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
-
GTK_MESSAGE_ERROR
,
+
mt
,
GTK_BUTTONS_CLOSE,
"%s", msg);
gtk_dialog_run(GTK_DIALOG(w));
GTK_BUTTONS_CLOSE,
"%s", msg);
gtk_dialog_run(GTK_DIALOG(w));
@@
-107,14
+107,14
@@
void popup_error(const char *msg) {
}
/** @brief Pop up an error message */
}
/** @brief Pop up an error message */
-void fpopup_
error(
const char *fmt, ...) {
+void fpopup_
msg(GtkMessageType mt,
const char *fmt, ...) {
va_list ap;
char *msg;
va_start(ap, fmt);
byte_xvasprintf(&msg, fmt, ap);
va_end(ap);
va_list ap;
char *msg;
va_start(ap, fmt);
byte_xvasprintf(&msg, fmt, ap);
va_end(ap);
- popup_
error(
msg);
+ popup_
msg(mt,
msg);
}
/** @brief Create a button with an icon in it
}
/** @brief Create a button with an icon in it