diff options
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])); + |