Add GTK_PRINTER_OPTION_TYPE_ALTERNATIVE which is semantically the same as

2006-06-17  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprinteroption.h:
	* gtk/gtkprinteroption.c: Add GTK_PRINTER_OPTION_TYPE_ALTERNATIVE
	which is semantically the same as PICKONE, but is intended to
	show all options all the time.

	* gtk/gtkprinteroptionwidget.c: Implement ALTERNATIVE as radio
	group.
This commit is contained in:
Matthias Clasen
2006-06-17 04:53:22 +00:00
committed by Matthias Clasen
parent 505c6149cc
commit 320660fb81
5 changed files with 107 additions and 1 deletions

View File

@ -113,7 +113,8 @@ gtk_printer_option_set (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;