[gnome-flashback] bluetooth-applet: don't hide icon in *_init
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] bluetooth-applet: don't hide icon in *_init
- Date: Wed, 16 Sep 2015 21:23:46 +0000 (UTC)
commit dc4ae140e93017307cbb2e45f2d2cb56109dd4ec
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Sep 16 23:56:56 2015 +0300
bluetooth-applet: don't hide icon in *_init
.../libbluetooth-applet/gf-bluetooth-applet.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c
b/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c
index 0b4c5e8..023fde2 100644
--- a/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c
+++ b/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c
@@ -331,6 +331,12 @@ rfkill_proxy_ready_cb (GObject *source_object,
g_warning ("Failed to get Rfkill proxy - %s", error->message);
g_error_free (error);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
+ gtk_status_icon_set_visible (applet->status_icon, FALSE);
+
+ G_GNUC_END_IGNORE_DEPRECATIONS
+
return;
}
@@ -410,7 +416,6 @@ gf_bluetooth_applet_init (GfBluetoothApplet *applet)
applet->status_icon = gtk_status_icon_new_from_icon_name ("bluetooth-active");
- gtk_status_icon_set_visible (applet->status_icon, FALSE);
gtk_status_icon_set_title (applet->status_icon, _("Bluetooth"));
gtk_status_icon_set_tooltip_text (applet->status_icon, _("Bluetooth"));
@@ -436,8 +441,6 @@ gf_bluetooth_applet_init (GfBluetoothApplet *applet)
G_CALLBACK (row_deleted_cb), applet);
g_signal_connect (applet->model, "row-inserted",
G_CALLBACK (row_inserted_cb), applet);
-
- gf_bluetooth_applet_sync (applet);
}
GfBluetoothApplet *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]