pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libreptool.pc
+distclean-local:
+ if test "$(srcdir)" = "."; then :; else \
+ rm -f ChangeLog; \
+ fi
+
+ChangeLog:
+ @echo Creating $@
+ @if test -d "$(srcdir)/.git"; then \
+ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat -M -C --name-status --date=short --no-color) | fmt --split-only > $@.tmp \
+ && mv -f $@.tmp $@ \
+ || ($(RM) $@.tmp; \
+ echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+ (test -f $@ || echo git-log is required to generate this file >> $@)); \
+ else \
+ test -f $@ || \
+ (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+ echo A git checkout and git-log is required to generate this file >> $@); \
+ fi
+
+.PHONY: ChangeLog
const RptPoint *from_p,
const RptPoint *to_p,
const RptStroke *stroke,
- const RptRotation *rotation);
+ const RptRotation *rotation);
static void rpt_print_border (RptPrint *rpt_print,
const RptPoint *position,
const RptSize *size,
else
{
/* TO DO */
- g_warning ("Not a valid RepTool print report format");
+ g_warning ("Not a valid RepTool print report format.");
}
}
return;
}
- if (priv->output_type == RPTP_OUTPUT_GTK)
+ if (priv->output_type == RPTP_OUTPUT_GTK
+ || priv->output_type == RPTP_OUTPUT_GTK_DEFAULT_PRINTER)
{
gchar *locale_old;
gchar *locale_num;
G_CALLBACK (rpt_print_gtk_draw_page), (gpointer)rpt_print);
locale_num = setlocale (LC_NUMERIC, "C");
- gtk_print_operation_run (operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, NULL, NULL);
+ gtk_print_operation_run (operation,
+ (priv->output_type == RPTP_OUTPUT_GTK ? GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG : GTK_PRINT_OPERATION_ACTION_PRINT),
+ NULL, NULL);
setlocale (LC_NUMERIC, locale_num);
setlocale (LC_ALL, locale_old);
}
else
{
/* TO DO */
- g_warning ("Cairo surface status not sucess");
+ g_warning ("Cairo surface status not sucess.");
}
}
else
{
/* TO DO */
- g_warning ("Page width or height cannot be zero");
+ g_warning ("Page width or height cannot be zero.");
}
}
else