From 128381fc93e56cefb2b02b973a2ef3380594c91f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 24 May 2011 19:48:13 +0200 Subject: 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 --- src/applet/applet_gtk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/applet') 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); } -- cgit