forked from AuroraMiddleware/gtk
Applied patch from Ross McFarland <rwmcfa1@neces.com>, initialize *count_p
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org> * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0 before doing anything to prevent garbage returns.
This commit is contained in:
parent
8ad788e914
commit
532062df96
@ -1,3 +1,9 @@
|
||||
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
|
||||
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
|
||||
before doing anything to prevent garbage returns.
|
||||
|
||||
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkviewport.c: Implement RTL flipping for
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
|
||||
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
|
||||
before doing anything to prevent garbage returns.
|
||||
|
||||
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkviewport.c: Implement RTL flipping for
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
|
||||
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
|
||||
before doing anything to prevent garbage returns.
|
||||
|
||||
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkviewport.c: Implement RTL flipping for
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
|
||||
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
|
||||
before doing anything to prevent garbage returns.
|
||||
|
||||
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkviewport.c: Implement RTL flipping for
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
|
||||
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
|
||||
before doing anything to prevent garbage returns.
|
||||
|
||||
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkviewport.c: Implement RTL flipping for
|
||||
|
@ -443,6 +443,8 @@ quick_accel_find (GtkAccelGroup *accel_group,
|
||||
GtkAccelGroupEntry *entry;
|
||||
GtkAccelGroupEntry key;
|
||||
|
||||
*count_p = 0;
|
||||
|
||||
if (!accel_group->n_accels)
|
||||
return NULL;
|
||||
|
||||
@ -460,7 +462,7 @@ quick_accel_find (GtkAccelGroup *accel_group,
|
||||
entry[-1].key.accel_mods != accel_mods)
|
||||
break;
|
||||
/* count equal members */
|
||||
for (*count_p = 0; entry + *count_p < accel_group->priv_accels + accel_group->n_accels; (*count_p)++)
|
||||
for (; entry + *count_p < accel_group->priv_accels + accel_group->n_accels; (*count_p)++)
|
||||
if (entry[*count_p].key.accel_key != accel_key ||
|
||||
entry[*count_p].key.accel_mods != accel_mods)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user