Enable embedded page setup properties in the (Unix) Print dialog on newer GTK versions (closes #2870596).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4286 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-10-03 16:17:22 +00:00
parent 3a04de1144
commit a41e95b392
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,9 @@
* doc/geany.txt, doc/geany.html:
Improve information about predefined keybindings which are
commonly used across applications (patch by Lex Trotman, thanks).
* src/printing.c:
Enable embedded page setup properties in the (Unix) Print dialog
on newer GTK versions (closes #2870596).
2009-10-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -804,6 +804,9 @@ static void printing_print_gtk(GeanyDocument *doc)
gtk_print_operation_set_unit(op, GTK_UNIT_POINTS);
gtk_print_operation_set_show_progress(op, TRUE);
#if GTK_CHECK_VERSION(2, 18, 0)
gtk_print_operation_set_embed_page_setup(op, TRUE);
#endif
g_signal_connect(op, "begin-print", G_CALLBACK(begin_print), dinfo);
g_signal_connect(op, "end-print", G_CALLBACK(end_print), dinfo);