gnome-power-manager r2800 - in trunk: . applets/inhibit
- From: kmaraas svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r2800 - in trunk: . applets/inhibit
- Date: Mon, 19 May 2008 19:25:57 +0000 (UTC)
Author: kmaraas
Date: Mon May 19 19:25:56 2008
New Revision: 2800
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2800&view=rev
Log:
2008-05-19 Kjartan Maraas <kmaraas gnome org>
* applets/inhibit/inhibit-applet.c: (gpm_applet_update_tooltip):
Don't g_strdup() strings when it's not needed.
Modified:
trunk/ChangeLog
trunk/applets/inhibit/inhibit-applet.c
Modified: trunk/applets/inhibit/inhibit-applet.c
==============================================================================
--- trunk/applets/inhibit/inhibit-applet.c (original)
+++ trunk/applets/inhibit/inhibit-applet.c Mon May 19 19:25:56 2008
@@ -346,12 +346,12 @@
{
const gchar *buf;
if (applet->proxy == NULL) {
- buf = g_strdup (_("Cannot connect to gnome-power-manager"));
+ buf = _("Cannot connect to gnome-power-manager");
} else {
if (applet->cookie > 0) {
- buf = g_strdup (_("Automatic sleep inhibited"));
+ buf = _("Automatic sleep inhibited");
} else {
- buf = g_strdup (_("Automatic sleep enabled"));
+ buf = _("Automatic sleep enabled");
}
}
gtk_widget_set_tooltip_text (GTK_WIDGET(applet), buf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]