diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-24 19:48:13 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-24 19:48:13 +0200 |
commit | 128381fc93e56cefb2b02b973a2ef3380594c91f (patch) | |
tree | d8a15bc542594c1e040c58f37b4504c02d819909 /src/applet | |
parent | 2e1d04e7dd85551e9d33c51bbd6008ac9b1b84c1 (diff) | |
download | abrt-128381fc93e56cefb2b02b973a2ef3380594c91f.tar.gz abrt-128381fc93e56cefb2b02b973a2ef3380594c91f.tar.xz abrt-128381fc93e56cefb2b02b973a2ef3380594c91f.zip |
include/report/report.h: change API from having more functions to having more flags
Now we have three functions instead of four:
int report_problem_in_dir(const char *dirname, int flags);
int report_problem_in_memory(problem_data_t *pd, int flags);
int report_problem(problem_data_t *pd);
(third one is a trivial wrapper around report_problem_in_memory),
and two new flags LIBREPORT_ANALYZE and LIBREPORT_RELOAD_DATA.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/applet')
-rw-r--r-- | src/applet/applet_gtk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/applet/applet_gtk.c b/src/applet/applet_gtk.c index 74347963..9e3c68f7 100644 --- a/src/applet/applet_gtk.c +++ b/src/applet/applet_gtk.c @@ -86,7 +86,8 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin struct applet *applet = (struct applet *)user_data; if (applet->ap_daemon_running) { - analyze_and_report_dir(applet->ap_last_crash_id, LIBREPORT_NOWAIT); + report_problem_in_dir(applet->ap_last_crash_id, LIBREPORT_ANALYZE | LIBREPORT_NOWAIT); + GError *err = NULL; notify_notification_close(notification, &err); if (err != NULL) @@ -94,6 +95,7 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin error_msg("%s", err->message); g_error_free(err); } + hide_icon(applet); stop_animate_icon(applet); } |