Re: Problems with GtkPrintOperation's settings



On Mon, 2006-10-16 at 13:40 -0300, Claudio Saavedra wrote:
> - In the callback for "draw-page", I get that double from the settings
> in my operation:
> 
> void
> on_draw_page (GtkPrintOperation *op,
>               GtkPrintContext   *context,
>               gint               page_nr,
>               gpointer           user_data)
> {
>         GtkPrintSettings *settings;
>         gdouble a;

Of course, there is a typo here:
>         
>         settings = gtk_print_operation_get_print_settings (op);
          ^^^^^^^^^^^
>         a = gtk_print_settings_get_double (settings, "my-double");
>         
>         g_assert (a != .0);
>         
>         ...
> } 

Thanks,

Claudio
-- 
Claudio Saavedra <csaavedra alumnos utalca cl>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]