Ejemplo n.º 1
0
        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
        }
Ejemplo n.º 2
0
        private void RunGnomePrintDialog()
        {
            Gnome.PrintDialog gnome_dialog = new Gnome.PrintDialog(print_job, "Print Photos", 0);
            int response = gnome_dialog.Run();

            Render();

            switch (response)
            {
            case (int)Gnome.PrintButtons.Print:
                print_job.Print();
                break;

            case (int)Gnome.PrintButtons.Preview:
                new Gnome.PrintJobPreview(print_job, "Testing").Show();
                break;
            }
            gnome_dialog.Destroy();
        }
Ejemplo n.º 3
0
		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
		}