Revert "drop ancient vte support, even squeeze has 0.24"

This reverts commit df8db98179.

Conflicts:
	termite.c
This commit is contained in:
Daniel Micay 2012-05-24 15:03:14 -04:00
parent a7534b37d3
commit 9434b5cadd
1 changed files with 5 additions and 0 deletions

View File

@ -25,8 +25,10 @@ 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;
gtk_widget_style_get(GTK_WIDGET(vte), "inner-border", &border, NULL); gtk_widget_style_get(GTK_WIDGET(vte), "inner-border", &border, NULL);
if (border == NULL) { if (border == NULL) {
g_warning("VTE's inner-border property unavailable"); 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); 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;