diff options
author | Rob <rob.manea@gmail.com> | 2009-12-03 19:00:07 +0100 |
---|---|---|
committer | Rob <rob.manea@gmail.com> | 2009-12-03 19:00:07 +0100 |
commit | 24d8b632eaa7e9622603fbd58cd4bc360f965dd8 (patch) | |
tree | 18435c6692a451a15a99170d389a0e90c1c042e9 | |
parent | b61c04fd5af9747e2b868ed6d47d86a75e4baa2d (diff) |
generate COMMAND_ERROR if script file cannot be read
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | uzbl-core.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,7 @@ # first entries are for gnu make, 2nd for BSD make. see http://lists.uzbl.org/pipermail/uzbl-dev-uzbl.org/2009-July/000177.html -CFLAGS:=-std=c99 $(shell pkg-config --cflags gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0) -ggdb -Wall -W -DARCH="\"$(shell uname -m)\"" -lgthread-2.0 -DCOMMIT="\"$(shell git log | head -n1 | sed "s/.* //")\"" $(CPPFLAGS) -fPIC -W -Wall -Wextra -pedantic -ggdb3 -CFLAGS!=echo -std=c99 `pkg-config --cflags gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0` -ggdb -Wall -W -DARCH='"\""'`uname -m`'"\""' -lgthread-2.0 -DCOMMIT='"\""'`git log | head -n1 | sed "s/.* //"`'"\""' $(CPPFLAGS) -fPIC -W -Wall -Wextra -pedantic -ggdb3 +CFLAGS:=-std=c99 $(shell pkg-config --cflags gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0) -ggdb -Wall -W -DARCH="\"$(shell uname -m)\"" -lgthread-2.0 -DCOMMIT="\"$(shell git log | head -n1 | sed "s/.* //")\"" $(CPPFLAGS) -fPIC -W -Wall -Wextra -pedantic +CFLAGS!=echo -std=c99 `pkg-config --cflags gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0` -ggdb -Wall -W -DARCH='"\""'`uname -m`'"\""' -lgthread-2.0 -DCOMMIT='"\""'`git log | head -n1 | sed "s/.* //"`'"\""' $(CPPFLAGS) -fPIC -W -Wall -Wextra -pedantic LDFLAGS:=$(shell pkg-config --libs gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0) -pthread $(LDFLAGS) LDFLAGS!=echo `pkg-config --libs gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0` -pthread $(LDFLAGS) diff --git a/uzbl-core.c b/uzbl-core.c index 2e5e14e..85330b9 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -394,7 +394,9 @@ read_file_by_line (const gchar *path) { g_io_channel_unref (chan); } else { - fprintf(stderr, "File '%s' not be read.\n", path); + gchar *tmp = g_strdup_printf("File %s can not be read.", path); + send_event(COMMAND_ERROR, tmp, NULL); + g_free(tmp); } return lines; |