Method

GtkPrintSettingsget_double_with_default

since: 2.10

Declaration [src]

gdouble
gtk_print_settings_get_double_with_default (
  GtkPrintSettings* settings,
  const gchar* key,
  gdouble def
)

Description [src]

Returns the floating point number represented by the value that is associated with key, or default_val if the value does not represent a floating point number.

Floating point numbers are parsed with g_ascii_strtod().

Available since: 2.10

Parameters

key

Type: const gchar*

A key.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
def

Type: gdouble

The default value.

Return value

Type: gdouble

The floating point number associated with key.