34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
$OpenBSD: patch-gtk_gtkprintunixdialog_c,v 1.3 2011/11/10 19:41:02 ajacoutot Exp $
|
|
|
|
Fix build with gcc 2.
|
|
|
|
--- gtk/gtkprintunixdialog.c.orig Thu Nov 10 18:38:03 2011
|
|
+++ gtk/gtkprintunixdialog.c Thu Nov 10 20:09:57 2011
|
|
@@ -2596,12 +2596,15 @@ draw_page_cb (GtkWidget *widget,
|
|
GtkNumberUpLayout number_up_layout;
|
|
gint start_x, end_x, start_y, end_y;
|
|
gint dx, dy;
|
|
+ gint font_size;
|
|
gboolean horizontal;
|
|
GtkPageSetup *page_setup;
|
|
gdouble paper_width, paper_height;
|
|
gdouble pos_x, pos_y;
|
|
gint pages_per_sheet;
|
|
gboolean ltr = TRUE;
|
|
+ PangoContext *pango_c = NULL;
|
|
+ PangoFontDescription *pango_f = NULL;
|
|
|
|
orientation = gtk_page_setup_get_orientation (priv->page_setup);
|
|
landscape =
|
|
@@ -2872,9 +2875,7 @@ draw_page_cb (GtkWidget *widget,
|
|
font = pango_font_description_new ();
|
|
pango_font_description_set_family (font, "sans");
|
|
|
|
- PangoContext *pango_c = NULL;
|
|
- PangoFontDescription *pango_f = NULL;
|
|
- gint font_size = 12 * PANGO_SCALE;
|
|
+ font_size = 12 * PANGO_SCALE;
|
|
|
|
pango_c = gtk_widget_get_pango_context (widget);
|
|
if (pango_c != NULL)
|