[gnome-flashback] power-applet: don't hide icon in *_init
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] power-applet: don't hide icon in *_init
- Date: Wed, 16 Sep 2015 20:36:25 +0000 (UTC)
commit 24c25f508a9025991d0fae9dd1a3edb0063383db
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Sep 16 23:35:29 2015 +0300
power-applet: don't hide icon in *_init
gnome-flashback/libpower-applet/gf-power-applet.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libpower-applet/gf-power-applet.c
b/gnome-flashback/libpower-applet/gf-power-applet.c
index fc5cb28..aa03741 100644
--- a/gnome-flashback/libpower-applet/gf-power-applet.c
+++ b/gnome-flashback/libpower-applet/gf-power-applet.c
@@ -284,6 +284,12 @@ device_proxy_ready_cb (GObject *source_object,
g_warning ("Failed to get UPower device 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;
}
@@ -323,7 +329,6 @@ gf_power_applet_init (GfPowerApplet *applet)
applet->status_icon = gtk_status_icon_new_from_icon_name ("battery");
- gtk_status_icon_set_visible (applet->status_icon, FALSE);
gtk_status_icon_set_title (applet->status_icon, _("Power status"));
gtk_status_icon_set_tooltip_text (applet->status_icon, _("Power"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]