From 869a5edc9ea17d09544cd89a8c096f44e4741a55 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Fri, 7 Jun 2002 16:58:50 +0000 Subject: Check for pangoxft with Xft1 or Xft2, hopefully getting things right for * configure.in: Check for pangoxft with Xft1 or Xft2, hopefully getting things right for either case. Patches by andersca and otaylor. * src/reaper.c, src/reaper.h: Add a singleton object to watch for SIGCHLD when child processes quit. * src/vte.c, src/vte.h: Add get_cursor_position(). Remove get_snapshot() and free_shapshot(). Emit a "child-exited" signal when a child started with fork_command() exits. Fix a logic bug that caused us to scroll to the bottom even if the user just pressed and released a modifier key. Fix saving of the font in set_font() in most cases, where we weren't saving the new font before. Scroll-to-bottom on input method commits, which are also the result of keystrokes, when scroll-on-keystroke is enabled. * src/vte.c: Use FcNameUnparse() instead of XftNameUnparse in Xft2. Patch from otaylor. * src/vte.defs: Add. Not very useful yet. * src/vteaccess.c: Rework to use get_text() and get_cursor_position() instead of get_snapshot(), so that selection and accessibility both agree on what's visible (or "visible"). --- src/vte.h | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'src/vte.h') diff --git a/src/vte.h b/src/vte.h index 7b79ad9..f387661 100644 --- a/src/vte.h +++ b/src/vte.h @@ -64,6 +64,7 @@ typedef struct _VteTerminalClass { /*< private > */ /* Signals we might emit. */ guint eof_signal; + guint child_exited_signal; guint char_size_changed_signal; guint window_title_changed_signal; guint icon_title_changed_signal; @@ -82,26 +83,6 @@ typedef struct _VteTerminalClass { guint move_window_signal; } VteTerminalClass; -/* A snapshot of the screen contents. */ -typedef struct _VteTerminalSnapshot { - struct { - int x, y; /* Location of the cursor. */ - } cursor; - int rows, columns; /* Size of the screen[shot]. */ - gboolean cursor_visible; - struct VteTerminalSnapshotCell { - gunichar c; /* The character itself. */ - struct { - /* Colors of this character. */ - GdkColor foreground, background; - /* Is it underlined? */ - gboolean underline; - /* Is it a graphic character? */ - gboolean alternate; - } attributes; - } **contents; -} VteTerminalSnapshot; - /* Values for "what should happen when the user hits backspace/delete". Use * AUTO unless the user can cause them to be overridden. */ typedef enum { @@ -225,6 +206,8 @@ char *vte_terminal_get_text(VteTerminal *terminal, gboolean(*is_selected)(VteTerminal * terminal, long column, long row), GArray *attributes); +void vte_terminal_get_cursor_position(VteTerminal *terminal, + long *column, long *row); /* Display string matching: clear all matching expressions. */ void vte_terminal_match_clear_all(VteTerminal *terminal); -- cgit v1.2.3