diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2011-02-15 18:23:02 -0500 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2011-02-21 20:42:05 -0500 |
| commit | 9dd6becfbe33e6334e19dce95e0e5048b9990e6b (patch) | |
| tree | 35f81f47302e907c671bac9dbac52a349b925b6c | |
| parent | 4857f97c671da6cb36be4e850e50501a01bb733d (diff) | |
kernelshark: Have trace_dialog() use parent_window if parent is NULL
Some places in the code does not have access to a window. Default
to the parent window if the parent is not supplied.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| -rw-r--r-- | trace-dialog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trace-dialog.c b/trace-dialog.c index 89415dd..c585277 100644 --- a/trace-dialog.c +++ b/trace-dialog.c | |||
| @@ -267,6 +267,9 @@ GtkResponseType trace_dialog(GtkWindow *parent, enum trace_dialog_type type, | |||
| 267 | va_list ap; | 267 | va_list ap; |
| 268 | int result; | 268 | int result; |
| 269 | 269 | ||
| 270 | if (!parent) | ||
| 271 | parent = GTK_WINDOW(parent_window); | ||
| 272 | |||
| 270 | switch (type) { | 273 | switch (type) { |
| 271 | case TRACE_GUI_INFO: | 274 | case TRACE_GUI_INFO: |
| 272 | mtype = GTK_MESSAGE_INFO; | 275 | mtype = GTK_MESSAGE_INFO; |
