Revert "drop ancient vte support, even squeeze has 0.24"
This reverts commit df8db98179
.
Conflicts:
termite.c
This commit is contained in:
parent
a7534b37d3
commit
9434b5cadd
|
@ -25,8 +25,10 @@ static gboolean key_press_cb(GtkWidget *vte, GdkEventKey *event) {
|
|||
}
|
||||
|
||||
#ifdef CLICKABLE_URL
|
||||
#if VTE_CHECK_VERSION(0, 24, 0)
|
||||
static void get_vte_padding(VteTerminal *vte, int *w, int *h) {
|
||||
GtkBorder *border = NULL;
|
||||
|
||||
gtk_widget_style_get(GTK_WIDGET(vte), "inner-border", &border, NULL);
|
||||
if (border == NULL) {
|
||||
g_warning("VTE's inner-border property unavailable");
|
||||
|
@ -37,6 +39,9 @@ static void get_vte_padding(VteTerminal *vte, int *w, int *h) {
|
|||
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) {
|
||||
int xpad, ypad, tag;
|
||||
|
|
Loading…
Reference in New Issue