diff options
author | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-05-08 22:12:10 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-05-08 22:12:10 +0000 |
commit | fce004c8c6ed9b6e6dd6f2803bf4d86edb397562 (patch) | |
tree | 39c3d9fa9fcdfea001fe0c6918382543c826520a /src/ring.c | |
parent | 08b8caa553cf20f9fd7e40b1a1bd8c85294f438b (diff) |
Implement mouse button events and motion-event and any-event tracking.
* src/vte.c: Implement mouse button events and motion-event and any-event
tracking. Implement the rest of the special graphics characters.
Rename signals to be more consistent. Add thin wrappers for emitting
signals, and use them everywhere. Support pangox even when XFT isn't
available. Try to provide bold text again. Add signals for most of
the window manipulation control sequences. Hide the mouse cursor when
we get keyboard events. Use a different mouse cursor if the child is
mouse-aware. Handle eA() by treating it as as().
* src/caps.c, src/caps.h: Export definitions of VTE_CAP_CSI and friends.
* src/ring.c: Remove a check in vte_ring_at() which is already made before
the function is called.
Diffstat (limited to 'src/ring.c')
-rw-r--r-- | src/ring.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -161,16 +161,13 @@ vte_ring_append(VteRing *ring, gpointer data) gpointer vte_ring_at(VteRing *ring, long position) { - if (vte_ring_contains(ring, position)) { - if (ring->array[position % ring->max] == NULL) { - g_error("NULL at %ld(%ld) delta %ld, length %ld.\n", - position, position % ring->max, - ring->delta, ring->length); - } - g_assert(ring->array[position % ring->max]); - return ring->array[position % ring->max]; + if (ring->array[position % ring->max] == NULL) { + g_error("NULL at %ld(%ld) delta %ld, length %ld.\n", + position, position % ring->max, + ring->delta, ring->length); } - return NULL; + g_assert(ring->array[position % ring->max] != NULL); + return ring->array[position % ring->max]; } gboolean |