aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-26 23:30:46 -0500
committerTed Gould <ted@gould.cx>2011-09-26 23:30:46 -0500
commit48e560f68d557871c91d4bdac1619e47e573bab6 (patch)
treee314110cde6d7b54a0a20203f8f3fe581c648519
parentb1892b936fbaded8f025e5da6d1a8e40e2bb0cb4 (diff)
downloadayatana-indicator-session-48e560f68d557871c91d4bdac1619e47e573bab6.tar.gz
ayatana-indicator-session-48e560f68d557871c91d4bdac1619e47e573bab6.tar.bz2
ayatana-indicator-session-48e560f68d557871c91d4bdac1619e47e573bab6.zip
Switch changing restart to updating the image instead of recreating it.
-rw-r--r--src/indicator-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 833d19b..9510807 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -509,11 +509,11 @@ receive_signal (GDBusProxy * proxy,
}
else if (g_strcmp0(signal_name, "RestartRequired") == 0) {
if (greeter_mode == TRUE){
- self->devices.image = indicator_image_helper (GREETER_ICON_RESTART);
+ indicator_image_helper_update(self->devices.image, GREETER_ICON_RESTART);
}
else{
g_debug ("reboot required");
- self->devices.image = indicator_image_helper (ICON_RESTART);
+ indicator_image_helper_update(self->devices.image, ICON_RESTART);
}
}
}