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)
This commit is contained in:
Owen Taylor 2002-02-25 02:23:00 +00:00 committed by Owen Taylor
parent 4beaa9e4a6
commit 8ae6ab42b6
8 changed files with 37 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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)
2002-02-25 Matthias Clasen <maclas@gmx.de>
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More

View File

@ -1,3 +1,8 @@
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)
2002-02-25 Matthias Clasen <maclas@gmx.de>
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More

View File

@ -1,3 +1,8 @@
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)
2002-02-25 Matthias Clasen <maclas@gmx.de>
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More

View File

@ -1,3 +1,8 @@
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)
2002-02-25 Matthias Clasen <maclas@gmx.de>
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More

View File

@ -1,3 +1,8 @@
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)
2002-02-25 Matthias Clasen <maclas@gmx.de>
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More

View File

@ -1,3 +1,8 @@
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)
2002-02-25 Matthias Clasen <maclas@gmx.de>
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More

View File

@ -1,3 +1,8 @@
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)
2002-02-25 Matthias Clasen <maclas@gmx.de>
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More

View File

@ -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);