[gnome-flashback] power-applet: hide icon when created and show only if/when needed
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] power-applet: hide icon when created and show only if/when needed
- Date: Thu, 10 Sep 2015 00:00:29 +0000 (UTC)
commit 8f9c1e804237603eac984f03bf562813e0742f41
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Sep 10 01:45:02 2015 +0300
power-applet: hide icon when created and show only if/when needed
gnome-flashback/libpower-applet/gf-power-applet.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libpower-applet/gf-power-applet.c
b/gnome-flashback/libpower-applet/gf-power-applet.c
index afdd283..fc4ad3e 100644
--- a/gnome-flashback/libpower-applet/gf-power-applet.c
+++ b/gnome-flashback/libpower-applet/gf-power-applet.c
@@ -321,8 +321,9 @@ gf_power_applet_init (GfPowerApplet *applet)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- applet->status_icon = gtk_status_icon_new ();
+ 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]