summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
845d4b4)
Before, the lack of table titles put some vertical space into the output
window. Now that table titles are shown, there's no white space left, so
this commit reintroduces some by putting half a line of vertical white
space between output items.
struct output_driver driver;
PsppireOutputWindow *viewer;
struct xr_driver *xr;
struct output_driver driver;
PsppireOutputWindow *viewer;
struct xr_driver *xr;
};
static struct output_driver_class psppire_output_class;
};
static struct output_driver_class psppire_output_class;
{
const GtkStyle *style = gtk_widget_get_style (GTK_WIDGET (viewer));
struct string_map options = STRING_MAP_INITIALIZER (options);
{
const GtkStyle *style = gtk_widget_get_style (GTK_WIDGET (viewer));
struct string_map options = STRING_MAP_INITIALIZER (options);
+ struct text_item *text_item;
PangoFontDescription *font_desc;
char *font_name;
PangoFontDescription *font_desc;
char *font_name;
/* Use GTK+ default font as proportional font. */
font_name = pango_font_description_to_string (style->font_desc);
/* Use GTK+ default font as proportional font. */
font_name = pango_font_description_to_string (style->font_desc);
pod->xr = xr_driver_create (cr, &options);
string_map_destroy (&options);
pod->xr = xr_driver_create (cr, &options);
string_map_destroy (&options);
+
+ text_item = text_item_create (TEXT_ITEM_PARAGRAPH, "X");
+ r = xr_rendering_create (pod->xr, text_item_super (text_item), cr);
+ xr_rendering_measure (r, &font_width, &pod->font_height);
+ /* xr_rendering_destroy (r); */
+ text_item_unref (text_item);
+ else
+ pod->viewer->y += pod->font_height / 2;
r = xr_rendering_create (pod->xr, item, cr);
if (r == NULL)
r = xr_rendering_create (pod->xr, item, cr);
if (r == NULL)