]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkprinteroption.c
Practically everything changed.
[~andy/gtk] / gtk / gtkprinteroption.c
index 7aee3820aff834b21c4ad8b2cef061cec280e0e7..c898b5e9cd4bd413370c14f2c7c7bbab1c7f863e 100644 (file)
@@ -1,4 +1,4 @@
-/* GTK - The GIMP Toolkit
+/* GTK - The GTK+ Toolkit
  * gtkprinteroption.c: Handling possible settings for a specific printer setting
  * Copyright (C) 2006, Red Hat, Inc.
  *
@@ -84,7 +84,7 @@ gtk_printer_option_class_init (GtkPrinterOptionClass *class)
 
 GtkPrinterOption *
 gtk_printer_option_new (const char *name, const char *display_text,
-                              GtkPrinterOptionType type)
+                       GtkPrinterOptionType type)
 {
   GtkPrinterOption *option;
 
@@ -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;
@@ -128,7 +129,7 @@ gtk_printer_option_set (GtkPrinterOption *option,
        }
 
       if (i == option->num_choices)
-       return; /* Not found in availible choices */
+       return; /* Not found in available choices */
     }
   
   g_free (option->value);