Merge branch 'cursor' of https://github.com/vodik/termite into cursor-blink

This commit is contained in:
Daniel Micay 2012-06-01 06:00:04 -04:00
commit 178859fe3c
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ static const char *url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*";
static const char *font = "Monospace 9"; static const char *font = "Monospace 9";
static const long scrollback_lines = 1000; static const long scrollback_lines = 1000;
static const bool cursor_blink = false;
static const char *foreground_color = "#dcdccc"; static const char *foreground_color = "#dcdccc";
static const char *background_color = "#3f3f3f"; static const char *background_color = "#3f3f3f";

View File

@ -261,6 +261,9 @@ int main(int argc, char **argv) {
vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide); vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide);
gtk_window_set_has_resize_grip(GTK_WINDOW(window), resize_grip); gtk_window_set_has_resize_grip(GTK_WINDOW(window), resize_grip);
if (!cursor_blink)
vte_terminal_set_cursor_blink_mode(VTE_TERMINAL(vte), VTE_CURSOR_BLINK_OFF);
#ifdef TRANSPARENCY #ifdef TRANSPARENCY
GdkScreen *screen = gtk_widget_get_screen(window); GdkScreen *screen = gtk_widget_get_screen(window);
GdkVisual *visual = gdk_screen_get_rgba_visual(screen); GdkVisual *visual = gdk_screen_get_rgba_visual(screen);