diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-06-29 09:18:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-29 09:18:07 +0000 |
commit | f8f9384537488823076fe6c158d973ef889d4613 (patch) | |
tree | 0959385899794a9879732f5af8d7a00cd57e216e /gtk/gtkprintcontext.c | |
parent | 65a4b057c475afd4cbf97e6fcffb26232d8acb6b (diff) | |
download | gtk+-f8f9384537488823076fe6c158d973ef889d4613.tar.gz |
Documentation additions and fixes.
2006-06-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprinter.c:
* gtk/gtkprintunixdialog.c:
* gtk/gtkprintoperationpreview.c:
* gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context):
* gtk/gtklabel.c (gtk_label_set_line_wrap_mode):
* gtk/gtkentry.c (gtk_entry_new):
* gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label):
* gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
additions and fixes.
* gtk/gtkaspectframe.h:
* gtk/gtkaboutdialog.c:
* gtk/gtkcalendar.c:
* gtk/gtkinputdialog.c:
* gtk/gtk.symbols: Remove unnecessary includes.
* gtk/gtkprogress.[hc]:
* gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
remove unnecessary includes.
Diffstat (limited to 'gtk/gtkprintcontext.c')
-rw-r--r-- | gtk/gtkprintcontext.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gtk/gtkprintcontext.c b/gtk/gtkprintcontext.c index 219a830ea6..c1406644e7 100644 --- a/gtk/gtkprintcontext.c +++ b/gtk/gtkprintcontext.c @@ -96,7 +96,22 @@ _gtk_print_context_new (GtkPrintOperation *op) return context; } - +/** + * gtk_print_context_set_cairo_context: + * @context: a #GtkPrintContext + * @cr: the cairo context + * @dpi_x: the horizontal resolution to use with @cr + * @dpi_y: the vertical resolution to use with @cr + * + * Sets a new cairo context on a print context. + * + * This function is intended to be used when implementing + * an internal print preview, it is not needed for printing, + * since GTK+ itself creates a suitable cairo context in that + * case. + * + * Since: 2.10 + */ void gtk_print_context_set_cairo_context (GtkPrintContext *context, cairo_t *cr, @@ -135,7 +150,9 @@ gtk_print_context_set_cairo_context (GtkPrintContext *context, context->pixels_per_unit_x, context->pixels_per_unit_y); - /* We use the unit-scaled resolution, as we still want fonts given in points to work */ + /* We use the unit-scaled resolution, as we still want + * fonts given in points to work + */ pango_cairo_font_map_set_resolution (PANGO_CAIRO_FONT_MAP (context->fontmap), dpi_y / context->pixels_per_unit_y); } |