:right-sidebar: True Settings =================================================================== .. currentmodule:: gi.repository.WebKit .. class:: Settings(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Control the behaviour of a :obj:`~gi.repository.WebKit.WebView`\. :obj:`~gi.repository.WebKit.Settings` can be applied to a :obj:`~gi.repository.WebKit.WebView` to control text charset, color, font sizes, printing mode, script support, loading of images and various other things on a :obj:`~gi.repository.WebKit.WebView`\. After creation, a :obj:`~gi.repository.WebKit.Settings` object contains default settings. .. code-block:: c :dedent: // Disable JavaScript WebKitSettings *settings = webkit_web_view_group_get_settings (my_view_group); webkit_settings_set_enable_javascript (settings, FALSE); Constructors ------------ .. rst-class:: interim-class .. class:: Settings :no-index: .. classmethod:: new() -> ~gi.repository.WebKit.Settings Creates a new :obj:`~gi.repository.WebKit.Settings` instance with default values. It must be manually attached to a :obj:`~gi.repository.WebKit.WebView`\. See also :func:`~gi.repository.WebKit.Settings.new_with_settings`. Methods ------- .. rst-class:: interim-class .. class:: Settings :no-index: .. method:: apply_from_key_file(key_file: ~gi.repository.GLib.KeyFile, group_name: str) -> bool Reads the contents of the given ``group_name`` from the given ``key_file`` and apply the value of each key/value to the corresponding property on the ``settings``\. Value types have to match with the corresponding setting property type and the group keys have to match existing setting property names. If those conditions are not met, the function will return :const:`False`. Supported value types are strings (unquoted), booleans (0, 1, true, false) and unsigned integers. .. versionadded:: 2.46 :param key_file: a :obj:`~gi.repository.GLib.KeyFile` :param group_name: Name of the group to read from ``key_file`` .. classmethod:: font_size_to_pixels() -> int Convert ``points`` to the equivalent value in pixels. Convert ``points`` to the equivalent value in pixels, based on the current screen DPI. Applications can use this function to convert font size values in points to font size values in pixels when setting the font size properties of :obj:`~gi.repository.WebKit.Settings`\. .. versionadded:: 2.20 .. classmethod:: font_size_to_points() -> int Convert ``pixels`` to the equivalent value in points. Convert ``pixels`` to the equivalent value in points, based on the current screen DPI. Applications can use this function to convert font size values in pixels to font size values in points when getting the font size properties of :obj:`~gi.repository.WebKit.Settings`\. .. versionadded:: 2.20 .. classmethod:: get_all_features() -> ~gi.repository.WebKit.FeatureList Gets the list of all available WebKit features. Features can be toggled with :obj:`~gi.repository.Settings.set_feature_enabled`\, and their current state determined with :obj:`~gi.repository.Settings.get_feature_enabled`\. Note that most applications should use :obj:`~gi.repository.Settings.get_development_features` and :obj:`~gi.repository.Settings.get_experimental_features` instead. .. versionadded:: 2.42 .. method:: get_allow_file_access_from_file_urls() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:allow-file-access-from-file-urls property. .. versionadded:: 2.10 .. method:: get_allow_modal_dialogs() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:allow-modal-dialogs property. .. method:: get_allow_top_navigation_to_data_urls() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:allow-top-navigation-to-data-urls property. .. versionadded:: 2.28 .. method:: get_allow_universal_access_from_file_urls() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:allow-universal-access-from-file-urls property. .. versionadded:: 2.14 .. method:: get_auto_load_images() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:auto-load-images property. .. method:: get_cursive_font_family() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:cursive-font-family property. .. method:: get_default_charset() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:default-charset property. .. method:: get_default_font_family() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:default-font-family property. .. method:: get_default_font_size() -> int Gets the :obj:`~gi.repository.WebKit.Settings`\:default-font-size property. .. method:: get_default_monospace_font_size() -> int Gets the :obj:`~gi.repository.WebKit.Settings`\:default-monospace-font-size property. .. classmethod:: get_development_features() -> ~gi.repository.WebKit.FeatureList Gets the list of available development WebKit features. The returned features are a subset of those returned by :obj:`~gi.repository.Settings.get_all_features`\, and includes those which web and WebKit developers might find useful, but in general should *not* be exposed to end users; see :obj:`~gi.repository.WebKit.FeatureStatus` for more details. .. versionadded:: 2.42 .. method:: get_disable_web_security() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:disable-web-security property. .. versionadded:: 2.40 .. method:: get_draw_compositing_indicators() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:draw-compositing-indicators property. .. method:: get_enable_2d_canvas_acceleration() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-2d-canvas-acceleration property. .. versionadded:: 2.46 .. method:: get_enable_back_forward_navigation_gestures() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-back-forward-navigation-gestures property. .. versionadded:: 2.24 .. method:: get_enable_caret_browsing() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-caret-browsing property. .. method:: get_enable_developer_extras() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-developer-extras property. .. method:: get_enable_dns_prefetching() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-dns-prefetching property. .. method:: get_enable_encrypted_media() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-encrypted-media property. .. versionadded:: 2.20 .. method:: get_enable_fullscreen() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-fullscreen property. .. method:: get_enable_html5_database() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-html5-database property. .. method:: get_enable_html5_local_storage() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-html5-local-storage property. .. method:: get_enable_hyperlink_auditing() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-hyperlink-auditing property. .. method:: get_enable_javascript() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-javascript property. .. method:: get_enable_javascript_markup() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-javascript-markup property. .. versionadded:: 2.24 .. method:: get_enable_media() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-media property. .. versionadded:: 2.26 .. method:: get_enable_media_capabilities() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-media-capabilities property. .. versionadded:: 2.22 .. method:: get_enable_media_stream() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-media-stream property. .. versionadded:: 2.4 .. method:: get_enable_mediasource() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-mediasource property. .. versionadded:: 2.4 .. method:: get_enable_mock_capture_devices() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-mock-capture-devices property. .. versionadded:: 2.24 .. method:: get_enable_offline_web_application_cache() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-offline-web-application-cache property. .. deprecated:: 2.44 Please do not use it in newly written code .. method:: get_enable_page_cache() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-page-cache property. .. method:: get_enable_resizable_text_areas() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-resizable-text-areas property. .. method:: get_enable_site_specific_quirks() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-site-specific-quirks property. .. method:: get_enable_smooth_scrolling() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-smooth-scrolling property. .. method:: get_enable_spatial_navigation() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-spatial-navigation property. .. versionadded:: 2.2 .. method:: get_enable_tabs_to_links() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-tabs-to-links property. .. method:: get_enable_webaudio() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-webaudio property. .. method:: get_enable_webgl() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-webgl property. .. method:: get_enable_webrtc() -> bool Get the :obj:`~gi.repository.WebKit.Settings.props.enable_webrtc` property. .. versionadded:: 2.38 .. method:: get_enable_write_console_messages_to_stdout() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:enable-write-console-messages-to-stdout property. .. versionadded:: 2.2 .. classmethod:: get_experimental_features() -> ~gi.repository.WebKit.FeatureList Gets the list of available experimental WebKit features. The returned features are a subset of those returned by :obj:`~gi.repository.Settings.get_all_features`\, and includes those which certain applications may want to expose to end users; see :obj:`~gi.repository.WebKit.FeatureStatus` for more details. .. versionadded:: 2.42 .. method:: get_fantasy_font_family() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:fantasy-font-family property. .. method:: get_feature_enabled(feature: ~gi.repository.WebKit.Feature) -> bool Gets whether a feature is enabled. .. versionadded:: 2.42 :param feature: the feature to toggle. .. method:: get_hardware_acceleration_policy() -> ~gi.repository.WebKit.HardwareAccelerationPolicy Get the :obj:`~gi.repository.WebKit.Settings`\:hardware-acceleration-policy property. .. versionadded:: 2.16 .. method:: get_javascript_can_access_clipboard() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:javascript-can-access-clipboard property. .. method:: get_javascript_can_open_windows_automatically() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:javascript-can-open-windows-automatically property. .. method:: get_load_icons_ignoring_image_load_setting() -> bool Setting no longer supported. This function returns :const:`False`. .. deprecated:: 2.42 Please do not use it in newly written code .. method:: get_media_content_types_requiring_hardware_support() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:media-content-types-requiring-hardware-support property. .. versionadded:: 2.30 .. method:: get_media_playback_allows_inline() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:media-playback-allows-inline property. .. method:: get_media_playback_requires_user_gesture() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:media-playback-requires-user-gesture property. .. method:: get_minimum_font_size() -> int Gets the :obj:`~gi.repository.WebKit.Settings`\:minimum-font-size property. .. method:: get_monospace_font_family() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:monospace-font-family property. .. method:: get_pictograph_font_family() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:pictograph-font-family property. .. method:: get_print_backgrounds() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:print-backgrounds property. .. method:: get_sans_serif_font_family() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:sans-serif-font-family property. .. method:: get_serif_font_family() -> str Gets the :obj:`~gi.repository.WebKit.Settings`\:serif-font-family property. .. method:: get_user_agent() -> str Get the :obj:`~gi.repository.WebKit.Settings`\:user-agent property. .. method:: get_zoom_text_only() -> bool Get the :obj:`~gi.repository.WebKit.Settings`\:zoom-text-only property. .. method:: set_allow_file_access_from_file_urls(allowed: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:allow-file-access-from-file-urls property. .. versionadded:: 2.10 :param allowed: Value to be set .. method:: set_allow_modal_dialogs(allowed: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:allow-modal-dialogs property. :param allowed: Value to be set .. method:: set_allow_top_navigation_to_data_urls(allowed: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:allow-top-navigation-to-data-urls property. .. versionadded:: 2.28 :param allowed: Value to be set .. method:: set_allow_universal_access_from_file_urls(allowed: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:allow-universal-access-from-file-urls property. .. versionadded:: 2.14 :param allowed: Value to be set .. method:: set_auto_load_images(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:auto-load-images property. :param enabled: Value to be set .. method:: set_cursive_font_family(cursive_font_family: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:cursive-font-family property. :param cursive_font_family: the new default cursive font family .. method:: set_default_charset(default_charset: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:default-charset property. :param default_charset: default charset to be set .. method:: set_default_font_family(default_font_family: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:default-font-family property. :param default_font_family: the new default font family .. method:: set_default_font_size(font_size: int) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:default-font-size property. :param font_size: default font size to be set in pixels .. method:: set_default_monospace_font_size(font_size: int) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:default-monospace-font-size property. :param font_size: default monospace font size to be set in pixels .. method:: set_disable_web_security(disabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:disable-web-security property. .. versionadded:: 2.40 :param disabled: Value to be set .. method:: set_draw_compositing_indicators(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:draw-compositing-indicators property. :param enabled: Value to be set .. method:: set_enable_2d_canvas_acceleration(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-2d-canvas-acceleration property. .. versionadded:: 2.46 :param enabled: Value to be set .. method:: set_enable_back_forward_navigation_gestures(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-back-forward-navigation-gestures property. .. versionadded:: 2.24 :param enabled: value to be set .. method:: set_enable_caret_browsing(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-caret-browsing property. :param enabled: Value to be set .. method:: set_enable_developer_extras(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-developer-extras property. :param enabled: Value to be set .. method:: set_enable_dns_prefetching(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-dns-prefetching property. :param enabled: Value to be set .. method:: set_enable_encrypted_media(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-encrypted-media property. .. versionadded:: 2.20 :param enabled: Value to be set .. method:: set_enable_fullscreen(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-fullscreen property. :param enabled: Value to be set .. method:: set_enable_html5_database(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-html5-database property. :param enabled: Value to be set .. method:: set_enable_html5_local_storage(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-html5-local-storage property. :param enabled: Value to be set .. method:: set_enable_hyperlink_auditing(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-hyperlink-auditing property. :param enabled: Value to be set .. method:: set_enable_javascript(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-javascript property. :param enabled: Value to be set .. method:: set_enable_javascript_markup(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-javascript-markup property. .. versionadded:: 2.24 :param enabled: Value to be set .. method:: set_enable_media(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-media property. .. versionadded:: 2.26 :param enabled: Value to be set .. method:: set_enable_media_capabilities(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-media-capabilities property. .. versionadded:: 2.22 :param enabled: Value to be set .. method:: set_enable_media_stream(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-media-stream property. .. versionadded:: 2.4 :param enabled: Value to be set .. method:: set_enable_mediasource(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-mediasource property. .. versionadded:: 2.4 :param enabled: Value to be set .. method:: set_enable_mock_capture_devices(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-mock-capture-devices property. .. versionadded:: 2.4 :param enabled: Value to be set .. method:: set_enable_offline_web_application_cache(enabled: bool) -> None Setting no longer supported. This function does nothing. .. deprecated:: 2.44 Please do not use it in newly written code :param enabled: Value to be set .. method:: set_enable_page_cache(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-page-cache property. :param enabled: Value to be set .. method:: set_enable_resizable_text_areas(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-resizable-text-areas property. :param enabled: Value to be set .. method:: set_enable_site_specific_quirks(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-site-specific-quirks property. :param enabled: Value to be set .. method:: set_enable_smooth_scrolling(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-smooth-scrolling property. :param enabled: Value to be set .. method:: set_enable_spatial_navigation(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-spatial-navigation property. .. versionadded:: 2.2 :param enabled: Value to be set .. method:: set_enable_tabs_to_links(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-tabs-to-links property. :param enabled: Value to be set .. method:: set_enable_webaudio(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-webaudio property. :param enabled: Value to be set .. method:: set_enable_webgl(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-webgl property. :param enabled: Value to be set .. method:: set_enable_webrtc(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings.props.enable_webrtc` property. Setting this property to :const:`True` implies the media-stream web-setting will also be enabled. .. versionadded:: 2.38 :param enabled: Value to be set .. method:: set_enable_write_console_messages_to_stdout(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:enable-write-console-messages-to-stdout property. .. versionadded:: 2.2 :param enabled: Value to be set .. method:: set_fantasy_font_family(fantasy_font_family: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:fantasy-font-family property. :param fantasy_font_family: the new default fantasy font family .. method:: set_feature_enabled(feature: ~gi.repository.WebKit.Feature, enabled: bool) -> None Enables or disables a feature. The current status of the feature can be determined with :obj:`~gi.repository.WebKit.webkit_settings_get_feature_enabled`\. To reset a feature to its initial status, pass the value returned by :obj:`~gi.repository.WebKit.webkit_feature_get_default_value` as the ``enabled`` parameter. .. versionadded:: 2.42 :param feature: the feature to toggle. :param enabled: whether the feature will be enabled. .. method:: set_hardware_acceleration_policy(policy: ~gi.repository.WebKit.HardwareAccelerationPolicy) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:hardware-acceleration-policy property. .. versionadded:: 2.16 :param policy: a :obj:`~gi.repository.WebKit.HardwareAccelerationPolicy` .. method:: set_javascript_can_access_clipboard(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:javascript-can-access-clipboard property. :param enabled: Value to be set .. method:: set_javascript_can_open_windows_automatically(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:javascript-can-open-windows-automatically property. :param enabled: Value to be set .. method:: set_load_icons_ignoring_image_load_setting(enabled: bool) -> None Setting no longer supported. This function does nothing. .. deprecated:: 2.42 Please do not use it in newly written code :param enabled: Value to be set .. method:: set_media_content_types_requiring_hardware_support(content_types: str | None = None) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:media-content-types-requiring-hardware-support property. .. versionadded:: 2.30 :param content_types: list of media content types requiring hardware support split by semicolons (:) or :const:`None` to use the default value. .. method:: set_media_playback_allows_inline(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:media-playback-allows-inline property. :param enabled: Value to be set .. method:: set_media_playback_requires_user_gesture(enabled: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:media-playback-requires-user-gesture property. :param enabled: Value to be set .. method:: set_minimum_font_size(font_size: int) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:minimum-font-size property. :param font_size: minimum font size to be set in pixels .. method:: set_monospace_font_family(monospace_font_family: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:monospace-font-family property. :param monospace_font_family: the new default monospace font family .. method:: set_pictograph_font_family(pictograph_font_family: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:pictograph-font-family property. :param pictograph_font_family: the new default pictograph font family .. method:: set_print_backgrounds(print_backgrounds: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:print-backgrounds property. :param print_backgrounds: Value to be set .. method:: set_sans_serif_font_family(sans_serif_font_family: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:sans-serif-font-family property. :param sans_serif_font_family: the new default sans-serif font family .. method:: set_serif_font_family(serif_font_family: str) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:serif-font-family property. :param serif_font_family: the new default serif font family .. method:: set_user_agent(user_agent: str | None = None) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:user-agent property. :param user_agent: The new custom user agent string or :const:`None` to use the default user agent .. method:: set_user_agent_with_application_details(application_name: str | None = None, application_version: str | None = None) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:user-agent property by appending the application details. Set the :obj:`~gi.repository.WebKit.Settings`\:user-agent property by appending the application details to the default user agent. If no application name or version is given, the default user agent used will be used. If only the version is given, the default engine version is used with the given application name. :param application_name: The application name used for the user agent or :const:`None` to use the default user agent. :param application_version: The application version for the user agent or :const:`None` to user the default version. .. method:: set_zoom_text_only(zoom_text_only: bool) -> None Set the :obj:`~gi.repository.WebKit.Settings`\:zoom-text-only property. :param zoom_text_only: Value to be set Properties ---------- .. rst-class:: interim-class .. class:: Settings :no-index: .. attribute:: props.allow_file_access_from_file_urls :type: bool The type of the None singleton. .. versionadded:: 2.10 .. attribute:: props.allow_modal_dialogs :type: bool The type of the None singleton. .. attribute:: props.allow_top_navigation_to_data_urls :type: bool The type of the None singleton. .. versionadded:: 2.28 .. attribute:: props.allow_universal_access_from_file_urls :type: bool The type of the None singleton. .. versionadded:: 2.14 .. attribute:: props.auto_load_images :type: bool The type of the None singleton. .. attribute:: props.cursive_font_family :type: str The type of the None singleton. .. attribute:: props.default_charset :type: str The type of the None singleton. .. attribute:: props.default_font_family :type: str The type of the None singleton. .. attribute:: props.default_font_size :type: int The type of the None singleton. .. attribute:: props.default_monospace_font_size :type: int The type of the None singleton. .. attribute:: props.disable_web_security :type: bool The type of the None singleton. .. versionadded:: 2.40 .. attribute:: props.draw_compositing_indicators :type: bool The type of the None singleton. .. attribute:: props.enable_2d_canvas_acceleration :type: bool The type of the None singleton. .. versionadded:: 2.46 .. attribute:: props.enable_back_forward_navigation_gestures :type: bool The type of the None singleton. .. versionadded:: 2.24 .. attribute:: props.enable_caret_browsing :type: bool The type of the None singleton. .. attribute:: props.enable_developer_extras :type: bool The type of the None singleton. .. attribute:: props.enable_dns_prefetching :type: bool The type of the None singleton. .. attribute:: props.enable_encrypted_media :type: bool The type of the None singleton. .. versionadded:: 2.20 .. attribute:: props.enable_fullscreen :type: bool The type of the None singleton. .. attribute:: props.enable_html5_database :type: bool The type of the None singleton. .. attribute:: props.enable_html5_local_storage :type: bool The type of the None singleton. .. attribute:: props.enable_hyperlink_auditing :type: bool The type of the None singleton. .. attribute:: props.enable_javascript :type: bool The type of the None singleton. .. attribute:: props.enable_javascript_markup :type: bool The type of the None singleton. .. versionadded:: 2.24 .. attribute:: props.enable_media :type: bool The type of the None singleton. .. versionadded:: 2.26 .. attribute:: props.enable_media_capabilities :type: bool The type of the None singleton. .. versionadded:: 2.22 .. attribute:: props.enable_media_stream :type: bool The type of the None singleton. .. versionadded:: 2.4 .. attribute:: props.enable_mediasource :type: bool The type of the None singleton. .. versionadded:: 2.4 .. attribute:: props.enable_mock_capture_devices :type: bool The type of the None singleton. .. versionadded:: 2.24 .. attribute:: props.enable_offline_web_application_cache :type: bool The type of the None singleton. .. deprecated:: 2.44 Please do not use it in newly written code .. attribute:: props.enable_page_cache :type: bool The type of the None singleton. .. attribute:: props.enable_resizable_text_areas :type: bool The type of the None singleton. .. attribute:: props.enable_site_specific_quirks :type: bool The type of the None singleton. .. attribute:: props.enable_smooth_scrolling :type: bool The type of the None singleton. .. attribute:: props.enable_spatial_navigation :type: bool The type of the None singleton. .. versionadded:: 2.4 .. attribute:: props.enable_tabs_to_links :type: bool The type of the None singleton. .. attribute:: props.enable_webaudio :type: bool The type of the None singleton. .. attribute:: props.enable_webgl :type: bool The type of the None singleton. .. attribute:: props.enable_webrtc :type: bool The type of the None singleton. .. versionadded:: 2.38 .. attribute:: props.enable_write_console_messages_to_stdout :type: bool The type of the None singleton. .. versionadded:: 2.2 .. attribute:: props.fantasy_font_family :type: str The type of the None singleton. .. attribute:: props.hardware_acceleration_policy :type: ~gi.repository.WebKit.HardwareAccelerationPolicy The type of the None singleton. .. versionadded:: 2.16 .. attribute:: props.javascript_can_access_clipboard :type: bool The type of the None singleton. .. attribute:: props.javascript_can_open_windows_automatically :type: bool The type of the None singleton. .. attribute:: props.load_icons_ignoring_image_load_setting :type: bool The type of the None singleton. .. deprecated:: 2.42 Please do not use it in newly written code .. attribute:: props.media_content_types_requiring_hardware_support :type: str The type of the None singleton. .. versionadded:: 2.30 .. attribute:: props.media_playback_allows_inline :type: bool The type of the None singleton. .. attribute:: props.media_playback_requires_user_gesture :type: bool The type of the None singleton. .. attribute:: props.minimum_font_size :type: int The type of the None singleton. .. attribute:: props.monospace_font_family :type: str The type of the None singleton. .. attribute:: props.pictograph_font_family :type: str The type of the None singleton. .. attribute:: props.print_backgrounds :type: bool The type of the None singleton. .. attribute:: props.sans_serif_font_family :type: str The type of the None singleton. .. attribute:: props.serif_font_family :type: str The type of the None singleton. .. attribute:: props.user_agent :type: str The type of the None singleton. .. attribute:: props.zoom_text_only :type: bool The type of the None singleton.