summaryrefslogtreecommitdiffstats
path: root/src/Applet/CCApplet.cpp
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-01-18 13:19:54 +0100
committerKarel Klic <kklic@redhat.com>2010-01-18 13:19:54 +0100
commit4267cbcc29781ddcac00e259dfe05f3a26fbc2ec (patch)
tree213e47138967f1e7af4ee9ff9a3f2ed861cb5815 /src/Applet/CCApplet.cpp
parentb2d1bd9e4f387c5a014d3002d741f25421c37aac (diff)
parentb41833ed61f7b579d2a46b26d261616c21a6ae32 (diff)
downloadabrt-4267cbcc29781ddcac00e259dfe05f3a26fbc2ec.tar.gz
abrt-4267cbcc29781ddcac00e259dfe05f3a26fbc2ec.tar.xz
abrt-4267cbcc29781ddcac00e259dfe05f3a26fbc2ec.zip
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Applet/CCApplet.cpp')
-rw-r--r--src/Applet/CCApplet.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp
index 07e44d89..302fe0bf 100644
--- a/src/Applet/CCApplet.cpp
+++ b/src/Applet/CCApplet.cpp
@@ -192,20 +192,21 @@ void CApplet::SetIconTooltip(const char *format, ...)
void CApplet::CrashNotify(const char *format, ...)
{
va_list args;
- char *buf;
- int n;
- GError *err = NULL;
va_start(args, format);
- buf = NULL;
- n = vasprintf(&buf, format, args);
+ char *buf = xvasprintf(format, args);
va_end(args);
notify_notification_update(m_pNotification, _("Warning"), buf, NULL);
+
+ GError *err = NULL;
if (gtk_status_icon_is_embedded(m_pStatusIcon))
notify_notification_show(m_pNotification, &err);
if (err != NULL)
- error_msg(err->message);
+ {
+ error_msg("%s", err->message);
+ g_error_free(err);
+ }
}
void CApplet::OnAppletActivate_CB(GtkStatusIcon *status_icon, gpointer user_data)