summaryrefslogtreecommitdiff
path: root/pluma/pluma-print-job.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-print-job.c')
-rw-r--r--pluma/pluma-print-job.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pluma/pluma-print-job.c b/pluma/pluma-print-job.c
index 69de06c3..72b24154 100644
--- a/pluma/pluma-print-job.c
+++ b/pluma/pluma-print-job.c
@@ -517,7 +517,11 @@ create_compositor (PlumaPrintJob *job)
print_font_numbers = pluma_prefs_manager_get_print_font_numbers ();
job->priv->compositor = GTK_SOURCE_PRINT_COMPOSITOR (
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_new (GTK_SOURCE_TYPE_PRINT_COMPOSITOR,
+#else
g_object_new (GTK_TYPE_SOURCE_PRINT_COMPOSITOR,
+#endif
"buffer", GTK_SOURCE_BUFFER (job->priv->doc),
"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)) &&