ec108e38f5
GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites. Not connected to the build yet. Survived a bulk from landry@ ok landry@
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
$OpenBSD: patch-gtk_gtkprintunixdialog_c,v 1.1.1.1 2011/03/11 09:58:31 ajacoutot Exp $
|
|
|
|
Fix build with gcc2.
|
|
|
|
--- gtk/gtkprintunixdialog.c.orig Wed Mar 9 16:47:57 2011
|
|
+++ gtk/gtkprintunixdialog.c Wed Mar 9 16:47:33 2011
|
|
@@ -2609,6 +2609,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;
|
|
@@ -2616,6 +2617,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 =
|
|
@@ -2892,9 +2895,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)
|