[ekiga/ds-gsettings2: 32/33] Statusicon: Fixed warning in case the status icon should not run.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gsettings2: 32/33] Statusicon: Fixed warning in case the status icon should not run.
- Date: Sat, 5 Oct 2013 12:04:01 +0000 (UTC)
commit 854566e7e60542641fa79a55d16151501f558597
Author: Damien Sandras <dsandras beip be>
Date: Sat Oct 5 11:00:47 2013 +0200
Statusicon: Fixed warning in case the status icon should not run.
lib/engine/gui/gtk-frontend/gtk-frontend.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
index ea404be..5fe97e3 100644
--- a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
+++ b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
@@ -186,8 +186,9 @@ GtkFrontend::build ()
// FIXME: hence should disappear with it
status_icon =
boost::shared_ptr<StatusIcon> (status_icon_new (core), g_object_unref);
- g_signal_connect (status_icon.get (), "clicked",
- G_CALLBACK (on_status_icon_clicked), this);
+ if (status_icon)
+ g_signal_connect (status_icon.get (), "clicked",
+ G_CALLBACK (on_status_icon_clicked), this);
// BEWARE: the main window uses the chat window at startup already,
// and later on needs the call window, addressbook window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]