[Frugalware-darcs] setup: asklang: set backtitle

VMiklos vmiklos at frugalware.org
Fri Mar 31 00:48:34 CEST 2006


[asklang: set backtitle
VMiklos <vmiklos at frugalware.org>**20051102212049] {
hunk ./src/Makefile 9
-setup: setup.o
+setup: setup.o util.o
hunk ./src/plugins/Makefile 12
-asklang: asklang.o
-	$(CC) -shared -Wl,-soname,asklang.so -o 01asklang.so $< $(LDFLAGS)
+asklang: asklang.o ../util.o
+	$(CC) -shared -Wl,-soname,asklang.so -o 01asklang.so asklang.o \
+		../util.o $(LDFLAGS)
hunk ./src/plugins/asklang.c 5
+#include <util.h>
hunk ./src/plugins/asklang.c 35
+	dialog_vars.backtitle=gen_backtitle("Selecting language");
+	dlg_put_backtitle();
hunk ./src/util.c 10
+char *gen_backtitle(char *section)
+{
+	char *backtitle;
+	char *version = get_version();
+	MALLOC(backtitle, 256);
+
+	snprintf(backtitle, 255, "%s - %s %s", section, version, _("Setup"));
+	FREE(version);
+	return(backtitle);
+}
+
hunk ./src/util.h 8
+char *gen_backtitle(char *section);
}


More information about the Frugalware-darcs mailing list