diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-07-20 07:00:07 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-07-20 07:00:07 +0800 |
commit | a03df4987f97705a5fe42f88b51a1bd6ac90e0e9 (patch) | |
tree | 7d0606b50c39568747543b0dd0e30646bdbc572a /x11/gnomeapplets2/files/patch-battstat_battstat_applet.c | |
parent | 0af8a4748ae88023708176766da32651bafefce3 (diff) | |
download | marcuscom-ports-a03df4987f97705a5fe42f88b51a1bd6ac90e0e9.tar marcuscom-ports-a03df4987f97705a5fe42f88b51a1bd6ac90e0e9.tar.gz marcuscom-ports-a03df4987f97705a5fe42f88b51a1bd6ac90e0e9.tar.bz2 marcuscom-ports-a03df4987f97705a5fe42f88b51a1bd6ac90e0e9.tar.lz marcuscom-ports-a03df4987f97705a5fe42f88b51a1bd6ac90e0e9.tar.xz marcuscom-ports-a03df4987f97705a5fe42f88b51a1bd6ac90e0e9.tar.zst marcuscom-ports-a03df4987f97705a5fe42f88b51a1bd6ac90e0e9.zip |
Update to 2.7.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2488 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gnomeapplets2/files/patch-battstat_battstat_applet.c')
-rw-r--r-- | x11/gnomeapplets2/files/patch-battstat_battstat_applet.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/gnomeapplets2/files/patch-battstat_battstat_applet.c b/x11/gnomeapplets2/files/patch-battstat_battstat_applet.c new file mode 100644 index 000000000..6368545f0 --- /dev/null +++ b/x11/gnomeapplets2/files/patch-battstat_battstat_applet.c @@ -0,0 +1,26 @@ +--- battstat/battstat_applet.c.orig Mon Jul 19 18:31:16 2004 ++++ battstat/battstat_applet.c Mon Jul 19 18:34:41 2004 +@@ -474,7 +474,11 @@ + ) { + /* Warn that battery dropped below red_val */ + if(battery->lowbattnotification) { ++#ifdef __FreeBSD__ ++ new_string = get_remaining (apminfo.ai_batt_time); ++#else + new_string = get_remaining (apminfo.battery_time); ++#endif + new_label = g_strdup_printf (_("Your battery is running low (%d%%, %s). You should recharge your battery to avoid losing your work."), batt_life, new_string); + g_free (new_string); + battery->lowbattnotificationdialog = gtk_dialog_new_with_buttons ( +@@ -733,7 +737,11 @@ + } + + if (batt_state != 3) ++#ifdef __FreeBSD__ ++ rem_time = get_remaining(apminfo.ai_batt_time); ++#else + rem_time = get_remaining(apminfo.battery_time); ++#endif + else + rem_time = g_strdup(_(status[batt_state])); + |