Commit a3bfbe23 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 86600653
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)
......
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)
......
......@@ -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
*/
......
......@@ -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"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment