mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Accept "true" as a true value in printer settings
Some of the settings come directly from cups config files, which have no case sensitivity requirement, so we should not be more picky. Bug 594652.
This commit is contained in:
parent
aa9bb7d8e4
commit
3dd459caea
@ -854,7 +854,7 @@ update_widgets (GtkPrinterOptionWidget *widget)
|
||||
switch (source->type)
|
||||
{
|
||||
case GTK_PRINTER_OPTION_TYPE_BOOLEAN:
|
||||
if (strcmp (source->value, "True") == 0)
|
||||
if (g_ascii_strcasecmp (source->value, "True") == 0)
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check), TRUE);
|
||||
else
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check), FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user