diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-09-02 11:19:06 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-09-02 11:19:06 +0200 |
| commit | 6f27b31e64229bf15670b48a19b0348888b0ca28 (patch) | |
| tree | da9ce671c4927dff3578c9e04e17981016a41b0d /src/Applet/CCApplet.cpp | |
| parent | c1805ac5a42372811b454d881559276a34ff7a87 (diff) | |
| download | abrt-6f27b31e64229bf15670b48a19b0348888b0ca28.tar.gz abrt-6f27b31e64229bf15670b48a19b0348888b0ca28.tar.xz abrt-6f27b31e64229bf15670b48a19b0348888b0ca28.zip | |
APPLET: removed the warning bubble about not running abrt service (walters)
Diffstat (limited to 'src/Applet/CCApplet.cpp')
| -rw-r--r-- | src/Applet/CCApplet.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index 1d6ae17..75c2fbe 100644 --- a/src/Applet/CCApplet.cpp +++ b/src/Applet/CCApplet.cpp @@ -157,7 +157,6 @@ void CApplet::SetIconTooltip(const char *format, ...) va_end(args); if (n >= 0 && buf) { - notify_notification_update(m_pNotification, _("Warning"), buf, NULL); gtk_status_icon_set_tooltip_text(m_pStatusIcon, buf); free(buf); } @@ -167,6 +166,21 @@ void CApplet::SetIconTooltip(const char *format, ...) } } +void CApplet::CrashNotify(const char *format, ...) +{ + va_list args; + char *buf; + int n; + + va_start(args, format); + buf = NULL; + n = vasprintf(&buf, format, args); + va_end(args); + + notify_notification_update(m_pNotification, _("Warning"), buf, NULL); + notify_notification_show(m_pNotification, NULL); +} + void CApplet::OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data) { CApplet *applet = (CApplet *)user_data; @@ -203,7 +217,6 @@ void CApplet::OnMenuPopup_cb(GtkStatusIcon *status_icon, void CApplet::ShowIcon() { gtk_status_icon_set_visible(m_pStatusIcon, true); - notify_notification_show(m_pNotification, NULL); } void CApplet::onHide_cb(GtkMenuItem *menuitem, gpointer applet) { |
