openbsd-ports/x11/gtk+3/patches/patch-gtk_gtkprintunixdialog_c
2011-04-06 07:49:31 +00:00

35 lines
1.2 KiB
Plaintext

$OpenBSD: patch-gtk_gtkprintunixdialog_c,v 1.2 2011/04/06 07:49:31 ajacoutot Exp $
Fix build with gcc2.
--- gtk/gtkprintunixdialog.c.orig Sat Apr 2 20:10:38 2011
+++ gtk/gtkprintunixdialog.c Mon Apr 4 08:45:40 2011
@@ -2607,6 +2607,7 @@ draw_page_cb (GtkWidget *widget,
GtkNumberUpLayout number_up_layout;
gint start_x, end_x, start_y, end_y;
gint dx, dy;
+ gint font_size;
gint width, height;
gboolean horizontal;
GtkPageSetup *page_setup;
@@ -2614,6 +2615,8 @@ draw_page_cb (GtkWidget *widget,
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 =
@@ -2890,9 +2893,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)