public PrintDialog(Photo [] photos) { this.photos = photos; #if ENABLE_CUSTOM_PRINT Glade.XML xml = new Glade.XML(null, "f-spot.glade", "print_dialog", "f-spot"); xml.Autoconnect(this); #endif print_job = new Gnome.PrintJob(Gnome.PrintConfig.Default()); //Render (); #if ENABLE_CUSTOM_PRINT int response = print_dialog.Run(); switch (response) { case (int)Gtk.ResponseType.Ok: print_job.Print(); break; } print_dialog.Destroy(); #else RunGnomePrintDialog(); #endif }
public PrintDialog (Photo [] photos) { this.photos = photos; #if ENABLE_CUSTOM_PRINT Glade.XML xml = new Glade.XML (null, "f-spot.glade", "print_dialog", "f-spot"); xml.Autoconnect (this); #endif print_job = new Gnome.PrintJob (Gnome.PrintConfig.Default ()); //Render (); #if ENABLE_CUSTOM_PRINT int response = print_dialog.Run (); switch (response) { case (int) Gtk.ResponseType.Ok: print_job.Print (); break; } print_dialog.Destroy (); #else RunGnomePrintDialog (); #endif }