public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Filippo Giunchedi <filippo@esaurito.net>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH] bluez-gnome: remove unused gtk_status_icon_new/g_object_unref
Date: Sat, 23 May 2009 14:40:30 +0200	[thread overview]
Message-ID: <20090523124030.GA14304@esaurito.net> (raw)

Hi,
with the patch below I am able to fix
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529026
I'm not sure if creating a new empty status icon is of any use e.g. in GNOME
systray.

---
 applet/notify.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/applet/notify.c b/applet/notify.c
index 02a912a..7daac1a 100644
--- a/applet/notify.c
+++ b/applet/notify.c
@@ -92,9 +92,6 @@ GtkStatusIcon *init_notification(void)
 {
 	notify_init("bluetooth-manager");
 
-	statusicon = gtk_status_icon_new();
-	g_object_unref(statusicon);
-
 	statusicon = gtk_status_icon_new_from_icon_name("bluetooth");
 
 	//gtk_status_icon_set_tooltip(statusicon, _("Bluetooth Manager"));
-- 
1.6.3.1


filippo
--
Filippo Giunchedi - http://esaurito.net - 0x6B79D401

Man was made at the end of the week's work when God was tired.
-- Mark Twain

                 reply	other threads:[~2009-05-23 12:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090523124030.GA14304@esaurito.net \
    --to=filippo@esaurito.net \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox