projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaned up GUI, by objectifying the data editor. Removed a number of global variables.
[pspp]
/
src
/
ui
/
gui
/
message-dialog.c
diff --git
a/src/ui/gui/message-dialog.c
b/src/ui/gui/message-dialog.c
index 8b910ce242a093d74fa4451c4f50c372b1688ce7..f550e8fce853c1abd2ea6e297e2974c9a5764c26 100644
(file)
--- a/
src/ui/gui/message-dialog.c
+++ b/
src/ui/gui/message-dialog.c
@@
-39,10
+39,6
@@
#include "helper.h"
#include "helper.h"
-extern GladeXML *xml;
-
-
-
static void enqueue_msg (const struct msg *m);
static void enqueue_msg (const struct msg *m);
@@
-137,9
+133,7
@@
popup_message(const struct msg *m)
break;
};
break;
};
- parent = GTK_WINDOW(get_widget_assert(xml, "data_editor"));
-
- dialog = gtk_message_dialog_new(parent,
+ dialog = gtk_message_dialog_new ( NULL,
GTK_DIALOG_MODAL,
message_type,
GTK_BUTTONS_CLOSE,
GTK_DIALOG_MODAL,
message_type,
GTK_BUTTONS_CLOSE,
@@
-151,7
+145,7
@@
popup_message(const struct msg *m)
m->where.line_number,
m->text);
m->where.line_number,
m->text);
- gtk_window_set_
transient_for(GTK_WINDOW(dialog), parent
);
+ gtk_window_set_
keep_above (GTK_WINDOW(dialog), TRUE
);
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_dialog_run(GTK_DIALOG(dialog));