Commit 8ae6ab42 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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)
parent 4beaa9e4
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment