[ekiga] Fixed the double-statusicon issue
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fixed the double-statusicon issue
- Date: Tue, 28 Jan 2014 19:17:54 +0000 (UTC)
commit e207f8e850ca2e26466952fa26f0c3d651c29808
Author: Julien Puydt <jpuydt free fr>
Date: Tue Jan 28 20:17:40 2014 +0100
Fixed the double-statusicon issue
lib/engine/gui/gtk-frontend/gtk-frontend.cpp | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
index 283573b..2a16317 100644
--- a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
+++ b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
@@ -144,8 +144,6 @@ GtkFrontend::~GtkFrontend ()
void
GtkFrontend::build ()
{
- StatusIcon *s = NULL;
-
boost::shared_ptr<Ekiga::ContactCore> contact_core =
core.get<Ekiga::ContactCore> ("contact-core");
boost::shared_ptr<Ekiga::PersonalDetails> details =
@@ -183,10 +181,9 @@ GtkFrontend::build ()
// BEWARE: the status icon needs the chat window at startup
// FIXME: the above BEWARE is related to a FIXME in the main window code,
// FIXME: hence should disappear with it
- s = status_icon_new (core);
- if (s) {
- status_icon =
- boost::shared_ptr<StatusIcon> (status_icon_new (core), g_object_unref);
+ status_icon =
+ boost::shared_ptr<StatusIcon> (status_icon_new (core), g_object_unref);
+ if (status_icon) {
g_signal_connect (status_icon.get (), "clicked",
G_CALLBACK (on_status_icon_clicked), this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]