Accept "<WINDOWTYPE>" as a valid accel path. (#144427, Philip Kendall)

* gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
	"<WINDOWTYPE>" as a valid accel path.  (#144427, Philip
	Kendall)
This commit is contained in:
Matthias Clasen 2004-06-22 15:56:24 +00:00
parent 82f9e73aba
commit cf4eb7e1ad
5 changed files with 17 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
"<WINDOWTYPE>" as a valid accel path. (#144427, Philip
Kendall)
* gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure
this gets defined for all backends, so linux-fb has a
chance of compiling.

View File

@ -1,5 +1,9 @@
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
"<WINDOWTYPE>" as a valid accel path. (#144427, Philip
Kendall)
* gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure
this gets defined for all backends, so linux-fb has a
chance of compiling.

View File

@ -1,5 +1,9 @@
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
"<WINDOWTYPE>" as a valid accel path. (#144427, Philip
Kendall)
* gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure
this gets defined for all backends, so linux-fb has a
chance of compiling.

View File

@ -1,5 +1,9 @@
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
"<WINDOWTYPE>" as a valid accel path. (#144427, Philip
Kendall)
* gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure
this gets defined for all backends, so linux-fb has a
chance of compiling.

View File

@ -121,7 +121,7 @@ _gtk_accel_path_is_valid (const gchar *accel_path)
accel_path[1] == '<' || accel_path[1] == '>' || !accel_path[1])
return FALSE;
p = strchr (accel_path, '>');
if (!p || p[1] != '/')
if (!p || (p[1] != 0 && p[1] != '/'))
return FALSE;
return TRUE;
}