aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-11-04 09:07:37 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2013-11-04 09:07:37 -0500
commit6af44e7f07d84af3a2639f0db4a2031d814288c6 (patch)
tree3b4b241f6b057f84ba9b5670df8621622336dd07
parent2529d3684c209a6991bde33d832a72193383f7f1 (diff)
parentdc5db198cc3f2b5cb867f1be06726a477b13b341 (diff)
Merge branch 'master' of https://code.google.com/p/svte
-rw-r--r--config.mk2
-rw-r--r--svte.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index bf83dc0..0885e1d 100644
--- a/config.mk
+++ b/config.mk
@@ -27,7 +27,7 @@ MANPREFIX = ${PREFIX}/share/man
# includes and libs
-GTKINC=$(shell pkg-config --cflags gtk+-2.0 vte )
+GTKINC=$(shell pkg-config --cflags gtk+-2.0 vte glib-2.0)
GTKLIB=-lvte
INCS = -I. -I/usr/include ${GTKINC}
diff --git a/svte.c b/svte.c
index d75334f..7258663 100644
--- a/svte.c
+++ b/svte.c
@@ -19,7 +19,7 @@
#include "defaults.h"
#include <gdk/gdkkeysyms.h>
-#include <glib/goption.h>
+#include <glib.h>
#include <gtk/gtk.h>
#include <vte/vte.h>
#include <unistd.h>
@@ -596,7 +596,7 @@ static void parse_config_file(gchar *config_file) {
config->font = DEFAULT_FONT;
}
- if (NULL == config->window_width || NULL == config->window_height) {
+ if (0 == config->window_width || 0 == config->window_height) {
config->window_width = DEFAULT_WINDOW_WIDTH;
config->window_height = DEFAULT_WINDOW_HEIGHT;
}