Another GtkPrintOperation question
- From: "Ian Puleston" <ian underpressuredivers com>
- To: "'Ian Puleston'" <ian underpressuredivers com>, <gtk-list gnome org>
- Subject: Another GtkPrintOperation question
- Date: Tue, 28 Nov 2006 10:21:51 -0800
One other question. In this code snippet:
> /* Set the margins */
> pageSetup = gtk_page_setup_new();
> gtk_page_setup_set_top_margin(pageSetup, topMargin, GTK_UNIT_INCH);
> gtk_page_setup_set_left_margin(pageSetup, leftMargin, GTK_UNIT_INCH);
> gtk_page_setup_set_bottom_margin(pageSetup, btmMargin, GTK_UNIT_INCH);
> gtk_print_operation_set_default_page_setup(print, pageSetup);
Does a GtkPageSetup allocated by gtk_page_setup_new() need to be freed
somehow (maybe by g_free?). There is nothing in the API reference to say
that it does, but it would seem that it should, unless in this instance
gtk_print_operation_set_default_page_setup consumes it.
Ian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]