chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automate sensitization when mode changes.
[disorder]
/
disobedience
/
misc.c
diff --git
a/disobedience/misc.c
b/disobedience/misc.c
index 7a6ba712f4341fa90a8f536d546e6f633b281ee6..aaff4ae075248a777bb97bf095641e8ffe1bf680 100644
(file)
--- a/
disobedience/misc.c
+++ b/
disobedience/misc.c
@@
-112,9
+112,13
@@
GdkPixbuf *find_image(const char *name) {
/** @brief Pop up a message */
void popup_msg(GtkMessageType mt, const char *msg) {
/** @brief Pop up a message */
void popup_msg(GtkMessageType mt, const char *msg) {
+ popup_submsg(toplevel, mt, msg);
+}
+
+void popup_submsg(GtkWidget *parent, GtkMessageType mt, const char *msg) {
GtkWidget *w;
GtkWidget *w;
- w = gtk_message_dialog_new(GTK_WINDOW(
toplevel
),
+ w = gtk_message_dialog_new(GTK_WINDOW(
parent
),
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
mt,
GTK_BUTTONS_CLOSE,
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
mt,
GTK_BUTTONS_CLOSE,