diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-06-17 04:53:22 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-17 04:53:22 +0000 |
commit | 320660fb8100271f4abc59a0d86ff02864288dc6 (patch) | |
tree | 407a104d5da26dc1b2dc0eb32f5ff45c9d3637a6 /gtk/gtkprinteroption.c | |
parent | 505c6149ccb651e9b9c0d19c6f82da5b43016ac9 (diff) | |
download | gtk+-320660fb8100271f4abc59a0d86ff02864288dc6.tar.gz |
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.
Diffstat (limited to 'gtk/gtkprinteroption.c')
-rw-r--r-- | gtk/gtkprinteroption.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkprinteroption.c b/gtk/gtkprinteroption.c index 92aac67901..821efbd3e7 100644 --- a/gtk/gtkprinteroption.c +++ b/gtk/gtkprinteroption.c @@ -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; |