aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-02-15 18:23:02 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-02-21 20:42:05 -0500
commit9dd6becfbe33e6334e19dce95e0e5048b9990e6b (patch)
tree35f81f47302e907c671bac9dbac52a349b925b6c
parent4857f97c671da6cb36be4e850e50501a01bb733d (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.c3
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;