summaryrefslogtreecommitdiff
path: root/src/ring.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-05-08 22:12:10 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-05-08 22:12:10 +0000
commitfce004c8c6ed9b6e6dd6f2803bf4d86edb397562 (patch)
tree39c3d9fa9fcdfea001fe0c6918382543c826520a /src/ring.c
parent08b8caa553cf20f9fd7e40b1a1bd8c85294f438b (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.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/ring.c b/src/ring.c
index 0c99394..38290df 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -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