-/* GTK - The GIMP Toolkit
+/* GTK - The GTK+ Toolkit
* gtkprinteroption.c: Handling possible settings for a specific printer setting
* Copyright (C) 2006, Red Hat, Inc.
*
GtkPrinterOption *
gtk_printer_option_new (const char *name, const char *display_text,
- GtkPrinterOptionType type)
+ GtkPrinterOptionType type)
{
GtkPrinterOption *option;
if (strcmp (option->value, value) == 0)
return;
- if (option->type == GTK_PRINTER_OPTION_TYPE_PICKONE &&
+ if ((option->type == GTK_PRINTER_OPTION_TYPE_PICKONE ||
+ option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE) &&
value != NULL)
{
int i;
}
if (i == option->num_choices)
- return; /* Not found in availible choices */
+ return; /* Not found in available choices */
}
g_free (option->value);