1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 08:29:27 +02:00

Stop using deprecated function

This commit is contained in:
Leland Lucius 2020-05-24 16:54:15 -05:00
parent 30dbdf40a9
commit a5d765c9c5

View File

@ -180,7 +180,7 @@ static GtkWidget* find_widget(GtkWidget* parent, const gchar* name, int depth)
// printf("%*.*c%s\n", depth, depth, ' ', gtk_widget_get_name(parent));
GtkWidget *widget = NULL;
if (g_strcasecmp(gtk_widget_get_name(parent), name) == 0)
if (g_ascii_strncasecmp(gtk_widget_get_name(parent), name, strlen(name)) == 0)
{
return parent;
}