[gedit] Use the proper word_wrap setting when printing.
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Use the proper word_wrap setting when printing.
- Date: Wed, 19 Aug 2009 14:41:11 +0000 (UTC)
commit f2c03e2f816acaf226d2548dae4fac94f5456f04
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Aug 19 16:40:29 2009 +0200
Use the proper word_wrap setting when printing.
When printing word wrap should be set according to the specified value,
not according to the current view. Bug #576090.
gedit/gedit-print-job.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-print-job.c b/gedit/gedit-print-job.c
index 436f246..3e26c42 100644
--- a/gedit/gedit-print-job.c
+++ b/gedit/gedit-print-job.c
@@ -516,7 +516,7 @@ create_compositor (GeditPrintJob *job)
"tab-width", gtk_source_view_get_tab_width (GTK_SOURCE_VIEW (job->priv->view)),
"highlight-syntax", gtk_source_buffer_get_highlight_syntax (GTK_SOURCE_BUFFER (job->priv->doc)) &&
gedit_prefs_manager_get_print_syntax_hl (),
- "wrap-mode", gtk_text_view_get_wrap_mode (GTK_TEXT_VIEW (job->priv->view)),
+ "wrap-mode", gedit_prefs_manager_get_print_wrap_mode (),
"print-line-numbers", gedit_prefs_manager_get_print_line_numbers (),
"print-header", gedit_prefs_manager_get_print_header (),
"print-footer", FALSE,
@@ -524,7 +524,7 @@ create_compositor (GeditPrintJob *job)
"line-numbers-font-name", print_font_numbers,
"header-font-name", print_font_header,
NULL));
-
+
g_free (print_font_body);
g_free (print_font_header);
g_free (print_font_numbers);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]