bapm is an APM meter for Blackbox, which shows the battery status of your laptop in a decorated window, simulating the look of the Blackbox toolbar. bbapm is based on bbsload. This package is based on the FreeBSD port and the OpenBSD patches posted to http://bbtools.windsofstorm.net written by Michael Henson (mike at axl dot net). Various changes by yours truly.
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
$NetBSD: patch-aa,v 1.1.1.1 2002/09/07 20:22:54 jschauma Exp $
|
|
|
|
--- Baseresource.cc.orig Mon Aug 16 13:40:24 1999
|
|
+++ Baseresource.cc Sat Sep 7 15:58:39 2002
|
|
@@ -27,6 +27,9 @@
|
|
{
|
|
bbtool = toolwindow;
|
|
|
|
+ style.conf_filename = NULL;
|
|
+ style.style_filename = NULL;
|
|
+
|
|
if (bbtool->default_config) {
|
|
ReadDefaultResource();
|
|
ResourceType = DEFAULT;
|
|
@@ -210,7 +213,7 @@
|
|
char *
|
|
value_type;
|
|
|
|
- if (!ReadResourceFromFilename("bbsload.styleFile", "Bbsload.StyleFile")) {
|
|
+ if (!ReadResourceFromFilename("bbapm.styleFile", "Bbapm.StyleFile")) {
|
|
/*
|
|
* use default stylefile
|
|
*/
|
|
@@ -278,9 +281,9 @@
|
|
fprintf(stderr, "Using internal defaults.\n");
|
|
} else {
|
|
XrmCombineDatabase(db, &resource_db, False);
|
|
- if (!ReadResourceFromFilename("bbsload.styleFile", "Bbsload.StyleFile")) {
|
|
+ if (!ReadResourceFromFilename("bbapm.styleFile", "Bbapm.StyleFile")) {
|
|
fprintf(stderr,
|
|
- "Could not open default style file bbsload.styleFile: in %s\n",
|
|
+ "Could not open default style file bbapm.styleFile: in %s\n",
|
|
style.conf_filename);
|
|
fprintf(stderr, "Using internal defaults.\n");
|
|
} else
|