Documentation updates.

2006-06-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
        Documentation updates.

        * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings):
        Don't leak the ranges.  (#346237, Carolyn MacLeod)
This commit is contained in:
Matthias Clasen 2006-06-30 10:42:31 +00:00 committed by Matthias Clasen
parent 866006534c
commit a3bfbe23ab
4 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,11 @@
2006-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
Documentation updates.
* gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings):
Don't leak the ranges. (#346237, Carolyn MacLeod)
* gtk/gtkprintjob.[hc]: Add a PREVIEW capability to hide
the preview button. (#346113, Christian Persch)

View File

@ -1,5 +1,11 @@
2006-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
Documentation updates.
* gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings):
Don't leak the ranges. (#346237, Carolyn MacLeod)
* gtk/gtkprintjob.[hc]: Add a PREVIEW capability to hide
the preview button. (#346113, Christian Persch)

View File

@ -1238,7 +1238,8 @@ gtk_print_settings_set_print_pages (GtkPrintSettings *settings,
*
* Gets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES.
*
* Return value: an array of #GtkPageRange<!-- -->s
* Return value: an array of #GtkPageRange<!-- -->s. Use g_free()
* to free the array when it is no longer needed.
*
* Since: 2.10
*/

View File

@ -2592,7 +2592,10 @@ gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog,
dialog_set_print_pages (dialog, gtk_print_settings_get_print_pages (settings));
ranges = gtk_print_settings_get_page_ranges (settings, &num_ranges);
if (ranges)
dialog_set_page_ranges (dialog, ranges, num_ranges);
{
dialog_set_page_ranges (dialog, ranges, num_ranges);
g_free (ranges);
}
priv->format_for_printer =
g_strdup (gtk_print_settings_get (settings, "format-for-printer"));