explicitly depend on at least vte 0.28
This commit is contained in:
parent
e04b2e8638
commit
1a45b7e501
|
@ -8,7 +8,7 @@ Configuration is done at compile-time via ``config.h``.
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
============
|
============
|
||||||
|
|
||||||
Either vte (default) or vte3. You can use vte3 by building with ``make GTK3=1``.
|
A vte version >= 0.28. You can use vte3 by building with ``make GTK3=1``.
|
||||||
|
|
||||||
KEYBINDINGS
|
KEYBINDINGS
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -25,7 +25,6 @@ static gboolean key_press_cb(GtkWidget *vte, GdkEventKey *event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CLICKABLE_URL
|
#ifdef CLICKABLE_URL
|
||||||
#if VTE_CHECK_VERSION(0, 24, 0)
|
|
||||||
static void get_vte_padding(VteTerminal *vte, int *w, int *h) {
|
static void get_vte_padding(VteTerminal *vte, int *w, int *h) {
|
||||||
GtkBorder *border = NULL;
|
GtkBorder *border = NULL;
|
||||||
|
|
||||||
|
@ -39,9 +38,6 @@ static void get_vte_padding(VteTerminal *vte, int *w, int *h) {
|
||||||
gtk_border_free(border);
|
gtk_border_free(border);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
#define get_vte_padding vte_terminal_get_padding
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static char *check_match(VteTerminal *vte, int event_x, int event_y) {
|
static char *check_match(VteTerminal *vte, int event_x, int event_y) {
|
||||||
int xpad, ypad, tag;
|
int xpad, ypad, tag;
|
||||||
|
@ -95,11 +91,7 @@ int main(int argc, char **argv) {
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
command_argv = &argv[1];
|
command_argv = &argv[1];
|
||||||
} else {
|
} else {
|
||||||
#if VTE_CHECK_VERSION(0, 28, 0)
|
|
||||||
default_argv[0] = vte_get_user_shell();
|
default_argv[0] = vte_get_user_shell();
|
||||||
#else
|
|
||||||
default_argv[0] = g_strdup(g_getenv("SHELL"));
|
|
||||||
#endif
|
|
||||||
if (!default_argv[0]) default_argv[0] = "/bin/sh";
|
if (!default_argv[0]) default_argv[0] = "/bin/sh";
|
||||||
command_argv = default_argv;
|
command_argv = default_argv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue