From 911d629d7833486a3d4cf94e4be7312b9b4c9c9e Mon Sep 17 00:00:00 2001
From: Matej Habrnal <mhabrnal@redhat.com>
Date: Tue, 2 Jun 2015 16:51:59 +0200
Subject: [PATCH] Use DBus to get problem data for detail dialog
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
---
src/gnome_abrt/wrappers/problem_details.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gnome_abrt/wrappers/problem_details.c b/src/gnome_abrt/wrappers/problem_details.c
index a787346..deadf0e 100644
--- a/src/gnome_abrt/wrappers/problem_details.c
+++ b/src/gnome_abrt/wrappers/problem_details.c
@@ -19,6 +19,7 @@
#include <common.h>
#include <libreport/internal_libreport_gtk.h>
#include <pygobject.h>
+#include "libabrt.h"
PyObject *p_show_problem_details_for_dir(PyObject *module, PyObject *args)
{
@@ -29,7 +30,8 @@ PyObject *p_show_problem_details_for_dir(PyObject *module, PyObject *args)
if (PyArg_ParseTuple(args, "s|O", &dir_str, &pygtkwnd))
{
GtkWindow *wnd = pygtkwnd ? GTK_WINDOW(pygtkwnd->obj) : NULL;
- GtkWidget *dialog = problem_details_dialog_new_for_dir(dir_str, wnd);
+ problem_data_t *problem_data = get_full_problem_data_over_dbus(dir_str);
+ GtkWidget *dialog = problem_details_dialog_new(problem_data, wnd);
if (dialog != NULL)
gtk_dialog_run(GTK_DIALOG(dialog));
--
2.1.0