Clean up APIs: Make async a setting instead of separate calls. Combine
2006-06-07 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.[ch]: Clean up APIs: Make async a setting instead of separate calls. Combine settings like show_dialog, show_preview and pdf_target into an action enum that you pass to gtk_print_dialog_run(). * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * demos/gtk-demo/printing.c: Update to new APIs
This commit is contained in:
		 Alexander Larsson
					Alexander Larsson
				
			
				
					committed by
					
						 Alexander Larsson
						Alexander Larsson
					
				
			
			
				
	
			
			
			 Alexander Larsson
						Alexander Larsson
					
				
			
						parent
						
							36f7ed300a
						
					
				
				
					commit
					9bea38595f
				
			| @ -99,9 +99,8 @@ main (int argc, char **argv) | ||||
|   gtk_print_operation_set_print_settings (print, settings); | ||||
|   gtk_print_operation_set_n_pages (print, 1); | ||||
|   gtk_print_operation_set_unit (print, GTK_UNIT_MM); | ||||
|   gtk_print_operation_set_show_dialog (print, FALSE); | ||||
|   g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL); | ||||
|   res = gtk_print_operation_run (print, NULL, NULL); | ||||
|   res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT, NULL, NULL); | ||||
|  | ||||
|   return 0; | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user