summaryrefslogtreecommitdiff
path: root/gtk/gtksocket.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-02-25 02:23:00 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-25 02:23:00 +0000
commit8ae6ab42b63627bcfec50b2a6a71fbdbc8142c77 (patch)
tree4a2b204940bd6f89bb3c184cec8c6a6fad0cb757 /gtk/gtksocket.c
parent4beaa9e4a6e3a44528157086dc9d7f42d6eb3fbe (diff)
downloadgtk+-8ae6ab42b63627bcfec50b2a6a71fbdbc8142c77.tar.gz
Fix off-by-one error. (Pointed out by Anders Carlsson)
Sun Feb 24 21:18:20 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtksocket.c (gtk_socket_end_embedding): Fix off-by-one error. (Pointed out by Anders Carlsson)
Diffstat (limited to 'gtk/gtksocket.c')
-rw-r--r--gtk/gtksocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index 8546b95962..a6d6e1e735 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -368,8 +368,8 @@ gtk_socket_end_embedding (GtkSocket *socket)
g_object_unref (socket->plug_window);
socket->plug_window = NULL;
- /* Remove from end to avoid indexes shiting. This is evil */
- for (i = socket->accel_group->n_accels; i >= 0; i--)
+ /* Remove from end to avoid indexes shifting. This is evil */
+ for (i = socket->accel_group->n_accels - 1; i >= 0; i--)
{
GtkAccelGroupEntry *accel_entry = &socket->accel_group->priv_accels[i];
gtk_accel_group_disconnect (socket->accel_group, accel_entry->closure);