Commit 29e1cec4 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Remove old #ifdef HAVE_foo. Ditto.

2005-02-04  Morten Welinder  <terra@gnome.org>

	* src/print.c (print_hf_element): Remove old #ifdef HAVE_foo.
	* src/cell-draw.c (cell_draw): Ditto.
parent 70df3e06
2005-02-04 Morten Welinder <terra@gnome.org>
* src/print.c (print_hf_element): Remove old #ifdef HAVE_foo.
* src/cell-draw.c (cell_draw): Ditto.
* src/print-cell.c: Eliminate old printing code.
* src/style.c (style_font_new_simple): No need for setting
......
2005-02-04 Morten Welinder <terra@gnome.org>
* src/print.c (print_hf_element): Remove old #ifdef HAVE_foo.
* src/cell-draw.c (cell_draw): Ditto.
* src/print-cell.c: Eliminate old printing code.
* src/style.c (style_font_new_simple): No need for setting
......
......@@ -246,14 +246,12 @@ cell_draw (GnmCell const *cell, GdkGC *gc, GdkDrawable *drawable,
gdk_gc_set_rgb_fg_color (gc, color);
if (rv->rotation) {
#ifdef HAVE_PANGO_CONTEXT_SET_MATRIX
PangoMatrix rotmat = PANGO_MATRIX_INIT;
context = pango_layout_get_context (rv->layout);
pango_matrix_rotate (&rotmat, rv->rotation);
pango_context_set_matrix (context, &rotmat);
pango_layout_context_changed (rv->layout);
#endif
}
gdk_draw_layout (drawable, gc,
......@@ -262,10 +260,8 @@ cell_draw (GnmCell const *cell, GdkGC *gc, GdkDrawable *drawable,
rv->layout);
if (context) {
#ifdef HAVE_PANGO_CONTEXT_SET_MATRIX
pango_context_set_matrix (context, NULL);
pango_layout_context_changed (rv->layout);
#endif
}
}
}
2005-02-04 Morten Welinder <terra@gnome.org>
* dialog-search.c (make_matches_table): Remove old #ifdef
HAVE_foos.
2005-01-20 Jody Goldberg <jody@gnome.org>
* dialog-sheet-order.c : Support a toggle for rtl
......
......@@ -432,11 +432,8 @@ make_matches_table (GtkTreeModel *model)
NULL);
/* Set single_paragraph_mode to ensure fixed height. */
g_object_set (cell, "single_paragraph_mode", TRUE, NULL);
#ifdef HAVE_PANGO_LAYOUT_SET_ELLIPSIZE
if (i == COL_CONTENTS &&
g_object_class_find_property (G_OBJECT_GET_CLASS (cell), "ellipsize"))
if (i == COL_CONTENTS)
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
#endif
gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_GROW_ONLY);
gtk_tree_view_append_column (tree_view, column);
}
......
......@@ -38,9 +38,7 @@
#include <libgnomeprint/gnome-print-job.h>
#include <libgnomeprint/gnome-print-config.h>
#ifdef HAVE_GNOME_PRINT_PANGO_CREATE_LAYOUT
#include <libgnomeprint/gnome-print-pango.h>
#endif
#include <libgnomeprintui/gnome-print-job-preview.h>
#include <libgnomeprintui/gnome-print-dialog.h>
......@@ -310,7 +308,6 @@ print_hf_element (PrintJobInfo const *pj, char const *format,
g_return_if_fail (text != NULL);
if (text[0]) {
#ifdef HAVE_GNOME_PRINT_PANGO_CREATE_LAYOUT
const double dummy_dpi = 300; /* FIXME: What exactly is this? */
PangoLayout *layout =
gnome_print_pango_create_layout (pj->print_context);
......@@ -357,7 +354,6 @@ print_hf_element (PrintJobInfo const *pj, char const *format,
}
gnome_print_moveto (pj->print_context, x, y);
gnome_print_show (pj->print_context, text);
#endif
}
g_free (text);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment