From 13063c2f0ecc2f308df20bba855865b84432d64a Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 11 Feb 2024 15:38:36 +0100 Subject: [PATCH 1/4] Add nix environment --- .envrc | 1 + .gitignore | 1 + npins/default.nix | 47 ++++++++++++++++++++++++++++++++++ npins/sources.json | 11 ++++++++ shell.nix | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 123 insertions(+) create mode 100644 .envrc create mode 100644 npins/default.nix create mode 100644 npins/sources.json create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..1d953f4b --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore index 4f1b5a2c..96d3a212 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc .mypy_cache .ruff_cache +.direnv MANIFEST build dist diff --git a/npins/default.nix b/npins/default.nix new file mode 100644 index 00000000..4a7c3728 --- /dev/null +++ b/npins/default.nix @@ -0,0 +1,47 @@ +# Generated by npins. Do not modify; will be overwritten regularly +let + data = builtins.fromJSON (builtins.readFile ./sources.json); + version = data.version; + + mkSource = spec: + assert spec ? type; let + path = + if spec.type == "Git" then mkGitSource spec + else if spec.type == "GitRelease" then mkGitSource spec + else if spec.type == "PyPi" then mkPyPiSource spec + else if spec.type == "Channel" then mkChannelSource spec + else builtins.throw "Unknown source type ${spec.type}"; + in + spec // { outPath = path; }; + + mkGitSource = { repository, revision, url ? null, hash, ... }: + assert repository ? type; + # At the moment, either it is a plain git repository (which has an url), or it is a GitHub/GitLab repository + # In the latter case, there we will always be an url to the tarball + if url != null then + (builtins.fetchTarball { + inherit url; + sha256 = hash; # FIXME: check nix version & use SRI hashes + }) + else assert repository.type == "Git"; builtins.fetchGit { + url = repository.url; + rev = revision; + # hash = hash; + }; + + mkPyPiSource = { url, hash, ... }: + builtins.fetchurl { + inherit url; + sha256 = hash; + }; + + mkChannelSource = { url, hash, ... }: + builtins.fetchTarball { + inherit url; + sha256 = hash; + }; +in +if version == 3 then + builtins.mapAttrs (_: mkSource) data.pins +else + throw "Unsupported format version ${toString version} in sources.json. Try running `npins upgrade`" diff --git a/npins/sources.json b/npins/sources.json new file mode 100644 index 00000000..7e04029f --- /dev/null +++ b/npins/sources.json @@ -0,0 +1,11 @@ +{ + "pins": { + "nixpkgs": { + "type": "Channel", + "name": "nixos-unstable", + "url": "https://releases.nixos.org/nixos/unstable/nixos-24.05pre588267.73de017ef2d1/nixexprs.tar.xz", + "hash": "1hcnwcankhqh0pk7g0njszm3553a6845dzy1yzq3jy5msrr4l2qy" + } + }, + "version": 3 +} \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..5c39f45d --- /dev/null +++ b/shell.nix @@ -0,0 +1,63 @@ +let + sources = import ./npins; + pkgs = import sources.nixpkgs {}; +in +pkgs.mkShell { + nativeBuildInputs = [ + pkgs.gobject-introspection + (pkgs.python3.withPackages (pp: [ + pp.black + pp.isort + pp.mypy + pp.pygobject3 + ])) + ]; + + buildInputs = [ + pkgs.appstream + pkgs.atk + pkgs.cinnamon.xapp + pkgs.farstream + pkgs.flatpak + pkgs.gdk-pixbuf + pkgs.geoclue2 + pkgs.glib + pkgs.gnome-online-accounts + pkgs.gobject-introspection + pkgs.graphene + pkgs.gsound + pkgs.gspell + pkgs.gst_all_1.gst-plugins-bad # GstWebRTC + pkgs.gst_all_1.gst-plugins-base + pkgs.gst_all_1.gstreamer + pkgs.gtk3 + pkgs.gtk4 + pkgs.gtksourceview4 + pkgs.gtksourceview5 + pkgs.libgudev # required by manette + pkgs.libadwaita + pkgs.libappindicator-gtk3 + pkgs.libayatana-appindicator + pkgs.libgit2-glib + pkgs.libhandy + pkgs.libmanette + pkgs.libnotify + pkgs.libpanel + pkgs.libportal + pkgs.librsvg + pkgs.libsecret + pkgs.libsoup + pkgs.libsoup_3 + pkgs.ostree + pkgs.pango + pkgs.vte + pkgs.webkitgtk_6_0 + ]; + + env = { + # Ensure the environment is not contaminated. + XDG_DATA_DIRS = ""; + GI_GIR_PATH = ""; + GI_TYPELIB_PATH = ""; + }; +} From b519ad04aea401a1d619b352e2565b17c82d2910 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 11 Feb 2024 16:09:05 +0100 Subject: [PATCH 2/4] Update most stubs To be able more easily compare them GstPbutils segfaults though. --- src/gi-stubs/repository/Adw.pyi | 73 +- src/gi-stubs/repository/AppIndicator3.pyi | 9 +- src/gi-stubs/repository/AppStream.pyi | 610 ++- src/gi-stubs/repository/Atk.pyi | 870 ++- .../repository/AyatanaAppIndicator3.pyi | 15 +- src/gi-stubs/repository/Farstream.pyi | 1124 +++- src/gi-stubs/repository/Flatpak.pyi | 17 +- src/gi-stubs/repository/GIRepository.pyi | 718 +-- src/gi-stubs/repository/GLib.pyi | 928 +++- src/gi-stubs/repository/GModule.pyi | 52 +- src/gi-stubs/repository/GObject.pyi | 178 +- src/gi-stubs/repository/GSound.pyi | 20 + src/gi-stubs/repository/GdkPixbuf.pyi | 188 +- src/gi-stubs/repository/Geoclue.pyi | 396 +- src/gi-stubs/repository/Ggit.pyi | 1281 ++++- src/gi-stubs/repository/Gio.pyi | 4254 ++++++++++++++- src/gi-stubs/repository/Goa.pyi | 88 +- src/gi-stubs/repository/Graphene.pyi | 176 +- src/gi-stubs/repository/Gsk.pyi | 455 +- src/gi-stubs/repository/Gspell.pyi | 1583 +++++- src/gi-stubs/repository/Gst.pyi | 1992 ++++++- src/gi-stubs/repository/GstSdp.pyi | 38 +- src/gi-stubs/repository/GstWebRTC.pyi | 286 +- src/gi-stubs/repository/Handy.pyi | 302 +- src/gi-stubs/repository/Manette.pyi | 100 +- src/gi-stubs/repository/Notify.pyi | 1 - src/gi-stubs/repository/OSTree.pyi | 27 +- src/gi-stubs/repository/Panel.pyi | 24 - src/gi-stubs/repository/Pango.pyi | 22 +- src/gi-stubs/repository/PangoCairo.pyi | 4 + src/gi-stubs/repository/Rsvg.pyi | 87 +- src/gi-stubs/repository/Secret.pyi | 6 +- src/gi-stubs/repository/Vte.pyi | 335 +- src/gi-stubs/repository/XApp.pyi | 89 +- src/gi-stubs/repository/_Gdk3.pyi | 548 +- src/gi-stubs/repository/_Gdk4.pyi | 118 +- src/gi-stubs/repository/_Gtk3.pyi | 1527 +++--- src/gi-stubs/repository/_Gtk4.pyi | 694 ++- src/gi-stubs/repository/_GtkSource4.pyi | 2728 +++++++++- src/gi-stubs/repository/_GtkSource5.pyi | 2703 +++++++++- src/gi-stubs/repository/_JavaScriptCore6.pyi | 6 +- src/gi-stubs/repository/_Soup2.pyi | 4781 +++++++++++++---- src/gi-stubs/repository/_Soup3.pyi | 1066 +++- src/gi-stubs/repository/_WebKit6.pyi | 31 +- 44 files changed, 25555 insertions(+), 4995 deletions(-) diff --git a/src/gi-stubs/repository/Adw.pyi b/src/gi-stubs/repository/Adw.pyi index 7e1042b7..44017bc2 100644 --- a/src/gi-stubs/repository/Adw.pyi +++ b/src/gi-stubs/repository/Adw.pyi @@ -16,9 +16,9 @@ from gi.repository import Pango DURATION_INFINITE: int = 4294967295 MAJOR_VERSION: int = 1 -MICRO_VERSION: int = 0 +MICRO_VERSION: int = 3 MINOR_VERSION: int = 4 -VERSION_S: str = "1.4.0" +VERSION_S: str = "1.4.3" _lock = ... # FIXME Constant _namespace: str = "Adw" _version: str = "1" @@ -260,7 +260,6 @@ class AboutWindow( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... def __init__( self, @@ -555,7 +554,6 @@ class ActionRow( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... parent_instance: PreferencesRow = ... def __init__( @@ -668,7 +666,6 @@ class Animation(GObject.Object): target: AnimationTarget value: float widget: Gtk.Widget - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -782,7 +779,6 @@ class Application(Gtk.Application, Gio.ActionGroup, Gio.ActionMap): is_remote: bool resource_base_path: Optional[str] action_group: Optional[Gio.ActionGroup] - props: Props = ... parent_instance: Gtk.Application = ... def __init__( @@ -1006,7 +1002,6 @@ class ApplicationWindow( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... parent_instance: Gtk.ApplicationWindow = ... def __init__( @@ -1200,7 +1195,6 @@ class Avatar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -1386,7 +1380,6 @@ class Banner( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, @@ -1555,7 +1548,6 @@ class Bin(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -1632,7 +1624,6 @@ class Breakpoint(GObject.Object, Gtk.Buildable): class Props: condition: Optional[BreakpointCondition] - props: Props = ... def __init__(self, condition: Optional[BreakpointCondition] = ...): ... def add_setter(self, object: GObject.Object, property: str, value: Any) -> None: ... @@ -1757,7 +1748,6 @@ class BreakpointBin(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTar visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -1970,7 +1960,6 @@ class ButtonContent(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTar visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -2186,7 +2175,6 @@ class Carousel( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -2375,7 +2363,6 @@ class CarouselIndicatorDots( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -2537,7 +2524,6 @@ class CarouselIndicatorLines( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -2705,7 +2691,6 @@ class Clamp( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -2792,7 +2777,6 @@ class ClampLayout(Gtk.LayoutManager, Gtk.Orientable): tightening_threshold: int unit: LengthUnit orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -2945,7 +2929,6 @@ class ClampScrollable( hscroll_policy: Gtk.ScrollablePolicy vadjustment: Optional[Gtk.Adjustment] vscroll_policy: Gtk.ScrollablePolicy - props: Props = ... def __init__( self, @@ -3174,7 +3157,6 @@ class ComboRow( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... parent_instance: ActionRow = ... def __init__( @@ -3427,7 +3409,6 @@ class EntryRow( text: str width_chars: int xalign: float - props: Props = ... parent_instance: PreferencesRow = ... def __init__( @@ -3537,7 +3518,6 @@ class EnumListItem(GObject.Object): name: str nick: str value: int - props: Props = ... def get_name(self) -> str: ... def get_nick(self) -> str: ... @@ -3577,7 +3557,6 @@ class EnumListModel(GObject.Object, Gio.ListModel): class Props: enum_type: Type - props: Props = ... def __init__(self, enum_type: Type = ...): ... def find_position(self, value: int) -> int: ... @@ -3739,7 +3718,6 @@ class ExpanderRow( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... parent_instance: PreferencesRow = ... def __init__( @@ -3969,7 +3947,6 @@ class Flap( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -4181,7 +4158,6 @@ class HeaderBar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget) visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -4392,7 +4368,6 @@ class Leaflet( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -4513,7 +4488,6 @@ class LeafletPage(GObject.Object): child: Gtk.Widget name: Optional[str] navigatable: bool - props: Props = ... def __init__( self, @@ -4726,7 +4700,6 @@ class MessageDialog( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... parent_instance: Gtk.Window = ... def __init__( @@ -4965,7 +4938,6 @@ class NavigationPage(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -5162,7 +5134,6 @@ class NavigationSplitView( visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -5355,7 +5326,6 @@ class NavigationView( visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -5553,7 +5523,6 @@ class OverlaySplitView( visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -5806,7 +5775,6 @@ class PasswordEntryRow( text: str width_chars: int xalign: float - props: Props = ... def __init__( self, @@ -5986,7 +5954,6 @@ class PreferencesGroup(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.Constraint visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -6161,7 +6128,6 @@ class PreferencesPage(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintT visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -6356,7 +6322,6 @@ class PreferencesRow( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... parent_instance: Gtk.ListBoxRow = ... def __init__( @@ -6609,7 +6574,6 @@ class PreferencesWindow( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... parent_instance: Window = ... def __init__( @@ -6726,7 +6690,6 @@ class PropertyAnimationTarget(AnimationTarget): class Props: object: GObject.Object pspec: GObject.ParamSpec - props: Props = ... def __init__( self, object: GObject.Object = ..., pspec: GObject.ParamSpec = ... @@ -6930,7 +6893,6 @@ class SpinRow( text: str width_chars: int xalign: float - props: Props = ... def __init__( self, @@ -7163,7 +7125,6 @@ class SplitButton( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, @@ -7292,7 +7253,6 @@ class SpringAnimation(Animation): target: AnimationTarget value: float widget: Gtk.Widget - props: Props = ... def __init__( self, @@ -7488,7 +7448,6 @@ class Squeezer( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -7589,7 +7548,6 @@ class SqueezerPage(GObject.Object): class Props: child: Gtk.Widget enabled: bool - props: Props = ... def __init__(self, child: Gtk.Widget = ..., enabled: bool = ...): ... def get_child(self) -> Gtk.Widget: ... @@ -7721,7 +7679,6 @@ class StatusPage(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -7812,7 +7769,6 @@ class StyleManager(GObject.Object): display: Optional[Gdk.Display] high_contrast: bool system_supports_color_schemes: bool - props: Props = ... def __init__(self, color_scheme: ColorScheme = ..., display: Gdk.Display = ...): ... def get_color_scheme(self) -> ColorScheme: ... @@ -7876,7 +7832,6 @@ class SwipeTracker(GObject.Object, Gtk.Orientable): swipeable: Swipeable upper_overshoot: bool orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -7947,9 +7902,9 @@ class SwipeableInterface(GObject.GPointer): get_snap_points: Callable[[Swipeable], list[float]] = ... get_progress: Callable[[Swipeable], float] = ... get_cancel_progress: Callable[[Swipeable], float] = ... - get_swipe_area: Callable[[Swipeable, NavigationDirection, bool], Gdk.Rectangle] = ( - ... - ) + get_swipe_area: Callable[ + [Swipeable, NavigationDirection, bool], Gdk.Rectangle + ] = ... padding: list[None] = ... class SwitchRow( @@ -8100,7 +8055,6 @@ class SwitchRow( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, @@ -8295,7 +8249,6 @@ class TabBar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -8485,7 +8438,6 @@ class TabButton( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, @@ -8672,7 +8624,6 @@ class TabOverview(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -8808,7 +8759,6 @@ class TabPage(GObject.Object, Gtk.Accessible): title: str tooltip: Optional[str] accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -8998,7 +8948,6 @@ class TabView(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -9141,7 +9090,6 @@ class TimedAnimation(Animation): target: AnimationTarget value: float widget: Gtk.Widget - props: Props = ... def __init__( self, @@ -9220,7 +9168,6 @@ class Toast(GObject.Object): timeout: int title: Optional[str] use_markup: bool - props: Props = ... def __init__( self, @@ -9375,7 +9322,6 @@ class ToastOverlay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -9550,7 +9496,6 @@ class ToolbarView(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -9739,7 +9684,6 @@ class ViewStack(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget) visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -9848,7 +9792,6 @@ class ViewStackPage(GObject.Object, Gtk.Accessible): use_underline: bool visible: bool accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -9914,7 +9857,6 @@ class ViewStackPages(GObject.Object, Gio.ListModel, Gtk.SelectionModel): class Props: selected_page: Optional[ViewStackPage] - props: Props = ... def __init__(self, selected_page: ViewStackPage = ...): ... def get_selected_page(self) -> Optional[ViewStackPage]: ... @@ -10039,7 +9981,6 @@ class ViewSwitcher(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -10191,7 +10132,6 @@ class ViewSwitcherBar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintT visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -10373,7 +10313,6 @@ class ViewSwitcherTitle( visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -10610,7 +10549,6 @@ class Window( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... parent_instance: Gtk.Window = ... def __init__( @@ -10797,7 +10735,6 @@ class WindowTitle(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, diff --git a/src/gi-stubs/repository/AppIndicator3.pyi b/src/gi-stubs/repository/AppIndicator3.pyi index 11f0006d..fd54d923 100644 --- a/src/gi-stubs/repository/AppIndicator3.pyi +++ b/src/gi-stubs/repository/AppIndicator3.pyi @@ -1,6 +1,11 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar from gi.repository import Gdk from gi.repository import GObject @@ -86,11 +91,9 @@ class Indicator(GObject.Object): ordering_index: int status: str title: str - props: Props = ... parent: GObject.Object = ... priv: IndicatorPrivate = ... - def __init__( self, attention_icon_desc: str = ..., @@ -104,7 +107,7 @@ class Indicator(GObject.Object): label_guide: str = ..., ordering_index: int = ..., status: str = ..., - title: str = ..., + title: Optional[str] = ..., ): ... def build_menu_from_desktop( self, desktop_file: str, desktop_profile: str diff --git a/src/gi-stubs/repository/AppStream.pyi b/src/gi-stubs/repository/AppStream.pyi index be52f641..770b8f3f 100644 --- a/src/gi-stubs/repository/AppStream.pyi +++ b/src/gi-stubs/repository/AppStream.pyi @@ -11,15 +11,9 @@ from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject -IMAGE_LARGE_HEIGHT: int = 423 -IMAGE_LARGE_WIDTH: int = 752 -IMAGE_NORMAL_HEIGHT: int = 351 -IMAGE_NORMAL_WIDTH: int = 624 -IMAGE_THUMBNAIL_HEIGHT: int = 63 -IMAGE_THUMBNAIL_WIDTH: int = 112 -MAJOR_VERSION: int = 0 +MAJOR_VERSION: int = 1 MICRO_VERSION: int = 1 -MINOR_VERSION: int = 16 +MINOR_VERSION: int = 0 _lock = ... # FIXME Constant _namespace: str = "AppStream" _version: str = "1.0" @@ -30,6 +24,8 @@ def artifact_kind_from_string(kind: str) -> ArtifactKind: ... def artifact_kind_to_string(kind: ArtifactKind) -> str: ... def bundle_kind_from_string(bundle_str: str) -> BundleKind: ... def bundle_kind_to_string(kind: BundleKind) -> str: ... +def chassis_kind_from_string(kind_str: str) -> ChassisKind: ... +def chassis_kind_to_string(kind: ChassisKind) -> str: ... def checksum_kind_from_string(kind_str: str) -> ChecksumKind: ... def checksum_kind_to_string(kind: ChecksumKind) -> str: ... def color_kind_from_string(str: str) -> ColorKind: ... @@ -53,20 +49,17 @@ def content_rating_value_from_string(value: str) -> ContentRatingValue: ... def content_rating_value_to_string(value: ContentRatingValue) -> str: ... def control_kind_from_string(kind_str: str) -> ControlKind: ... def control_kind_to_string(kind: ControlKind) -> str: ... -def display_length_kind_from_string(kind_str: str) -> DisplayLengthKind: ... -def display_length_kind_to_string(kind: DisplayLengthKind) -> str: ... def display_side_kind_from_string(kind_str: str) -> DisplaySideKind: ... def display_side_kind_to_string(kind: DisplaySideKind) -> str: ... def format_kind_from_string(kind_str: str) -> FormatKind: ... def format_kind_to_string(kind: FormatKind) -> str: ... def format_version_from_string(version_str: str) -> FormatVersion: ... def format_version_to_string(version: FormatVersion) -> str: ... -def get_appstream_version() -> str: ... def get_current_distro_component_id() -> str: ... def get_default_categories(with_special: bool) -> list[Category]: ... -def get_license_url(license: str) -> str: ... -def gstring_replace(string: GLib.String, find: str, replace: str) -> int: ... -def gstring_replace2( +def get_license_name(license: str) -> Optional[str]: ... +def get_license_url(license: str) -> Optional[str]: ... +def gstring_replace( string: GLib.String, find: str, replace: str, limit: int ) -> int: ... def icon_kind_from_string(kind_str: str) -> IconKind: ... @@ -88,7 +81,7 @@ def license_is_free_license(license: str) -> bool: ... def license_is_metadata_license(license: str) -> bool: ... def license_is_metadata_license_id(license_id: str) -> bool: ... def license_to_spdx_id(license: str) -> str: ... -def markup_convert_simple(markup: str) -> str: ... +def markup_convert(markup: str, to_kind: MarkupKind) -> str: ... def markup_strsplit_words(text: str, line_len: int) -> list[str]: ... def merge_kind_from_string(kind_str: str) -> MergeKind: ... def merge_kind_to_string(kind: MergeKind) -> str: ... @@ -97,6 +90,8 @@ def pool_error_quark() -> int: ... def provided_kind_from_string(kind_str: str) -> ProvidedKind: ... def provided_kind_to_l10n_string(kind: ProvidedKind) -> str: ... def provided_kind_to_string(kind: ProvidedKind) -> str: ... +def reference_kind_from_string(str: str) -> ReferenceKind: ... +def reference_kind_to_string(kind: ReferenceKind) -> str: ... def relation_compare_from_string(compare_str: str) -> RelationCompare: ... def relation_compare_to_string(compare: RelationCompare) -> str: ... def relation_compare_to_symbols_string(compare: RelationCompare) -> str: ... @@ -107,10 +102,10 @@ def relation_kind_from_string(kind_str: str) -> RelationKind: ... def relation_kind_to_string(kind: RelationKind) -> str: ... def release_kind_from_string(kind_str: str) -> ReleaseKind: ... def release_kind_to_string(kind: ReleaseKind) -> str: ... +def release_list_kind_from_string(kind_str: str) -> ReleaseListKind: ... +def release_list_kind_to_string(kind: ReleaseListKind) -> str: ... def release_url_kind_from_string(kind_str: str) -> ReleaseUrlKind: ... def release_url_kind_to_string(kind: ReleaseUrlKind) -> str: ... -def releases_kind_from_string(kind_str: str) -> ReleasesKind: ... -def releases_kind_to_string(kind: ReleasesKind) -> str: ... def screenshot_kind_from_string(kind: str) -> ScreenshotKind: ... def screenshot_kind_to_string(kind: ScreenshotKind) -> str: ... def size_kind_from_string(size_kind: str) -> SizeKind: ... @@ -129,7 +124,6 @@ def url_kind_to_string(url_kind: UrlKind) -> str: ... def utils_build_data_id( scope: ComponentScope, bundle_kind: BundleKind, origin: str, cid: str, branch: str ) -> str: ... -def utils_compare_versions(a: str, b: str) -> int: ... def utils_data_id_equal(data_id1: str, data_id2: str) -> bool: ... def utils_data_id_get_cid(data_id: str) -> str: ... def utils_data_id_hash(data_id: str) -> int: ... @@ -138,15 +132,22 @@ def utils_data_id_match( ) -> bool: ... def utils_data_id_valid(data_id: str) -> bool: ... def utils_error_quark() -> int: ... +def utils_get_desktop_environment_name(de_id: str) -> str: ... +def utils_get_gui_environment_style_name(env_style: str) -> str: ... +def utils_get_tag_search_weight(tag_name: str) -> int: ... def utils_guess_scope_from_path(path: str) -> ComponentScope: ... def utils_install_metadata_file( location: MetadataLocation, filename: str, origin: str, destdir: str ) -> bool: ... def utils_is_category_name(category_name: str) -> bool: ... -def utils_is_desktop_environment(desktop: str) -> bool: ... +def utils_is_desktop_environment(de_id: str) -> bool: ... +def utils_is_gui_environment_style(env_style: str) -> bool: ... def utils_is_platform_triplet(triplet: str) -> bool: ... def utils_is_tld(tld: str) -> bool: ... -def utils_locale_is_compatible(locale1: str, locale2: str) -> bool: ... +def utils_locale_is_compatible( + locale1: Optional[str] = None, locale2: Optional[str] = None +) -> bool: ... +def utils_posix_locale_to_bcp47(locale: str) -> str: ... def utils_sort_components_into_categories( cpts: Sequence[Component], categories: Sequence[Category], check_duplicates: bool ) -> None: ... @@ -223,13 +224,13 @@ class AgreementSection(GObject.Object): """ parent_instance: GObject.Object = ... - def get_active_locale(self) -> str: ... + def get_context(self) -> Optional[Context]: ... def get_description(self) -> str: ... def get_kind(self) -> str: ... def get_name(self) -> str: ... @classmethod def new(cls) -> AgreementSection: ... - def set_active_locale(self, locale: str) -> None: ... + def set_context(self, context: Context) -> None: ... def set_description(self, desc: str, locale: Optional[str] = None) -> None: ... def set_kind(self, kind: str) -> None: ... def set_name(self, name: str, locale: Optional[str] = None) -> None: ... @@ -440,7 +441,6 @@ class Category(GObject.Object): id: str name: str summary: str - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, icon: str = ..., id: str = ..., name: str = ...): ... @@ -487,7 +487,7 @@ class Checksum(GObject.Object): Checksum(**properties) new() -> AppStream.Checksum - new_for_kind_value(kind:AppStream.ChecksumKind, value:str) -> AppStream.Checksum + new_with_value(kind:AppStream.ChecksumKind, value:str) -> AppStream.Checksum Object AsChecksum @@ -501,7 +501,7 @@ class Checksum(GObject.Object): @classmethod def new(cls) -> Checksum: ... @classmethod - def new_for_kind_value(cls, kind: ChecksumKind, value: str) -> Checksum: ... + def new_with_value(cls, kind: ChecksumKind, value: str) -> Checksum: ... def set_kind(self, kind: ChecksumKind) -> None: ... def set_value(self, value: str) -> None: ... @@ -558,8 +558,6 @@ class Component(GObject.Object): project-license project-group -> gchararray: project-group project-group - developer-name -> gchararray: developer-name - developer-name screenshots -> GPtrArray: screenshots screenshots @@ -570,7 +568,6 @@ class Component(GObject.Object): class Props: categories: list[None] description: str - developer_name: str icons: list[Icon] id: str keywords: list[str] @@ -582,13 +579,11 @@ class Component(GObject.Object): screenshots: list[Screenshot] summary: str urls: dict[UrlKind, str] - props: Props = ... parent_instance: GObject.Object = ... def __init__( self, description: str = ..., - developer_name: str = ..., id: str = ..., keywords: Sequence[str] = ..., kind: ComponentKind = ..., @@ -605,10 +600,12 @@ class Component(GObject.Object): def add_content_rating(self, content_rating: ContentRating) -> None: ... def add_extends(self, cpt_id: str) -> None: ... def add_icon(self, icon: Icon) -> None: ... + def add_keyword(self, keyword: str, locale: Optional[str] = None) -> None: ... def add_language(self, locale: Optional[str], percentage: int) -> None: ... def add_launchable(self, launchable: Launchable) -> None: ... def add_provided(self, prov: Provided) -> None: ... def add_provided_item(self, kind: ProvidedKind, item: str) -> None: ... + def add_reference(self, reference: Reference) -> None: ... def add_relation(self, relation: Relation) -> None: ... def add_release(self, release: Release) -> None: ... def add_replaces(self, cid: str) -> None: ... @@ -618,9 +615,15 @@ class Component(GObject.Object): def add_tag(self, ns: str, tag: str) -> bool: ... def add_translation(self, tr: Translation) -> None: ... def add_url(self, url_kind: UrlKind, url: str) -> None: ... + def check_relations( + self, + sysinfo: Optional[SystemInfo], + pool: Optional[Pool], + rel_kind: RelationKind, + ) -> list[RelationCheckResult]: ... + def clear_keywords(self, locale: Optional[str] = None) -> None: ... def clear_languages(self) -> None: ... def clear_tags(self) -> None: ... - def get_active_locale(self) -> str: ... def get_addons(self) -> list[Component]: ... def get_agreement_by_kind(self, kind: AgreementKind) -> Optional[Agreement]: ... def get_agreements(self) -> list[Agreement]: ... @@ -638,8 +641,7 @@ class Component(GObject.Object): def get_data_id(self) -> str: ... def get_date_eol(self) -> str: ... def get_description(self) -> str: ... - def get_desktop_id(self) -> str: ... - def get_developer_name(self) -> str: ... + def get_developer(self) -> Developer: ... def get_extends(self) -> Optional[list[str]]: ... def get_icon_by_size(self, width: int, height: int) -> Optional[Icon]: ... def get_icon_stock(self) -> Optional[Icon]: ... @@ -666,14 +668,13 @@ class Component(GObject.Object): def get_provided(self) -> list[Provided]: ... def get_provided_for_kind(self, kind: ProvidedKind) -> Optional[Provided]: ... def get_recommends(self) -> list[Relation]: ... - def get_releases(self) -> list[Release]: ... - def get_releases_kind(self) -> ReleasesKind: ... - def get_releases_url(self) -> str: ... + def get_references(self) -> list[Reference]: ... + def get_releases_plain(self) -> ReleaseList: ... def get_replaces(self) -> list[str]: ... def get_requires(self) -> list[Relation]: ... def get_reviews(self) -> list[Review]: ... def get_scope(self) -> ComponentScope: ... - def get_screenshots(self) -> list[Screenshot]: ... + def get_screenshots_all(self) -> list[Screenshot]: ... def get_search_tokens(self) -> list[str]: ... def get_sort_score(self) -> int: ... def get_source_pkgname(self) -> str: ... @@ -681,41 +682,42 @@ class Component(GObject.Object): def get_summary(self) -> str: ... def get_summary_table(self) -> dict[None, None]: ... def get_supports(self) -> list[Relation]: ... + def get_system_compatibility_score( + self, sysinfo: SystemInfo, is_template: bool + ) -> Tuple[int, list[RelationCheckResult]]: ... def get_timestamp_eol(self) -> int: ... def get_translations(self) -> list[Translation]: ... def get_url(self, url_kind: UrlKind) -> Optional[str]: ... - def get_value_flags(self) -> ValueFlags: ... def has_bundle(self) -> bool: ... def has_category(self, category: str) -> bool: ... def has_tag(self, ns: str, tag: str) -> bool: ... def insert_custom_value(self, key: str, value: str) -> bool: ... def is_compulsory_for_desktop(self, desktop: str) -> bool: ... - def is_free(self) -> bool: ... + def is_floss(self) -> bool: ... def is_ignored(self) -> bool: ... def is_member_of_category(self, category: Category) -> bool: ... def is_valid(self) -> bool: ... def load_from_bytes( self, context: Context, format: FormatKind, bytes: GLib.Bytes ) -> bool: ... - def load_from_xml_data(self, context: Context, data: str) -> bool: ... - def load_releases(self, reload: bool, allow_net: bool) -> bool: ... - def load_releases_from_bytes(self, bytes: GLib.Bytes) -> bool: ... + def load_releases(self, allow_net: bool) -> Optional[ReleaseList]: ... @classmethod def new(cls) -> Component: ... def remove_tag(self, ns: str, tag: str) -> bool: ... def search_matches(self, term: str) -> int: ... def search_matches_all(self, terms: str) -> int: ... - def set_active_locale(self, locale: Optional[str] = None) -> None: ... def set_branch(self, branch: str) -> None: ... def set_branding(self, branding: Branding) -> None: ... def set_compulsory_for_desktop(self, desktop: str) -> None: ... + def set_context(self, context: Context) -> None: ... + def set_context_locale(self, locale: str) -> None: ... def set_data_id(self, value: str) -> None: ... def set_date_eol(self, date: str) -> None: ... def set_description(self, value: str, locale: Optional[str] = None) -> None: ... - def set_developer_name(self, value: str, locale: Optional[str] = None) -> None: ... + def set_developer(self, developer: Developer) -> None: ... def set_id(self, value: str) -> None: ... def set_keywords( - self, value: Sequence[str], locale: Optional[str] = None + self, new_keywords: Sequence[str], locale: Optional[str], deep_copy: bool ) -> None: ... def set_kind(self, value: ComponentKind) -> None: ... def set_merge_kind(self, kind: MergeKind) -> None: ... @@ -730,16 +732,75 @@ class Component(GObject.Object): def set_priority(self, priority: int) -> None: ... def set_project_group(self, value: str) -> None: ... def set_project_license(self, value: str) -> None: ... - def set_releases_kind(self, kind: ReleasesKind) -> None: ... - def set_releases_url(self, url: str) -> None: ... + def set_releases(self, releases: ReleaseList) -> None: ... def set_scope(self, scope: ComponentScope) -> None: ... def set_sort_score(self, score: int) -> None: ... def set_source_pkgname(self, spkgname: str) -> None: ... def set_summary(self, value: str, locale: Optional[str] = None) -> None: ... - def set_value_flags(self, flags: ValueFlags) -> None: ... + def sort_screenshots( + self, environment: Optional[str], style: Optional[str], prioritize_style: bool + ) -> None: ... def to_string(self) -> str: ... def to_xml_data(self, context: Context) -> str: ... +class ComponentBox(GObject.Object): + """ + :Constructors: + + :: + + ComponentBox(**properties) + new(flags:AppStream.ComponentBoxFlags) -> AppStream.ComponentBox + new_simple() -> AppStream.ComponentBox + + Object AsComponentBox + + Properties from AsComponentBox: + flags -> guint: Flags + Component box flags + + Signals from GObject: + notify (GParam) + """ + + class Props: + flags: int + props: Props = ... + parent_instance: GObject.Object = ... + cpts: list[None] = ... + def __init__(self, flags: int = ...): ... + def add(self, cpt: Component) -> bool: ... + def as_array(self) -> list[Component]: ... + def clear(self) -> None: ... + def get_flags(self) -> ComponentBoxFlags: ... + def get_size(self) -> int: ... + def index_safe(self, index: int) -> Component: ... + def is_empty(self) -> bool: ... + @classmethod + def new(cls, flags: ComponentBoxFlags) -> ComponentBox: ... + @classmethod + def new_simple(cls) -> ComponentBox: ... + def remove_at(self, index: int) -> None: ... + def sort(self) -> None: ... + def sort_by_score(self) -> None: ... + +class ComponentBoxClass(GObject.GPointer): + """ + :Constructors: + + :: + + ComponentBoxClass() + """ + + parent_class: GObject.ObjectClass = ... + _as_reserved1: None = ... + _as_reserved2: None = ... + _as_reserved3: None = ... + _as_reserved4: None = ... + _as_reserved5: None = ... + _as_reserved6: None = ... + class ComponentClass(GObject.GPointer): """ :Constructors: @@ -827,21 +888,23 @@ class Context(GObject.Object): def get_filename(self) -> str: ... def get_format_version(self) -> FormatVersion: ... def get_locale(self) -> str: ... - def get_locale_all_enabled(self) -> bool: ... + def get_locale_use_all(self) -> bool: ... def get_media_baseurl(self) -> str: ... def get_origin(self) -> str: ... def get_priority(self) -> int: ... def get_style(self) -> FormatStyle: ... + def get_value_flags(self) -> ValueFlags: ... def has_media_baseurl(self) -> bool: ... @classmethod def new(cls) -> Context: ... def set_filename(self, fname: str) -> None: ... def set_format_version(self, ver: FormatVersion) -> None: ... - def set_locale(self, value: str) -> None: ... + def set_locale(self, locale: Optional[str] = None) -> None: ... def set_media_baseurl(self, value: str) -> None: ... def set_origin(self, value: str) -> None: ... def set_priority(self, priority: int) -> None: ... def set_style(self, style: FormatStyle) -> None: ... + def set_value_flags(self, flags: ValueFlags) -> None: ... class ContextClass(GObject.GPointer): """ @@ -860,56 +923,36 @@ class ContextClass(GObject.GPointer): _as_reserved5: None = ... _as_reserved6: None = ... -class DistroDetails(GObject.Object): +class Developer(GObject.Object): """ :Constructors: :: - DistroDetails(**properties) - new() -> AppStream.DistroDetails + Developer(**properties) + new() -> AppStream.Developer - Object AsDistroDetails - - Properties from AsDistroDetails: - id -> gchararray: id - id - name -> gchararray: name - name - version -> gchararray: version - version - homepage -> gchararray: homepage - homepage + Object AsDeveloper Signals from GObject: notify (GParam) """ - class Props: - homepage: str - id: str - name: str - version: str - - props: Props = ... parent_instance: GObject.Object = ... - def get_bool(self, key: str, default_val: bool) -> bool: ... - def get_cid(self) -> str: ... - def get_homepage(self) -> str: ... def get_id(self) -> str: ... def get_name(self) -> str: ... - def get_str(self, key: str) -> str: ... - def get_version(self) -> str: ... @classmethod - def new(cls) -> DistroDetails: ... + def new(cls) -> Developer: ... + def set_id(self, id: str) -> None: ... + def set_name(self, value: str, locale: Optional[str] = None) -> None: ... -class DistroDetailsClass(GObject.GPointer): +class DeveloperClass(GObject.GPointer): """ :Constructors: :: - DistroDetailsClass() + DeveloperClass() """ parent_class: GObject.ObjectClass = ... @@ -989,6 +1032,7 @@ class Image(GObject.Object): def get_height(self) -> int: ... def get_kind(self) -> ImageKind: ... def get_locale(self) -> str: ... + def get_scale(self) -> int: ... def get_url(self) -> str: ... def get_width(self) -> int: ... @classmethod @@ -996,6 +1040,7 @@ class Image(GObject.Object): def set_height(self, height: int) -> None: ... def set_kind(self, kind: ImageKind) -> None: ... def set_locale(self, locale: str) -> None: ... + def set_scale(self, scale: int) -> None: ... def set_url(self, url: str) -> None: ... def set_width(self, width: int) -> None: ... @@ -1116,33 +1161,34 @@ class Metadata(GObject.Object): parent_instance: GObject.Object = ... def add_component(self, cpt: Component) -> None: ... def clear_components(self) -> None: ... + def clear_releases(self) -> None: ... def component_to_metainfo(self, format: FormatKind) -> str: ... def components_to_catalog(self, format: FormatKind) -> str: ... - def components_to_collection(self, format: FormatKind) -> str: ... @staticmethod def file_guess_style(filename: str) -> FormatStyle: ... def get_architecture(self) -> str: ... def get_component(self) -> Optional[Component]: ... - def get_components(self) -> list[Component]: ... + def get_components(self) -> ComponentBox: ... def get_format_style(self) -> FormatStyle: ... def get_format_version(self) -> FormatVersion: ... def get_locale(self) -> str: ... def get_media_baseurl(self) -> str: ... def get_origin(self) -> str: ... def get_parse_flags(self) -> ParseFlags: ... + def get_release_list(self) -> Optional[ReleaseList]: ... + def get_release_lists(self) -> list[ReleaseList]: ... def get_update_existing(self) -> bool: ... def get_write_header(self) -> bool: ... @classmethod def new(cls) -> Metadata: ... - def parse(self, data: str, format: FormatKind) -> bool: ... def parse_bytes(self, bytes: GLib.Bytes, format: FormatKind) -> bool: ... - def parse_desktop_data(self, data: str, cid: str) -> bool: ... + def parse_data(self, data: str, data_len: int, format: FormatKind) -> bool: ... + def parse_desktop_data(self, cid: str, data: str, data_len: int) -> bool: ... def parse_file(self, file: Gio.File, format: FormatKind) -> bool: ... - def parse_releases_bytes(self, bytes: GLib.Bytes) -> Optional[list[Release]]: ... - def parse_releases_file(self, file: Gio.File) -> Optional[list[Release]]: ... - def releases_to_data(self, releases: Sequence[Release]) -> str: ... + def parse_releases_bytes(self, bytes: GLib.Bytes) -> bool: ... + def parse_releases_file(self, file: Gio.File) -> bool: ... + def releases_to_data(self, releases: ReleaseList) -> str: ... def save_catalog(self, fname: str, format: FormatKind) -> bool: ... - def save_collection(self, fname: str, format: FormatKind) -> bool: ... def save_metainfo(self, fname: str, format: FormatKind) -> bool: ... def set_architecture(self, arch: str) -> None: ... def set_format_style(self, mode: FormatStyle) -> None: ... @@ -1190,38 +1236,33 @@ class Pool(GObject.Object): """ parent_instance: GObject.Object = ... - def add_component(self, cpt: Component) -> bool: ... - def add_components(self, cpts: Sequence[Component]) -> bool: ... + def add_components(self, cbox: ComponentBox) -> bool: ... def add_extra_data_location( self, directory: str, format_style: FormatStyle ) -> None: ... def add_flags(self, flags: PoolFlags) -> None: ... - def add_metadata_location(self, directory: str) -> None: ... def build_search_tokens(self, search: str) -> list[str]: ... def clear(self) -> None: ... - def clear2(self) -> bool: ... - def clear_metadata_locations(self) -> None: ... def do_changed(self) -> None: ... - def get_cache_flags(self) -> CacheFlags: ... - def get_cache_location(self) -> str: ... - def get_components(self) -> list[Component]: ... + def get_components(self) -> ComponentBox: ... def get_components_by_bundle_id( self, kind: BundleKind, bundle_id: str, match_prefix: bool - ) -> list[Component]: ... + ) -> ComponentBox: ... def get_components_by_categories( self, categories: Sequence[str] - ) -> list[Component]: ... - def get_components_by_extends(self, extended_id: str) -> list[Component]: ... - def get_components_by_id(self, cid: str) -> list[Component]: ... - def get_components_by_kind(self, kind: ComponentKind) -> list[Component]: ... + ) -> ComponentBox: ... + def get_components_by_extends(self, extended_id: str) -> ComponentBox: ... + def get_components_by_id(self, cid: str) -> ComponentBox: ... + def get_components_by_kind(self, kind: ComponentKind) -> ComponentBox: ... def get_components_by_launchable( self, kind: LaunchableKind, id: str - ) -> list[Component]: ... + ) -> ComponentBox: ... def get_components_by_provided_item( self, kind: ProvidedKind, item: str - ) -> list[Component]: ... + ) -> ComponentBox: ... def get_flags(self) -> PoolFlags: ... def get_locale(self) -> str: ... + def is_empty(self) -> bool: ... def load(self, cancellable: Optional[Gio.Cancellable] = None) -> bool: ... def load_async( self, @@ -1229,17 +1270,12 @@ class Pool(GObject.Object): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... - def load_cache_file(self, fname: str) -> bool: ... def load_finish(self, result: Gio.AsyncResult) -> bool: ... @classmethod def new(cls) -> Pool: ... - def refresh_cache(self, force: bool) -> bool: ... def remove_flags(self, flags: PoolFlags) -> None: ... def reset_extra_data_locations(self) -> None: ... - def save_cache_file(self, fname: str) -> bool: ... - def search(self, search: str) -> list[Component]: ... - def set_cache_flags(self, flags: CacheFlags) -> None: ... - def set_cache_location(self, fname: str) -> None: ... + def search(self, search: str) -> ComponentBox: ... def set_flags(self, flags: PoolFlags) -> None: ... def set_load_std_data_locations(self, enabled: bool) -> None: ... def set_locale(self, locale: str) -> None: ... @@ -1302,6 +1338,48 @@ class ProvidedClass(GObject.GPointer): _as_reserved5: None = ... _as_reserved6: None = ... +class Reference(GObject.Object): + """ + :Constructors: + + :: + + Reference(**properties) + new() -> AppStream.Reference + + Object AsReference + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + def get_kind(self) -> ReferenceKind: ... + def get_registry_name(self) -> Optional[str]: ... + def get_value(self) -> str: ... + @classmethod + def new(cls) -> Reference: ... + def set_kind(self, kind: ReferenceKind) -> None: ... + def set_registry_name(self, name: str) -> None: ... + def set_value(self, value: str) -> None: ... + +class ReferenceClass(GObject.GPointer): + """ + :Constructors: + + :: + + ReferenceClass() + """ + + parent_class: GObject.ObjectClass = ... + _as_reserved1: None = ... + _as_reserved2: None = ... + _as_reserved3: None = ... + _as_reserved4: None = ... + _as_reserved5: None = ... + _as_reserved6: None = ... + class Relation(GObject.Object): """ :Constructors: @@ -1318,13 +1396,15 @@ class Relation(GObject.Object): """ parent_instance: GObject.Object = ... + @staticmethod + def check_results_get_compatibility_score( + rc_results: Sequence[RelationCheckResult], + ) -> int: ... def get_compare(self) -> RelationCompare: ... def get_display_side_kind(self) -> DisplaySideKind: ... def get_item_kind(self) -> RelationItemKind: ... def get_kind(self) -> RelationKind: ... - def get_value(self) -> str: ... def get_value_control_kind(self) -> ControlKind: ... - def get_value_display_length_kind(self) -> DisplayLengthKind: ... def get_value_int(self) -> int: ... def get_value_internet_bandwidth(self) -> int: ... def get_value_internet_kind(self) -> InternetKind: ... @@ -1333,16 +1413,14 @@ class Relation(GObject.Object): def get_version(self) -> str: ... def is_satisfied( self, system_info: Optional[SystemInfo] = None, pool: Optional[Pool] = None - ) -> Tuple[CheckResult, str]: ... + ) -> Optional[RelationCheckResult]: ... @classmethod def new(cls) -> Relation: ... def set_compare(self, compare: RelationCompare) -> None: ... def set_display_side_kind(self, kind: DisplaySideKind) -> None: ... def set_item_kind(self, kind: RelationItemKind) -> None: ... def set_kind(self, kind: RelationKind) -> None: ... - def set_value(self, value: str) -> None: ... def set_value_control_kind(self, kind: ControlKind) -> None: ... - def set_value_display_length_kind(self, kind: DisplayLengthKind) -> None: ... def set_value_int(self, value: int) -> None: ... def set_value_internet_bandwidth(self, bandwidth_mbitps: int) -> None: ... def set_value_internet_kind(self, kind: InternetKind) -> None: ... @@ -1351,6 +1429,49 @@ class Relation(GObject.Object): def set_version(self, version: str) -> None: ... def version_compare(self, version: str) -> bool: ... +class RelationCheckResult(GObject.Object): + """ + :Constructors: + + :: + + RelationCheckResult(**properties) + new() -> AppStream.RelationCheckResult + + Object AsRelationCheckResult + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + def get_error_code(self) -> RelationError: ... + def get_message(self) -> Optional[str]: ... + def get_relation(self) -> Optional[Relation]: ... + def get_status(self) -> RelationStatus: ... + @classmethod + def new(cls) -> RelationCheckResult: ... + def set_error_code(self, ecode: RelationError) -> None: ... + def set_relation(self, relation: Relation) -> None: ... + def set_status(self, status: RelationStatus) -> None: ... + +class RelationCheckResultClass(GObject.GPointer): + """ + :Constructors: + + :: + + RelationCheckResultClass() + """ + + parent_class: GObject.ObjectClass = ... + _as_reserved1: None = ... + _as_reserved2: None = ... + _as_reserved3: None = ... + _as_reserved4: None = ... + _as_reserved5: None = ... + _as_reserved6: None = ... + class RelationClass(GObject.GPointer): """ :Constructors: @@ -1385,35 +1506,32 @@ class Release(GObject.Object): parent_instance: GObject.Object = ... def add_artifact(self, artifact: Artifact) -> None: ... - def add_checksum(self, cs: Checksum) -> None: ... def add_issue(self, issue: Issue) -> None: ... - def add_location(self, location: str) -> None: ... - def get_active_locale(self) -> str: ... + def add_tag(self, ns: str, tag: str) -> bool: ... + def clear_tags(self) -> None: ... def get_artifacts(self) -> list[Artifact]: ... - def get_checksum(self, kind: ChecksumKind) -> Optional[Checksum]: ... - def get_checksums(self) -> list[Checksum]: ... + def get_context(self) -> Optional[Context]: ... def get_date(self) -> Optional[str]: ... def get_date_eol(self) -> Optional[str]: ... def get_description(self) -> Optional[str]: ... def get_issues(self) -> list[Issue]: ... def get_kind(self) -> ReleaseKind: ... - def get_locations(self) -> list[str]: ... - def get_size(self, kind: SizeKind) -> int: ... def get_timestamp(self) -> int: ... def get_timestamp_eol(self) -> int: ... def get_urgency(self) -> UrgencyKind: ... def get_url(self, url_kind: ReleaseUrlKind) -> Optional[str]: ... def get_version(self) -> Optional[str]: ... + def has_tag(self, ns: str, tag: str) -> bool: ... @classmethod def new(cls) -> Release: ... - def set_active_locale(self, locale: str) -> None: ... + def remove_tag(self, ns: str, tag: str) -> bool: ... + def set_context(self, context: Context) -> None: ... def set_date(self, date: str) -> None: ... def set_date_eol(self, date: str) -> None: ... def set_description( self, description: str, locale: Optional[str] = None ) -> None: ... def set_kind(self, kind: ReleaseKind) -> None: ... - def set_size(self, size: int, kind: SizeKind) -> None: ... def set_timestamp(self, timestamp: int) -> None: ... def set_timestamp_eol(self, timestamp: int) -> None: ... def set_urgency(self, urgency: UrgencyKind) -> None: ... @@ -1438,6 +1556,60 @@ class ReleaseClass(GObject.GPointer): _as_reserved5: None = ... _as_reserved6: None = ... +class ReleaseList(GObject.Object): + """ + :Constructors: + + :: + + ReleaseList(**properties) + new() -> AppStream.ReleaseList + + Object AsReleaseList + + Signals from GObject: + notify (GParam) + """ + + parent_instance: GObject.Object = ... + entries: list[None] = ... + def add(self, release: Release) -> None: ... + def clear(self) -> None: ... + def get_context(self) -> Optional[Context]: ... + def get_entries(self) -> list[Release]: ... + def get_kind(self) -> ReleaseListKind: ... + def get_size(self) -> int: ... + def get_url(self) -> Optional[str]: ... + def index_safe(self, index: int) -> Release: ... + def is_empty(self) -> bool: ... + def load_from_bytes( + self, context: Optional[Context], bytes: GLib.Bytes + ) -> bool: ... + @classmethod + def new(cls) -> ReleaseList: ... + def set_context(self, context: Context) -> None: ... + def set_kind(self, kind: ReleaseListKind) -> None: ... + def set_size(self, size: int) -> None: ... + def set_url(self, url: str) -> None: ... + def sort(self) -> None: ... + +class ReleaseListClass(GObject.GPointer): + """ + :Constructors: + + :: + + ReleaseListClass() + """ + + parent_class: GObject.ObjectClass = ... + _as_reserved1: None = ... + _as_reserved2: None = ... + _as_reserved3: None = ... + _as_reserved4: None = ... + _as_reserved5: None = ... + _as_reserved6: None = ... + class Review(GObject.Object): """ :Constructors: @@ -1478,7 +1650,6 @@ class Review(GObject.Object): reviewer_name: str summary: str version: str - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -1562,9 +1733,10 @@ class Screenshot(GObject.Object): def add_image(self, image: Image) -> None: ... def add_video(self, video: Video) -> None: ... def clear_images(self) -> None: ... - def get_active_locale(self) -> str: ... def get_caption(self) -> str: ... - def get_image(self, width: int, height: int) -> Image: ... + def get_context(self) -> Optional[Context]: ... + def get_environment(self) -> Optional[str]: ... + def get_image(self, width: int, height: int, scale: int) -> Optional[Image]: ... def get_images(self) -> list[Image]: ... def get_images_all(self) -> list[Image]: ... def get_kind(self) -> ScreenshotKind: ... @@ -1574,8 +1746,9 @@ class Screenshot(GObject.Object): def is_valid(self) -> bool: ... @classmethod def new(cls) -> Screenshot: ... - def set_active_locale(self, locale: str) -> None: ... def set_caption(self, caption: str, locale: str) -> None: ... + def set_context(self, context: Context) -> None: ... + def set_environment(self, env_id: Optional[str] = None) -> None: ... def set_kind(self, kind: ScreenshotKind) -> None: ... class ScreenshotClass(GObject.GPointer): @@ -1644,6 +1817,7 @@ class SystemInfo(GObject.Object): SystemInfo(**properties) new() -> AppStream.SystemInfo + new_template_for_chassis(chassis:AppStream.ChassisKind) -> AppStream.SystemInfo Object AsSystemInfo @@ -1656,6 +1830,7 @@ class SystemInfo(GObject.Object): self, modalias: str, allow_fallback: bool ) -> str: ... def get_display_length(self, side: DisplaySideKind) -> int: ... + def get_gui_available(self) -> bool: ... def get_kernel_name(self) -> str: ... def get_kernel_version(self) -> str: ... def get_memory_total(self) -> int: ... @@ -1670,7 +1845,10 @@ class SystemInfo(GObject.Object): def modalias_to_syspath(self, modalias: str) -> str: ... @classmethod def new(cls) -> SystemInfo: ... + @classmethod + def new_template_for_chassis(cls, chassis: ChassisKind) -> SystemInfo: ... def set_display_length(self, side: DisplaySideKind, value_dip: int) -> None: ... + def set_gui_available(self, available: bool) -> None: ... def set_input_control(self, kind: ControlKind, found: bool) -> None: ... class SystemInfoClass(GObject.GPointer): @@ -1753,20 +1931,20 @@ class Validator(GObject.Object): self, release_fname: str, release_metadata: GLib.Bytes ) -> bool: ... def add_release_file(self, release_file: Gio.File) -> bool: ... - def clear_issues(self) -> None: ... + def check_success(self) -> bool: ... def clear_release_data(self) -> None: ... - def get_check_urls(self) -> bool: ... + def get_allow_net(self) -> bool: ... def get_issue_files_count(self) -> int: ... def get_issues(self) -> list[ValidatorIssue]: ... def get_issues_per_file(self) -> dict[str, Sequence[ValidatorIssue]]: ... - def get_report_yaml(self, yaml_report: str) -> bool: ... + def get_report_yaml(self) -> str: ... def get_strict(self) -> bool: ... def get_tag_explanation(self, tag: str) -> str: ... def get_tag_severity(self, tag: str) -> IssueSeverity: ... def get_tags(self) -> list[str]: ... @classmethod def new(cls) -> Validator: ... - def set_check_urls(self, value: bool) -> None: ... + def set_allow_net(self, value: bool) -> None: ... def set_strict(self, is_strict: bool) -> None: ... def validate_bytes(self, metadata: GLib.Bytes) -> bool: ... def validate_data(self, metadata: str) -> bool: ... @@ -1810,10 +1988,8 @@ class ValidatorIssue(GObject.Object): def get_explanation(self) -> str: ... def get_filename(self) -> str: ... def get_hint(self) -> str: ... - def get_importance(self) -> IssueSeverity: ... def get_line(self) -> int: ... def get_location(self) -> str: ... - def get_message(self) -> str: ... def get_severity(self) -> IssueSeverity: ... def get_tag(self) -> str: ... @classmethod @@ -1822,9 +1998,7 @@ class ValidatorIssue(GObject.Object): def set_explanation(self, explanation: str) -> None: ... def set_filename(self, fname: str) -> None: ... def set_hint(self, hint: str) -> None: ... - def set_importance(self, importance: IssueSeverity) -> None: ... def set_line(self, line: int) -> None: ... - def set_message(self, message: str) -> None: ... def set_severity(self, severity: IssueSeverity) -> None: ... def set_tag(self, tag: str) -> None: ... @@ -1900,6 +2074,10 @@ class CacheFlags(GObject.GFlags): USE_SYSTEM = 2 USE_USER = 1 +class ComponentBoxFlags(GObject.GFlags): + NONE = 0 + NO_CHECKS = 1 + class DataIdMatchFlags(GObject.GFlags): BRANCH = 16 BUNDLE_KIND = 2 @@ -1928,17 +2106,6 @@ class ReviewFlags(GObject.GFlags): SELF = 1 VOTED = 2 -class SearchTokenMatch(GObject.GFlags): - DESCRIPTION = 8 - ID = 128 - KEYWORD = 32 - MEDIATYPE = 1 - NAME = 64 - NONE = 0 - ORIGIN = 4 - PKGNAME = 2 - SUMMARY = 16 - class ValueFlags(GObject.GFlags): DUPLICATE_CHECK = 1 NONE = 0 @@ -1972,6 +2139,7 @@ class BundleKind(GObject.GEnum): CABINET = 7 FLATPAK = 3 LIMBA = 2 + LINGLONG = 8 PACKAGE = 1 SNAP = 5 TARBALL = 6 @@ -1981,6 +2149,18 @@ class BundleKind(GObject.GEnum): @staticmethod def to_string(kind: BundleKind) -> str: ... +class ChassisKind(GObject.GEnum): + DESKTOP = 1 + HANDSET = 5 + LAPTOP = 2 + SERVER = 3 + TABLET = 4 + UNKNOWN = 0 + @staticmethod + def from_string(kind_str: str) -> ChassisKind: ... + @staticmethod + def to_string(kind: ChassisKind) -> str: ... + class CheckResult(GObject.GEnum): ERROR = 0 FALSE = 2 @@ -1988,11 +2168,12 @@ class CheckResult(GObject.GEnum): UNKNOWN = 1 class ChecksumKind(GObject.GEnum): - BLAKE2B = 3 - BLAKE2S = 4 + BLAKE2B = 4 + BLAKE3 = 5 NONE = 0 SHA1 = 1 SHA256 = 2 + SHA512 = 3 @staticmethod def from_string(kind_str: str) -> ChecksumKind: ... @staticmethod @@ -2016,21 +2197,21 @@ class ColorSchemeKind(GObject.GEnum): def to_string(kind: ColorSchemeKind) -> str: ... class ComponentKind(GObject.GEnum): - ADDON = 5 - CODEC = 7 + ADDON = 6 + CODEC = 9 CONSOLE_APP = 3 DESKTOP_APP = 2 - DRIVER = 10 - FIRMWARE = 9 - FONT = 6 + DRIVER = 13 + FIRMWARE = 12 + FONT = 8 GENERIC = 1 - ICON_THEME = 15 - INPUT_METHOD = 8 - LOCALIZATION = 11 - OPERATING_SYSTEM = 14 - REPOSITORY = 13 - RUNTIME = 16 - SERVICE = 12 + ICON_THEME = 16 + INPUT_METHOD = 10 + LOCALIZATION = 14 + OPERATING_SYSTEM = 11 + REPOSITORY = 15 + RUNTIME = 7 + SERVICE = 5 UNKNOWN = 0 WEB_APP = 4 @staticmethod @@ -2102,18 +2283,6 @@ class ControlKind(GObject.GEnum): @staticmethod def to_string(kind: ControlKind) -> str: ... -class DisplayLengthKind(GObject.GEnum): - LARGE = 4 - MEDIUM = 3 - SMALL = 2 - UNKNOWN = 0 - XLARGE = 5 - XSMALL = 1 - @staticmethod - def from_string(kind_str: str) -> DisplayLengthKind: ... - @staticmethod - def to_string(kind: DisplayLengthKind) -> str: ... - class DisplaySideKind(GObject.GEnum): LONGEST = 2 SHORTEST = 1 @@ -2139,28 +2308,18 @@ class FormatStyle(GObject.GEnum): UNKNOWN = 0 class FormatVersion(GObject.GEnum): - UNKNOWN = 11 - V0_10 = 4 - V0_11 = 5 - V0_12 = 6 - V0_13 = 7 - V0_14 = 8 - V0_15 = 9 - V0_16 = 10 - V0_6 = 0 - V0_7 = 1 - V0_8 = 2 - V0_9 = 3 + UNKNOWN = 0 + V1_0 = 1 @staticmethod def from_string(version_str: str) -> FormatVersion: ... @staticmethod def to_string(version: FormatVersion) -> str: ... class IconKind(GObject.GEnum): - CACHED = 1 + CACHED = 2 LOCAL = 3 REMOTE = 4 - STOCK = 2 + STOCK = 1 UNKNOWN = 0 @staticmethod def from_string(kind_str: str) -> IconKind: ... @@ -2196,11 +2355,11 @@ class IssueKind(GObject.GEnum): def to_string(kind: IssueKind) -> str: ... class IssueSeverity(GObject.GEnum): - ERROR = 1 - INFO = 3 - PEDANTIC = 4 + ERROR = 4 + INFO = 2 + PEDANTIC = 1 UNKNOWN = 0 - WARNING = 2 + WARNING = 3 @staticmethod def from_string(str: str) -> IssueSeverity: ... @staticmethod @@ -2217,6 +2376,12 @@ class LaunchableKind(GObject.GEnum): @staticmethod def to_string(kind: LaunchableKind) -> str: ... +class MarkupKind(GObject.GEnum): + MARKDOWN = 3 + TEXT = 2 + UNKNOWN = 0 + XML = 1 + class MergeKind(GObject.GEnum): APPEND = 2 NONE = 0 @@ -2237,33 +2402,33 @@ class MetadataError(GObject.GEnum): def quark() -> int: ... class MetadataLocation(GObject.GEnum): - CACHE = 2 - SHARED = 0 - STATE = 1 - USER = 3 + CACHE = 3 + SHARED = 1 + STATE = 2 + UNKNOWN = 0 + USER = 4 class PoolError(GObject.GEnum): - COLLISION = 3 + CACHE_DAMAGED = 4 + CACHE_WRITE_FAILED = 3 + COLLISION = 2 FAILED = 0 - INCOMPLETE = 2 - OLD_CACHE = 4 - TARGET_NOT_WRITABLE = 1 + INCOMPLETE = 1 @staticmethod def quark() -> int: ... class ProvidedKind(GObject.GEnum): BINARY = 2 - DBUS_SYSTEM = 8 - DBUS_USER = 9 - FIRMWARE_FLASHED = 11 - FIRMWARE_RUNTIME = 10 + DBUS_SYSTEM = 7 + DBUS_USER = 8 + FIRMWARE_FLASHED = 10 + FIRMWARE_RUNTIME = 9 FONT = 4 - ID = 12 + ID = 11 LIBRARY = 1 MEDIATYPE = 3 MODALIAS = 5 - PYTHON = 7 - PYTHON_2 = 6 + PYTHON = 6 UNKNOWN = 0 @staticmethod def from_string(kind_str: str) -> ProvidedKind: ... @@ -2272,6 +2437,16 @@ class ProvidedKind(GObject.GEnum): @staticmethod def to_string(kind: ProvidedKind) -> str: ... +class ReferenceKind(GObject.GEnum): + CITATION_CFF = 2 + DOI = 1 + REGISTRY = 3 + UNKNOWN = 0 + @staticmethod + def from_string(str: str) -> ReferenceKind: ... + @staticmethod + def to_string(kind: ReferenceKind) -> str: ... + class RelationCompare(GObject.GEnum): EQ = 1 GE = 6 @@ -2320,8 +2495,15 @@ class RelationKind(GObject.GEnum): @staticmethod def to_string(kind: RelationKind) -> str: ... +class RelationStatus(GObject.GEnum): + ERROR = 1 + NOT_SATISFIED = 2 + SATISFIED = 3 + UNKNOWN = 0 + class ReleaseKind(GObject.GEnum): DEVELOPMENT = 2 + SNAPSHOT = 3 STABLE = 1 UNKNOWN = 0 @staticmethod @@ -2329,22 +2511,22 @@ class ReleaseKind(GObject.GEnum): @staticmethod def to_string(kind: ReleaseKind) -> str: ... -class ReleaseUrlKind(GObject.GEnum): - DETAILS = 1 +class ReleaseListKind(GObject.GEnum): + EMBEDDED = 1 + EXTERNAL = 2 UNKNOWN = 0 @staticmethod - def from_string(kind_str: str) -> ReleaseUrlKind: ... + def from_string(kind_str: str) -> ReleaseListKind: ... @staticmethod - def to_string(kind: ReleaseUrlKind) -> str: ... + def to_string(kind: ReleaseListKind) -> str: ... -class ReleasesKind(GObject.GEnum): - EMBEDDED = 1 - EXTERNAL = 2 +class ReleaseUrlKind(GObject.GEnum): + DETAILS = 1 UNKNOWN = 0 @staticmethod - def from_string(kind_str: str) -> ReleasesKind: ... + def from_string(kind_str: str) -> ReleaseUrlKind: ... @staticmethod - def to_string(kind: ReleasesKind) -> str: ... + def to_string(kind: ReleaseUrlKind) -> str: ... class ScreenshotKind(GObject.GEnum): DEFAULT = 1 @@ -2428,7 +2610,7 @@ class UtilsError(GObject.GEnum): class ValidatorError(GObject.GEnum): FAILED = 0 INVALID_FILENAME = 2 - OVERRIDE_INVALID = 1 + INVALID_OVERRIDE = 1 @staticmethod def quark() -> int: ... diff --git a/src/gi-stubs/repository/Atk.pyi b/src/gi-stubs/repository/Atk.pyi index 9726dcc9..b1f38773 100644 --- a/src/gi-stubs/repository/Atk.pyi +++ b/src/gi-stubs/repository/Atk.pyi @@ -1,19 +1,22 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple from typing import Type +from typing import TypeVar from gi.repository import GLib from gi.repository import GObject -BINARY_AGE: int = 24610 +BINARY_AGE: int = 25010 INTERFACE_AGE: int = 1 MAJOR_VERSION: int = 2 MICRO_VERSION: int = 0 -MINOR_VERSION: int = 46 +MINOR_VERSION: int = 50 VERSION_MIN_REQUIRED: int = 2 +_lock = ... # FIXME Constant _namespace: str = "Atk" _version: str = "1.0" @@ -51,7 +54,11 @@ def text_free_ranges(ranges: Sequence[TextRange]) -> None: ... def value_type_get_localized_name(value_type: ValueType) -> str: ... def value_type_get_name(value_type: ValueType) -> str: ... -class Action(GObject.Object): +class Action(GObject.GInterface): + """ + Interface AtkAction + """ + def do_action(self, i: int) -> bool: ... def get_description(self, i: int) -> Optional[str]: ... def get_keybinding(self, i: int) -> Optional[str]: ... @@ -61,6 +68,14 @@ class Action(GObject.Object): def set_description(self, i: int, desc: str) -> bool: ... class ActionIface(GObject.GPointer): + """ + :Constructors: + + :: + + ActionIface() + """ + parent: GObject.TypeInterface = ... do_action: Callable[[Action, int], bool] = ... get_n_actions: Callable[[Action], int] = ... @@ -71,12 +86,24 @@ class ActionIface(GObject.GPointer): get_localized_name: Callable[[Action, int], Optional[str]] = ... class Attribute(GObject.GPointer): + """ + :Constructors: + + :: + + Attribute() + """ + name: str = ... value: str = ... @staticmethod def set_free(attrib_set: list[None]) -> None: ... -class Component(GObject.Object): +class Component(GObject.GInterface): + """ + Interface AtkComponent + """ + def contains(self, x: int, y: int, coord_type: CoordType) -> bool: ... def get_alpha(self) -> float: ... def get_extents(self, coord_type: CoordType) -> Tuple[int, int, int, int]: ... @@ -98,6 +125,14 @@ class Component(GObject.Object): def set_size(self, width: int, height: int) -> bool: ... class ComponentIface(GObject.GPointer): + """ + :Constructors: + + :: + + ComponentIface() + """ + parent: GObject.TypeInterface = ... add_focus_handler: None = ... contains: Callable[[Component, int, int, CoordType], bool] = ... @@ -119,7 +154,11 @@ class ComponentIface(GObject.GPointer): scroll_to: Callable[[Component, ScrollType], bool] = ... scroll_to_point: Callable[[Component, CoordType, int, int], bool] = ... -class Document(GObject.Object): +class Document(GObject.GInterface): + """ + Interface AtkDocument + """ + def get_attribute_value(self, attribute_name: str) -> Optional[str]: ... def get_attributes(self) -> list[None]: ... def get_current_page_number(self) -> int: ... @@ -132,6 +171,14 @@ class Document(GObject.Object): ) -> bool: ... class DocumentIface(GObject.GPointer): + """ + :Constructors: + + :: + + DocumentIface() + """ + parent: GObject.TypeInterface = ... get_document_type: Callable[[Document], str] = ... get_document: Callable[[Document], None] = ... @@ -142,7 +189,11 @@ class DocumentIface(GObject.GPointer): get_current_page_number: Callable[[Document], int] = ... get_page_count: Callable[[Document], int] = ... -class EditableText(GObject.Object): +class EditableText(GObject.GInterface): + """ + Interface AtkEditableText + """ + def copy_text(self, start_pos: int, end_pos: int) -> None: ... def cut_text(self, start_pos: int, end_pos: int) -> None: ... def delete_text(self, start_pos: int, end_pos: int) -> None: ... @@ -154,6 +205,14 @@ class EditableText(GObject.Object): def set_text_contents(self, string: str) -> None: ... class EditableTextIface(GObject.GPointer): + """ + :Constructors: + + :: + + EditableTextIface() + """ + parent_interface: GObject.TypeInterface = ... set_run_attributes: Callable[[EditableText, list[None], int, int], bool] = ... set_text_contents: Callable[[EditableText, str], None] = ... @@ -164,6 +223,61 @@ class EditableTextIface(GObject.GPointer): paste_text: Callable[[EditableText, int], None] = ... class GObjectAccessible(Object): + """ + :Constructors: + + :: + + GObjectAccessible(**properties) + + Object AtkGObjectAccessible + + Signals from AtkObject: + children-changed (guint, gpointer) + focus-event (gboolean) + property-change (gpointer) + state-change (gchararray, gboolean) + visible-data-changed () + active-descendant-changed (gpointer) + announcement (gchararray) + notification (gchararray, gint) + + Properties from AtkObject: + accessible-name -> gchararray: Accessible Name + Object instance’s name formatted for assistive technology access + accessible-description -> gchararray: Accessible Description + Description of an object, formatted for assistive technology access + accessible-parent -> AtkObject: Accessible Parent + Parent of the current accessible as returned by atk_object_get_parent() + accessible-value -> gdouble: Accessible Value + Is used to notify that the value has changed + accessible-role -> AtkRole: Accessible Role + The accessible role of this object + accessible-component-layer -> gint: Accessible Layer + The accessible layer of this object + accessible-component-mdi-zorder -> gint: Accessible MDI Value + The accessible MDI value of this object + accessible-table-caption -> gchararray: Accessible Table Caption + Is used to notify that the table caption has changed; this property should not be used. accessible-table-caption-object should be used instead + accessible-table-column-description -> gchararray: Accessible Table Column Description + Is used to notify that the table column description has changed + accessible-table-column-header -> AtkObject: Accessible Table Column Header + Is used to notify that the table column header has changed + accessible-table-row-description -> gchararray: Accessible Table Row Description + Is used to notify that the table row description has changed + accessible-table-row-header -> AtkObject: Accessible Table Row Header + Is used to notify that the table row header has changed + accessible-table-summary -> AtkObject: Accessible Table Summary + Is used to notify that the table summary has changed + accessible-table-caption-object -> AtkObject: Accessible Table Caption Object + Is used to notify that the table caption has changed + accessible-hypertext-nlinks -> gint: Number of Accessible Hypertext Links + The number of links which the current AtkHypertext has + + Signals from GObject: + notify (GParam) + """ + class Props: accessible_component_layer: int accessible_component_mdi_zorder: int @@ -180,7 +294,6 @@ class GObjectAccessible(Object): accessible_table_row_header: Object accessible_table_summary: Object accessible_value: float - props: Props = ... parent: Object = ... def __init__( @@ -203,17 +316,50 @@ class GObjectAccessible(Object): def get_object(self) -> GObject.Object: ... class GObjectAccessibleClass(GObject.GPointer): + """ + :Constructors: + + :: + + GObjectAccessibleClass() + """ + parent_class: ObjectClass = ... pad1: Callable[..., bool] = ... pad2: Callable[..., bool] = ... class Hyperlink(GObject.Object, Action): + """ + :Constructors: + + :: + + Hyperlink(**properties) + + Object AtkHyperlink + + Signals from AtkHyperlink: + link-activated () + + Properties from AtkHyperlink: + selected-link -> gboolean: Selected Link + Specifies whether the AtkHyperlink object is selected + number-of-anchors -> gint: Number of Anchors + The number of anchors associated with the AtkHyperlink object + end-index -> gint: End index + The end index of the AtkHyperlink object + start-index -> gint: Start index + The start index of the AtkHyperlink object + + Signals from GObject: + notify (GParam) + """ + class Props: end_index: int number_of_anchors: int selected_link: bool start_index: int - props: Props = ... parent: GObject.Object = ... def do_get_end_index(self) -> int: ... @@ -235,6 +381,14 @@ class Hyperlink(GObject.Object, Action): def is_valid(self) -> bool: ... class HyperlinkClass(GObject.GPointer): + """ + :Constructors: + + :: + + HyperlinkClass() + """ + parent: GObject.ObjectClass = ... get_uri: Callable[[Hyperlink, int], str] = ... get_object: Callable[[Hyperlink, int], Object] = ... @@ -247,26 +401,54 @@ class HyperlinkClass(GObject.GPointer): link_activated: Callable[[Hyperlink], None] = ... pad1: Callable[..., bool] = ... -class HyperlinkImpl(GObject.Object): +class HyperlinkImpl(GObject.GInterface): + """ + Interface AtkHyperlinkImpl + """ + def get_hyperlink(self) -> Hyperlink: ... class HyperlinkImplIface(GObject.GPointer): + """ + :Constructors: + + :: + + HyperlinkImplIface() + """ + parent: GObject.TypeInterface = ... get_hyperlink: Callable[[HyperlinkImpl], Hyperlink] = ... -class Hypertext(GObject.Object): +class Hypertext(GObject.GInterface): + """ + Interface AtkHypertext + """ + def get_link(self, link_index: int) -> Hyperlink: ... def get_link_index(self, char_index: int) -> int: ... def get_n_links(self) -> int: ... class HypertextIface(GObject.GPointer): + """ + :Constructors: + + :: + + HypertextIface() + """ + parent: GObject.TypeInterface = ... get_link: Callable[[Hypertext, int], Hyperlink] = ... get_n_links: Callable[[Hypertext], int] = ... get_link_index: Callable[[Hypertext, int], int] = ... link_selected: Callable[[Hypertext, int], None] = ... -class Image(GObject.Object): +class Image(GObject.GInterface): + """ + Interface AtkImage + """ + def get_image_description(self) -> str: ... def get_image_locale(self) -> Optional[str]: ... def get_image_position(self, coord_type: CoordType) -> Tuple[int, int]: ... @@ -274,6 +456,14 @@ class Image(GObject.Object): def set_image_description(self, description: str) -> bool: ... class ImageIface(GObject.GPointer): + """ + :Constructors: + + :: + + ImageIface() + """ + parent: GObject.TypeInterface = ... get_image_position: Callable[[Image, CoordType], Tuple[int, int]] = ... get_image_description: Callable[[Image], str] = ... @@ -284,9 +474,17 @@ class ImageIface(GObject.GPointer): class Implementor(GObject.GPointer): def ref_accessible(self) -> Object: ... -class ImplementorIface(GObject.Object): ... +class ImplementorIface(GObject.GInterface): ... class KeyEventStruct(GObject.GPointer): + """ + :Constructors: + + :: + + KeyEventStruct() + """ + type: int = ... state: int = ... keyval: int = ... @@ -296,6 +494,19 @@ class KeyEventStruct(GObject.GPointer): timestamp: int = ... class Misc(GObject.Object): + """ + :Constructors: + + :: + + Misc(**properties) + + Object AtkMisc + + Signals from GObject: + notify (GParam) + """ + parent: GObject.Object = ... def do_threads_enter(self) -> None: ... def do_threads_leave(self) -> None: ... @@ -305,6 +516,14 @@ class Misc(GObject.Object): def threads_leave(self) -> None: ... class MiscClass(GObject.GPointer): + """ + :Constructors: + + :: + + MiscClass() + """ + parent: GObject.ObjectClass = ... threads_enter: Callable[[Misc], None] = ... threads_leave: Callable[[Misc], None] = ... @@ -325,6 +544,108 @@ class NoOpObject( Value, Window, ): + """ + :Constructors: + + :: + + NoOpObject(**properties) + new(obj:GObject.Object) -> Atk.Object + + Object AtkNoOpObject + + Signals from AtkComponent: + bounds-changed (AtkRectangle) + + Signals from AtkSelection: + selection-changed () + + Signals from AtkTable: + row-inserted (gint, gint) + column-inserted (gint, gint) + row-deleted (gint, gint) + column-deleted (gint, gint) + row-reordered () + column-reordered () + model-changed () + + Signals from AtkText: + text-changed (gint, gint) + text-insert (gint, gint, gchararray) + text-remove (gint, gint, gchararray) + text-caret-moved (gint) + text-selection-changed () + text-attributes-changed () + + Signals from AtkHypertext: + link-selected (gint) + + Signals from AtkValue: + value-changed (gdouble, gchararray) + + Signals from AtkDocument: + load-complete () + reload () + load-stopped () + page-changed (gint) + + Signals from AtkWindow: + activate () + create () + deactivate () + destroy () + maximize () + minimize () + move () + resize () + restore () + + Signals from AtkObject: + children-changed (guint, gpointer) + focus-event (gboolean) + property-change (gpointer) + state-change (gchararray, gboolean) + visible-data-changed () + active-descendant-changed (gpointer) + announcement (gchararray) + notification (gchararray, gint) + + Properties from AtkObject: + accessible-name -> gchararray: Accessible Name + Object instance’s name formatted for assistive technology access + accessible-description -> gchararray: Accessible Description + Description of an object, formatted for assistive technology access + accessible-parent -> AtkObject: Accessible Parent + Parent of the current accessible as returned by atk_object_get_parent() + accessible-value -> gdouble: Accessible Value + Is used to notify that the value has changed + accessible-role -> AtkRole: Accessible Role + The accessible role of this object + accessible-component-layer -> gint: Accessible Layer + The accessible layer of this object + accessible-component-mdi-zorder -> gint: Accessible MDI Value + The accessible MDI value of this object + accessible-table-caption -> gchararray: Accessible Table Caption + Is used to notify that the table caption has changed; this property should not be used. accessible-table-caption-object should be used instead + accessible-table-column-description -> gchararray: Accessible Table Column Description + Is used to notify that the table column description has changed + accessible-table-column-header -> AtkObject: Accessible Table Column Header + Is used to notify that the table column header has changed + accessible-table-row-description -> gchararray: Accessible Table Row Description + Is used to notify that the table row description has changed + accessible-table-row-header -> AtkObject: Accessible Table Row Header + Is used to notify that the table row header has changed + accessible-table-summary -> AtkObject: Accessible Table Summary + Is used to notify that the table summary has changed + accessible-table-caption-object -> AtkObject: Accessible Table Caption Object + Is used to notify that the table caption has changed + accessible-hypertext-nlinks -> gint: Number of Accessible Hypertext Links + The number of links which the current AtkHypertext has + + Signals from GObject: + notify (GParam) + """ + class Props: accessible_component_layer: int accessible_component_mdi_zorder: int @@ -341,7 +662,6 @@ class NoOpObject( accessible_table_row_header: Object accessible_table_summary: Object accessible_value: float - props: Props = ... parent: Object = ... def __init__( @@ -363,17 +683,102 @@ class NoOpObject( def new(cls, obj: GObject.Object) -> NoOpObject: ... class NoOpObjectClass(GObject.GPointer): + """ + :Constructors: + + :: + + NoOpObjectClass() + """ + parent_class: ObjectClass = ... class NoOpObjectFactory(ObjectFactory): + """ + :Constructors: + + :: + + NoOpObjectFactory(**properties) + new() -> Atk.ObjectFactory + + Object AtkNoOpObjectFactory + + Signals from GObject: + notify (GParam) + """ + parent: ObjectFactory = ... @classmethod def new(cls) -> NoOpObjectFactory: ... class NoOpObjectFactoryClass(GObject.GPointer): + """ + :Constructors: + + :: + + NoOpObjectFactoryClass() + """ + parent_class: ObjectFactoryClass = ... class Object(GObject.Object): + """ + :Constructors: + + :: + + Object(**properties) + + Object AtkObject + + Signals from AtkObject: + children-changed (guint, gpointer) + focus-event (gboolean) + property-change (gpointer) + state-change (gchararray, gboolean) + visible-data-changed () + active-descendant-changed (gpointer) + announcement (gchararray) + notification (gchararray, gint) + + Properties from AtkObject: + accessible-name -> gchararray: Accessible Name + Object instance’s name formatted for assistive technology access + accessible-description -> gchararray: Accessible Description + Description of an object, formatted for assistive technology access + accessible-parent -> AtkObject: Accessible Parent + Parent of the current accessible as returned by atk_object_get_parent() + accessible-value -> gdouble: Accessible Value + Is used to notify that the value has changed + accessible-role -> AtkRole: Accessible Role + The accessible role of this object + accessible-component-layer -> gint: Accessible Layer + The accessible layer of this object + accessible-component-mdi-zorder -> gint: Accessible MDI Value + The accessible MDI value of this object + accessible-table-caption -> gchararray: Accessible Table Caption + Is used to notify that the table caption has changed; this property should not be used. accessible-table-caption-object should be used instead + accessible-table-column-description -> gchararray: Accessible Table Column Description + Is used to notify that the table column description has changed + accessible-table-column-header -> AtkObject: Accessible Table Column Header + Is used to notify that the table column header has changed + accessible-table-row-description -> gchararray: Accessible Table Row Description + Is used to notify that the table row description has changed + accessible-table-row-header -> AtkObject: Accessible Table Row Header + Is used to notify that the table row header has changed + accessible-table-summary -> AtkObject: Accessible Table Summary + Is used to notify that the table summary has changed + accessible-table-caption-object -> AtkObject: Accessible Table Caption Object + Is used to notify that the table caption has changed + accessible-hypertext-nlinks -> gint: Number of Accessible Hypertext Links + The number of links which the current AtkHypertext has + + Signals from GObject: + notify (GParam) + """ + class Props: accessible_component_layer: int accessible_component_mdi_zorder: int @@ -390,7 +795,6 @@ class Object(GObject.Object): accessible_table_row_header: Object accessible_table_summary: Object accessible_value: float - props: Props = ... parent: GObject.Object = ... description: str = ... @@ -467,6 +871,14 @@ class Object(GObject.Object): def set_role(self, role: Role) -> None: ... class ObjectClass(GObject.GPointer): + """ + :Constructors: + + :: + + ObjectClass() + """ + parent: GObject.ObjectClass = ... get_name: Callable[[Object], str] = ... get_description: Callable[[Object], str] = ... @@ -497,6 +909,19 @@ class ObjectClass(GObject.GPointer): pad1: Callable[..., bool] = ... class ObjectFactory(GObject.Object): + """ + :Constructors: + + :: + + ObjectFactory(**properties) + + Object AtkObjectFactory + + Signals from GObject: + notify (GParam) + """ + parent: GObject.Object = ... def create_accessible(self, obj: GObject.Object) -> Object: ... def do_invalidate(self) -> None: ... @@ -504,6 +929,14 @@ class ObjectFactory(GObject.Object): def invalidate(self) -> None: ... class ObjectFactoryClass(GObject.GPointer): + """ + :Constructors: + + :: + + ObjectFactoryClass() + """ + parent_class: GObject.ObjectClass = ... create_accessible: None = ... invalidate: Callable[[ObjectFactory], None] = ... @@ -512,6 +945,65 @@ class ObjectFactoryClass(GObject.GPointer): pad2: Callable[..., bool] = ... class Plug(Object, Component): + """ + :Constructors: + + :: + + Plug(**properties) + new() -> Atk.Object + + Object AtkPlug + + Signals from AtkComponent: + bounds-changed (AtkRectangle) + + Signals from AtkObject: + children-changed (guint, gpointer) + focus-event (gboolean) + property-change (gpointer) + state-change (gchararray, gboolean) + visible-data-changed () + active-descendant-changed (gpointer) + announcement (gchararray) + notification (gchararray, gint) + + Properties from AtkObject: + accessible-name -> gchararray: Accessible Name + Object instance’s name formatted for assistive technology access + accessible-description -> gchararray: Accessible Description + Description of an object, formatted for assistive technology access + accessible-parent -> AtkObject: Accessible Parent + Parent of the current accessible as returned by atk_object_get_parent() + accessible-value -> gdouble: Accessible Value + Is used to notify that the value has changed + accessible-role -> AtkRole: Accessible Role + The accessible role of this object + accessible-component-layer -> gint: Accessible Layer + The accessible layer of this object + accessible-component-mdi-zorder -> gint: Accessible MDI Value + The accessible MDI value of this object + accessible-table-caption -> gchararray: Accessible Table Caption + Is used to notify that the table caption has changed; this property should not be used. accessible-table-caption-object should be used instead + accessible-table-column-description -> gchararray: Accessible Table Column Description + Is used to notify that the table column description has changed + accessible-table-column-header -> AtkObject: Accessible Table Column Header + Is used to notify that the table column header has changed + accessible-table-row-description -> gchararray: Accessible Table Row Description + Is used to notify that the table row description has changed + accessible-table-row-header -> AtkObject: Accessible Table Row Header + Is used to notify that the table row header has changed + accessible-table-summary -> AtkObject: Accessible Table Summary + Is used to notify that the table summary has changed + accessible-table-caption-object -> AtkObject: Accessible Table Caption Object + Is used to notify that the table caption has changed + accessible-hypertext-nlinks -> gint: Number of Accessible Hypertext Links + The number of links which the current AtkHypertext has + + Signals from GObject: + notify (GParam) + """ + class Props: accessible_component_layer: int accessible_component_mdi_zorder: int @@ -528,7 +1020,6 @@ class Plug(Object, Component): accessible_table_row_header: Object accessible_table_summary: Object accessible_value: float - props: Props = ... parent: Object = ... def __init__( @@ -553,15 +1044,39 @@ class Plug(Object, Component): def set_child(self, child: Object) -> None: ... class PlugClass(GObject.GPointer): + """ + :Constructors: + + :: + + PlugClass() + """ + parent_class: ObjectClass = ... get_object_id: Callable[[Plug], str] = ... class PropertyValues(GObject.GPointer): + """ + :Constructors: + + :: + + PropertyValues() + """ + property_name: str = ... old_value: Any = ... new_value: Any = ... class Range(GObject.GBoxed): + """ + :Constructors: + + :: + + new(lower_limit:float, upper_limit:float, description:str) -> Atk.Range + """ + def copy(self) -> Range: ... def free(self) -> None: ... def get_description(self) -> str: ... @@ -571,27 +1086,75 @@ class Range(GObject.GBoxed): def new(cls, lower_limit: float, upper_limit: float, description: str) -> Range: ... class Rectangle(GObject.GBoxed): + """ + :Constructors: + + :: + + Rectangle() + """ + x: int = ... y: int = ... width: int = ... height: int = ... class Registry(GObject.Object): + """ + :Constructors: + + :: + + Registry(**properties) + + Object AtkRegistry + + Signals from GObject: + notify (GParam) + """ + parent: GObject.Object = ... - factory_type_registry: dict[str, str] = ... - factory_singleton_cache: dict[str, str] = ... + factory_type_registry: dict[None, None] = ... + factory_singleton_cache: dict[None, None] = ... def get_factory(self, type: Type) -> ObjectFactory: ... def get_factory_type(self, type: Type) -> Type: ... def set_factory_type(self, type: Type, factory_type: Type) -> None: ... class RegistryClass(GObject.GPointer): + """ + :Constructors: + + :: + + RegistryClass() + """ + parent_class: GObject.ObjectClass = ... class Relation(GObject.Object): + """ + :Constructors: + + :: + + Relation(**properties) + new(targets:list, relationship:Atk.RelationType) -> Atk.Relation + + Object AtkRelation + + Properties from AtkRelation: + relation-type -> AtkRelationType: Relation Type + The type of the relation + target -> GValueArray: Target + An array of the targets for the relation + + Signals from GObject: + notify (GParam) + """ + class Props: relation_type: RelationType target: GObject.ValueArray - props: Props = ... parent: GObject.Object = ... target: list[None] = ... @@ -607,9 +1170,31 @@ class Relation(GObject.Object): def remove_target(self, target: Object) -> bool: ... class RelationClass(GObject.GPointer): + """ + :Constructors: + + :: + + RelationClass() + """ + parent: GObject.ObjectClass = ... class RelationSet(GObject.Object): + """ + :Constructors: + + :: + + RelationSet(**properties) + new() -> Atk.RelationSet + + Object AtkRelationSet + + Signals from GObject: + notify (GParam) + """ + parent: GObject.Object = ... relations: list[None] = ... def add(self, relation: Relation) -> None: ... @@ -626,11 +1211,23 @@ class RelationSet(GObject.Object): def remove(self, relation: Relation) -> None: ... class RelationSetClass(GObject.GPointer): + """ + :Constructors: + + :: + + RelationSetClass() + """ + parent: GObject.ObjectClass = ... pad1: Callable[..., bool] = ... pad2: Callable[..., bool] = ... -class Selection(GObject.Object): +class Selection(GObject.GInterface): + """ + Interface AtkSelection + """ + def add_selection(self, i: int) -> bool: ... def clear_selection(self) -> bool: ... def get_selection_count(self) -> int: ... @@ -640,6 +1237,14 @@ class Selection(GObject.Object): def select_all_selection(self) -> bool: ... class SelectionIface(GObject.GPointer): + """ + :Constructors: + + :: + + SelectionIface() + """ + parent: GObject.TypeInterface = ... add_selection: Callable[[Selection, int], bool] = ... clear_selection: Callable[[Selection], bool] = ... @@ -651,6 +1256,65 @@ class SelectionIface(GObject.GPointer): selection_changed: Callable[[Selection], None] = ... class Socket(Object, Component): + """ + :Constructors: + + :: + + Socket(**properties) + new() -> Atk.Object + + Object AtkSocket + + Signals from AtkComponent: + bounds-changed (AtkRectangle) + + Signals from AtkObject: + children-changed (guint, gpointer) + focus-event (gboolean) + property-change (gpointer) + state-change (gchararray, gboolean) + visible-data-changed () + active-descendant-changed (gpointer) + announcement (gchararray) + notification (gchararray, gint) + + Properties from AtkObject: + accessible-name -> gchararray: Accessible Name + Object instance’s name formatted for assistive technology access + accessible-description -> gchararray: Accessible Description + Description of an object, formatted for assistive technology access + accessible-parent -> AtkObject: Accessible Parent + Parent of the current accessible as returned by atk_object_get_parent() + accessible-value -> gdouble: Accessible Value + Is used to notify that the value has changed + accessible-role -> AtkRole: Accessible Role + The accessible role of this object + accessible-component-layer -> gint: Accessible Layer + The accessible layer of this object + accessible-component-mdi-zorder -> gint: Accessible MDI Value + The accessible MDI value of this object + accessible-table-caption -> gchararray: Accessible Table Caption + Is used to notify that the table caption has changed; this property should not be used. accessible-table-caption-object should be used instead + accessible-table-column-description -> gchararray: Accessible Table Column Description + Is used to notify that the table column description has changed + accessible-table-column-header -> AtkObject: Accessible Table Column Header + Is used to notify that the table column header has changed + accessible-table-row-description -> gchararray: Accessible Table Row Description + Is used to notify that the table row description has changed + accessible-table-row-header -> AtkObject: Accessible Table Row Header + Is used to notify that the table row header has changed + accessible-table-summary -> AtkObject: Accessible Table Summary + Is used to notify that the table summary has changed + accessible-table-caption-object -> AtkObject: Accessible Table Caption Object + Is used to notify that the table caption has changed + accessible-hypertext-nlinks -> gint: Number of Accessible Hypertext Links + The number of links which the current AtkHypertext has + + Signals from GObject: + notify (GParam) + """ + class Props: accessible_component_layer: int accessible_component_mdi_zorder: int @@ -667,7 +1331,6 @@ class Socket(Object, Component): accessible_table_row_header: Object accessible_table_summary: Object accessible_value: float - props: Props = ... parent: Object = ... embedded_plug_id: str = ... @@ -693,10 +1356,32 @@ class Socket(Object, Component): def new(cls) -> Socket: ... class SocketClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketClass() + """ + parent_class: ObjectClass = ... embed: Callable[[Socket, str], None] = ... class StateSet(GObject.Object): + """ + :Constructors: + + :: + + StateSet(**properties) + new() -> Atk.StateSet + + Object AtkStateSet + + Signals from GObject: + notify (GParam) + """ + parent: GObject.Object = ... def add_state(self, type: StateType) -> bool: ... def add_states(self, types: Sequence[StateType]) -> None: ... @@ -712,15 +1397,35 @@ class StateSet(GObject.Object): def xor_sets(self, compare_set: StateSet) -> StateSet: ... class StateSetClass(GObject.GPointer): + """ + :Constructors: + + :: + + StateSetClass() + """ + parent: GObject.ObjectClass = ... -class StreamableContent(GObject.Object): +class StreamableContent(GObject.GInterface): + """ + Interface AtkStreamableContent + """ + def get_mime_type(self, i: int) -> str: ... def get_n_mime_types(self) -> int: ... def get_stream(self, mime_type: str) -> GLib.IOChannel: ... def get_uri(self, mime_type: str) -> Optional[str]: ... class StreamableContentIface(GObject.GPointer): + """ + :Constructors: + + :: + + StreamableContentIface() + """ + parent: GObject.TypeInterface = ... get_n_mime_types: Callable[[StreamableContent], int] = ... get_mime_type: Callable[[StreamableContent, int], str] = ... @@ -730,7 +1435,11 @@ class StreamableContentIface(GObject.GPointer): pad2: Callable[..., bool] = ... pad3: Callable[..., bool] = ... -class Table(GObject.Object): +class Table(GObject.GInterface): + """ + Interface AtkTable + """ + def add_column_selection(self, column: int) -> bool: ... def add_row_selection(self, row: int) -> bool: ... def get_caption(self) -> Optional[Object]: ... @@ -761,7 +1470,14 @@ class Table(GObject.Object): def set_row_header(self, row: int, header: Object) -> None: ... def set_summary(self, accessible: Object) -> None: ... -class TableCell(GObject.Object): +class TableCell(GObject.GInterface): + """ + Interface AtkTableCell + + Signals from GObject: + notify (GParam) + """ + def get_column_header_cells(self) -> list[Object]: ... def get_column_span(self) -> int: ... def get_position(self) -> Tuple[bool, int, int]: ... @@ -771,6 +1487,14 @@ class TableCell(GObject.Object): def get_table(self) -> Object: ... class TableCellIface(GObject.GPointer): + """ + :Constructors: + + :: + + TableCellIface() + """ + parent: GObject.TypeInterface = ... get_column_span: Callable[[TableCell], int] = ... get_column_header_cells: Callable[[TableCell], list[Object]] = ... @@ -781,6 +1505,14 @@ class TableCellIface(GObject.GPointer): get_table: Callable[[TableCell], Object] = ... class TableIface(GObject.GPointer): + """ + :Constructors: + + :: + + TableIface() + """ + parent: GObject.TypeInterface = ... ref_at: Callable[[Table, int, int], Object] = ... get_index_at: Callable[[Table, int, int], int] = ... @@ -819,7 +1551,11 @@ class TableIface(GObject.GPointer): column_reordered: Callable[[Table], None] = ... model_changed: Callable[[Table], None] = ... -class Text(GObject.Object): +class Text(GObject.GInterface): + """ + Interface AtkText + """ + def add_selection(self, start_offset: int, end_offset: int) -> bool: ... @staticmethod def free_ranges(ranges: Sequence[TextRange]) -> None: ... @@ -870,11 +1606,19 @@ class Text(GObject.Object): ) -> bool: ... class TextIface(GObject.GPointer): + """ + :Constructors: + + :: + + TextIface() + """ + parent: GObject.TypeInterface = ... get_text: Callable[[Text, int, int], str] = ... - get_text_after_offset: Callable[[Text, int, TextBoundary], Tuple[str, int, int]] = ( - ... - ) + get_text_after_offset: Callable[ + [Text, int, TextBoundary], Tuple[str, int, int] + ] = ... get_text_at_offset: Callable[[Text, int, TextBoundary], Tuple[str, int, int]] = ... get_character_at_offset: Callable[[Text, int], str] = ... get_text_before_offset: Callable[ @@ -906,26 +1650,63 @@ class TextIface(GObject.GPointer): [Text, int, TextGranularity], Tuple[Optional[str], int, int] ] = ... scroll_substring_to: Callable[[Text, int, int, ScrollType], bool] = ... - scroll_substring_to_point: Callable[[Text, int, int, CoordType, int, int], bool] = ( - ... - ) + scroll_substring_to_point: Callable[ + [Text, int, int, CoordType, int, int], bool + ] = ... class TextRange(GObject.GBoxed): + """ + :Constructors: + + :: + + TextRange() + """ + bounds: TextRectangle = ... start_offset: int = ... end_offset: int = ... content: str = ... class TextRectangle(GObject.GPointer): + """ + :Constructors: + + :: + + TextRectangle() + """ + x: int = ... y: int = ... width: int = ... height: int = ... class Util(GObject.Object): + """ + :Constructors: + + :: + + Util(**properties) + + Object AtkUtil + + Signals from GObject: + notify (GParam) + """ + parent: GObject.Object = ... class UtilClass(GObject.GPointer): + """ + :Constructors: + + :: + + UtilClass() + """ + parent: GObject.ObjectClass = ... add_global_event_listener: None = ... remove_global_event_listener: Callable[[int], None] = ... @@ -935,7 +1716,11 @@ class UtilClass(GObject.GPointer): get_toolkit_name: Callable[[], str] = ... get_toolkit_version: Callable[[], str] = ... -class Value(GObject.Object): +class Value(GObject.GInterface): + """ + Interface AtkValue + """ + def get_current_value(self) -> Any: ... def get_increment(self) -> float: ... def get_maximum_value(self) -> Any: ... @@ -948,6 +1733,14 @@ class Value(GObject.Object): def set_value(self, new_value: float) -> None: ... class ValueIface(GObject.GPointer): + """ + :Constructors: + + :: + + ValueIface() + """ + parent: GObject.TypeInterface = ... get_current_value: Callable[[Value], Any] = ... get_maximum_value: Callable[[Value], Any] = ... @@ -960,9 +1753,17 @@ class ValueIface(GObject.GPointer): get_sub_ranges: Callable[[Value], list[Range]] = ... set_value: Callable[[Value, float], None] = ... -class Window(GObject.Object): ... +class Window(GObject.GInterface): ... class WindowIface(GObject.GPointer): + """ + :Constructors: + + :: + + WindowIface() + """ + parent: GObject.TypeInterface = ... class HyperlinkStateFlags(GObject.GFlags): @@ -988,6 +1789,11 @@ class Layer(GObject.GEnum): WIDGET = 3 WINDOW = 7 +class Live(GObject.GEnum): + ASSERTIVE = 2 + NONE = 0 + POLITE = 1 + class RelationType(GObject.GEnum): CONTROLLED_BY = 1 CONTROLLER_FOR = 2 diff --git a/src/gi-stubs/repository/AyatanaAppIndicator3.pyi b/src/gi-stubs/repository/AyatanaAppIndicator3.pyi index bab71b96..f847686e 100644 --- a/src/gi-stubs/repository/AyatanaAppIndicator3.pyi +++ b/src/gi-stubs/repository/AyatanaAppIndicator3.pyi @@ -1,6 +1,11 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar from gi.repository import Gdk from gi.repository import GObject @@ -86,10 +91,8 @@ class Indicator(GObject.Object): ordering_index: int status: str title: str - props: Props = ... parent: GObject.Object = ... - def __init__( self, attention_icon_desc: str = ..., @@ -139,9 +142,13 @@ class Indicator(GObject.Object): cls, id: str, icon_name: str, category: IndicatorCategory, icon_theme_path: str ) -> Indicator: ... def set_attention_icon(self, icon_name: str) -> None: ... - def set_attention_icon_full(self, icon_name: str, icon_desc: str) -> None: ... + def set_attention_icon_full( + self, icon_name: str, icon_desc: Optional[str] = None + ) -> None: ... def set_icon(self, icon_name: str) -> None: ... - def set_icon_full(self, icon_name: str, icon_desc: str) -> None: ... + def set_icon_full( + self, icon_name: str, icon_desc: Optional[str] = None + ) -> None: ... def set_icon_theme_path(self, icon_theme_path: str) -> None: ... def set_label(self, label: str, guide: str) -> None: ... def set_menu(self, menu: Optional[Gtk.Menu] = None) -> None: ... diff --git a/src/gi-stubs/repository/Farstream.pyi b/src/gi-stubs/repository/Farstream.pyi index 5d005734..bbe777d5 100644 --- a/src/gi-stubs/repository/Farstream.pyi +++ b/src/gi-stubs/repository/Farstream.pyi @@ -1,278 +1,890 @@ +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar + +from gi.repository import GLib from gi.repository import GObject from gi.repository import Gst -CODEC_FORMAT: str = ... -CODEC_ID_ANY: int = ... -CODEC_ID_DISABLE: int = ... -RTP_HEADER_EXTENSION_FORMAT: str = ... - -def candidate_list_copy(*args, **kwargs): ... -def codec_list_are_equal(*args, **kwargs): ... -def codec_list_copy(*args, **kwargs): ... -def codec_list_from_keyfile(*args, **kwargs): ... -def error_quark(*args, **kwargs): ... -def media_type_to_string(*args, **kwargs): ... -def parse_error(*args, **kwargs): ... -def rtp_header_extension_list_copy(*args, **kwargs): ... -def rtp_header_extension_list_from_keyfile(*args, **kwargs): ... -def utils_get_default_codec_preferences(*args, **kwargs): ... -def utils_get_default_rtp_header_extension_preferences(*args, **kwargs): ... -def utils_set_bitrate(*args, **kwargs): ... -def value_set_candidate_list(*args, **kwargs): ... - -class Candidate: - base_ip = ... - base_port = ... - component_id = ... - foundation = ... - ip = ... - password = ... - port = ... - priority = ... - proto = ... - ttl = ... - type = ... - username = ... - - def new(*args, **kwargs): ... - def new_full(*args, **kwargs): ... - -class CandidateList: ... - -class Codec: - channels = ... - clock_rate = ... - encoding_name = ... - feedback_params = ... - id = ... - media_type = ... - minimum_reporting_interval = ... - optional_params = ... - - def add_feedback_parameter(*args, **kwargs): ... - def add_optional_parameter(*args, **kwargs): ... - def are_equal(*args, **kwargs): ... - def get_feedback_parameter(*args, **kwargs): ... - def get_optional_parameter(*args, **kwargs): ... - def new(*args, **kwargs): ... - def remove_feedback_parameter(*args, **kwargs): ... - def remove_optional_parameter(*args, **kwargs): ... - def to_string(*args, **kwargs): ... - -class CodecGList: - def are_equal(*args, **kwargs): ... - def from_keyfile(*args, **kwargs): ... - -class CodecParameter: - name = ... - value = ... - - def free(*args, **kwargs): ... - -class Conference(Gst.Bin): - _padding = ... - - def new_participant(*args, **kwargs): ... +CODEC_FORMAT: str = "%d: %s %s clock:%d channels:%d params:%p" +CODEC_ID_ANY: int = -1 +CODEC_ID_DISABLE: int = -2 +RTP_HEADER_EXTENSION_FORMAT: str = "%d: (%s) %s" +_lock = ... # FIXME Constant +_namespace: str = "Farstream" +_version: str = "0.2" + +def candidate_list_copy(candidate_list: list[Codec]) -> list[Codec]: ... +def codec_list_are_equal( + list1: Optional[list[Codec]] = None, list2: Optional[list[Codec]] = None +) -> bool: ... +def codec_list_copy(codec_list: list[Codec]) -> list[Codec]: ... +def codec_list_from_keyfile(filename: str) -> list[Codec]: ... +def error_quark() -> int: ... +def media_type_to_string(media_type: MediaType) -> str: ... +def parse_error( + object: GObject.Object, message: Gst.Message +) -> Tuple[bool, Error, str]: ... +def rtp_header_extension_list_copy( + extensions: list[RtpHeaderExtension], +) -> list[RtpHeaderExtension]: ... +def rtp_header_extension_list_from_keyfile( + filename: str, media_type: MediaType +) -> list[RtpHeaderExtension]: ... +def utils_get_default_codec_preferences(element: Gst.Element) -> list[Codec]: ... +def utils_get_default_rtp_header_extension_preferences( + element: Gst.Element, media_type: MediaType +) -> list[Codec]: ... +def utils_set_bitrate(element: Gst.Element, bitrate: int) -> None: ... +def value_set_candidate_list( + value: Any, candidates: Optional[list[Candidate]] = None +) -> None: ... + +class Candidate(GObject.GBoxed): + """ + :Constructors: + + :: + + Candidate() + new(foundation:str, component_id:int, type:Farstream.CandidateType, proto:Farstream.NetworkProtocol, ip:str=None, port:int) -> Farstream.Candidate + new_full(foundation:str, component_id:int, ip:str=None, port:int, base_ip:str=None, base_port:int, proto:Farstream.NetworkProtocol, priority:int, type:Farstream.CandidateType, username:str=None, password:str=None, ttl:int) -> Farstream.Candidate + """ + + foundation: str = ... + component_id: int = ... + ip: str = ... + port: int = ... + base_ip: str = ... + base_port: int = ... + proto: NetworkProtocol = ... + priority: int = ... + type: CandidateType = ... + username: str = ... + password: str = ... + ttl: int = ... + def copy(self) -> Candidate: ... + @classmethod + def new( + cls, + foundation: str, + component_id: int, + type: CandidateType, + proto: NetworkProtocol, + ip: Optional[str], + port: int, + ) -> Candidate: ... + @classmethod + def new_full( + cls, + foundation: str, + component_id: int, + ip: Optional[str], + port: int, + base_ip: Optional[str], + base_port: int, + proto: NetworkProtocol, + priority: int, + type: CandidateType, + username: Optional[str], + password: Optional[str], + ttl: int, + ) -> Candidate: ... + +class CandidateList(GObject.GBoxed): + @staticmethod + def copy(candidate_list: list[Codec]) -> list[Codec]: ... + +class Codec(GObject.GBoxed): + """ + :Constructors: + + :: + + Codec() + new(id:int, encoding_name:str, media_type:Farstream.MediaType, clock_rate:int) -> Farstream.Codec + """ + + id: int = ... + encoding_name: str = ... + media_type: MediaType = ... + clock_rate: int = ... + channels: int = ... + minimum_reporting_interval: int = ... + optional_params: list[CodecParameter] = ... + feedback_params: list[FeedbackParameter] = ... + def add_feedback_parameter( + self, type: str, subtype: str, extra_params: str + ) -> None: ... + def add_optional_parameter(self, name: str, value: str) -> None: ... + def are_equal(self, codec2: Codec) -> bool: ... + def copy(self) -> Codec: ... + def get_feedback_parameter( + self, + type: Optional[str] = None, + subtype: Optional[str] = None, + extra_params: Optional[str] = None, + ) -> FeedbackParameter: ... + def get_optional_parameter( + self, name: str, value: Optional[str] = None + ) -> CodecParameter: ... + @classmethod + def new( + cls, id: int, encoding_name: str, media_type: MediaType, clock_rate: int + ) -> Codec: ... + def remove_feedback_parameter(self, item: list[FeedbackParameter]) -> None: ... + def remove_optional_parameter(self, param: CodecParameter) -> None: ... + def to_string(self) -> str: ... + +class CodecGList(GObject.GBoxed): + @staticmethod + def are_equal( + list1: Optional[list[Codec]] = None, list2: Optional[list[Codec]] = None + ) -> bool: ... + @staticmethod + def copy(codec_list: list[Codec]) -> list[Codec]: ... + @staticmethod + def from_keyfile(filename: str) -> list[Codec]: ... + +class CodecParameter(GObject.GBoxed): + """ + :Constructors: + + :: + + CodecParameter() + """ + + name: str = ... + value: str = ... + def copy(self) -> CodecParameter: ... + def free(self) -> None: ... + +class Conference(Gst.Bin, Gst.ChildProxy): + """ + :Constructors: + + :: + + Conference(**properties) + + Object FsConference + + Signals from GstChildProxy: + child-added (GObject, gchararray) + child-removed (GObject, gchararray) + + Signals from GstBin: + element-added (GstElement) + element-removed (GstElement) + deep-element-added (GstBin, GstElement) + deep-element-removed (GstBin, GstElement) + do-latency () -> gboolean + + Properties from GstBin: + async-handling -> gboolean: Async Handling + The bin will handle Asynchronous state changes + message-forward -> gboolean: Message Forward + Forwards all children messages + + Signals from GstChildProxy: + child-added (GObject, gchararray) + child-removed (GObject, gchararray) + + Signals from GstElement: + pad-added (GstPad) + pad-removed (GstPad) + no-more-pads () + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + + class Props: + async_handling: bool + message_forward: bool + name: Optional[str] + parent: Optional[Gst.Object] + props: Props = ... + parent: Gst.Bin = ... + _padding: list[None] = ... + def __init__( + self, + async_handling: bool = ..., + message_forward: bool = ..., + name: Optional[str] = ..., + parent: Gst.Object = ..., + ): ... + def do_new_participant(self) -> Participant: ... + def do_new_session(self, media_type: MediaType) -> Session: ... + def new_participant(self) -> Participant: ... def new_session(self, media_type: MediaType) -> Session: ... - def do_new_participant(self, *args, **kwargs): ... - def do_new_session(self, *args, **kwargs): ... - -class ElementAddedNotifier: - parent = ... - priv = ... - - def add(*args, **kwargs): ... - def new(*args, **kwargs): ... - def remove(*args, **kwargs): ... - def set_default_properties(*args, **kwargs): ... - def set_properties_from_file(*args, **kwargs): ... - def set_properties_from_keyfile(*args, **kwargs): ... - -class FeedbackParameter: - extra_params = ... - subtype = ... - type = ... - - def free(*args, **kwargs): ... - -class Participant: - _padding = ... - mutex = ... - parent = ... - priv = ... - -class Plugin: - parent = ... - priv = ... - type = ... - unused = ... - - def list_available(*args, **kwargs): ... - def register_static(*args, **kwargs): ... - -class RtpHeaderExtension: - direction = ... - id = ... - uri = ... - - def are_equal(*args, **kwargs): ... - def new(*args, **kwargs): ... - -class RtpHeaderExtensionGList: - def from_keyfile(*args, **kwargs): ... - -class Session: - _padding = ... - parent = ... - priv = ... - - def codecs_need_resend(*args, **kwargs): ... - def destroy(*args, **kwargs): ... - def emit_error(*args, **kwargs): ... - def get_stream_transmitter_type(*args, **kwargs): ... - def list_transmitters(*args, **kwargs): ... - def new_stream(*args, **kwargs): ... - def parse_codecs_changed(*args, **kwargs): ... - def parse_send_codec_changed(*args, **kwargs): ... - def parse_telephony_event_started(*args, **kwargs): ... - def parse_telephony_event_stopped(*args, **kwargs): ... - def set_allowed_caps(*args, **kwargs): ... - def set_codec_preferences(*args, **kwargs): ... - def set_encryption_parameters(*args, **kwargs): ... - def set_send_codec(*args, **kwargs): ... - def start_telephony_event(*args, **kwargs): ... - def stop_telephony_event(*args, **kwargs): ... - def do_codecs_need_resend(self, *args, **kwargs): ... - def do_get_stream_transmitter_type(self, *args, **kwargs): ... - def do_list_transmitters(self, *args, **kwargs): ... - def do_new_stream(self, *args, **kwargs): ... - def do_set_allowed_caps(self, *args, **kwargs): ... - def do_set_codec_preferences(self, *args, **kwargs): ... - def do_set_encryption_parameters(self, *args, **kwargs): ... - def do_set_send_codec(self, *args, **kwargs): ... - def do_start_telephony_event(self, *args, **kwargs): ... - def do_stop_telephony_event(self, *args, **kwargs): ... - -class Stream: - _padding = ... - parent = ... - priv = ... - - def add_id(*args, **kwargs): ... - def add_remote_candidates(*args, **kwargs): ... - def destroy(*args, **kwargs): ... - def emit_error(*args, **kwargs): ... - def emit_src_pad_added(*args, **kwargs): ... - def force_remote_candidates(*args, **kwargs): ... - def iterate_src_pads(*args, **kwargs): ... - def parse_component_state_changed(*args, **kwargs): ... - def parse_local_candidates_prepared(*args, **kwargs): ... - def parse_new_active_candidate_pair(*args, **kwargs): ... - def parse_new_local_candidate(*args, **kwargs): ... - def parse_recv_codecs_changed(*args, **kwargs): ... - def set_decryption_parameters(*args, **kwargs): ... - def set_remote_codecs(*args, **kwargs): ... - def set_transmitter(*args, **kwargs): ... - def set_transmitter_ht(*args, **kwargs): ... - def do_add_id(self, *args, **kwargs): ... - def do_add_remote_candidates(self, *args, **kwargs): ... - def do_force_remote_candidates(self, *args, **kwargs): ... - def do_set_decryption_parameters(self, *args, **kwargs): ... - def do_set_remote_codecs(self, *args, **kwargs): ... - def do_set_transmitter(self, *args, **kwargs): ... - -class StreamTransmitter: - _padding = ... - parent = ... - priv = ... - - def add_remote_candidates(*args, **kwargs): ... - def emit_error(*args, **kwargs): ... - def force_remote_candidates(*args, **kwargs): ... - def gather_local_candidates(*args, **kwargs): ... - def stop(*args, **kwargs): ... - def do_add_remote_candidates(self, *args, **kwargs): ... - def do_force_remote_candidates(self, *args, **kwargs): ... - def do_gather_local_candidates(self, *args, **kwargs): ... - def do_stop(self, *args, **kwargs): ... - -class Transmitter: - _padding = ... - construction_error = ... - parent = ... - priv = ... - - def emit_error(*args, **kwargs): ... - def get_stream_transmitter_type(*args, **kwargs): ... - def list_available(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_stream_transmitter(*args, **kwargs): ... - def do_get_stream_transmitter_type(self, *args, **kwargs): ... - def do_new_stream_transmitter(self, *args, **kwargs): ... + +class ConferenceClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConferenceClass() + """ + + parent: Gst.BinClass = ... + new_session: Callable[[Conference, MediaType], Session] = ... + new_participant: Callable[[Conference], Participant] = ... + _gst_reserved: list[None] = ... + +class ElementAddedNotifier(GObject.Object): + """ + :Constructors: + + :: + + ElementAddedNotifier(**properties) + new() -> Farstream.ElementAddedNotifier + + Object FsElementAddedNotifier + + Signals from FsElementAddedNotifier: + element-added (GstBin, GstElement) + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: ElementAddedNotifierPrivate = ... + def add(self, bin: Gst.Bin) -> None: ... + @classmethod + def new(cls) -> ElementAddedNotifier: ... + def remove(self, bin: Gst.Bin) -> bool: ... + def set_default_properties(self, element: Gst.Element) -> int: ... + def set_properties_from_file(self, filename: str) -> bool: ... + def set_properties_from_keyfile(self, keyfile: GLib.KeyFile) -> int: ... + +class ElementAddedNotifierClass(GObject.GPointer): + """ + :Constructors: + + :: + + ElementAddedNotifierClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ElementAddedNotifierPrivate(GObject.GPointer): ... + +class FeedbackParameter(GObject.GBoxed): + """ + :Constructors: + + :: + + FeedbackParameter() + """ + + type: str = ... + subtype: str = ... + extra_params: str = ... + def copy(self) -> FeedbackParameter: ... + def free(self) -> None: ... + +class Participant(GObject.Object): + """ + :Constructors: + + :: + + Participant(**properties) + + Object FsParticipant + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + mutex: GLib.Mutex = ... + priv: ParticipantPrivate = ... + _padding: list[None] = ... + +class ParticipantClass(GObject.GPointer): + """ + :Constructors: + + :: + + ParticipantClass() + """ + + parent_class: GObject.ObjectClass = ... + priv: ParticipantPrivate = ... + _padding: list[None] = ... + +class ParticipantPrivate(GObject.GPointer): ... + +class Plugin(GObject.TypeModule, GObject.TypePlugin): + """ + :Constructors: + + :: + + Plugin(**properties) + + Object FsPlugin + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.TypeModule = ... + type: Type = ... + name: str = ... + priv: PluginPrivate = ... + unused: list[None] = ... + @staticmethod + def list_available(type_suffix: str) -> list[str]: ... + @staticmethod + def register_static(name: str, type_suffix: str, type: Type) -> None: ... + +class PluginClass(GObject.GPointer): + """ + :Constructors: + + :: + + PluginClass() + """ + + parent_class: GObject.TypeModuleClass = ... + unused: list[None] = ... + +class PluginPrivate(GObject.GPointer): ... + +class RtpHeaderExtension(GObject.GBoxed): + """ + :Constructors: + + :: + + RtpHeaderExtension() + new(id:int, direction:Farstream.StreamDirection, uri:str) -> Farstream.RtpHeaderExtension + """ + + id: int = ... + direction: StreamDirection = ... + uri: str = ... + def are_equal(self, extension2: RtpHeaderExtension) -> bool: ... + @classmethod + def new( + cls, id: int, direction: StreamDirection, uri: str + ) -> RtpHeaderExtension: ... + +class RtpHeaderExtensionGList(GObject.GBoxed): + @staticmethod + def copy(extensions: list[RtpHeaderExtension]) -> list[RtpHeaderExtension]: ... + @staticmethod + def from_keyfile( + filename: str, media_type: MediaType + ) -> list[RtpHeaderExtension]: ... + +class Session(GObject.Object): + """ + :Constructors: + + :: + + Session(**properties) + + Object FsSession + + Signals from FsSession: + error (GObject, FsError, gchararray) + + Properties from FsSession: + conference -> FsConference: The FsConference + The Conference this stream refers to + media-type -> FsMediaType: The media type of the session + An enum that specifies the media type of the session + id -> guint: The ID of the session + This ID is used on pad related to this session + sink-pad -> GstPad: A gstreamer sink pad for this session + A pad used for sending data on this session + codec-preferences -> FsCodecGList: List of user preferences for the codecs + A GList of FsCodecs that allows user to set his codec options and priorities + codecs -> FsCodecGList: List of codecs + A GList of FsCodecs indicating the codecs for this session + codecs-without-config -> FsCodecGList: List of codecs without the configuration data + A GList of FsCodecs indicating the codecs for this session without any configuration data + current-send-codec -> FsCodec: Current active send codec + An FsCodec indicating the currently active send codec + tos -> guint: IP Type of Service + The IP Type of Service to set on sent packets + + Signals from GObject: + notify (GParam) + """ + + class Props: + allowed_sink_caps: Gst.Caps + allowed_src_caps: Gst.Caps + codec_preferences: list[Codec] + codecs: list[Codec] + codecs_without_config: list[Codec] + conference: Conference + current_send_codec: Codec + encryption_parameters: Gst.Structure + id: int + media_type: MediaType + sink_pad: Gst.Pad + tos: int + props: Props = ... + parent: GObject.Object = ... + priv: SessionPrivate = ... + _padding: list[None] = ... + def __init__( + self, + conference: Conference = ..., + id: int = ..., + media_type: MediaType = ..., + tos: int = ..., + ): ... + def codecs_need_resend( + self, + old_codecs: Optional[list[Codec]] = None, + new_codecs: Optional[list[Codec]] = None, + ) -> list[Codec]: ... + def destroy(self) -> None: ... + def do_codecs_need_resend( + self, + old_codecs: Optional[list[Codec]] = None, + new_codecs: Optional[list[Codec]] = None, + ) -> list[Codec]: ... + def do_get_stream_transmitter_type(self, transmitter: str) -> Type: ... + def do_list_transmitters(self) -> list[str]: ... + def do_new_stream( + self, participant: Participant, direction: StreamDirection + ) -> Stream: ... + def do_set_allowed_caps( + self, sink_caps: Optional[Gst.Caps] = None, src_caps: Optional[Gst.Caps] = None + ) -> bool: ... + def do_set_codec_preferences( + self, codec_preferences: Optional[list[Codec]] = None + ) -> bool: ... + def do_set_encryption_parameters( + self, parameters: Optional[Gst.Structure] = None + ) -> bool: ... + def do_set_send_codec(self, send_codec: Codec) -> bool: ... + def do_start_telephony_event(self, event: int, volume: int) -> bool: ... + def do_stop_telephony_event(self) -> bool: ... + def emit_error(self, error_no: int, error_msg: str) -> None: ... + def get_stream_transmitter_type(self, transmitter: str) -> Type: ... + def list_transmitters(self) -> list[str]: ... + def new_stream( + self, participant: Participant, direction: StreamDirection + ) -> Stream: ... + def parse_codecs_changed(self, message: Gst.Message) -> bool: ... + def parse_send_codec_changed( + self, message: Gst.Message + ) -> Tuple[bool, Codec, list[Codec]]: ... + def parse_telephony_event_started( + self, message: Gst.Message + ) -> Tuple[bool, DTMFMethod, DTMFEvent, int]: ... + def parse_telephony_event_stopped( + self, message: Gst.Message + ) -> Tuple[bool, DTMFMethod]: ... + def set_allowed_caps( + self, sink_caps: Optional[Gst.Caps] = None, src_caps: Optional[Gst.Caps] = None + ) -> bool: ... + def set_codec_preferences( + self, codec_preferences: Optional[list[Codec]] = None + ) -> bool: ... + def set_encryption_parameters( + self, parameters: Optional[Gst.Structure] = None + ) -> bool: ... + def set_send_codec(self, send_codec: Codec) -> bool: ... + def start_telephony_event(self, event: int, volume: int) -> bool: ... + def stop_telephony_event(self) -> bool: ... + +class SessionClass(GObject.GPointer): + """ + :Constructors: + + :: + + SessionClass() + """ + + parent_class: GObject.ObjectClass = ... + new_stream: Callable[[Session, Participant, StreamDirection], Stream] = ... + start_telephony_event: Callable[[Session, int, int], bool] = ... + stop_telephony_event: Callable[[Session], bool] = ... + set_send_codec: Callable[[Session, Codec], bool] = ... + set_codec_preferences: Callable[[Session, Optional[list[Codec]]], bool] = ... + list_transmitters: Callable[[Session], list[str]] = ... + get_stream_transmitter_type: Callable[[Session, str], Type] = ... + codecs_need_resend: Callable[ + [Session, Optional[list[Codec]], Optional[list[Codec]]], list[Codec] + ] = ... + set_allowed_caps: Callable[ + [Session, Optional[Gst.Caps], Optional[Gst.Caps]], bool + ] = ... + set_encryption_parameters: Callable[[Session, Optional[Gst.Structure]], bool] = ... + _padding: list[None] = ... + +class SessionPrivate(GObject.GPointer): ... + +class Stream(GObject.Object): + """ + :Constructors: + + :: + + Stream(**properties) + + Object FsStream + + Signals from FsStream: + error (FsError, gchararray) + src-pad-added (GstPad, FsCodec) + + Properties from FsStream: + remote-codecs -> FsCodecGList: List of remote codecs + A GList of FsCodecs of the remote codecs + negotiated-codecs -> FsCodecGList: List of remote codecs + A GList of FsCodecs of the negotiated codecs for this stream + current-recv-codecs -> FsCodecGList: The codecs currently being received + A GList of FsCodec representing the codecs that have been received + direction -> FsStreamDirection: The direction of the stream + An enum to set and get the direction of the stream + participant -> FsParticipant: The participant of the stream + An FsParticipant represented by the stream + session -> FsSession: The session of the stream + An FsSession represented by the stream + require-encryption -> gboolean: Require Encryption + If TRUE, only encrypted content will be accepted + + Signals from GObject: + notify (GParam) + """ + + class Props: + current_recv_codecs: list[Codec] + decryption_parameters: Gst.Structure + direction: StreamDirection + negotiated_codecs: list[Codec] + participant: Participant + remote_codecs: list[Codec] + require_encryption: bool + session: Session + props: Props = ... + parent: GObject.Object = ... + priv: StreamPrivate = ... + _padding: list[None] = ... + def __init__( + self, + direction: StreamDirection = ..., + participant: Participant = ..., + require_encryption: bool = ..., + session: Session = ..., + ): ... + def add_id(self, id: int) -> None: ... + def add_remote_candidates(self, candidates: list[Candidate]) -> bool: ... + def destroy(self) -> None: ... + def do_add_id(self, id: int) -> None: ... + def do_add_remote_candidates(self, candidates: list[Candidate]) -> bool: ... + def do_force_remote_candidates( + self, remote_candidates: list[Candidate] + ) -> bool: ... + def do_set_decryption_parameters(self, parameters: Gst.Structure) -> bool: ... + def do_set_remote_codecs(self, remote_codecs: list[Codec]) -> bool: ... + def do_set_transmitter( + self, + transmitter: str, + stream_transmitter_parameters: Optional[Sequence[GObject.Parameter]] = None, + ) -> bool: ... + def emit_error(self, error_no: int, error_msg: str) -> None: ... + def emit_src_pad_added(self, pad: Gst.Pad, codec: Codec) -> None: ... + def force_remote_candidates(self, remote_candidates: list[Candidate]) -> bool: ... + def iterate_src_pads(self) -> Gst.Iterator: ... + def parse_component_state_changed( + self, message: Gst.Message + ) -> Tuple[bool, int, StreamState]: ... + def parse_local_candidates_prepared(self, message: Gst.Message) -> bool: ... + def parse_new_active_candidate_pair( + self, message: Gst.Message + ) -> Tuple[bool, Candidate, Candidate]: ... + def parse_new_local_candidate( + self, message: Gst.Message + ) -> Tuple[bool, Candidate]: ... + def parse_recv_codecs_changed( + self, message: Gst.Message + ) -> Tuple[bool, list[Codec]]: ... + def set_decryption_parameters(self, parameters: Gst.Structure) -> bool: ... + def set_remote_codecs(self, remote_codecs: list[Codec]) -> bool: ... + def set_transmitter( + self, + transmitter: str, + stream_transmitter_parameters: Optional[Sequence[GObject.Parameter]] = None, + ) -> bool: ... + def set_transmitter_ht( + self, + transmitter: str, + stream_transmitter_parameters: Optional[dict[str, Any]] = None, + ) -> bool: ... + +class StreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + StreamClass() + """ + + parent_class: GObject.ObjectClass = ... + add_remote_candidates: Callable[[Stream, list[Candidate]], bool] = ... + force_remote_candidates: Callable[[Stream, list[Candidate]], bool] = ... + set_remote_codecs: Callable[[Stream, list[Codec]], bool] = ... + add_id: Callable[[Stream, int], None] = ... + set_transmitter: Callable[ + [Stream, str, Optional[Sequence[GObject.Parameter]]], bool + ] = ... + set_decryption_parameters: Callable[[Stream, Gst.Structure], bool] = ... + _padding: list[None] = ... + +class StreamPrivate(GObject.GPointer): ... + +class StreamTransmitter(GObject.Object): + """ + :Constructors: + + :: + + StreamTransmitter(**properties) + + Object FsStreamTransmitter + + Signals from FsStreamTransmitter: + error (FsError, gchararray) + new-active-candidate-pair (FsCandidate, FsCandidate) + new-local-candidate (FsCandidate) + local-candidates-prepared () + known-source-packet-received (guint, gpointer) + state-changed (guint, FsStreamState) + + Properties from FsStreamTransmitter: + sending -> gboolean: Whether to send from this transmitter + If set to FALSE, the transmitter will stop sending to this person + preferred-local-candidates -> FsCandidateList: The preferred candidates + A GList of FsCandidates + associate-on-source -> gboolean: Associate incoming data based on the source address + Whether to associate incoming data stream based on the source address + + Signals from GObject: + notify (GParam) + """ + + class Props: + associate_on_source: bool + preferred_local_candidates: CandidateList + sending: bool + props: Props = ... + parent: GObject.Object = ... + priv: StreamTransmitterPrivate = ... + _padding: list[None] = ... + def __init__( + self, + associate_on_source: bool = ..., + preferred_local_candidates: CandidateList = ..., + sending: bool = ..., + ): ... + def add_remote_candidates(self, candidates: list[Candidate]) -> bool: ... + def do_add_remote_candidates(self, candidates: list[Candidate]) -> bool: ... + def do_force_remote_candidates( + self, remote_candidates: list[Candidate] + ) -> bool: ... + def do_gather_local_candidates(self) -> bool: ... + def do_stop(self) -> None: ... + def emit_error(self, error_no: int, error_msg: str) -> None: ... + def force_remote_candidates(self, remote_candidates: list[Candidate]) -> bool: ... + def gather_local_candidates(self) -> bool: ... + def stop(self) -> None: ... + +class StreamTransmitterClass(GObject.GPointer): + """ + :Constructors: + + :: + + StreamTransmitterClass() + """ + + parent_class: GObject.ObjectClass = ... + add_remote_candidates: Callable[[StreamTransmitter, list[Candidate]], bool] = ... + force_remote_candidates: Callable[[StreamTransmitter, list[Candidate]], bool] = ... + gather_local_candidates: Callable[[StreamTransmitter], bool] = ... + stop: Callable[[StreamTransmitter], None] = ... + _padding: list[None] = ... + +class StreamTransmitterPrivate(GObject.GPointer): ... + +class Transmitter(GObject.Object): + """ + :Constructors: + + :: + + Transmitter(**properties) + new(type:str, components:int, tos:int) -> Farstream.Transmitter + + Object FsTransmitter + + Signals from FsTransmitter: + error (FsError, gchararray) + + Properties from FsTransmitter: + gst-sink -> GstElement: The network source + A source GstElement to be used by a FsSession + gst-src -> GstElement: The network source + A source GstElement to be used by a FsSession + components -> guint: Number of componnets + The number of components to create + tos -> guint: IP Type of Service + The IP Type of Service to set on sent packets + do-timestamp -> gboolean: Do Timestamp + Apply current stream time to buffers + + Signals from GObject: + notify (GParam) + """ + + class Props: + components: int + do_timestamp: bool + gst_sink: Gst.Element + gst_src: Gst.Element + tos: int + props: Props = ... + parent: GObject.Object = ... + priv: TransmitterPrivate = ... + construction_error: GLib.Error = ... + _padding: list[None] = ... + def __init__( + self, components: int = ..., do_timestamp: bool = ..., tos: int = ... + ): ... + def do_get_stream_transmitter_type(self) -> Type: ... + def do_new_stream_transmitter( + self, participant: Participant, n_parameters: int, parameters: GObject.Parameter + ) -> StreamTransmitter: ... + def emit_error(self, error_no: int, error_msg: str) -> None: ... + def get_stream_transmitter_type(self) -> Type: ... + @staticmethod + def list_available() -> list[str]: ... + @classmethod + def new(cls, type: str, components: int, tos: int) -> Transmitter: ... + def new_stream_transmitter( + self, participant: Participant, n_parameters: int, parameters: GObject.Parameter + ) -> StreamTransmitter: ... + +class TransmitterClass(GObject.GPointer): + """ + :Constructors: + + :: + + TransmitterClass() + """ + + parent_class: GObject.ObjectClass = ... + new_stream_transmitter: Callable[ + [Transmitter, Participant, int, GObject.Parameter], StreamTransmitter + ] = ... + get_stream_transmitter_type: Callable[[Transmitter], Type] = ... + _padding: list[None] = ... + +class TransmitterPrivate(GObject.GPointer): ... class StreamDirection(GObject.GFlags): - NONE = ... - SEND = ... - RECV = ... - BOTH = ... + BOTH = 3 + NONE = 0 + RECV = 2 + SEND = 1 class CandidateType(GObject.GEnum): - HOST = ... - SRFLX = ... - PRFLX = ... - RELAY = ... - MULTICAST = ... + HOST = 0 + MULTICAST = 4 + PRFLX = 2 + RELAY = 3 + SRFLX = 1 class ComponentType(GObject.GEnum): - NONE = ... - RTP = ... - RTCP = ... + NONE = 0 + RTCP = 2 + RTP = 1 class DTMFEvent(GObject.GEnum): - STAR = ... - POUND = ... - A = ... - B = ... - C = ... - D = ... + A = 12 + B = 13 + C = 14 + D = 15 + POUND = 11 + STAR = 10 class DTMFMethod(GObject.GEnum): - RTP_RFC4733 = ... - SOUND = ... + RTP_RFC4733 = 1 + SOUND = 2 class Error(GObject.GEnum): - CONSTRUCTION = ... - INTERNAL = ... - INVALID_ARGUMENTS = ... - NETWORK = ... - NOT_IMPLEMENTED = ... - NEGOTIATION_FAILED = ... - UNKNOWN_CODEC = ... - NO_CODECS = ... - NO_CODECS_LEFT = ... - CONNECTION_FAILED = ... - DISPOSED = ... - ALREADY_EXISTS = ... - quark = ... + ALREADY_EXISTS = 109 + CONNECTION_FAILED = 107 + CONSTRUCTION = 1 + DISPOSED = 108 + INTERNAL = 2 + INVALID_ARGUMENTS = 100 + NEGOTIATION_FAILED = 103 + NETWORK = 101 + NOT_IMPLEMENTED = 102 + NO_CODECS = 105 + NO_CODECS_LEFT = 106 + UNKNOWN_CODEC = 104 + @staticmethod + def quark() -> int: ... class MediaType(GObject.GEnum): - AUDIO = ... - VIDEO = ... - APPLICATION = ... - LAST = ... - to_string = ... + APPLICATION = 2 + AUDIO = 0 + LAST = 2 + VIDEO = 1 + @staticmethod + def to_string(media_type: MediaType) -> str: ... class NetworkProtocol(GObject.GEnum): - UDP = ... - TCP = ... - TCP_PASSIVE = ... - TCP_ACTIVE = ... - TCP_SO = ... + TCP = 1 + TCP_ACTIVE = 2 + TCP_PASSIVE = 1 + TCP_SO = 3 + UDP = 0 class StreamState(GObject.GEnum): - FAILED = ... - DISCONNECTED = ... - GATHERING = ... - CONNECTING = ... - CONNECTED = ... - READY = ... + CONNECTED = 4 + CONNECTING = 3 + DISCONNECTED = 1 + FAILED = 0 + GATHERING = 2 + READY = 5 diff --git a/src/gi-stubs/repository/Flatpak.pyi b/src/gi-stubs/repository/Flatpak.pyi index 2558af69..939815f6 100644 --- a/src/gi-stubs/repository/Flatpak.pyi +++ b/src/gi-stubs/repository/Flatpak.pyi @@ -12,8 +12,8 @@ from gi.repository import GLib from gi.repository import GObject MAJOR_VERSION: int = 1 -MICRO_VERSION: int = 4 -MINOR_VERSION: int = 15 +MICRO_VERSION: int = 5 +MINOR_VERSION: int = 14 _lock = ... # FIXME Constant _namespace: str = "Flatpak" _version: str = "1.0" @@ -68,7 +68,6 @@ class BundleRef(Ref): commit: str kind: RefKind name: str - props: Props = ... parent: Ref = ... def __init__( @@ -474,7 +473,6 @@ class InstalledRef(Ref): commit: str kind: RefKind name: str - props: Props = ... parent: Ref = ... def __init__( @@ -607,7 +605,6 @@ class Ref(GObject.Object): commit: str kind: RefKind name: str - props: Props = ... parent: GObject.Object = ... def __init__( @@ -690,7 +687,6 @@ class RelatedRef(Ref): commit: str kind: RefKind name: str - props: Props = ... parent: Ref = ... def __init__( @@ -747,7 +743,6 @@ class Remote(GObject.Object): class Props: name: str type: RemoteType - props: Props = ... parent: GObject.Object = ... def __init__(self, name: str = ..., type: RemoteType = ...): ... @@ -857,7 +852,6 @@ class RemoteRef(Ref): commit: str kind: RefKind name: str - props: Props = ... parent: Ref = ... def __init__( @@ -932,7 +926,6 @@ class Transaction(GObject.Object, Gio.Initable): class Props: installation: Installation no_interaction: bool - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -1062,9 +1055,9 @@ class TransactionClass(GObject.GPointer): [Transaction, TransactionRemoteReason, str, str, str], bool ] = ... run: Callable[[Transaction, Optional[Gio.Cancellable]], bool] = ... - end_of_lifed_with_rebase: Callable[[Transaction, str, str, str, str, str], bool] = ( - ... - ) + end_of_lifed_with_rebase: Callable[ + [Transaction, str, str, str, str, str], bool + ] = ... webflow_start: Callable[[Transaction, str, str, GLib.Variant, int], bool] = ... webflow_done: Callable[[Transaction, GLib.Variant, int], None] = ... basic_auth_start: Callable[[Transaction, str, str, GLib.Variant, int], bool] = ... diff --git a/src/gi-stubs/repository/GIRepository.pyi b/src/gi-stubs/repository/GIRepository.pyi index e65dde5b..e72dc269 100644 --- a/src/gi-stubs/repository/GIRepository.pyi +++ b/src/gi-stubs/repository/GIRepository.pyi @@ -1,347 +1,441 @@ from typing import Any +from typing import Callable from typing import Literal from typing import Optional -from typing import Union +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar +from gi.repository import GLib from gi.repository import GObject -MAJOR_VERSION: int = ... -MICRO_VERSION: int = ... -MINOR_VERSION: int = ... -TYPE_TAG_N_TYPES: int = ... -_namespace: str = ... -_version: str = ... - -def arg_info_get_closure(*args, **kwargs): ... -def arg_info_get_destroy(*args, **kwargs): ... -def arg_info_get_direction(*args, **kwargs): ... -def arg_info_get_ownership_transfer(*args, **kwargs): ... -def arg_info_get_scope(*args, **kwargs): ... -def arg_info_get_type(*args, **kwargs): ... -def arg_info_is_caller_allocates(*args, **kwargs): ... -def arg_info_is_optional(*args, **kwargs): ... -def arg_info_is_return_value(*args, **kwargs): ... -def arg_info_is_skip(*args, **kwargs): ... -def arg_info_load_type(*args, **kwargs): ... -def arg_info_may_be_null(*args, **kwargs): ... -def callable_info_can_throw_gerror(*args, **kwargs): ... -def callable_info_get_arg(*args, **kwargs): ... -def callable_info_get_caller_owns(*args, **kwargs): ... -def callable_info_get_instance_ownership_transfer(*args, **kwargs): ... -def callable_info_get_n_args(*args, **kwargs): ... -def callable_info_get_return_attribute(*args, **kwargs): ... -def callable_info_get_return_type(*args, **kwargs): ... -def callable_info_invoke(*args, **kwargs): ... -def callable_info_is_method(*args, **kwargs): ... -def callable_info_iterate_return_attributes(*args, **kwargs): ... -def callable_info_load_arg(*args, **kwargs): ... -def callable_info_load_return_type(*args, **kwargs): ... -def callable_info_may_return_null(*args, **kwargs): ... -def callable_info_skip_return(*args, **kwargs): ... -def cclosure_marshal_generic(*args, **kwargs): ... -def constant_info_get_type(*args, **kwargs): ... -def enum_info_get_error_domain(*args, **kwargs): ... -def enum_info_get_method(*args, **kwargs): ... -def enum_info_get_n_methods(*args, **kwargs): ... -def enum_info_get_n_values(*args, **kwargs): ... -def enum_info_get_storage_type(*args, **kwargs): ... -def enum_info_get_value(*args, **kwargs): ... -def field_info_get_flags(*args, **kwargs): ... -def field_info_get_offset(*args, **kwargs): ... -def field_info_get_size(*args, **kwargs): ... -def field_info_get_type(*args, **kwargs): ... -def function_info_get_flags(*args, **kwargs): ... -def function_info_get_property(*args, **kwargs): ... -def function_info_get_symbol(*args, **kwargs): ... -def function_info_get_vfunc(*args, **kwargs): ... -def get_major_version(*args, **kwargs): ... -def get_micro_version(*args, **kwargs): ... -def get_minor_version(*args, **kwargs): ... -def info_new(*args, **kwargs): ... -def info_type_to_string(*args, **kwargs): ... -def interface_info_find_method(*args, **kwargs): ... -def interface_info_find_signal(*args, **kwargs): ... -def interface_info_find_vfunc(*args, **kwargs): ... -def interface_info_get_constant(*args, **kwargs): ... -def interface_info_get_iface_struct(*args, **kwargs): ... -def interface_info_get_method(*args, **kwargs): ... -def interface_info_get_n_constants(*args, **kwargs): ... -def interface_info_get_n_methods(*args, **kwargs): ... -def interface_info_get_n_prerequisites(*args, **kwargs): ... -def interface_info_get_n_properties(*args, **kwargs): ... -def interface_info_get_n_signals(*args, **kwargs): ... -def interface_info_get_n_vfuncs(*args, **kwargs): ... -def interface_info_get_prerequisite(*args, **kwargs): ... -def interface_info_get_property(*args, **kwargs): ... -def interface_info_get_signal(*args, **kwargs): ... -def interface_info_get_vfunc(*args, **kwargs): ... -def invoke_error_quark(*args, **kwargs): ... -def object_info_find_method(*args, **kwargs): ... -def object_info_find_method_using_interfaces(*args, **kwargs): ... -def object_info_find_signal(*args, **kwargs): ... -def object_info_find_vfunc(*args, **kwargs): ... -def object_info_find_vfunc_using_interfaces(*args, **kwargs): ... -def object_info_get_abstract(*args, **kwargs): ... -def object_info_get_class_struct(*args, **kwargs): ... -def object_info_get_constant(*args, **kwargs): ... -def object_info_get_field(*args, **kwargs): ... -def object_info_get_fundamental(*args, **kwargs): ... -def object_info_get_get_value_function(*args, **kwargs): ... -def object_info_get_interface(*args, **kwargs): ... -def object_info_get_method(*args, **kwargs): ... -def object_info_get_n_constants(*args, **kwargs): ... -def object_info_get_n_fields(*args, **kwargs): ... -def object_info_get_n_interfaces(*args, **kwargs): ... -def object_info_get_n_methods(*args, **kwargs): ... -def object_info_get_n_properties(*args, **kwargs): ... -def object_info_get_n_signals(*args, **kwargs): ... -def object_info_get_n_vfuncs(*args, **kwargs): ... -def object_info_get_parent(*args, **kwargs): ... -def object_info_get_property(*args, **kwargs): ... -def object_info_get_ref_function(*args, **kwargs): ... -def object_info_get_set_value_function(*args, **kwargs): ... -def object_info_get_signal(*args, **kwargs): ... -def object_info_get_type_init(*args, **kwargs): ... -def object_info_get_type_name(*args, **kwargs): ... -def object_info_get_unref_function(*args, **kwargs): ... -def object_info_get_vfunc(*args, **kwargs): ... -def property_info_get_flags(*args, **kwargs): ... -def property_info_get_ownership_transfer(*args, **kwargs): ... -def property_info_get_type(*args, **kwargs): ... -def registered_type_info_get_g_type(*args, **kwargs): ... -def registered_type_info_get_type_init(*args, **kwargs): ... -def registered_type_info_get_type_name(*args, **kwargs): ... -def signal_info_get_class_closure(*args, **kwargs): ... -def signal_info_get_flags(*args, **kwargs): ... -def signal_info_true_stops_emit(*args, **kwargs): ... -def struct_info_find_field(*args, **kwargs): ... -def struct_info_find_method(*args, **kwargs): ... -def struct_info_get_alignment(*args, **kwargs): ... -def struct_info_get_field(*args, **kwargs): ... -def struct_info_get_method(*args, **kwargs): ... -def struct_info_get_n_fields(*args, **kwargs): ... -def struct_info_get_n_methods(*args, **kwargs): ... -def struct_info_get_size(*args, **kwargs): ... -def struct_info_is_foreign(*args, **kwargs): ... -def struct_info_is_gtype_struct(*args, **kwargs): ... -def type_info_argument_from_hash_pointer(*args, **kwargs): ... -def type_info_get_array_fixed_size(*args, **kwargs): ... -def type_info_get_array_length(*args, **kwargs): ... -def type_info_get_array_type(*args, **kwargs): ... -def type_info_get_interface(*args, **kwargs): ... -def type_info_get_param_type(*args, **kwargs): ... -def type_info_get_storage_type(*args, **kwargs): ... -def type_info_get_tag(*args, **kwargs): ... -def type_info_hash_pointer_from_argument(*args, **kwargs): ... -def type_info_is_pointer(*args, **kwargs): ... -def type_info_is_zero_terminated(*args, **kwargs): ... -def type_tag_to_string(*args, **kwargs): ... -def union_info_find_method(*args, **kwargs): ... -def union_info_get_alignment(*args, **kwargs): ... -def union_info_get_discriminator(*args, **kwargs): ... -def union_info_get_discriminator_offset(*args, **kwargs): ... -def union_info_get_discriminator_type(*args, **kwargs): ... -def union_info_get_field(*args, **kwargs): ... -def union_info_get_method(*args, **kwargs): ... -def union_info_get_n_fields(*args, **kwargs): ... -def union_info_get_n_methods(*args, **kwargs): ... -def union_info_get_size(*args, **kwargs): ... -def union_info_is_discriminated(*args, **kwargs): ... -def value_info_get_value(*args, **kwargs): ... -def vfunc_info_get_address(*args, **kwargs): ... -def vfunc_info_get_flags(*args, **kwargs): ... -def vfunc_info_get_invoker(*args, **kwargs): ... -def vfunc_info_get_offset(*args, **kwargs): ... -def vfunc_info_get_signal(*args, **kwargs): ... - -class Argument: - v_boolean = ... - v_double = ... - v_float = ... - v_int = ... - v_int16 = ... - v_int32 = ... - v_int64 = ... - v_int8 = ... - v_long = ... - v_pointer = ... - v_short = ... - v_size = ... - v_ssize = ... - v_string = ... - v_uint = ... - v_uint16 = ... - v_uint32 = ... - v_uint64 = ... - v_uint8 = ... - v_ulong = ... - v_ushort = ... - -class AttributeIter: - data = ... - data2 = ... - data3 = ... - data4 = ... - -class BaseInfo: - dummy1 = ... - dummy2 = ... - dummy3 = ... - dummy4 = ... - dummy5 = ... - dummy6 = ... - dummy7 = ... - padding = ... - - def equal(*args, **kwargs): ... - def get_attribute(*args, **kwargs): ... - def get_container(*args, **kwargs): ... - def get_name(*args, **kwargs): ... - def get_namespace(*args, **kwargs): ... - def get_type(*args, **kwargs): ... - def get_typelib(*args, **kwargs): ... - def is_deprecated(*args, **kwargs): ... - def iterate_attributes(*args, **kwargs): ... - -class Repository: - parent = ... - priv = ... - - def dump(*args, **kwargs): ... - def enumerate_versions(*args, **kwargs): ... - def error_quark(*args, **kwargs): ... - def find_by_error_domain(*args, **kwargs): ... - def find_by_gtype(*args, **kwargs): ... - def find_by_name(*args, **kwargs): ... - def get_c_prefix(*args, **kwargs): ... - def get_default(*args, **kwargs): ... - def get_dependencies(*args, **kwargs): ... - def get_immediate_dependencies(*args, **kwargs): ... - def get_info(*args, **kwargs): ... - def get_loaded_namespaces(*args, **kwargs): ... - def get_n_infos(*args, **kwargs): ... - def get_object_gtype_interfaces(*args, **kwargs): ... - def get_option_group(*args, **kwargs): ... - @classmethod - def get_search_path(cls) -> list[str]: ... - def get_shared_library(self, namespace: str) -> Optional[str]: ... - def get_typelib_path(*args, **kwargs): ... - def get_version(*args, **kwargs): ... - def is_registered(*args, **kwargs): ... - def load_typelib(*args, **kwargs): ... - def prepend_library_path(*args, **kwargs): ... - def prepend_search_path(*args, **kwargs): ... +MAJOR_VERSION: int = 1 +MICRO_VERSION: int = 1 +MINOR_VERSION: int = 78 +TYPE_TAG_N_TYPES: int = 22 +_lock = ... # FIXME Constant +_namespace: str = "GIRepository" +_version: str = "2.0" + +def arg_info_get_closure(info: BaseInfo) -> int: ... +def arg_info_get_destroy(info: BaseInfo) -> int: ... +def arg_info_get_direction(info: BaseInfo) -> Direction: ... +def arg_info_get_ownership_transfer(info: BaseInfo) -> Transfer: ... +def arg_info_get_scope(info: BaseInfo) -> ScopeType: ... +def arg_info_get_type(info: BaseInfo) -> BaseInfo: ... +def arg_info_is_caller_allocates(info: BaseInfo) -> bool: ... +def arg_info_is_optional(info: BaseInfo) -> bool: ... +def arg_info_is_return_value(info: BaseInfo) -> bool: ... +def arg_info_is_skip(info: BaseInfo) -> bool: ... +def arg_info_load_type(info: BaseInfo) -> BaseInfo: ... +def arg_info_may_be_null(info: BaseInfo) -> bool: ... +def callable_info_can_throw_gerror(info: BaseInfo) -> bool: ... +def callable_info_get_arg(info: BaseInfo, n: int) -> BaseInfo: ... +def callable_info_get_caller_owns(info: BaseInfo) -> Transfer: ... +def callable_info_get_instance_ownership_transfer(info: BaseInfo) -> Transfer: ... +def callable_info_get_n_args(info: BaseInfo) -> int: ... +def callable_info_get_return_attribute(info: BaseInfo, name: str) -> str: ... +def callable_info_get_return_type(info: BaseInfo) -> BaseInfo: ... +def callable_info_invoke( + info: BaseInfo, + function: None, + in_args: Sequence[Argument], + out_args: Sequence[Argument], + return_value: Argument, + is_method: bool, + throws: bool, +) -> bool: ... +def callable_info_is_method(info: BaseInfo) -> bool: ... +def callable_info_iterate_return_attributes( + info: BaseInfo, +) -> Tuple[bool, AttributeIter, str, str]: ... +def callable_info_load_arg(info: BaseInfo, n: int) -> BaseInfo: ... +def callable_info_load_return_type(info: BaseInfo) -> BaseInfo: ... +def callable_info_may_return_null(info: BaseInfo) -> bool: ... +def callable_info_skip_return(info: BaseInfo) -> bool: ... +def cclosure_marshal_generic( + closure: Callable[..., Any], + return_gvalue: Any, + n_param_values: int, + param_values: Any, + invocation_hint: None, + marshal_data: None, +) -> None: ... +def constant_info_get_type(info: BaseInfo) -> BaseInfo: ... +def enum_info_get_error_domain(info: BaseInfo) -> str: ... +def enum_info_get_method(info: BaseInfo, n: int) -> BaseInfo: ... +def enum_info_get_n_methods(info: BaseInfo) -> int: ... +def enum_info_get_n_values(info: BaseInfo) -> int: ... +def enum_info_get_storage_type(info: BaseInfo) -> TypeTag: ... +def enum_info_get_value(info: BaseInfo, n: int) -> BaseInfo: ... +def field_info_get_flags(info: BaseInfo) -> FieldInfoFlags: ... +def field_info_get_offset(info: BaseInfo) -> int: ... +def field_info_get_size(info: BaseInfo) -> int: ... +def field_info_get_type(info: BaseInfo) -> BaseInfo: ... +def function_info_get_flags(info: BaseInfo) -> FunctionInfoFlags: ... +def function_info_get_property(info: BaseInfo) -> BaseInfo: ... +def function_info_get_symbol(info: BaseInfo) -> str: ... +def function_info_get_vfunc(info: BaseInfo) -> BaseInfo: ... +def get_major_version() -> int: ... +def get_micro_version() -> int: ... +def get_minor_version() -> int: ... +def info_new( + type: InfoType, container: BaseInfo, typelib: Typelib, offset: int +) -> BaseInfo: ... +def info_type_to_string(type: InfoType) -> str: ... +def interface_info_find_method(info: BaseInfo, name: str) -> BaseInfo: ... +def interface_info_find_signal(info: BaseInfo, name: str) -> BaseInfo: ... +def interface_info_find_vfunc(info: BaseInfo, name: str) -> BaseInfo: ... +def interface_info_get_constant(info: BaseInfo, n: int) -> BaseInfo: ... +def interface_info_get_iface_struct(info: BaseInfo) -> BaseInfo: ... +def interface_info_get_method(info: BaseInfo, n: int) -> BaseInfo: ... +def interface_info_get_n_constants(info: BaseInfo) -> int: ... +def interface_info_get_n_methods(info: BaseInfo) -> int: ... +def interface_info_get_n_prerequisites(info: BaseInfo) -> int: ... +def interface_info_get_n_properties(info: BaseInfo) -> int: ... +def interface_info_get_n_signals(info: BaseInfo) -> int: ... +def interface_info_get_n_vfuncs(info: BaseInfo) -> int: ... +def interface_info_get_prerequisite(info: BaseInfo, n: int) -> BaseInfo: ... +def interface_info_get_property(info: BaseInfo, n: int) -> BaseInfo: ... +def interface_info_get_signal(info: BaseInfo, n: int) -> BaseInfo: ... +def interface_info_get_vfunc(info: BaseInfo, n: int) -> BaseInfo: ... +def invoke_error_quark() -> int: ... +def object_info_find_method(info: BaseInfo, name: str) -> Optional[BaseInfo]: ... +def object_info_find_method_using_interfaces( + info: BaseInfo, name: str +) -> Tuple[Optional[BaseInfo], BaseInfo]: ... +def object_info_find_signal(info: BaseInfo, name: str) -> Optional[BaseInfo]: ... +def object_info_find_vfunc(info: BaseInfo, name: str) -> Optional[BaseInfo]: ... +def object_info_find_vfunc_using_interfaces( + info: BaseInfo, name: str +) -> Tuple[Optional[BaseInfo], BaseInfo]: ... +def object_info_get_abstract(info: BaseInfo) -> bool: ... +def object_info_get_class_struct(info: BaseInfo) -> Optional[BaseInfo]: ... +def object_info_get_constant(info: BaseInfo, n: int) -> BaseInfo: ... +def object_info_get_field(info: BaseInfo, n: int) -> BaseInfo: ... +def object_info_get_final(info: BaseInfo) -> bool: ... +def object_info_get_fundamental(info: BaseInfo) -> bool: ... +def object_info_get_get_value_function(info: BaseInfo) -> Optional[str]: ... +def object_info_get_interface(info: BaseInfo, n: int) -> BaseInfo: ... +def object_info_get_method(info: BaseInfo, n: int) -> BaseInfo: ... +def object_info_get_n_constants(info: BaseInfo) -> int: ... +def object_info_get_n_fields(info: BaseInfo) -> int: ... +def object_info_get_n_interfaces(info: BaseInfo) -> int: ... +def object_info_get_n_methods(info: BaseInfo) -> int: ... +def object_info_get_n_properties(info: BaseInfo) -> int: ... +def object_info_get_n_signals(info: BaseInfo) -> int: ... +def object_info_get_n_vfuncs(info: BaseInfo) -> int: ... +def object_info_get_parent(info: BaseInfo) -> Optional[BaseInfo]: ... +def object_info_get_property(info: BaseInfo, n: int) -> BaseInfo: ... +def object_info_get_ref_function(info: BaseInfo) -> Optional[str]: ... +def object_info_get_set_value_function(info: BaseInfo) -> Optional[str]: ... +def object_info_get_signal(info: BaseInfo, n: int) -> BaseInfo: ... +def object_info_get_type_init(info: BaseInfo) -> str: ... +def object_info_get_type_name(info: BaseInfo) -> str: ... +def object_info_get_unref_function(info: BaseInfo) -> Optional[str]: ... +def object_info_get_vfunc(info: BaseInfo, n: int) -> BaseInfo: ... +def property_info_get_flags(info: BaseInfo) -> GObject.ParamFlags: ... +def property_info_get_getter(info: BaseInfo) -> Optional[BaseInfo]: ... +def property_info_get_ownership_transfer(info: BaseInfo) -> Transfer: ... +def property_info_get_setter(info: BaseInfo) -> Optional[BaseInfo]: ... +def property_info_get_type(info: BaseInfo) -> BaseInfo: ... +def registered_type_info_get_g_type(info: BaseInfo) -> Type: ... +def registered_type_info_get_type_init(info: BaseInfo) -> str: ... +def registered_type_info_get_type_name(info: BaseInfo) -> str: ... +def signal_info_get_class_closure(info: BaseInfo) -> BaseInfo: ... +def signal_info_get_flags(info: BaseInfo) -> GObject.SignalFlags: ... +def signal_info_true_stops_emit(info: BaseInfo) -> bool: ... +def struct_info_find_field(info: BaseInfo, name: str) -> BaseInfo: ... +def struct_info_find_method(info: BaseInfo, name: str) -> BaseInfo: ... +def struct_info_get_alignment(info: BaseInfo) -> int: ... +def struct_info_get_copy_function(info: BaseInfo) -> Optional[str]: ... +def struct_info_get_field(info: BaseInfo, n: int) -> BaseInfo: ... +def struct_info_get_free_function(info: BaseInfo) -> Optional[str]: ... +def struct_info_get_method(info: BaseInfo, n: int) -> BaseInfo: ... +def struct_info_get_n_fields(info: BaseInfo) -> int: ... +def struct_info_get_n_methods(info: BaseInfo) -> int: ... +def struct_info_get_size(info: BaseInfo) -> int: ... +def struct_info_is_foreign(info: BaseInfo) -> bool: ... +def struct_info_is_gtype_struct(info: BaseInfo) -> bool: ... +def type_info_argument_from_hash_pointer( + info: BaseInfo, hash_pointer: None, arg: Argument +) -> None: ... +def type_info_get_array_fixed_size(info: BaseInfo) -> int: ... +def type_info_get_array_length(info: BaseInfo) -> int: ... +def type_info_get_array_type(info: BaseInfo) -> ArrayType: ... +def type_info_get_interface(info: BaseInfo) -> BaseInfo: ... +def type_info_get_param_type(info: BaseInfo, n: int) -> BaseInfo: ... +def type_info_get_storage_type(info: BaseInfo) -> TypeTag: ... +def type_info_get_tag(info: BaseInfo) -> TypeTag: ... +def type_info_hash_pointer_from_argument(info: BaseInfo, arg: Argument) -> None: ... +def type_info_is_pointer(info: BaseInfo) -> bool: ... +def type_info_is_zero_terminated(info: BaseInfo) -> bool: ... +def type_tag_argument_from_hash_pointer( + storage_type: TypeTag, hash_pointer: None, arg: Argument +) -> None: ... +def type_tag_hash_pointer_from_argument( + storage_type: TypeTag, arg: Argument +) -> None: ... +def type_tag_to_string(type: TypeTag) -> str: ... +def union_info_find_method(info: BaseInfo, name: str) -> BaseInfo: ... +def union_info_get_alignment(info: BaseInfo) -> int: ... +def union_info_get_copy_function(info: BaseInfo) -> Optional[str]: ... +def union_info_get_discriminator(info: BaseInfo, n: int) -> BaseInfo: ... +def union_info_get_discriminator_offset(info: BaseInfo) -> int: ... +def union_info_get_discriminator_type(info: BaseInfo) -> BaseInfo: ... +def union_info_get_field(info: BaseInfo, n: int) -> BaseInfo: ... +def union_info_get_free_function(info: BaseInfo) -> Optional[str]: ... +def union_info_get_method(info: BaseInfo, n: int) -> BaseInfo: ... +def union_info_get_n_fields(info: BaseInfo) -> int: ... +def union_info_get_n_methods(info: BaseInfo) -> int: ... +def union_info_get_size(info: BaseInfo) -> int: ... +def union_info_is_discriminated(info: BaseInfo) -> bool: ... +def value_info_get_value(info: BaseInfo) -> int: ... +def vfunc_info_get_address(info: BaseInfo, implementor_gtype: Type) -> None: ... +def vfunc_info_get_flags(info: BaseInfo) -> VFuncInfoFlags: ... +def vfunc_info_get_invoker(info: BaseInfo) -> BaseInfo: ... +def vfunc_info_get_offset(info: BaseInfo) -> int: ... +def vfunc_info_get_signal(info: BaseInfo) -> BaseInfo: ... + +class Argument(GObject.GPointer): + v_boolean = ... # FIXME Constant + v_double = ... # FIXME Constant + v_float = ... # FIXME Constant + v_int = ... # FIXME Constant + v_int16 = ... # FIXME Constant + v_int32 = ... # FIXME Constant + v_int64 = ... # FIXME Constant + v_int8 = ... # FIXME Constant + v_long = ... # FIXME Constant + v_pointer = ... # FIXME Constant + v_short = ... # FIXME Constant + v_size = ... # FIXME Constant + v_ssize = ... # FIXME Constant + v_string = ... # FIXME Constant + v_uint = ... # FIXME Constant + v_uint16 = ... # FIXME Constant + v_uint32 = ... # FIXME Constant + v_uint64 = ... # FIXME Constant + v_uint8 = ... # FIXME Constant + v_ulong = ... # FIXME Constant + v_ushort = ... # FIXME Constant + +class AttributeIter(GObject.GPointer): + """ + :Constructors: + + :: + + AttributeIter() + """ + + data: None = ... + data2: None = ... + data3: None = ... + data4: None = ... + +class BaseInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + BaseInfo() + """ + + dummy1: int = ... + dummy2: int = ... + dummy3: None = ... + dummy4: None = ... + dummy5: None = ... + dummy6: int = ... + dummy7: int = ... + padding: list[None] = ... + def equal(self, info2: BaseInfo) -> bool: ... + def get_attribute(self, name: str) -> str: ... + def get_container(self) -> BaseInfo: ... + def get_name(self) -> str: ... + def get_namespace(self) -> str: ... + def get_type(self) -> InfoType: ... + def get_typelib(self) -> Typelib: ... + def is_deprecated(self) -> bool: ... + def iterate_attributes(self) -> Tuple[bool, AttributeIter, str, str]: ... + +class Repository(GObject.Object): + """ + :Constructors: + + :: + + Repository(**properties) + + Object GIRepository + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: RepositoryPrivate = ... + @staticmethod + def dump(arg: str) -> bool: ... + def enumerate_versions(self, namespace_: str) -> list[str]: ... + @staticmethod + def error_quark() -> int: ... + def find_by_error_domain(self, domain: int) -> BaseInfo: ... + def find_by_gtype(self, gtype: Type) -> BaseInfo: ... + def find_by_name(self, namespace_: str, name: str) -> BaseInfo: ... + def get_c_prefix(self, namespace_: str) -> str: ... + @staticmethod + def get_default() -> Repository: ... + def get_dependencies(self, namespace_: str) -> list[str]: ... + def get_immediate_dependencies(self, namespace_: str) -> list[str]: ... + def get_info(self, namespace_: str, index: int) -> BaseInfo: ... + def get_loaded_namespaces(self) -> list[str]: ... + def get_n_infos(self, namespace_: str) -> int: ... + def get_object_gtype_interfaces(self, gtype: Type) -> list[BaseInfo]: ... + @staticmethod + def get_option_group() -> GLib.OptionGroup: ... + @staticmethod + def get_search_path() -> list[str]: ... + def get_shared_library(self, namespace_: str) -> Optional[str]: ... + def get_typelib_path(self, namespace_: str) -> str: ... + def get_version(self, namespace_: str) -> str: ... + def is_registered(self, namespace_: str, version: Optional[str] = None) -> bool: ... + def load_typelib(self, typelib: Typelib, flags: RepositoryLoadFlags) -> str: ... + @staticmethod + def prepend_library_path(directory: str) -> None: ... + @staticmethod + def prepend_search_path(directory: str) -> None: ... def require( + self, namespace_: str, version: Optional[str], flags: RepositoryLoadFlags + ) -> Typelib: ... + def require_private( self, - namespace: str, + typelib_dir: str, + namespace_: str, version: Optional[str], - flags: Union[RepositoryLoadFlags, Literal[0]], - ) -> Any: ... - def require_private(*args, **kwargs): ... + flags: RepositoryLoadFlags, + ) -> Typelib: ... + +class RepositoryClass(GObject.GPointer): + """ + :Constructors: + + :: + + RepositoryClass() + """ + + parent: GObject.ObjectClass = ... + +class RepositoryPrivate(GObject.GPointer): ... -class Typelib: - def free(*args, **kwargs): ... - def get_namespace(*args, **kwargs): ... - def symbol(*args, **kwargs): ... +class Typelib(GObject.GPointer): + def free(self) -> None: ... + def get_namespace(self) -> str: ... + def symbol(self, symbol_name: str, symbol: None) -> bool: ... -class UnresolvedInfo: ... +class UnresolvedInfo(GObject.GPointer): ... class FieldInfoFlags(GObject.GFlags): - READABLE = ... - WRITABLE = ... + READABLE = 1 + WRITABLE = 2 class FunctionInfoFlags(GObject.GFlags): - IS_CONSTRUCTOR = ... - IS_GETTER = ... - IS_METHOD = ... - IS_SETTER = ... - THROWS = ... - WRAPS_VFUNC = ... + IS_CONSTRUCTOR = 2 + IS_GETTER = 4 + IS_METHOD = 1 + IS_SETTER = 8 + THROWS = 32 + WRAPS_VFUNC = 16 class RepositoryLoadFlags(GObject.GFlags): - IREPOSITORY_LOAD_FLAG_LAZY = ... + IREPOSITORY_LOAD_FLAG_LAZY = 1 class VFuncInfoFlags(GObject.GFlags): - MUST_CHAIN_UP = ... - MUST_NOT_OVERRIDE = ... - MUST_OVERRIDE = ... - THROWS = ... + MUST_CHAIN_UP = 1 + MUST_NOT_OVERRIDE = 4 + MUST_OVERRIDE = 2 + THROWS = 8 class ArrayType(GObject.GEnum): - ARRAY = ... - BYTE_ARRAY = ... - C = ... - PTR_ARRAY = ... + ARRAY = 1 + BYTE_ARRAY = 3 + C = 0 + PTR_ARRAY = 2 class Direction(GObject.GEnum): - IN = ... - INOUT = ... - OUT = ... + IN = 0 + INOUT = 2 + OUT = 1 class InfoType(GObject.GEnum): - ARG = ... - BOXED = ... - CALLBACK = ... - CONSTANT = ... - ENUM = ... - FIELD = ... - FLAGS = ... - FUNCTION = ... - INTERFACE = ... - INVALID = ... - INVALID_0 = ... - OBJECT = ... - PROPERTY = ... - SIGNAL = ... - STRUCT = ... - TYPE = ... - UNION = ... - UNRESOLVED = ... - VALUE = ... - VFUNC = ... + ARG = 17 + BOXED = 4 + CALLBACK = 2 + CONSTANT = 9 + ENUM = 5 + FIELD = 16 + FLAGS = 6 + FUNCTION = 1 + INTERFACE = 8 + INVALID = 0 + INVALID_0 = 10 + OBJECT = 7 + PROPERTY = 15 + SIGNAL = 13 + STRUCT = 3 + TYPE = 18 + UNION = 11 + UNRESOLVED = 19 + VALUE = 12 + VFUNC = 14 class RepositoryError(GObject.GEnum): - LIBRARY_NOT_FOUND = ... - NAMESPACE_MISMATCH = ... - NAMESPACE_VERSION_CONFLICT = ... - TYPELIB_NOT_FOUND = ... + LIBRARY_NOT_FOUND = 3 + NAMESPACE_MISMATCH = 1 + NAMESPACE_VERSION_CONFLICT = 2 + TYPELIB_NOT_FOUND = 0 class ScopeType(GObject.GEnum): - ASYNC = ... - CALL = ... - INVALID = ... - NOTIFIED = ... + ASYNC = 2 + CALL = 1 + FOREVER = 4 + INVALID = 0 + NOTIFIED = 3 class Transfer(GObject.GEnum): - CONTAINER = ... - EVERYTHING = ... - NOTHING = ... + CONTAINER = 1 + EVERYTHING = 2 + NOTHING = 0 class TypeTag(GObject.GEnum): - ARRAY = ... - BOOLEAN = ... - DOUBLE = ... - ERROR = ... - FILENAME = ... - FLOAT = ... - GHASH = ... - GLIST = ... - GSLIST = ... - GTYPE = ... - INT16 = ... - INT32 = ... - INT64 = ... - INT8 = ... - INTERFACE = ... - UINT16 = ... - UINT32 = ... - UINT64 = ... - UINT8 = ... - UNICHAR = ... - UTF8 = ... - VOID = ... + ARRAY = 15 + BOOLEAN = 1 + DOUBLE = 11 + ERROR = 20 + FILENAME = 14 + FLOAT = 10 + GHASH = 19 + GLIST = 17 + GSLIST = 18 + GTYPE = 12 + INT16 = 4 + INT32 = 6 + INT64 = 8 + INT8 = 2 + INTERFACE = 16 + UINT16 = 5 + UINT32 = 7 + UINT64 = 9 + UINT8 = 3 + UNICHAR = 21 + UTF8 = 13 + VOID = 0 class nvokeError(GObject.GEnum): - ARGUMENT_MISMATCH = ... - FAILED = ... - SYMBOL_NOT_FOUND = ... + ARGUMENT_MISMATCH = 2 + FAILED = 0 + SYMBOL_NOT_FOUND = 1 diff --git a/src/gi-stubs/repository/GLib.pyi b/src/gi-stubs/repository/GLib.pyi index 1d52cb8f..61c2c3f5 100644 --- a/src/gi-stubs/repository/GLib.pyi +++ b/src/gi-stubs/repository/GLib.pyi @@ -1,19 +1,22 @@ -import typing from typing import Any from typing import Callable +from typing import Literal from typing import Optional +from typing import Sequence from typing import Tuple from typing import Type -from typing import Union +from typing import TypeVar from gi.repository import GObject ANALYZER_ANALYZING: int = 1 ASCII_DTOSTR_BUF_SIZE: int = 39 +ATOMIC_REF_COUNT_INIT: int = 1 BIG_ENDIAN: int = 4321 CSET_A_2_Z: str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" CSET_DIGITS: str = "0123456789" CSET_a_2_z: str = "abcdefghijklmnopqrstuvwxyz" +C_STD_VERSION: int = 199000 DATALIST_FLAGS_MASK: int = 3 DATE_BAD_DAY: int = 0 DATE_BAD_JULIAN: int = 0 @@ -117,7 +120,7 @@ MAXUINT64: int = 18446744073709551615 MAXUINT8: int = 255 MAXULONG: int = 18446744073709551615 MAXUSHORT: int = 65535 -MICRO_VERSION: int = 0 +MICRO_VERSION: int = 4 MINDOUBLE: float = 2.2250738585072014e-308 MINFLOAT: float = 1.1754943508222875e-38 MININT: int = -2147483648 @@ -127,7 +130,7 @@ MININT64: int = -9223372036854775808 MININT8: int = -128 MINLONG: int = -9223372036854775808 MINOFFSET: int = -9223372036854775808 -MINOR_VERSION: int = 74 +MINOR_VERSION: int = 78 MINSHORT: int = -32768 MINSSIZE: int = -9223372036854775808 MODULE_SUFFIX: str = "so" @@ -153,6 +156,7 @@ PRIORITY_DEFAULT_IDLE: int = 200 PRIORITY_HIGH: int = -100 PRIORITY_HIGH_IDLE: int = 100 PRIORITY_LOW: int = 300 +REF_COUNT_INIT: int = -1 SEARCHPATH_SEPARATOR: int = 58 SEARCHPATH_SEPARATOR_S: str = ":" SIZEOF_LONG: int = 8 @@ -198,6 +202,7 @@ VA_COPY_AS_ARRAY: int = 1 VERSION_MIN_REQUIRED: int = 2 WIN32_MSG_HANDLE: int = 19981206 _introspection_module = ... # FIXME Constant +_lock = ... # FIXME Constant _namespace: str = "GLib" _overrides_module = ... # FIXME Constant _version: str = "2.0" @@ -210,6 +215,7 @@ def access(filename: str, mode: int) -> int: ... def aligned_alloc(n_blocks: int, n_block_bytes: int, alignment: int) -> None: ... def aligned_alloc0(n_blocks: int, n_block_bytes: int, alignment: int) -> None: ... def aligned_free(mem: None) -> None: ... +def aligned_free_sized(mem: None, alignment: int, size: int) -> None: ... def ascii_digit_value(c: int) -> int: ... def ascii_dtostr(buffer: str, buf_len: int, d: float) -> str: ... def ascii_formatd(buffer: str, buf_len: int, format: str, d: float) -> str: ... @@ -235,6 +241,17 @@ def assert_warning( def assertion_message( domain: str, file: str, line: int, func: str, message: str ) -> None: ... +def assertion_message_cmpint( + domain: str, + file: str, + line: int, + func: str, + expr: str, + arg1: int, + cmp: str, + arg2: int, + numtype: int, +) -> None: ... def assertion_message_cmpstr( domain: str, file: str, @@ -308,10 +325,10 @@ def atomic_ref_count_inc(arc: int) -> None: ... def atomic_ref_count_init(arc: int) -> None: ... def base64_decode(text: str) -> bytes: ... def base64_decode_inplace() -> Tuple[int, bytes]: ... -def base64_encode(data: Optional[typing.Sequence[int]] = None) -> str: ... +def base64_encode(data: Optional[Sequence[int]] = None) -> str: ... def base64_encode_close(break_lines: bool) -> Tuple[int, bytes, int, int]: ... def base64_encode_step( - in_: typing.Sequence[int], break_lines: bool + in_: Sequence[int], break_lines: bool ) -> Tuple[int, bytes, int, int]: ... def basename(file_name: str) -> str: ... def bit_lock(address: int, lock_bit: int) -> None: ... @@ -321,14 +338,14 @@ def bit_storage(number: int) -> int: ... def bit_trylock(address: int, lock_bit: int) -> bool: ... def bit_unlock(address: int, lock_bit: int) -> None: ... def bookmark_file_error_quark() -> int: ... -def build_filenamev(args: typing.Sequence[str]) -> str: ... -def build_pathv(separator: str, args: typing.Sequence[str]) -> str: ... -def byte_array_free(array: typing.Sequence[int], free_segment: bool) -> int: ... -def byte_array_free_to_bytes(array: typing.Sequence[int]) -> Bytes: ... +def build_filenamev(args: Sequence[str]) -> str: ... +def build_pathv(separator: str, args: Sequence[str]) -> str: ... +def byte_array_free(array: Sequence[int], free_segment: bool) -> int: ... +def byte_array_free_to_bytes(array: Sequence[int]) -> Bytes: ... def byte_array_new() -> bytes: ... -def byte_array_new_take(data: typing.Sequence[int]) -> bytes: ... -def byte_array_steal(array: typing.Sequence[int]) -> Tuple[int, int]: ... -def byte_array_unref(array: typing.Sequence[int]) -> None: ... +def byte_array_new_take(data: Sequence[int]) -> bytes: ... +def byte_array_steal(array: Sequence[int]) -> Tuple[int, int]: ... +def byte_array_unref(array: Sequence[int]) -> None: ... def canonicalize_filename(filename: str, relative_to: Optional[str] = None) -> str: ... def chdir(path: str) -> int: ... def check_version( @@ -343,7 +360,7 @@ def compute_checksum_for_bytes( checksum_type: ChecksumType, data: Bytes ) -> Optional[str]: ... def compute_checksum_for_data( - checksum_type: ChecksumType, data: typing.Sequence[int] + checksum_type: ChecksumType, data: Sequence[int] ) -> Optional[str]: ... def compute_checksum_for_string( checksum_type: ChecksumType, str: str, length: int @@ -352,17 +369,17 @@ def compute_hmac_for_bytes( digest_type: ChecksumType, key: Bytes, data: Bytes ) -> str: ... def compute_hmac_for_data( - digest_type: ChecksumType, key: typing.Sequence[int], data: typing.Sequence[int] + digest_type: ChecksumType, key: Sequence[int], data: Sequence[int] ) -> str: ... def compute_hmac_for_string( - digest_type: ChecksumType, key: typing.Sequence[int], str: str, length: int + digest_type: ChecksumType, key: Sequence[int], str: str, length: int ) -> str: ... def convert( - str: typing.Sequence[int], to_codeset: str, from_codeset: str + str: Sequence[int], to_codeset: str, from_codeset: str ) -> Tuple[bytes, int]: ... def convert_error_quark() -> int: ... def convert_with_fallback( - str: typing.Sequence[int], to_codeset: str, from_codeset: str, fallback: str + str: Sequence[int], to_codeset: str, from_codeset: str, fallback: str ) -> Tuple[bytes, int]: ... def datalist_foreach( datalist: Data, func: Callable[..., None], *user_data: Any @@ -370,7 +387,7 @@ def datalist_foreach( def datalist_get_data(datalist: Data, key: str) -> None: ... def datalist_get_flags(datalist: Data) -> int: ... def datalist_id_get_data(datalist: Data, key_id: int) -> None: ... -def datalist_id_remove_multiple(datalist: Data, keys: typing.Sequence[int]) -> None: ... +def datalist_id_remove_multiple(datalist: Data, keys: Sequence[int]) -> None: ... def datalist_set_flags(datalist: Data, flags: int) -> None: ... def datalist_unset_flags(datalist: Data, flags: int) -> None: ... def dataset_destroy(dataset_location: None) -> None: ... @@ -399,32 +416,25 @@ def double_equal(v1: None, v2: None) -> bool: ... def double_hash(v: None) -> int: ... def dpgettext(domain: Optional[str], msgctxtid: str, msgidoffset: int) -> str: ... def dpgettext2(domain: Optional[str], context: str, msgid: str) -> str: ... -def environ_getenv( - envp: Optional[typing.Sequence[str]], variable: str -) -> Optional[str]: ... +def environ_getenv(envp: Optional[Sequence[str]], variable: str) -> Optional[str]: ... def environ_setenv( - envp: Optional[typing.Sequence[str]], variable: str, value: str, overwrite: bool -) -> list[str]: ... -def environ_unsetenv( - envp: Optional[typing.Sequence[str]], variable: str + envp: Optional[Sequence[str]], variable: str, value: str, overwrite: bool ) -> list[str]: ... +def environ_unsetenv(envp: Optional[Sequence[str]], variable: str) -> list[str]: ... def file_error_from_errno(err_no: int) -> FileError: ... def file_error_quark() -> int: ... def file_get_contents(filename: str) -> Tuple[bool, bytes]: ... def file_open_tmp(tmpl: Optional[str] = None) -> Tuple[int, str]: ... def file_read_link(filename: str) -> str: ... -def file_set_contents(filename: str, contents: typing.Sequence[int]) -> bool: ... +def file_set_contents(filename: str, contents: Sequence[int]) -> bool: ... def file_set_contents_full( - filename: str, - contents: typing.Sequence[int], - flags: FileSetContentsFlags, - mode: int, + filename: str, contents: Sequence[int], flags: FileSetContentsFlags, mode: int ) -> bool: ... def file_test(filename: str, test: FileTest) -> bool: ... def filename_display_basename(filename: str) -> str: ... def filename_display_name(filename: str) -> str: ... def filename_from_uri(uri: str) -> Tuple[str, str]: ... -def filename_from_utf8(*args, **kwargs): ... # FIXME Function +def filename_from_utf8(utf8string, len=-1): ... # FIXME Function def filename_to_uri(filename: str, hostname: Optional[str] = None) -> str: ... def filename_to_utf8(opsysstring: str, len: int) -> Tuple[str, int, int]: ... def find_program_in_path(program: str) -> Optional[str]: ... @@ -432,12 +442,13 @@ def format_size(size: int) -> str: ... def format_size_for_display(size: int) -> str: ... def format_size_full(size: int, flags: FormatSizeFlags) -> str: ... def free(mem: None) -> None: ... +def free_sized(mem: None, size: int) -> None: ... def get_application_name() -> Optional[str]: ... def get_charset() -> Tuple[bool, str]: ... def get_codeset() -> str: ... def get_console_charset() -> Tuple[bool, str]: ... def get_current_dir() -> str: ... -def get_current_time(*args, **kwargs): ... # FIXME Function +def get_current_time(): ... # FIXME Function def get_environ() -> list[str]: ... def get_filename_charsets() -> Tuple[bool, list[str]]: ... def get_home_dir() -> str: ... @@ -462,25 +473,27 @@ def get_user_runtime_dir() -> str: ... def get_user_special_dir(directory: UserDirectory) -> Optional[str]: ... def get_user_state_dir() -> str: ... def getenv(variable: str) -> Optional[str]: ... -def hash_table_add(hash_table: str, key: None) -> bool: ... -def hash_table_contains(hash_table: str, key: None) -> bool: ... -def hash_table_destroy(hash_table: str) -> None: ... -def hash_table_insert(hash_table: str, key: None, value: None) -> bool: ... -def hash_table_lookup(hash_table: str, key: None) -> None: ... +def hash_table_add(hash_table: dict[None, None], key: None) -> bool: ... +def hash_table_contains(hash_table: dict[None, None], key: None) -> bool: ... +def hash_table_destroy(hash_table: dict[None, None]) -> None: ... +def hash_table_insert(hash_table: dict[None, None], key: None, value: None) -> bool: ... +def hash_table_lookup(hash_table: dict[None, None], key: None) -> None: ... def hash_table_lookup_extended( - hash_table: str, lookup_key: None + hash_table: dict[None, None], lookup_key: None ) -> Tuple[bool, None, None]: ... -def hash_table_new_similar(other_hash_table: str) -> str: ... -def hash_table_remove(hash_table: str, key: None) -> bool: ... -def hash_table_remove_all(hash_table: str) -> None: ... -def hash_table_replace(hash_table: str, key: None, value: None) -> bool: ... -def hash_table_size(hash_table: str) -> int: ... -def hash_table_steal(hash_table: str, key: None) -> bool: ... -def hash_table_steal_all(hash_table: str) -> None: ... +def hash_table_new_similar(other_hash_table: dict[None, None]) -> dict[None, None]: ... +def hash_table_remove(hash_table: dict[None, None], key: None) -> bool: ... +def hash_table_remove_all(hash_table: dict[None, None]) -> None: ... +def hash_table_replace( + hash_table: dict[None, None], key: None, value: None +) -> bool: ... +def hash_table_size(hash_table: dict[None, None]) -> int: ... +def hash_table_steal(hash_table: dict[None, None], key: None) -> bool: ... +def hash_table_steal_all(hash_table: dict[None, None]) -> None: ... def hash_table_steal_extended( - hash_table: str, lookup_key: None + hash_table: dict[None, None], lookup_key: None ) -> Tuple[bool, None, None]: ... -def hash_table_unref(hash_table: str) -> None: ... +def hash_table_unref(hash_table: dict[None, None]) -> None: ... def hook_destroy(hook_list: HookList, hook_id: int) -> bool: ... def hook_destroy_link(hook_list: HookList, hook: Hook) -> None: ... def hook_free(hook_list: HookList, hook: Hook) -> None: ... @@ -512,7 +525,7 @@ def io_create_watch(channel: IOChannel, condition: IOCondition) -> Source: ... def key_file_error_quark() -> int: ... def listenv() -> list[str]: ... def locale_from_utf8(utf8string: str, len: int) -> Tuple[bytes, int]: ... -def locale_to_utf8(opsysstring: typing.Sequence[int]) -> Tuple[str, int, int]: ... +def locale_to_utf8(opsysstring: Sequence[int]) -> Tuple[str, int, int]: ... def log_default_handler( log_domain: Optional[str], log_level: LogLevelFlags, @@ -534,27 +547,27 @@ def log_set_writer_func( func: Optional[Callable[..., LogWriterOutput]] = None, *user_data: Any ) -> None: ... def log_structured_array( - log_level: LogLevelFlags, fields: typing.Sequence[LogField] + log_level: LogLevelFlags, fields: Sequence[LogField] ) -> None: ... def log_variant( log_domain: Optional[str], log_level: LogLevelFlags, fields: Variant ) -> None: ... def log_writer_default( - log_level: LogLevelFlags, fields: typing.Sequence[LogField], user_data: None + log_level: LogLevelFlags, fields: Sequence[LogField], user_data: None ) -> LogWriterOutput: ... def log_writer_default_set_use_stderr(use_stderr: bool) -> None: ... def log_writer_default_would_drop( log_level: LogLevelFlags, log_domain: Optional[str] = None ) -> bool: ... def log_writer_format_fields( - log_level: LogLevelFlags, fields: typing.Sequence[LogField], use_color: bool + log_level: LogLevelFlags, fields: Sequence[LogField], use_color: bool ) -> str: ... def log_writer_is_journald(output_fd: int) -> bool: ... def log_writer_journald( - log_level: LogLevelFlags, fields: typing.Sequence[LogField], user_data: None + log_level: LogLevelFlags, fields: Sequence[LogField], user_data: None ) -> LogWriterOutput: ... def log_writer_standard_streams( - log_level: LogLevelFlags, fields: typing.Sequence[LogField], user_data: None + log_level: LogLevelFlags, fields: Sequence[LogField], user_data: None ) -> LogWriterOutput: ... def log_writer_supports_color(output_fd: int) -> bool: ... def main_context_default() -> MainContext: ... @@ -583,9 +596,8 @@ def on_error_stack_trace(prg_name: str) -> None: ... def once_init_enter(location: None) -> bool: ... def once_init_leave(location: None, result: int) -> None: ... def option_error_quark() -> int: ... -def parse_debug_string( - string: Optional[str], keys: typing.Sequence[DebugKey] -) -> int: ... +def parse_debug_string(string: Optional[str], keys: Sequence[DebugKey]) -> int: ... +def path_buf_equal(v1: None, v2: None) -> bool: ... def path_get_basename(file_name: str) -> str: ... def path_get_dirname(file_name: str) -> str: ... def path_is_absolute(file_name: str) -> bool: ... @@ -630,7 +642,7 @@ def ref_string_release(str: str) -> None: ... def regex_check_replacement(replacement: str) -> Tuple[bool, bool]: ... def regex_error_quark() -> int: ... def regex_escape_nul(string: str, length: int) -> str: ... -def regex_escape_string(string: typing.Sequence[str]) -> str: ... +def regex_escape_string(string: str, length: int) -> str: ... def regex_match_simple( pattern: str, string: str, @@ -663,7 +675,7 @@ def set_error_literal(domain: int, code: int, message: str) -> Error: ... def set_prgname(prgname: str) -> None: ... def setenv(variable: str, value: str, overwrite: bool) -> bool: ... def shell_error_quark() -> int: ... -def shell_parse_argv(command_line: str) -> Tuple[bool, int, list[str]]: ... +def shell_parse_argv(command_line: str) -> Tuple[bool, list[str]]: ... def shell_quote(unquoted_string: str) -> str: ... def shell_unquote(quoted_string: str) -> str: ... def slice_alloc(block_size: int) -> None: ... @@ -684,8 +696,8 @@ def spaced_primes_closest(num: int) -> int: ... def spawn_async(*args, **kwargs): ... # FIXME Function def spawn_async_with_fds( working_directory: Optional[str], - argv: typing.Sequence[str], - envp: Optional[typing.Sequence[str]], + argv: Sequence[str], + envp: Optional[Sequence[str]], flags: SpawnFlags, child_setup: Optional[Callable[..., None]], stdin_fd: int, @@ -695,23 +707,23 @@ def spawn_async_with_fds( ) -> Tuple[bool, int]: ... def spawn_async_with_pipes( working_directory: Optional[str], - argv: typing.Sequence[str], - envp: Optional[typing.Sequence[str]], + argv: Sequence[str], + envp: Optional[Sequence[str]], flags: SpawnFlags, child_setup: Optional[Callable[..., None]] = None, *user_data: Any, ) -> Tuple[bool, int, int, int, int]: ... def spawn_async_with_pipes_and_fds( working_directory: Optional[str], - argv: typing.Sequence[str], - envp: Optional[typing.Sequence[str]], + argv: Sequence[str], + envp: Optional[Sequence[str]], flags: SpawnFlags, child_setup: Optional[Callable[..., None]], stdin_fd: int, stdout_fd: int, stderr_fd: int, - source_fds: Optional[typing.Sequence[int]] = None, - target_fds: Optional[typing.Sequence[int]] = None, + source_fds: Optional[Sequence[int]] = None, + target_fds: Optional[Sequence[int]] = None, *user_data: Any, ) -> Tuple[bool, int, int, int, int]: ... def spawn_check_exit_status(wait_status: int) -> bool: ... @@ -723,8 +735,8 @@ def spawn_error_quark() -> int: ... def spawn_exit_error_quark() -> int: ... def spawn_sync( working_directory: Optional[str], - argv: typing.Sequence[str], - envp: Optional[typing.Sequence[str]], + argv: Sequence[str], + envp: Optional[Sequence[str]], flags: SpawnFlags, child_setup: Optional[Callable[..., None]] = None, *user_data: Any, @@ -765,6 +777,8 @@ def strreverse(string: str) -> str: ... def strrstr(haystack: str, needle: str) -> str: ... def strrstr_len(haystack: str, haystack_len: int, needle: str) -> str: ... def strsignal(signum: int) -> str: ... +def strsplit(string: str, delimiter: str, max_tokens: int) -> list[str]: ... +def strsplit_set(string: str, delimiters: str, max_tokens: int) -> list[str]: ... def strstr_len(haystack: str, haystack_len: int, needle: str) -> str: ... def strtod(nptr: str) -> Tuple[float, str]: ... def strup(string: str) -> str: ... @@ -787,6 +801,7 @@ def test_assert_expected_messages_internal( ) -> None: ... def test_bug(bug_uri_snippet: str) -> None: ... def test_bug_base(uri_pattern: str) -> None: ... +def test_disable_crash_reporting() -> None: ... def test_expect_message( log_domain: Optional[str], log_level: LogLevelFlags, pattern: str ) -> None: ... @@ -832,7 +847,7 @@ def thread_pool_set_max_unused_threads(max_threads: int) -> None: ... def thread_pool_stop_unused_threads() -> None: ... def thread_self() -> Thread: ... def thread_yield() -> None: ... -def threads_init(*args, **kwargs): ... # FIXME Function +def threads_init(): ... # FIXME Function def time_val_from_iso8601(iso_date: str) -> Tuple[bool, TimeVal]: ... # override @@ -854,8 +869,8 @@ def try_malloc0_n(n_blocks: int, n_block_bytes: int) -> None: ... def try_malloc_n(n_blocks: int, n_block_bytes: int) -> None: ... def try_realloc(mem: None, n_bytes: int) -> None: ... def try_realloc_n(mem: None, n_blocks: int, n_block_bytes: int) -> None: ... -def ucs4_to_utf16(str: str, len: int) -> Tuple[int, int, int]: ... -def ucs4_to_utf8(str: str, len: int) -> Tuple[str, int, int]: ... +def ucs4_to_utf16(str: Sequence[str]) -> Tuple[int, int, int]: ... +def ucs4_to_utf8(str: Sequence[str]) -> Tuple[str, int, int]: ... def unichar_break_type(c: str) -> UnicodeBreakType: ... def unichar_combining_class(uc: str) -> int: ... def unichar_compose(a: str, b: str) -> Tuple[bool, str]: ... @@ -864,7 +879,7 @@ def unichar_digit_value(c: str) -> int: ... def unichar_fully_decompose( ch: str, compat: bool, result_len: int ) -> Tuple[int, str]: ... -def unichar_get_mirror_char(ch: str, mirrored_ch: str) -> bool: ... +def unichar_get_mirror_char(ch: str) -> Tuple[bool, str]: ... def unichar_get_script(ch: str) -> UnicodeScript: ... def unichar_isalnum(c: str) -> bool: ... def unichar_isalpha(c: str) -> bool: ... @@ -891,7 +906,7 @@ def unichar_type(c: str) -> UnicodeType: ... def unichar_validate(ch: str) -> bool: ... def unichar_xdigit_value(c: str) -> int: ... def unicode_canonical_decomposition(ch: str, result_len: int) -> str: ... -def unicode_canonical_ordering(string: str, len: int) -> None: ... +def unicode_canonical_ordering(string: Sequence[str]) -> None: ... def unicode_script_from_iso15924(iso15924: int) -> UnicodeScript: ... def unicode_script_to_iso15924(script: UnicodeScript) -> int: ... def unix_error_quark() -> int: ... @@ -904,7 +919,7 @@ def unix_fd_add_full( ) -> int: ... def unix_fd_source_new(fd: int, condition: IOCondition) -> Source: ... def unix_get_passwd_entry(user_name: str) -> None: ... -def unix_open_pipe(fds: typing.Sequence[int], flags: int) -> bool: ... +def unix_open_pipe(fds: Sequence[int], flags: int) -> bool: ... def unix_set_fd_nonblocking(fd: int, nonblock: bool) -> bool: ... def unix_signal_add( priority: int, signum: int, handler: Callable[..., bool], *user_data: Any @@ -939,7 +954,7 @@ def uri_build_with_user( ) -> Uri: ... def uri_error_quark() -> int: ... def uri_escape_bytes( - unescaped: typing.Sequence[int], reserved_chars_allowed: Optional[str] = None + unescaped: Sequence[int], reserved_chars_allowed: Optional[str] = None ) -> str: ... def uri_escape_string( unescaped: str, reserved_chars_allowed: Optional[str], allow_utf8: bool @@ -971,7 +986,7 @@ def uri_list_extract_uris(uri_list: str) -> list[str]: ... def uri_parse(uri_string: str, flags: UriFlags) -> Uri: ... def uri_parse_params( params: str, length: int, separators: str, flags: UriParamsFlags -) -> str: ... +) -> dict[str, str]: ... def uri_parse_scheme(uri: str) -> Optional[str]: ... def uri_peek_scheme(uri: str) -> Optional[str]: ... def uri_resolve_relative( @@ -998,8 +1013,8 @@ def uri_unescape_string( escaped_string: str, illegal_characters: Optional[str] = None ) -> Optional[str]: ... def usleep(microseconds: int) -> None: ... -def utf16_to_ucs4(str: int, len: int) -> Tuple[str, int, int]: ... -def utf16_to_utf8(str: int, len: int) -> Tuple[str, int, int]: ... +def utf16_to_ucs4(str: Sequence[int]) -> Tuple[str, int, int]: ... +def utf16_to_utf8(str: Sequence[int]) -> Tuple[str, int, int]: ... def utf8_casefold(str: str, len: int) -> str: ... def utf8_collate(str1: str, str2: str) -> int: ... def utf8_collate_key(str: str, len: int) -> str: ... @@ -1024,8 +1039,9 @@ def utf8_substring(str: str, start_pos: int, end_pos: int) -> str: ... def utf8_to_ucs4(str: str, len: int) -> Tuple[str, int, int]: ... def utf8_to_ucs4_fast(str: str, len: int) -> Tuple[str, int]: ... def utf8_to_utf16(str: str, len: int) -> Tuple[int, int, int]: ... -def utf8_validate(str: typing.Sequence[int]) -> Tuple[bool, str]: ... -def utf8_validate_len(str: typing.Sequence[int]) -> Tuple[bool, str]: ... +def utf8_truncate_middle(string: str, truncate_length: int) -> str: ... +def utf8_validate(str: Sequence[int]) -> Tuple[bool, str]: ... +def utf8_validate_len(str: Sequence[int]) -> Tuple[bool, str]: ... def uuid_string_is_valid(str: str) -> bool: ... def uuid_string_random() -> str: ... def variant_get_gtype() -> Type: ... @@ -1048,6 +1064,14 @@ def variant_type_string_scan( ) -> Tuple[bool, str]: ... class Array(GObject.GBoxed): + """ + :Constructors: + + :: + + Array() + """ + data: str = ... len: int = ... @@ -1074,11 +1098,20 @@ class AsyncQueue(GObject.GPointer): def unref(self) -> None: ... def unref_and_unlock(self) -> None: ... -class BookmarkFile(GObject.GPointer): +class BookmarkFile(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> GLib.BookmarkFile + """ + def add_application( self, uri: str, name: Optional[str] = None, exec: Optional[str] = None ) -> None: ... def add_group(self, uri: str, group: str) -> None: ... + def copy(self) -> BookmarkFile: ... @staticmethod def error_quark() -> int: ... def free(self) -> None: ... @@ -1104,10 +1137,12 @@ class BookmarkFile(GObject.GPointer): def has_application(self, uri: str, name: str) -> bool: ... def has_group(self, uri: str, group: str) -> bool: ... def has_item(self, uri: str) -> bool: ... - def load_from_data(self, data: typing.Sequence[int]) -> bool: ... + def load_from_data(self, data: Sequence[int]) -> bool: ... def load_from_data_dirs(self, file: str) -> Tuple[bool, str]: ... def load_from_file(self, filename: str) -> bool: ... def move_item(self, old_uri: str, new_uri: Optional[str] = None) -> bool: ... + @classmethod + def new(cls) -> BookmarkFile: ... def remove_application(self, uri: str, name: str) -> bool: ... def remove_group(self, uri: str, group: str) -> bool: ... def remove_item(self, uri: str) -> bool: ... @@ -1125,9 +1160,7 @@ class BookmarkFile(GObject.GPointer): stamp: Optional[DateTime] = None, ) -> bool: ... def set_description(self, uri: Optional[str], description: str) -> None: ... - def set_groups( - self, uri: str, groups: Optional[typing.Sequence[str]] = None - ) -> None: ... + def set_groups(self, uri: str, groups: Optional[Sequence[str]] = None) -> None: ... def set_icon(self, uri: str, href: Optional[str], mime_type: str) -> None: ... def set_is_private(self, uri: str, is_private: bool) -> None: ... def set_mime_type(self, uri: str, mime_type: str) -> None: ... @@ -1140,22 +1173,39 @@ class BookmarkFile(GObject.GPointer): def to_file(self, filename: str) -> bool: ... class ByteArray(GObject.GBoxed): + """ + :Constructors: + + :: + + ByteArray() + """ + data: int = ... len: int = ... @staticmethod - def free(array: typing.Sequence[int], free_segment: bool) -> int: ... + def free(array: Sequence[int], free_segment: bool) -> int: ... @staticmethod - def free_to_bytes(array: typing.Sequence[int]) -> Bytes: ... + def free_to_bytes(array: Sequence[int]) -> Bytes: ... @staticmethod def new() -> bytes: ... @staticmethod - def new_take(data: typing.Sequence[int]) -> bytes: ... + def new_take(data: Sequence[int]) -> bytes: ... @staticmethod - def steal(array: typing.Sequence[int]) -> Tuple[int, int]: ... + def steal(array: Sequence[int]) -> Tuple[int, int]: ... @staticmethod - def unref(array: typing.Sequence[int]) -> None: ... + def unref(array: Sequence[int]) -> None: ... class Bytes(GObject.GBoxed): + """ + :Constructors: + + :: + + new(data:list=None) -> GLib.Bytes + new_take(data:list=None) -> GLib.Bytes + """ + def compare(self, bytes2: Bytes) -> int: ... def equal(self, bytes2: Bytes) -> bool: ... def get_data(self) -> Optional[bytes]: ... @@ -1163,16 +1213,24 @@ class Bytes(GObject.GBoxed): def get_size(self) -> int: ... def hash(self) -> int: ... @classmethod - def new(cls, data: Optional[typing.Sequence[int]] = None) -> Bytes: ... + def new(cls, data: Optional[Sequence[int]] = None) -> Bytes: ... def new_from_bytes(self, offset: int, length: int) -> Bytes: ... @classmethod - def new_take(cls, data: Optional[typing.Sequence[int]] = None) -> Bytes: ... + def new_take(cls, data: Optional[Sequence[int]] = None) -> Bytes: ... def ref(self) -> Bytes: ... def unref(self) -> None: ... def unref_to_array(self) -> bytes: ... def unref_to_data(self) -> bytes: ... class Checksum(GObject.GBoxed): + """ + :Constructors: + + :: + + new(checksum_type:GLib.ChecksumType) -> GLib.Checksum or None + """ + def copy(self) -> Checksum: ... def free(self) -> None: ... def get_string(self) -> str: ... @@ -1181,9 +1239,17 @@ class Checksum(GObject.GBoxed): def reset(self) -> None: ... @staticmethod def type_get_length(checksum_type: ChecksumType) -> int: ... - def update(self, data: typing.Sequence[int]) -> None: ... + def update(self, data: Sequence[int]) -> None: ... class Cond(GObject.GPointer): + """ + :Constructors: + + :: + + Cond() + """ + p: None = ... i: list[int] = ... def broadcast(self) -> None: ... @@ -1196,6 +1262,17 @@ class Cond(GObject.GPointer): class Data(GObject.GPointer): ... class Date(GObject.GBoxed): + """ + :Constructors: + + :: + + Date() + new() -> GLib.Date + new_dmy(day:int, month:GLib.DateMonth, year:int) -> GLib.Date + new_julian(julian_day:int) -> GLib.Date + """ + julian_days: int = ... julian: int = ... dmy: int = ... @@ -1267,6 +1344,24 @@ class Date(GObject.GBoxed): def valid_year(year: int) -> bool: ... class DateTime(GObject.GBoxed): + """ + :Constructors: + + :: + + new(tz:GLib.TimeZone, year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> GLib.DateTime or None + new_from_iso8601(text:str, default_tz:GLib.TimeZone=None) -> GLib.DateTime or None + new_from_timeval_local(tv:GLib.TimeVal) -> GLib.DateTime or None + new_from_timeval_utc(tv:GLib.TimeVal) -> GLib.DateTime or None + new_from_unix_local(t:int) -> GLib.DateTime or None + new_from_unix_utc(t:int) -> GLib.DateTime or None + new_local(year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> GLib.DateTime or None + new_now(tz:GLib.TimeZone) -> GLib.DateTime or None + new_now_local() -> GLib.DateTime or None + new_now_utc() -> GLib.DateTime or None + new_utc(year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> GLib.DateTime or None + """ + def add(self, timespan: int) -> Optional[DateTime]: ... def add_days(self, days: int) -> Optional[DateTime]: ... def add_full( @@ -1353,6 +1448,14 @@ class DateTime(GObject.GBoxed): def unref(self) -> None: ... class DebugKey(GObject.GPointer): + """ + :Constructors: + + :: + + DebugKey() + """ + key: str = ... value: int = ... @@ -1372,6 +1475,7 @@ class Error(Exception): code: GObject.GEnum domain: int message: str + def __init__( self, message: str = ..., @@ -1396,6 +1500,7 @@ class GError: code: GObject.GEnum domain: int message: str + def __init__( self, message: str = ..., @@ -1413,60 +1518,76 @@ class GError: class HashTable(GObject.GBoxed): @staticmethod - def add(hash_table: str, key: None) -> bool: ... + def add(hash_table: dict[None, None], key: None) -> bool: ... @staticmethod - def contains(hash_table: str, key: None) -> bool: ... + def contains(hash_table: dict[None, None], key: None) -> bool: ... @staticmethod - def destroy(hash_table: str) -> None: ... + def destroy(hash_table: dict[None, None]) -> None: ... @staticmethod - def insert(hash_table: str, key: None, value: None) -> bool: ... + def insert(hash_table: dict[None, None], key: None, value: None) -> bool: ... @staticmethod - def lookup(hash_table: str, key: None) -> None: ... + def lookup(hash_table: dict[None, None], key: None) -> None: ... @staticmethod def lookup_extended( - hash_table: str, lookup_key: None + hash_table: dict[None, None], lookup_key: None ) -> Tuple[bool, None, None]: ... @staticmethod - def new_similar(other_hash_table: str) -> str: ... + def new_similar(other_hash_table: dict[None, None]) -> dict[None, None]: ... @staticmethod - def remove(hash_table: str, key: None) -> bool: ... + def remove(hash_table: dict[None, None], key: None) -> bool: ... @staticmethod - def remove_all(hash_table: str) -> None: ... + def remove_all(hash_table: dict[None, None]) -> None: ... @staticmethod - def replace(hash_table: str, key: None, value: None) -> bool: ... + def replace(hash_table: dict[None, None], key: None, value: None) -> bool: ... @staticmethod - def size(hash_table: str) -> int: ... + def size(hash_table: dict[None, None]) -> int: ... @staticmethod - def steal(hash_table: str, key: None) -> bool: ... + def steal(hash_table: dict[None, None], key: None) -> bool: ... @staticmethod - def steal_all(hash_table: str) -> None: ... + def steal_all(hash_table: dict[None, None]) -> None: ... @staticmethod def steal_extended( - hash_table: str, lookup_key: None + hash_table: dict[None, None], lookup_key: None ) -> Tuple[bool, None, None]: ... @staticmethod - def unref(hash_table: str) -> None: ... + def unref(hash_table: dict[None, None]) -> None: ... class HashTableIter(GObject.GPointer): + """ + :Constructors: + + :: + + HashTableIter() + """ + dummy1: None = ... dummy2: None = ... dummy3: None = ... dummy4: int = ... dummy5: bool = ... dummy6: None = ... - def init(self, hash_table: str) -> None: ... + def init(self, hash_table: dict[None, None]) -> None: ... def next(self) -> Tuple[bool, None, None]: ... def remove(self) -> None: ... def replace(self, value: None) -> None: ... def steal(self) -> None: ... class Hmac(GObject.GPointer): - def get_digest(self, buffer: typing.Sequence[int]) -> None: ... + def get_digest(self, buffer: Sequence[int]) -> None: ... def get_string(self) -> str: ... def unref(self) -> None: ... - def update(self, data: typing.Sequence[int]) -> None: ... + def update(self, data: Sequence[int]) -> None: ... class Hook(GObject.GPointer): + """ + :Constructors: + + :: + + Hook() + """ + data: None = ... next: Hook = ... prev: Hook = ... @@ -1492,6 +1613,14 @@ class Hook(GObject.GPointer): def unref(hook_list: HookList, hook: Hook) -> None: ... class HookList(GObject.GPointer): + """ + :Constructors: + + :: + + HookList() + """ + seq_id: int = ... hook_size: int = ... is_setup: int = ... @@ -1505,6 +1634,16 @@ class HookList(GObject.GPointer): def invoke_check(self, may_recurse: bool) -> None: ... class IOChannel(GObject.GBoxed): + """ + :Constructors: + + :: + + IOChannel() + new_file(filename:str, mode:str) -> GLib.IOChannel + unix_new(fd:int) -> GLib.IOChannel + """ + ref_count: int = ... funcs: IOFuncs = ... encoding: str = ... @@ -1527,7 +1666,9 @@ class IOChannel(GObject.GBoxed): reserved2: None = ... _whence_map = ... # FIXME Constant - def add_watch(self, *args, **kwargs): ... # FIXME Method + def add_watch( + self, condition, callback, *user_data, **kwargs + ): ... # FIXME Function def close(self) -> None: ... @staticmethod def error_from_errno(en: int) -> IOChannelError: ... @@ -1540,12 +1681,12 @@ class IOChannel(GObject.GBoxed): def get_close_on_unref(self) -> bool: ... def get_encoding(self) -> str: ... def get_flags(self) -> IOFlags: ... - def get_line_term(self, length: int) -> str: ... + def get_line_term(self) -> Tuple[str, int]: ... def init(self) -> None: ... @classmethod def new_file(cls, filename: str, mode: str) -> IOChannel: ... - def next(self, *args, **kwargs): ... # FIXME Method - def read(self, *args, **kwargs): ... # FIXME Method + def next(self): ... # FIXME Function + def read(self, max_count=-1): ... # FIXME Function def read_chars(self) -> Tuple[IOStatus, bytes, int]: ... def read_line(self) -> Tuple[IOStatus, str, int, int]: ... def read_line_string( @@ -1553,10 +1694,10 @@ class IOChannel(GObject.GBoxed): ) -> IOStatus: ... def read_to_end(self) -> Tuple[IOStatus, bytes]: ... def read_unichar(self) -> Tuple[IOStatus, str]: ... - def readline(self, *args, **kwargs): ... # FIXME Method - def readlines(self, *args, **kwargs): ... # FIXME Method + def readline(self, size_hint=-1): ... # FIXME Function + def readlines(self, size_hint=-1): ... # FIXME Function def ref(self) -> IOChannel: ... - def seek(self, *args, **kwargs): ... # FIXME Method + def seek(self, offset, whence=0): ... # FIXME Function def seek_position(self, offset: int, type: SeekType) -> IOStatus: ... def set_buffer_size(self, size: int) -> None: ... def set_buffered(self, buffered: bool) -> None: ... @@ -1569,14 +1710,20 @@ class IOChannel(GObject.GBoxed): @classmethod def unix_new(cls, fd: int) -> IOChannel: ... def unref(self) -> None: ... - def write(self, *args, **kwargs): ... # FIXME Method - def write_chars( - self, buf: typing.Sequence[int], count: int - ) -> Tuple[IOStatus, int]: ... + def write(self, buf, buflen=-1): ... # FIXME Function + def write_chars(self, buf: Sequence[int], count: int) -> Tuple[IOStatus, int]: ... def write_unichar(self, thechar: str) -> IOStatus: ... - def writelines(self, *args, **kwargs): ... # FIXME Method + def writelines(self, lines): ... # FIXME Function class IOFuncs(GObject.GPointer): + """ + :Constructors: + + :: + + IOFuncs() + """ + io_read: Callable[[IOChannel, str, int, int], IOStatus] = ... io_write: Callable[[IOChannel, str, int, int], IOStatus] = ... io_seek: Callable[[IOChannel, int, SeekType], IOStatus] = ... @@ -1587,6 +1734,15 @@ class IOFuncs(GObject.GPointer): io_get_flags: Callable[[IOChannel], IOFlags] = ... class Idle(GObject.GBoxed): + """ + :Constructors: + + :: + + Source() + new(source_funcs:GLib.SourceFuncs, struct_size:int) -> GLib.Source + """ + callback_data: None = ... callback_funcs: SourceCallbackFuncs = ... source_funcs: SourceFuncs = ... @@ -1609,7 +1765,7 @@ class Idle(GObject.GBoxed): def destroy(self) -> None: ... def get_can_recurse(self) -> bool: ... def get_context(self) -> Optional[MainContext]: ... - def get_current_time(self, *args, **kwargs): ... # FIXME Method + def get_current_time(self): ... # FIXME Function def get_id(self) -> int: ... def get_name(self) -> Optional[str]: ... def get_priority(self) -> int: ... @@ -1630,7 +1786,7 @@ class Idle(GObject.GBoxed): def remove_child_source(self, child_source: Source) -> None: ... def remove_poll(self, fd: PollFD) -> None: ... def remove_unix_fd(self, tag: None) -> None: ... - def set_callback(self, *args, **kwargs): ... # FIXME Method + def set_callback(self, fn, user_data=None): ... # FIXME Function def set_callback_indirect( self, callback_data: None, callback_funcs: SourceCallbackFuncs ) -> None: ... @@ -1645,6 +1801,14 @@ class Idle(GObject.GBoxed): def unref(self) -> None: ... class KeyFile(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> GLib.KeyFile + """ + @staticmethod def error_quark() -> int: ... def get_boolean(self, group_name: str, key: str) -> bool: ... @@ -1680,7 +1844,7 @@ class KeyFile(GObject.GBoxed): self, file: str, flags: KeyFileFlags ) -> Tuple[bool, str]: ... def load_from_dirs( - self, file: str, search_dirs: typing.Sequence[str], flags: KeyFileFlags + self, file: str, search_dirs: Sequence[str], flags: KeyFileFlags ) -> Tuple[bool, str]: ... def load_from_file(self, file: str, flags: KeyFileFlags) -> bool: ... @classmethod @@ -1693,30 +1857,30 @@ class KeyFile(GObject.GBoxed): def save_to_file(self, filename: str) -> bool: ... def set_boolean(self, group_name: str, key: str, value: bool) -> None: ... def set_boolean_list( - self, group_name: str, key: str, list: typing.Sequence[bool] + self, group_name: str, key: str, list: Sequence[bool] ) -> None: ... def set_comment( self, group_name: Optional[str], key: Optional[str], comment: str ) -> bool: ... def set_double(self, group_name: str, key: str, value: float) -> None: ... def set_double_list( - self, group_name: str, key: str, list: typing.Sequence[float] + self, group_name: str, key: str, list: Sequence[float] ) -> None: ... def set_int64(self, group_name: str, key: str, value: int) -> None: ... def set_integer(self, group_name: str, key: str, value: int) -> None: ... def set_integer_list( - self, group_name: str, key: str, list: typing.Sequence[int] + self, group_name: str, key: str, list: Sequence[int] ) -> None: ... def set_list_separator(self, separator: int) -> None: ... def set_locale_string( self, group_name: str, key: str, locale: str, string: str ) -> None: ... def set_locale_string_list( - self, group_name: str, key: str, locale: str, list: typing.Sequence[str] + self, group_name: str, key: str, locale: str, list: Sequence[str] ) -> None: ... def set_string(self, group_name: str, key: str, string: str) -> None: ... def set_string_list( - self, group_name: str, key: str, list: typing.Sequence[str] + self, group_name: str, key: str, list: Sequence[str] ) -> None: ... def set_uint64(self, group_name: str, key: str, value: int) -> None: ... def set_value(self, group_name: str, key: str, value: str) -> None: ... @@ -1724,19 +1888,44 @@ class KeyFile(GObject.GBoxed): def unref(self) -> None: ... class List(GObject.GPointer): + """ + :Constructors: + + :: + + List() + """ + data: None = ... next: list[None] = ... prev: list[None] = ... class LogField(GObject.GPointer): + """ + :Constructors: + + :: + + LogField() + """ + key: str = ... value: None = ... length: int = ... class MainContext(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> GLib.MainContext + new_with_flags(flags:GLib.MainContextFlags) -> GLib.MainContext + """ + def acquire(self) -> bool: ... def add_poll(self, fd: PollFD, priority: int) -> None: ... - def check(self, max_priority: int, fds: typing.Sequence[PollFD]) -> bool: ... + def check(self, max_priority: int, fds: Sequence[PollFD]) -> bool: ... @staticmethod def default() -> MainContext: ... def dispatch(self) -> None: ... @@ -1772,16 +1961,33 @@ class MainContext(GObject.GBoxed): def wakeup(self) -> None: ... class MainLoop(GObject.GBoxed): + """ + :Constructors: + + :: + + new(context:GLib.MainContext=None, is_running:bool) -> GLib.MainLoop + """ + def get_context(self) -> MainContext: ... def is_running(self) -> bool: ... @classmethod def new(cls, context: Optional[MainContext], is_running: bool) -> MainLoop: ... def quit(self) -> None: ... def ref(self) -> MainLoop: ... - def run(self, *args, **kwargs): ... # FIXME Method + def run(self): ... # FIXME Function def unref(self) -> None: ... class MappedFile(GObject.GBoxed): + """ + :Constructors: + + :: + + new(filename:str, writable:bool) -> GLib.MappedFile + new_from_fd(fd:int, writable:bool) -> GLib.MappedFile + """ + def free(self) -> None: ... def get_bytes(self) -> Bytes: ... def get_contents(self) -> str: ... @@ -1794,6 +2000,14 @@ class MappedFile(GObject.GBoxed): def unref(self) -> None: ... class MarkupParseContext(GObject.GBoxed): + """ + :Constructors: + + :: + + new(parser:GLib.MarkupParser, flags:GLib.MarkupParseFlags, user_data=None, user_data_dnotify:GLib.DestroyNotify) -> GLib.MarkupParseContext + """ + def end_parse(self) -> bool: ... def free(self) -> None: ... def get_element(self) -> str: ... @@ -1814,6 +2028,14 @@ class MarkupParseContext(GObject.GBoxed): def unref(self) -> None: ... class MarkupParser(GObject.GPointer): + """ + :Constructors: + + :: + + MarkupParser() + """ + start_element: Callable[..., None] = ... end_element: Callable[..., None] = ... text: Callable[..., None] = ... @@ -1838,6 +2060,14 @@ class MatchInfo(GObject.GBoxed): def unref(self) -> None: ... class MemVTable(GObject.GPointer): + """ + :Constructors: + + :: + + MemVTable() + """ + malloc: Callable[[int], None] = ... realloc: Callable[[None, int], None] = ... free: Callable[[None], None] = ... @@ -1856,6 +2086,14 @@ class Mutex(GObject.GPointer): def unlock(self) -> None: ... class Node(GObject.GPointer): + """ + :Constructors: + + :: + + Node() + """ + data: None = ... next: Node = ... prev: Node = ... @@ -1873,6 +2111,14 @@ class Node(GObject.GPointer): def unlink(self) -> None: ... class Once(GObject.GPointer): + """ + :Constructors: + + :: + + Once() + """ + status: OnceStatus = ... retval: None = ... @staticmethod @@ -1881,16 +2127,24 @@ class Once(GObject.GPointer): def init_leave(location: None, result: int) -> None: ... class OptionContext: - def add_group(self, *args, **kwargs): ... # FIXME Method - def get_help_enabled(self, *args, **kwargs): ... # FIXME Method - def get_ignore_unknown_options(self, *args, **kwargs): ... # FIXME Method - def get_main_group(self, *args, **kwargs): ... # FIXME Method - def parse(self, *args, **kwargs): ... # FIXME Method - def set_help_enabled(self, *args, **kwargs): ... # FIXME Method - def set_ignore_unknown_options(self, *args, **kwargs): ... # FIXME Method - def set_main_group(self, *args, **kwargs): ... # FIXME Method + def add_group(self, *args, **kwargs): ... # FIXME Function + def get_help_enabled(self, *args, **kwargs): ... # FIXME Function + def get_ignore_unknown_options(self, *args, **kwargs): ... # FIXME Function + def get_main_group(self, *args, **kwargs): ... # FIXME Function + def parse(self, *args, **kwargs): ... # FIXME Function + def set_help_enabled(self, *args, **kwargs): ... # FIXME Function + def set_ignore_unknown_options(self, *args, **kwargs): ... # FIXME Function + def set_main_group(self, *args, **kwargs): ... # FIXME Function class OptionEntry(GObject.GPointer): + """ + :Constructors: + + :: + + OptionEntry() + """ + long_name: str = ... short_name: int = ... flags: int = ... @@ -1900,10 +2154,42 @@ class OptionEntry(GObject.GPointer): arg_description: str = ... class OptionGroup: - def add_entries(self, *args, **kwargs): ... # FIXME Method - def set_translation_domain(self, *args, **kwargs): ... # FIXME Method + def add_entries(self, *args, **kwargs): ... # FIXME Function + def set_translation_domain(self, *args, **kwargs): ... # FIXME Function + +class PathBuf(GObject.GPointer): + """ + :Constructors: + + :: + + PathBuf() + """ + + dummy: list[None] = ... + def clear(self) -> None: ... + def clear_to_path(self) -> Optional[str]: ... + @staticmethod + def equal(v1: None, v2: None) -> bool: ... + def free(self) -> None: ... + def free_to_path(self) -> Optional[str]: ... + def init(self) -> PathBuf: ... + def init_from_path(self, path: Optional[str] = None) -> PathBuf: ... + def pop(self) -> bool: ... + def push(self, path: str) -> PathBuf: ... + def set_extension(self, extension: Optional[str] = None) -> bool: ... + def set_filename(self, file_name: str) -> bool: ... + def to_path(self) -> Optional[str]: ... class PatternSpec(GObject.GBoxed): + """ + :Constructors: + + :: + + new(pattern:str) -> GLib.PatternSpec + """ + def copy(self) -> PatternSpec: ... def equal(self, pspec2: PatternSpec) -> bool: ... def free(self) -> None: ... @@ -1920,20 +2206,38 @@ class Pid: numerator = ... # FIXME Constant real = ... # FIXME Constant - def as_integer_ratio(self, *args, **kwargs): ... # FIXME Method - def bit_count(self, *args, **kwargs): ... # FIXME Method - def bit_length(self, *args, **kwargs): ... # FIXME Method - def close(self, *args, **kwargs): ... # FIXME Method - def conjugate(self, *args, **kwargs): ... # FIXME Method - def from_bytes(self, *args, **kwargs): ... # FIXME Method - def to_bytes(self, *args, **kwargs): ... # FIXME Method + def as_integer_ratio(self, /): ... # FIXME Function + def bit_count(self, /): ... # FIXME Function + def bit_length(self, /): ... # FIXME Function + def close(self, *args, **kwargs): ... # FIXME Function + def conjugate(self, *args, **kwargs): ... # FIXME Function + def from_bytes(bytes, byteorder="big", *, signed=False): ... # FIXME Function + def to_bytes( + self, /, length=1, byteorder="big", *, signed=False + ): ... # FIXME Function class PollFD(GObject.GBoxed): + """ + :Constructors: + + :: + + PollFD() + """ + fd: int = ... events: int = ... revents: int = ... class Private(GObject.GPointer): + """ + :Constructors: + + :: + + Private() + """ + p: None = ... notify: Callable[[None], None] = ... future: list[None] = ... @@ -1942,10 +2246,26 @@ class Private(GObject.GPointer): def set(self, value: None) -> None: ... class PtrArray(GObject.GBoxed): + """ + :Constructors: + + :: + + PtrArray() + """ + pdata: None = ... len: int = ... class Queue(GObject.GPointer): + """ + :Constructors: + + :: + + Queue() + """ + head: list[None] = ... tail: list[None] = ... length: int = ... @@ -1973,6 +2293,14 @@ class Queue(GObject.GPointer): def reverse(self) -> None: ... class RWLock(GObject.GPointer): + """ + :Constructors: + + :: + + RWLock() + """ + p: None = ... i: list[int] = ... def clear(self) -> None: ... @@ -1994,6 +2322,14 @@ class Rand(GObject.GPointer): def set_seed_array(self, seed: int, seed_length: int) -> None: ... class RecMutex(GObject.GPointer): + """ + :Constructors: + + :: + + RecMutex() + """ + p: None = ... i: list[int] = ... def clear(self) -> None: ... @@ -2003,6 +2339,14 @@ class RecMutex(GObject.GPointer): def unlock(self) -> None: ... class Regex(GObject.GBoxed): + """ + :Constructors: + + :: + + new(pattern:str, compile_options:GLib.RegexCompileFlags, match_options:GLib.RegexMatchFlags) -> GLib.Regex or None + """ + @staticmethod def check_replacement(replacement: str) -> Tuple[bool, bool]: ... @staticmethod @@ -2010,7 +2354,7 @@ class Regex(GObject.GBoxed): @staticmethod def escape_nul(string: str, length: int) -> str: ... @staticmethod - def escape_string(string: typing.Sequence[str]) -> str: ... + def escape_string(string: str, length: int) -> str: ... def get_capture_count(self) -> int: ... def get_compile_flags(self) -> RegexCompileFlags: ... def get_has_cr_or_lf(self) -> bool: ... @@ -2026,16 +2370,10 @@ class Regex(GObject.GBoxed): self, string: str, match_options: RegexMatchFlags ) -> Tuple[bool, MatchInfo]: ... def match_all_full( - self, - string: typing.Sequence[str], - start_position: int, - match_options: RegexMatchFlags, + self, string: Sequence[str], start_position: int, match_options: RegexMatchFlags ) -> Tuple[bool, MatchInfo]: ... def match_full( - self, - string: typing.Sequence[str], - start_position: int, - match_options: RegexMatchFlags, + self, string: Sequence[str], start_position: int, match_options: RegexMatchFlags ) -> Tuple[bool, MatchInfo]: ... @staticmethod def match_simple( @@ -2054,14 +2392,14 @@ class Regex(GObject.GBoxed): def ref(self) -> Regex: ... def replace( self, - string: typing.Sequence[str], + string: Sequence[str], start_position: int, replacement: str, match_options: RegexMatchFlags, ) -> str: ... def replace_literal( self, - string: typing.Sequence[str], + string: Sequence[str], start_position: int, replacement: str, match_options: RegexMatchFlags, @@ -2069,7 +2407,7 @@ class Regex(GObject.GBoxed): def split(self, string: str, match_options: RegexMatchFlags) -> list[str]: ... def split_full( self, - string: typing.Sequence[str], + string: Sequence[str], start_position: int, match_options: RegexMatchFlags, max_tokens: int, @@ -2084,10 +2422,26 @@ class Regex(GObject.GBoxed): def unref(self) -> None: ... class SList(GObject.GPointer): + """ + :Constructors: + + :: + + SList() + """ + data: None = ... next: list[None] = ... class Scanner(GObject.GPointer): + """ + :Constructors: + + :: + + Scanner() + """ + user_data: None = ... max_parse_errors: int = ... parse_errors: int = ... @@ -2102,7 +2456,7 @@ class Scanner(GObject.GPointer): next_value: TokenValue = ... next_line: int = ... next_position: int = ... - symbol_table: str = ... + symbol_table: dict[None, None] = ... input_fd: int = ... text: str = ... text_end: str = ... @@ -2135,6 +2489,14 @@ class Scanner(GObject.GPointer): ) -> None: ... class ScannerConfig(GObject.GPointer): + """ + :Constructors: + + :: + + ScannerConfig() + """ + cset_skip_characters: str = ... cset_identifier_first: str = ... cset_identifier_nth: str = ... @@ -2204,6 +2566,15 @@ class SequenceIter(GObject.GPointer): def prev(self) -> SequenceIter: ... class Source(GObject.GBoxed): + """ + :Constructors: + + :: + + Source() + new(source_funcs:GLib.SourceFuncs, struct_size:int) -> GLib.Source + """ + callback_data: None = ... callback_funcs: SourceCallbackFuncs = ... source_funcs: SourceFuncs = ... @@ -2226,7 +2597,7 @@ class Source(GObject.GBoxed): def destroy(self) -> None: ... def get_can_recurse(self) -> bool: ... def get_context(self) -> Optional[MainContext]: ... - def get_current_time(self, *args, **kwargs): ... # FIXME Method + def get_current_time(self): ... # FIXME Function def get_id(self) -> int: ... def get_name(self) -> Optional[str]: ... def get_priority(self) -> int: ... @@ -2247,7 +2618,7 @@ class Source(GObject.GBoxed): def remove_child_source(self, child_source: Source) -> None: ... def remove_poll(self, fd: PollFD) -> None: ... def remove_unix_fd(self, tag: None) -> None: ... - def set_callback(self, *args, **kwargs): ... # FIXME Method + def set_callback(self, fn, user_data=None): ... # FIXME Function def set_callback_indirect( self, callback_data: None, callback_funcs: SourceCallbackFuncs ) -> None: ... @@ -2262,11 +2633,27 @@ class Source(GObject.GBoxed): def unref(self) -> None: ... class SourceCallbackFuncs(GObject.GPointer): + """ + :Constructors: + + :: + + SourceCallbackFuncs() + """ + ref: Callable[[None], None] = ... unref: Callable[[None], None] = ... get: None = ... class SourceFuncs(GObject.GPointer): + """ + :Constructors: + + :: + + SourceFuncs() + """ + prepare: Callable[[Source, int], bool] = ... check: Callable[[Source], bool] = ... dispatch: None = ... @@ -2278,6 +2665,18 @@ class SourcePrivate(GObject.GPointer): ... class StatBuf(GObject.GPointer): ... class String(GObject.GBoxed): + """ + :Constructors: + + :: + + String() + new(init:str=None) -> GLib.String + new_len(init:str, len:int) -> GLib.String + new_take(init:str=None) -> GLib.String + sized_new(dfl_size:int) -> GLib.String + """ + str: str = ... len: int = ... allocated_len: int = ... @@ -2295,6 +2694,7 @@ class String(GObject.GBoxed): def equal(self, v2: String) -> bool: ... def erase(self, pos: int, len: int) -> String: ... def free(self, free_segment: bool) -> Optional[str]: ... + def free_and_steal(self) -> str: ... def free_to_bytes(self) -> Bytes: ... def hash(self) -> int: ... def insert(self, pos: int, val: str) -> String: ... @@ -2305,6 +2705,8 @@ class String(GObject.GBoxed): def new(cls, init: Optional[str] = None) -> String: ... @classmethod def new_len(cls, init: str, len: int) -> String: ... + @classmethod + def new_take(cls, init: Optional[str] = None) -> String: ... def overwrite(self, pos: int, val: str) -> String: ... def overwrite_len(self, pos: int, val: str, len: int) -> String: ... def prepend(self, val: str) -> String: ... @@ -2327,7 +2729,7 @@ class StringChunk(GObject.GPointer): class StrvBuilder(GObject.GPointer): def add(self, value: str) -> None: ... - def addv(self, value: typing.Sequence[str]) -> None: ... + def addv(self, value: Sequence[str]) -> None: ... def end(self) -> list[str]: ... def unref(self) -> None: ... @@ -2335,6 +2737,14 @@ class TestCase(GObject.GPointer): def free(self) -> None: ... class TestConfig(GObject.GPointer): + """ + :Constructors: + + :: + + TestConfig() + """ + test_initialized: bool = ... test_quick: bool = ... test_perf: bool = ... @@ -2343,12 +2753,28 @@ class TestConfig(GObject.GPointer): test_undefined: bool = ... class TestLogBuffer(GObject.GPointer): + """ + :Constructors: + + :: + + TestLogBuffer() + """ + data: String = ... msgs: list[None] = ... def free(self) -> None: ... def push(self, n_bytes: int, bytes: int) -> None: ... class TestLogMsg(GObject.GPointer): + """ + :Constructors: + + :: + + TestLogMsg() + """ + log_type: TestLogType = ... n_strings: int = ... strings: str = ... @@ -2362,6 +2788,15 @@ class TestSuite(GObject.GPointer): def free(self) -> None: ... class Thread(GObject.GBoxed): + """ + :Constructors: + + :: + + new(name:str=None, func:GLib.ThreadFunc, data=None) -> GLib.Thread + try_new(name:str=None, func:GLib.ThreadFunc, data=None) -> GLib.Thread + """ + @staticmethod def error_quark() -> int: ... @staticmethod @@ -2383,6 +2818,14 @@ class Thread(GObject.GBoxed): def yield_() -> None: ... class ThreadPool(GObject.GPointer): + """ + :Constructors: + + :: + + ThreadPool() + """ + func: Callable[..., None] = ... user_data: None = ... exclusive: bool = ... @@ -2407,6 +2850,14 @@ class ThreadPool(GObject.GPointer): def unprocessed(self) -> int: ... class TimeVal(GObject.GPointer): + """ + :Constructors: + + :: + + TimeVal() + """ + tv_sec: int = ... tv_usec: int = ... def add(self, microseconds: int) -> None: ... @@ -2415,7 +2866,19 @@ class TimeVal(GObject.GPointer): def to_iso8601(self) -> Optional[str]: ... class TimeZone(GObject.GBoxed): - def adjust_time(self, type: TimeType, time_: int) -> int: ... + """ + :Constructors: + + :: + + new(identifier:str=None) -> GLib.TimeZone + new_identifier(identifier:str=None) -> GLib.TimeZone or None + new_local() -> GLib.TimeZone + new_offset(seconds:int) -> GLib.TimeZone + new_utc() -> GLib.TimeZone + """ + + def adjust_time(self, type: TimeType) -> Tuple[int, int]: ... def find_interval(self, type: TimeType, time_: int) -> int: ... def get_abbreviation(self, interval: int) -> str: ... def get_identifier(self) -> str: ... @@ -2435,6 +2898,15 @@ class TimeZone(GObject.GBoxed): def unref(self) -> None: ... class Timeout(GObject.GBoxed): + """ + :Constructors: + + :: + + Source() + new(source_funcs:GLib.SourceFuncs, struct_size:int) -> GLib.Source + """ + callback_data: None = ... callback_funcs: SourceCallbackFuncs = ... source_funcs: SourceFuncs = ... @@ -2457,7 +2929,7 @@ class Timeout(GObject.GBoxed): def destroy(self) -> None: ... def get_can_recurse(self) -> bool: ... def get_context(self) -> Optional[MainContext]: ... - def get_current_time(self, *args, **kwargs): ... # FIXME Method + def get_current_time(self): ... # FIXME Function def get_id(self) -> int: ... def get_name(self) -> Optional[str]: ... def get_priority(self) -> int: ... @@ -2478,7 +2950,7 @@ class Timeout(GObject.GBoxed): def remove_child_source(self, child_source: Source) -> None: ... def remove_poll(self, fd: PollFD) -> None: ... def remove_unix_fd(self, tag: None) -> None: ... - def set_callback(self, *args, **kwargs): ... # FIXME Method + def set_callback(self, fn, user_data=None): ... # FIXME Function def set_callback_indirect( self, callback_data: None, callback_funcs: SourceCallbackFuncs ) -> None: ... @@ -2516,6 +2988,14 @@ class TokenValue(GObject.GPointer): v_symbol = ... # FIXME Constant class TrashStack(GObject.GPointer): + """ + :Constructors: + + :: + + TrashStack() + """ + next: TrashStack = ... @staticmethod def height(stack_p: TrashStack) -> int: ... @@ -2527,10 +3007,18 @@ class TrashStack(GObject.GPointer): def push(stack_p: TrashStack, data_p: None) -> None: ... class Tree(GObject.GBoxed): + """ + :Constructors: + + :: + + new_full(key_compare_func:GLib.CompareDataFunc, key_compare_data=None, key_destroy_func:GLib.DestroyNotify) -> GLib.Tree + """ + def destroy(self) -> None: ... def height(self) -> int: ... def insert(self, key: None, value: None) -> None: ... - def insert_node(self, key: None, value: None) -> TreeNode: ... + def insert_node(self, key: None, value: None) -> Optional[TreeNode]: ... def lookup(self, key: None) -> None: ... def lookup_extended(self, lookup_key: None) -> Tuple[bool, None, None]: ... def lookup_node(self, key: None) -> Optional[TreeNode]: ... @@ -2549,7 +3037,7 @@ class Tree(GObject.GBoxed): def remove(self, key: None) -> bool: ... def remove_all(self) -> None: ... def replace(self, key: None, value: None) -> None: ... - def replace_node(self, key: None, value: None) -> TreeNode: ... + def replace_node(self, key: None, value: None) -> Optional[TreeNode]: ... def steal(self, key: None) -> bool: ... def unref(self) -> None: ... def upper_bound(self, key: None) -> Optional[TreeNode]: ... @@ -2589,7 +3077,7 @@ class Uri(GObject.GBoxed): def error_quark() -> int: ... @staticmethod def escape_bytes( - unescaped: typing.Sequence[int], reserved_chars_allowed: Optional[str] = None + unescaped: Sequence[int], reserved_chars_allowed: Optional[str] = None ) -> str: ... @staticmethod def escape_string( @@ -2639,7 +3127,7 @@ class Uri(GObject.GBoxed): @staticmethod def parse_params( params: str, length: int, separators: str, flags: UriParamsFlags - ) -> str: ... + ) -> dict[str, str]: ... def parse_relative(self, uri_ref: str, flags: UriFlags) -> Uri: ... @staticmethod def parse_scheme(uri: str) -> Optional[str]: ... @@ -2679,6 +3167,14 @@ class Uri(GObject.GBoxed): ) -> Optional[str]: ... class UriParamsIter(GObject.GPointer): + """ + :Constructors: + + :: + + UriParamsIter() + """ + dummy0: int = ... dummy1: None = ... dummy2: None = ... @@ -2689,6 +3185,38 @@ class UriParamsIter(GObject.GPointer): def next(self) -> Tuple[bool, str, str]: ... class Variant(GObject.GPointer): + """ + :Constructors: + + :: + + new_array(child_type:GLib.VariantType=None, children:list=None) -> GLib.Variant + new_boolean(value:bool) -> GLib.Variant + new_byte(value:int) -> GLib.Variant + new_bytestring(string:list) -> GLib.Variant + new_bytestring_array(strv:list) -> GLib.Variant + new_dict_entry(key:GLib.Variant, value:GLib.Variant) -> GLib.Variant + new_double(value:float) -> GLib.Variant + new_fixed_array(element_type:GLib.VariantType, elements=None, n_elements:int, element_size:int) -> GLib.Variant + new_from_bytes(type:GLib.VariantType, bytes:GLib.Bytes, trusted:bool) -> GLib.Variant + new_from_data(type:GLib.VariantType, data:list, trusted:bool, notify:GLib.DestroyNotify, user_data=None) -> GLib.Variant + new_handle(value:int) -> GLib.Variant + new_int16(value:int) -> GLib.Variant + new_int32(value:int) -> GLib.Variant + new_int64(value:int) -> GLib.Variant + new_maybe(child_type:GLib.VariantType=None, child:GLib.Variant=None) -> GLib.Variant + new_object_path(object_path:str) -> GLib.Variant + new_objv(strv:list) -> GLib.Variant + new_signature(signature:str) -> GLib.Variant + new_string(string:str) -> GLib.Variant + new_strv(strv:list) -> GLib.Variant + new_tuple(children:list) -> GLib.Variant + new_uint16(value:int) -> GLib.Variant + new_uint32(value:int) -> GLib.Variant + new_uint64(value:int) -> GLib.Variant + new_variant(value:GLib.Variant) -> GLib.Variant + """ + # override def __init__(self, format_string: str, value: Any): ... def byteswap(self) -> Variant: ... @@ -2735,7 +3263,7 @@ class Variant(GObject.GPointer): def is_of_type(self, type: VariantType) -> bool: ... @staticmethod def is_signature(string: str) -> bool: ... - def keys(self, *args, **kwargs): ... # FIXME Method + def keys(self): ... # FIXME Function def lookup_value( self, key: str, expected_type: Optional[VariantType] = None ) -> Variant: ... @@ -2744,16 +3272,16 @@ class Variant(GObject.GPointer): def new_array( cls, child_type: Optional[VariantType] = None, - children: Optional[typing.Sequence[Variant]] = None, + children: Optional[Sequence[Variant]] = None, ) -> Variant: ... @classmethod def new_boolean(cls, value: bool) -> Variant: ... @classmethod def new_byte(cls, value: int) -> Variant: ... @classmethod - def new_bytestring(cls, string: typing.Sequence[int]) -> Variant: ... + def new_bytestring(cls, string: Sequence[int]) -> Variant: ... @classmethod - def new_bytestring_array(cls, strv: typing.Sequence[str]) -> Variant: ... + def new_bytestring_array(cls, strv: Sequence[str]) -> Variant: ... @classmethod def new_dict_entry(cls, key: Variant, value: Variant) -> Variant: ... @classmethod @@ -2774,7 +3302,7 @@ class Variant(GObject.GPointer): def new_from_data( cls, type: VariantType, - data: typing.Sequence[int], + data: Sequence[int], trusted: bool, notify: Callable[[None], None], user_data: None, @@ -2794,13 +3322,13 @@ class Variant(GObject.GPointer): @classmethod def new_object_path(cls, object_path: str) -> Variant: ... @classmethod - def new_objv(cls, strv: typing.Sequence[str]) -> Variant: ... + def new_objv(cls, strv: Sequence[str]) -> Variant: ... @classmethod def new_signature(cls, signature: str) -> Variant: ... @classmethod def new_string(cls, string: str) -> Variant: ... @classmethod - def new_strv(cls, strv: typing.Sequence[str]) -> Variant: ... + def new_strv(cls, strv: Sequence[str]) -> Variant: ... # override @classmethod def new_tuple(cls, children: Variant) -> Variant: ... @@ -2828,18 +3356,22 @@ class Variant(GObject.GPointer): def print_(self, type_annotate: bool) -> str: ... def ref(self) -> Variant: ... def ref_sink(self) -> Variant: ... - def split_signature(self, *args, **kwargs): ... # FIXME Method + def split_signature(signature): ... # FIXME Function def store(self, data: None) -> None: ... def take_ref(self) -> Variant: ... # override def unpack(self) -> Any: ... def unref(self) -> None: ... - # override - def __getitem__(self, key: Any) -> Any: ... - # override - def __len__(self) -> int: ... class VariantBuilder(GObject.GBoxed): + """ + :Constructors: + + :: + + new(type:GLib.VariantType) -> GLib.VariantBuilder + """ + # override def __init__(self, type: VariantType): ... def add_value(self, value: Variant) -> None: ... @@ -2852,6 +3384,14 @@ class VariantBuilder(GObject.GBoxed): def unref(self) -> None: ... class VariantDict(GObject.GBoxed): + """ + :Constructors: + + :: + + new(from_asv:GLib.Variant=None) -> GLib.VariantDict + """ + def clear(self) -> None: ... def contains(self, key: str) -> bool: ... def end(self) -> Variant: ... @@ -2866,6 +3406,18 @@ class VariantDict(GObject.GBoxed): def unref(self) -> None: ... class VariantType(GObject.GBoxed): + """ + :Constructors: + + :: + + new(type_string:str) -> GLib.VariantType + new_array(element:GLib.VariantType) -> GLib.VariantType + new_dict_entry(key:GLib.VariantType, value:GLib.VariantType) -> GLib.VariantType + new_maybe(element:GLib.VariantType) -> GLib.VariantType + new_tuple(items:list) -> GLib.VariantType + """ + # override def __init__(self, string: str): ... @staticmethod @@ -2898,7 +3450,7 @@ class VariantType(GObject.GBoxed): @classmethod def new_maybe(cls, element: VariantType) -> VariantType: ... @classmethod - def new_tuple(cls, items: typing.Sequence[VariantType]) -> VariantType: ... + def new_tuple(cls, items: Sequence[VariantType]) -> VariantType: ... def next(self) -> VariantType: ... @staticmethod def string_get_depth_(type_string: str) -> int: ... @@ -3557,6 +4109,7 @@ class UnicodeScript(GObject.GEnum): KAITHI = 85 KANNADA = 21 KATAKANA = 22 + KAWI = 163 KAYAH_LI = 67 KHAROSHTHI = 60 KHITAN_SMALL_SCRIPT = 155 @@ -3592,6 +4145,7 @@ class UnicodeScript(GObject.GEnum): MULTANI = 129 MYANMAR = 28 NABATAEAN = 116 + NAG_MUNDARI = 164 NANDINAGARI = 150 NEWA = 135 NEW_TAI_LUE = 54 diff --git a/src/gi-stubs/repository/GModule.pyi b/src/gi-stubs/repository/GModule.pyi index a733c788..04d67d1f 100644 --- a/src/gi-stubs/repository/GModule.pyi +++ b/src/gi-stubs/repository/GModule.pyi @@ -1,22 +1,42 @@ +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar + from gi.repository import GObject -_namespace: str = ... -_version: str = ... +_lock = ... # FIXME Constant +_namespace: str = "GModule" +_version: str = "2.0" -def module_build_path(*args, **kwargs): ... -def module_error(*args, **kwargs): ... -def module_supported(*args, **kwargs): ... +def module_build_path(directory: Optional[str], module_name: str) -> str: ... +def module_error() -> str: ... +def module_error_quark() -> int: ... +def module_supported() -> bool: ... -class Module: - def build_path(*args, **kwargs): ... - def close(*args, **kwargs): ... - def error(*args, **kwargs): ... - def make_resident(*args, **kwargs): ... - def name(*args, **kwargs): ... - def supported(*args, **kwargs): ... - def symbol(*args, **kwargs): ... +class Module(GObject.GPointer): + @staticmethod + def build_path(directory: Optional[str], module_name: str) -> str: ... + def close(self) -> bool: ... + @staticmethod + def error() -> str: ... + @staticmethod + def error_quark() -> int: ... + def make_resident(self) -> None: ... + def name(self) -> str: ... + @staticmethod + def supported() -> bool: ... + def symbol(self, symbol_name: str) -> Tuple[bool, None]: ... class ModuleFlags(GObject.GFlags): - LAZY = ... - LOCAL = ... - MASK = ... + LAZY = 1 + LOCAL = 2 + MASK = 3 + +class ModuleError(GObject.GEnum): + CHECK_FAILED = 1 + FAILED = 0 diff --git a/src/gi-stubs/repository/GObject.pyi b/src/gi-stubs/repository/GObject.pyi index f2272edb..f9585746 100644 --- a/src/gi-stubs/repository/GObject.pyi +++ b/src/gi-stubs/repository/GObject.pyi @@ -2,19 +2,13 @@ from typing import Any from typing import Callable from typing import Literal from typing import Optional -from typing import Protocol from typing import Sequence from typing import Tuple from typing import Type from typing import TypeVar -from enum import Enum -from enum import Flag - from gi.repository import GLib -_T = TypeVar("_T") - G_MAXDOUBLE: float = 1.7976931348623157e308 G_MAXFLOAT: float = 3.4028234663852886e38 G_MAXINT: int = 2147483647 @@ -112,7 +106,7 @@ TYPE_ENUM = ... # FIXME Constant TYPE_FLAGS = ... # FIXME Constant TYPE_FLAG_RESERVED_ID_BIT: int = 1 TYPE_FLOAT = ... # FIXME Constant -TYPE_FUNDAMENTAL_MAX: int = 255 +TYPE_FUNDAMENTAL_MAX: int = 1020 TYPE_FUNDAMENTAL_SHIFT: int = 2 TYPE_GSTRING = ... # FIXME Constant TYPE_GTYPE = ... # FIXME Constant @@ -149,10 +143,10 @@ _overrides_module = ... # FIXME Constant _version: str = "2.0" features = ... # FIXME Constant glib_version = ... # FIXME Constant -# override -pygobject_version: tuple[int, int, int, int, int] = ... +pygobject_version = ... # FIXME Constant -def add_emission_hook(*args, **kwargs): ... # FIXME Function +# override +def add_emission_hook(*args, **kwargs): ... def boxed_copy(boxed_type: Type, src_boxed: None) -> None: ... def boxed_free(boxed_type: Type, boxed: None) -> None: ... def cclosure_marshal_BOOLEAN__BOXED_BOXED( @@ -741,12 +735,6 @@ def uri_list_extract_uris(uri_list: str) -> list[str]: ... def value_type_compatible(src_type: Type, dest_type: Type) -> bool: ... def value_type_transformable(src_type: Type, dest_type: Type) -> bool: ... -# override -class _HandlerBlockManager: - def __init__(self, obj, handler_id: int) -> None: ... - def __enter__(self) -> None: ... - def __exit__(self, exc_type, exc_value, traceback) -> None: ... - class Binding(Object): """ :Constructors: @@ -779,7 +767,6 @@ class Binding(Object): source_property: str target: Optional[Object] target_property: str - props: Props = ... def __init__( self, @@ -819,7 +806,6 @@ class BindingGroup(Object): class Props: source: Optional[Object] - props: Props = ... def __init__(self, source: Optional[Object] = ...): ... def bind( @@ -1087,9 +1073,7 @@ class Closure(GBoxed): data: None = ... notifiers: ClosureNotifyData = ... def invalidate(self) -> None: ... - def invoke( - self, n_param_values: int, param_values: Sequence[Any], invocation_hint: None - ) -> Any: ... + def invoke(self, param_values: Sequence[Any], invocation_hint: None) -> Any: ... @classmethod def new_object(cls, sizeof_closure: int, object: Object) -> Closure: ... @classmethod @@ -1166,27 +1150,20 @@ class FlagsValue(GPointer): value_nick: str = ... class GBoxed: - """ """ - def copy(self, *args, **kwargs): ... # FIXME Function class GError: - """ """ - def copy(self): ... # FIXME Function def matches(self, domain, code): ... # FIXME Function def new_literal(domain, message, code): ... # FIXME Function # override class GInterface(Protocol): - # Copy pasted from Object - g_type_instance: TypeInstance = ... ref_count: int = ... qdata: GLib.Data = ... - props = ... # FIXME Constant + props = ... - # override def bind_property( self, source_property: str, @@ -1197,54 +1174,45 @@ class GInterface(Protocol): transform_from: Optional[Callable[..., Any]] = None, user_data: Optional[Any] = None, ) -> Binding: ... - def bind_property_full(self, *args, **kargs): ... # FIXME Function - def chain(self, *args, **kwargs): ... # FIXME Function - def compat_control(self, *args, **kargs): ... # FIXME Function - # override + def bind_property_full(self, *args, **kargs): ... + def chain(self, *args, **kwargs): ... + def compat_control(self, *args, **kargs): ... def connect( self, detailed_signal: str, handler: Callable[..., Any], *args: Any ) -> int: ... - # override def connect_after( self, detailed_signal: str, handler: Callable[..., Any], *args: Any ) -> int: ... - def connect_data( - self, detailed_signal, handler, *data, **kwargs - ): ... # FIXME Function - def connect_object(self, *args, **kwargs): ... # FIXME Function - def connect_object_after(self, *args, **kwargs): ... # FIXME Function - # override + def connect_data(self, detailed_signal, handler, *data, **kwargs): ... + def connect_object(self, *args, **kwargs): ... + def connect_object_after(self, *args, **kwargs): ... def disconnect(self, id: int) -> None: ... - def disconnect_by_func(self, *args, **kwargs): ... # FIXME Function - # override + def disconnect_by_func(self, *args, **kwargs): ... def emit(self, signal_name: str, *args: Any) -> None: ... - def emit_stop_by_name(self, detailed_signal): ... # FIXME Function + def emit_stop_by_name(self, detailed_signal): ... def find_property(self, property_name: str) -> ParamSpec: ... - def force_floating(self, *args, **kargs): ... # FIXME Function - def freeze_notify(self): ... # FIXME Function - def get_data(self, *args, **kargs): ... # FIXME Function - def get_properties(self, *args, **kwargs): ... # FIXME Function - # override + def force_floating(self, *args, **kargs): ... + def freeze_notify(self): ... + def get_data(self, *args, **kargs): ... + def get_properties(self, *args, **kwargs): ... def get_property(self, property_name: str) -> Any: ... - def get_qdata(self, *args, **kargs): ... # FIXME Function + def get_qdata(self, *args, **kargs): ... def getv( self, n_properties: int, names: Sequence[str], values: Sequence[Any] ) -> None: ... - # override def handler_block(self, handler_id: int) -> _HandlerBlockManager: ... - def handler_block_by_func(self, *args, **kwargs): ... # FIXME Function - def handler_disconnect(self, *args, **kwargs): ... # FIXME Function - # override + def handler_block_by_func(self, *args, **kwargs): ... + def handler_disconnect(self, *args, **kwargs): ... def handler_is_connected(self, id: int) -> bool: ... - def handler_unblock(self, *args, **kwargs): ... # FIXME Function - def handler_unblock_by_func(self, *args, **kwargs): ... # FIXME Function + def handler_unblock(self, *args, **kwargs): ... + def handler_unblock_by_func(self, *args, **kwargs): ... def install_properties( self, n_pspecs: int, pspecs: Sequence[ParamSpec] ) -> None: ... def install_property(self, property_id: int, pspec: ParamSpec) -> None: ... - def interface_find_property(self, *args, **kargs): ... # FIXME Function - def interface_install_property(self, *args, **kargs): ... # FIXME Function - def interface_list_properties(self, *args, **kargs): ... # FIXME Function + def interface_find_property(self, *args, **kargs): ... + def interface_install_property(self, *args, **kargs): ... + def interface_list_properties(self, *args, **kargs): ... def is_floating(self) -> bool: ... def list_properties(self) -> list[ParamSpec]: ... @classmethod @@ -1252,26 +1220,23 @@ class GInterface(Protocol): cls, object_type: Type, n_parameters: int, parameters: Sequence[Parameter] ) -> Object: ... def notify(self, property_name: str) -> None: ... - def notify_by_pspec(self, *args, **kargs): ... # FIXME Function + def notify_by_pspec(self, *args, **kargs): ... def override_property(self, property_id: int, name: str) -> None: ... - def ref(self, *args, **kargs): ... # FIXME Function - def ref_sink(self, *args, **kargs): ... # FIXME Function - def replace_data(self, *args, **kargs): ... # FIXME Function - def replace_qdata(self, *args, **kargs): ... # FIXME Function + def ref(self, *args, **kargs): ... + def ref_sink(self, *args, **kargs): ... + def replace_data(self, *args, **kargs): ... + def replace_qdata(self, *args, **kargs): ... def run_dispose(self) -> None: ... - def set_data(self, *args, **kargs): ... # FIXME Function - def set_properties(self, *args, **kwargs): ... # FIXME Function - # override + def set_data(self, *args, **kargs): ... + def set_properties(self, *args, **kwargs): ... def set_property(self, property_name: str, value: object) -> None: ... - def steal_data(self, *args, **kargs): ... # FIXME Function - def steal_qdata(self, *args, **kargs): ... # FIXME Function - def stop_emission(self, detailed_signal): ... # FIXME Function - # override + def steal_data(self, *args, **kargs): ... + def steal_qdata(self, *args, **kargs): ... + def stop_emission(self, detailed_signal): ... def stop_emission_by_name(self, detailed_signal: str) -> None: ... def thaw_notify(self) -> None: ... - def unref(self, *args, **kargs): ... # FIXME Function - def watch_closure(self, *args, **kargs): ... # FIXME Function - # override + def unref(self, *args, **kargs): ... + def watch_closure(self, *args, **kargs): ... def weak_ref(self, callback: Callable[..., Any], *args: Any) -> None: ... # override @@ -1288,8 +1253,6 @@ class GParamSpec: ... class GPointer: ... class GType: - """ """ - children = ... # FIXME Constant depth = ... # FIXME Constant fundamental = ... # FIXME Constant @@ -1558,9 +1521,7 @@ class Object: # override def get_property(self, property_name: str) -> Any: ... def get_qdata(self, *args, **kargs): ... # FIXME Function - def getv( - self, n_properties: int, names: Sequence[str], values: Sequence[Any] - ) -> None: ... + def getv(self, names: Sequence[str], values: Sequence[Any]) -> None: ... # override def handler_block(self, handler_id: int) -> _HandlerBlockManager: ... def handler_block_by_func(self, *args, **kwargs): ... # FIXME Function @@ -1569,9 +1530,7 @@ class Object: def handler_is_connected(self, id: int) -> bool: ... def handler_unblock(self, *args, **kwargs): ... # FIXME Function def handler_unblock_by_func(self, *args, **kwargs): ... # FIXME Function - def install_properties( - self, n_pspecs: int, pspecs: Sequence[ParamSpec] - ) -> None: ... + def install_properties(self, pspecs: Sequence[ParamSpec]) -> None: ... def install_property(self, property_id: int, pspec: ParamSpec) -> None: ... def interface_find_property(self, *args, **kargs): ... # FIXME Function def interface_install_property(self, *args, **kargs): ... # FIXME Function @@ -1579,9 +1538,7 @@ class Object: def is_floating(self) -> bool: ... def list_properties(self) -> list[ParamSpec]: ... @classmethod - def newv( - cls, object_type: Type, n_parameters: int, parameters: Sequence[Parameter] - ) -> Object: ... + def newv(cls, object_type: Type, parameters: Sequence[Parameter]) -> Object: ... def notify(self, property_name: str) -> None: ... def notify_by_pspec(self, *args, **kargs): ... # FIXME Function def override_property(self, property_id: int, name: str) -> None: ... @@ -1630,9 +1587,7 @@ class ObjectClass(GPointer): n_pspecs: int = ... pdummy: list[None] = ... def find_property(self, property_name: str) -> ParamSpec: ... - def install_properties( - self, n_pspecs: int, pspecs: Sequence[ParamSpec] - ) -> None: ... + def install_properties(self, pspecs: Sequence[ParamSpec]) -> None: ... def install_property(self, property_id: int, pspec: ParamSpec) -> None: ... def list_properties(self) -> list[ParamSpec]: ... def override_property(self, property_id: int, name: str) -> None: ... @@ -1650,8 +1605,6 @@ class ObjectConstructParam(GPointer): value: Any = ... class OptionContext: - """ """ - def add_group(self, *args, **kwargs): ... # FIXME Function def get_help_enabled(self, *args, **kwargs): ... # FIXME Function def get_ignore_unknown_options(self, *args, **kwargs): ... # FIXME Function @@ -1662,8 +1615,6 @@ class OptionContext: def set_main_group(self, *args, **kwargs): ... # FIXME Function class OptionGroup: - """ """ - def add_entries(self, *args, **kwargs): ... # FIXME Function def set_translation_domain(self, *args, **kwargs): ... # FIXME Function @@ -1915,8 +1866,6 @@ class ParamSpecPointer(ParamSpec): parent_instance: ParamSpec = ... class ParamSpecPool(GPointer): - """ """ - def insert(self, pspec: ParamSpec, owner_type: Type) -> None: ... def list(self, owner_type: Type) -> list[ParamSpec]: ... def list_owned(self, owner_type: Type) -> list[ParamSpec]: ... @@ -2068,20 +2017,20 @@ class Parameter(GPointer): value: Any = ... class Pid: - """ """ - denominator = ... # FIXME Constant imag = ... # FIXME Constant numerator = ... # FIXME Constant real = ... # FIXME Constant - def as_integer_ratio(self, *args, **kwargs): ... # FIXME Method - def bit_count(self, *args, **kwargs): ... # FIXME Method - def bit_length(self, *args, **kwargs): ... # FIXME Method - def close(self, *args, **kwargs): ... # FIXME Method - def conjugate(self, *args, **kwargs): ... # FIXME Method - def from_bytes(self, *args, **kwargs): ... # FIXME Method - def to_bytes(self, *args, **kwargs): ... # FIXME Method + def as_integer_ratio(self, /): ... # FIXME Function + def bit_count(self, /): ... # FIXME Function + def bit_length(self, /): ... # FIXME Function + def close(self, *args, **kwargs): ... # FIXME Function + def conjugate(self, *args, **kwargs): ... # FIXME Function + def from_bytes(bytes, byteorder="big", *, signed=False): ... # FIXME Function + def to_bytes( + self, /, length=1, byteorder="big", *, signed=False + ): ... # FIXME Function class PollFD(GBoxed): """ @@ -2177,7 +2126,6 @@ class SignalGroup(Object): class Props: target: Optional[Object] target_type: Type - props: Props = ... def __init__(self, target: Optional[Object] = ..., target_type: Type = ...): ... def block(self) -> None: ... @@ -2524,12 +2472,12 @@ class TypePluginClass(GPointer): base_iface: TypeInterface = ... use_plugin: Callable[[TypePlugin], None] = ... unuse_plugin: Callable[[TypePlugin], None] = ... - complete_type_info: Callable[[TypePlugin, Type, TypeInfo, TypeValueTable], None] = ( - ... - ) - complete_interface_info: Callable[[TypePlugin, Type, Type, InterfaceInfo], None] = ( - ... - ) + complete_type_info: Callable[ + [TypePlugin, Type, TypeInfo, TypeValueTable], None + ] = ... + complete_interface_info: Callable[ + [TypePlugin, Type, Type, InterfaceInfo], None + ] = ... class TypeQuery(GPointer): """ @@ -2556,12 +2504,12 @@ class TypeValueTable(GPointer): value_init: Callable[[Any], None] = ... value_free: Callable[[Any], None] = ... - value_copy: Callable[[Any, Any], None] = ... + value_copy: Callable[[Any], Any] = ... value_peek_pointer: Callable[[Any], None] = ... collect_format: str = ... - collect_value: Callable[[Any, int, TypeCValue, int], str] = ... + collect_value: Callable[[Any, Sequence[TypeCValue], int], Optional[str]] = ... lcopy_format: str = ... - lcopy_value: Callable[[Any, int, TypeCValue, int], str] = ... + lcopy_value: Callable[[Any, Sequence[TypeCValue], int], Optional[str]] = ... class Value(GBoxed): """ @@ -2669,8 +2617,6 @@ class ValueArray(GBoxed): def sort(self, compare_func: Callable[..., int], *user_data: Any) -> ValueArray: ... class Warning: - """ """ - args = ... # FIXME Constant def add_note(self, *args, **kwargs): ... # FIXME Function @@ -2679,8 +2625,6 @@ class Warning: class WeakRef(GPointer): ... class _Value__data__union(GPointer): - """ """ - v_double = ... # FIXME Constant v_float = ... # FIXME Constant v_int = ... # FIXME Constant @@ -2768,7 +2712,6 @@ class ConnectFlags(GFlags): DEFAULT = 0 SWAPPED = 2 -# IntFlag is close enough to whatever GFlags does # override class GFlags(int, Flag): __gtype__: GType @@ -2839,7 +2782,6 @@ class TypeFundamentalFlags(GFlags): DERIVABLE = 4 INSTANTIATABLE = 2 -# IntEnum is close enough to whatever GEnum does # override class GEnum(int, Enum): __gtype__: GType diff --git a/src/gi-stubs/repository/GSound.pyi b/src/gi-stubs/repository/GSound.pyi index 01718090..060cc5b4 100644 --- a/src/gi-stubs/repository/GSound.pyi +++ b/src/gi-stubs/repository/GSound.pyi @@ -1,6 +1,11 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar from gi.repository import Gio from gi.repository import GObject @@ -51,12 +56,27 @@ ATTR_WINDOW_X11_MONITOR: str = "window.x11.monitor" ATTR_WINDOW_X11_SCREEN: str = "window.x11.screen" ATTR_WINDOW_X11_XID: str = "window.x11.xid" ATTR_WINDOW_Y: str = "window.y" +_lock = ... # FIXME Constant _namespace: str = "GSound" _version: str = "1.0" def error_quark() -> int: ... class Context(GObject.Object, Gio.Initable): + """ + :Constructors: + + :: + + Context(**properties) + new(cancellable:Gio.Cancellable=None) -> GSound.Context + + Object GSoundContext + + Signals from GObject: + notify (GParam) + """ + def cache(self, attrs: dict[str, str]) -> bool: ... @classmethod def new(cls, cancellable: Optional[Gio.Cancellable] = None) -> Context: ... diff --git a/src/gi-stubs/repository/GdkPixbuf.pyi b/src/gi-stubs/repository/GdkPixbuf.pyi index b65a8189..1d827595 100644 --- a/src/gi-stubs/repository/GdkPixbuf.pyi +++ b/src/gi-stubs/repository/GdkPixbuf.pyi @@ -1,9 +1,11 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple from typing import Type +from typing import TypeVar from gi.repository import Gio from gi.repository import GLib @@ -23,6 +25,52 @@ _version: str = "2.0" def pixbuf_error_quark() -> int: ... class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): + """ + :Constructors: + + :: + + Pixbuf(**properties) + new(colorspace:GdkPixbuf.Colorspace, has_alpha:bool, bits_per_sample:int, width:int, height:int) -> GdkPixbuf.Pixbuf or None + new_from_bytes(data:GLib.Bytes, colorspace:GdkPixbuf.Colorspace, has_alpha:bool, bits_per_sample:int, width:int, height:int, rowstride:int) -> GdkPixbuf.Pixbuf + new_from_data(data:list, colorspace:GdkPixbuf.Colorspace, has_alpha:bool, bits_per_sample:int, width:int, height:int, rowstride:int, destroy_fn:GdkPixbuf.PixbufDestroyNotify=None, destroy_fn_data=None) -> GdkPixbuf.Pixbuf + new_from_file(filename:str) -> GdkPixbuf.Pixbuf or None + new_from_file_at_scale(filename:str, width:int, height:int, preserve_aspect_ratio:bool) -> GdkPixbuf.Pixbuf or None + new_from_file_at_size(filename:str, width:int, height:int) -> GdkPixbuf.Pixbuf or None + new_from_inline(data:list, copy_pixels:bool) -> GdkPixbuf.Pixbuf + new_from_resource(resource_path:str) -> GdkPixbuf.Pixbuf or None + new_from_resource_at_scale(resource_path:str, width:int, height:int, preserve_aspect_ratio:bool) -> GdkPixbuf.Pixbuf or None + new_from_stream(stream:Gio.InputStream, cancellable:Gio.Cancellable=None) -> GdkPixbuf.Pixbuf or None + new_from_stream_at_scale(stream:Gio.InputStream, width:int, height:int, preserve_aspect_ratio:bool, cancellable:Gio.Cancellable=None) -> GdkPixbuf.Pixbuf or None + new_from_stream_finish(async_result:Gio.AsyncResult) -> GdkPixbuf.Pixbuf or None + new_from_xpm_data(data:list) -> GdkPixbuf.Pixbuf + + Object GdkPixbuf + + Properties from GdkPixbuf: + colorspace -> GdkColorspace: Colorspace + The colorspace in which the samples are interpreted + n-channels -> gint: Number of Channels + The number of samples per pixel + has-alpha -> gboolean: Has Alpha + Whether the pixbuf has an alpha channel + bits-per-sample -> gint: Bits per Sample + The number of bits per sample + width -> gint: Width + The number of columns of the pixbuf + height -> gint: Height + The number of rows of the pixbuf + rowstride -> gint: Rowstride + The number of bytes between the start of a row and the start of the next row + pixels -> gpointer: Pixels + A pointer to the pixel data of the pixbuf + pixel-bytes -> GBytes: Pixel Bytes + Readonly pixel data + + Signals from GObject: + notify (GParam) + """ + class Props: bits_per_sample: int colorspace: Colorspace @@ -33,7 +81,6 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): pixels: None rowstride: int width: int - props: Props = ... def __init__( self, @@ -136,7 +183,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def get_height(self) -> int: ... def get_n_channels(self) -> int: ... def get_option(self, key: str) -> Optional[str]: ... - def get_options(self) -> str: ... + def get_options(self) -> dict[str, str]: ... def get_pixels(self) -> bytes: ... def get_rowstride(self) -> int: ... def get_width(self) -> int: ... @@ -187,9 +234,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): cls, filename: str, width: int, height: int ) -> Optional[Pixbuf]: ... @classmethod - def new_from_inline( - cls, data_length: int, data: Sequence[int], copy_pixels: bool - ) -> Pixbuf: ... + def new_from_inline(cls, data: Sequence[int], copy_pixels: bool) -> Pixbuf: ... @classmethod def new_from_resource(cls, resource_path: str) -> Optional[Pixbuf]: ... @classmethod @@ -302,6 +347,23 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def set_option(self, key: str, value: str) -> bool: ... class PixbufAnimation(GObject.Object): + """ + :Constructors: + + :: + + PixbufAnimation(**properties) + new_from_file(filename:str) -> GdkPixbuf.PixbufAnimation or None + new_from_resource(resource_path:str) -> GdkPixbuf.PixbufAnimation or None + new_from_stream(stream:Gio.InputStream, cancellable:Gio.Cancellable=None) -> GdkPixbuf.PixbufAnimation or None + new_from_stream_finish(async_result:Gio.AsyncResult) -> GdkPixbuf.PixbufAnimation or None + + Object GdkPixbufAnimation + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def do_get_iter( self, start_time: Optional[GLib.TimeVal] = None @@ -337,6 +399,14 @@ class PixbufAnimation(GObject.Object): ) -> Optional[PixbufAnimation]: ... class PixbufAnimationClass(GObject.GPointer): + """ + :Constructors: + + :: + + PixbufAnimationClass() + """ + parent_class: GObject.ObjectClass = ... is_static_image: Callable[[PixbufAnimation], bool] = ... get_static_image: Callable[[PixbufAnimation], Pixbuf] = ... @@ -346,6 +416,19 @@ class PixbufAnimationClass(GObject.GPointer): ] = ... class PixbufAnimationIter(GObject.Object): + """ + :Constructors: + + :: + + PixbufAnimationIter(**properties) + + Object GdkPixbufAnimationIter + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def advance(self, current_time: Optional[GLib.TimeVal] = None) -> bool: ... def do_advance(self, current_time: Optional[GLib.TimeVal] = None) -> bool: ... @@ -357,6 +440,14 @@ class PixbufAnimationIter(GObject.Object): def on_currently_loading_frame(self) -> bool: ... class PixbufAnimationIterClass(GObject.GPointer): + """ + :Constructors: + + :: + + PixbufAnimationIterClass() + """ + parent_class: GObject.ObjectClass = ... get_delay_time: Callable[[PixbufAnimationIter], int] = ... get_pixbuf: Callable[[PixbufAnimationIter], Pixbuf] = ... @@ -364,6 +455,14 @@ class PixbufAnimationIterClass(GObject.GPointer): advance: Callable[[PixbufAnimationIter, Optional[GLib.TimeVal]], bool] = ... class PixbufFormat(GObject.GBoxed): + """ + :Constructors: + + :: + + PixbufFormat() + """ + name: str = ... signature: PixbufModulePattern = ... domain: str = ... @@ -387,6 +486,28 @@ class PixbufFormat(GObject.GBoxed): def set_disabled(self, disabled: bool) -> None: ... class PixbufLoader(GObject.Object): + """ + :Constructors: + + :: + + PixbufLoader(**properties) + new() -> GdkPixbuf.PixbufLoader + new_with_mime_type(mime_type:str) -> GdkPixbuf.PixbufLoader + new_with_type(image_type:str) -> GdkPixbuf.PixbufLoader + + Object GdkPixbufLoader + + Signals from GdkPixbufLoader: + size-prepared (gint, gint) + area-prepared () + area-updated (gint, gint, gint, gint) + closed () + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: None = ... def close(self) -> bool: ... @@ -408,6 +529,14 @@ class PixbufLoader(GObject.Object): def write_bytes(self, buffer: GLib.Bytes) -> bool: ... class PixbufLoaderClass(GObject.GPointer): + """ + :Constructors: + + :: + + PixbufLoaderClass() + """ + parent_class: GObject.ObjectClass = ... size_prepared: Callable[[PixbufLoader, int, int], None] = ... area_prepared: Callable[[PixbufLoader], None] = ... @@ -415,6 +544,14 @@ class PixbufLoaderClass(GObject.GPointer): closed: Callable[[PixbufLoader], None] = ... class PixbufModule(GObject.GPointer): + """ + :Constructors: + + :: + + PixbufModule() + """ + module_name: str = ... module_path: str = ... module: GModule.Module = ... @@ -436,18 +573,57 @@ class PixbufModule(GObject.GPointer): _reserved4: None = ... class PixbufModulePattern(GObject.GPointer): + """ + :Constructors: + + :: + + PixbufModulePattern() + """ + prefix: str = ... mask: str = ... relevance: int = ... class PixbufNonAnim(PixbufAnimation): + """ + :Constructors: + + :: + + PixbufNonAnim(**properties) + new(pixbuf:GdkPixbuf.Pixbuf) -> GdkPixbuf.PixbufAnimation + + Object GdkPixbufNonAnim + + Signals from GObject: + notify (GParam) + """ + @classmethod def new(cls, pixbuf: Pixbuf) -> PixbufNonAnim: ... class PixbufSimpleAnim(PixbufAnimation): + """ + :Constructors: + + :: + + PixbufSimpleAnim(**properties) + new(width:int, height:int, rate:float) -> GdkPixbuf.PixbufSimpleAnim + + Object GdkPixbufSimpleAnim + + Properties from GdkPixbufSimpleAnim: + loop -> gboolean: Loop + Whether the animation should loop when it reaches the end + + Signals from GObject: + notify (GParam) + """ + class Props: loop: bool - props: Props = ... def __init__(self, loop: bool = ...): ... def add_frame(self, pixbuf: Pixbuf) -> None: ... diff --git a/src/gi-stubs/repository/Geoclue.pyi b/src/gi-stubs/repository/Geoclue.pyi index 3f5244b8..7e2bef7c 100644 --- a/src/gi-stubs/repository/Geoclue.pyi +++ b/src/gi-stubs/repository/Geoclue.pyi @@ -1,12 +1,17 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional +from typing import Sequence from typing import Tuple +from typing import Type +from typing import TypeVar from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject +_lock = ... # FIXME Constant _namespace: str = "Geoclue" _version: str = "2.0" @@ -23,7 +28,14 @@ def manager_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... -class Client(GObject.Object): +class Client(GObject.GInterface): + """ + Interface GClueClient + + Signals from GObject: + notify (GParam) + """ + def call_start( self, cancellable: Optional[Gio.Cancellable] = None, @@ -53,6 +65,14 @@ class Client(GObject.Object): ) -> int: ... class ClientIface(GObject.GPointer): + """ + :Constructors: + + :: + + ClientIface() + """ + parent_iface: GObject.TypeInterface = ... handle_start: Callable[[Client, Gio.DBusMethodInvocation], bool] = ... handle_stop: Callable[[Client, Gio.DBusMethodInvocation], bool] = ... @@ -67,8 +87,53 @@ class ClientIface(GObject.GPointer): class ClientProxy( Gio.DBusProxy, Client, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable ): + """ + :Constructors: + + :: + + ClientProxy(**properties) + new_finish(res:Gio.AsyncResult) -> Geoclue.ClientProxy + new_for_bus_finish(res:Gio.AsyncResult) -> Geoclue.ClientProxy + new_for_bus_sync(bus_type:Gio.BusType, flags:Gio.DBusProxyFlags, name:str, object_path:str, cancellable:Gio.Cancellable=None) -> Geoclue.ClientProxy + new_sync(connection:Gio.DBusConnection, flags:Gio.DBusProxyFlags, name:str=None, object_path:str, cancellable:Gio.Cancellable=None) -> Geoclue.ClientProxy + + Object GClueClientProxy + + Signals from GClueClient: + handle-start (GDBusMethodInvocation) -> gboolean + handle-stop (GDBusMethodInvocation) -> gboolean + location-updated (gchararray, gchararray) + + Signals from GDBusProxy: + g-properties-changed (GVariant, GStrv) + g-signal (gchararray, gchararray, GVariant) + + Properties from GDBusProxy: + g-connection -> GDBusConnection: g-connection + The connection the proxy is for + g-bus-type -> GBusType: Bus Type + The bus to connect to, if any + g-name -> gchararray: g-name + The well-known or unique name that the proxy is for + g-name-owner -> gchararray: g-name-owner + The unique name for the owner + g-flags -> GDBusProxyFlags: g-flags + Flags for the proxy + g-object-path -> gchararray: g-object-path + The object path the proxy is for + g-interface-name -> gchararray: g-interface-name + The D-Bus interface name the proxy is for + g-default-timeout -> gint: Default Timeout + Timeout for remote method invocation + g-interface-info -> GDBusInterfaceInfo: Interface Information + Interface Information + + Signals from GObject: + notify (GParam) + """ + class Props: - g_bus_type: Gio.BusType g_connection: Gio.DBusConnection g_default_timeout: int g_flags: Gio.DBusProxyFlags @@ -83,8 +148,10 @@ class ClientProxy( location: str requested_accuracy_level: int time_threshold: int - + g_bus_type: Gio.BusType props: Props = ... + parent_instance: Gio.DBusProxy = ... + priv: ClientProxyPrivate = ... def __init__( self, g_bus_type: Gio.BusType = ..., @@ -102,8 +169,6 @@ class ClientProxy( requested_accuracy_level: int = ..., time_threshold: int = ..., ): ... - parent_instance: Gio.DBusProxy = ... - priv: ClientProxyPrivate = ... @staticmethod def create( desktop_id: str, @@ -182,11 +247,45 @@ class ClientProxy( ) -> ClientProxy: ... class ClientProxyClass(GObject.GPointer): + """ + :Constructors: + + :: + + ClientProxyClass() + """ + parent_class: Gio.DBusProxyClass = ... class ClientProxyPrivate(GObject.GPointer): ... class ClientSkeleton(Gio.DBusInterfaceSkeleton, Client, Gio.DBusInterface): + """ + :Constructors: + + :: + + ClientSkeleton(**properties) + new() -> Geoclue.ClientSkeleton + + Object GClueClientSkeleton + + Signals from GClueClient: + handle-start (GDBusMethodInvocation) -> gboolean + handle-stop (GDBusMethodInvocation) -> gboolean + location-updated (gchararray, gchararray) + + Signals from GDBusInterfaceSkeleton: + g-authorize-method (GDBusMethodInvocation) -> gboolean + + Properties from GDBusInterfaceSkeleton: + g-flags -> GDBusInterfaceSkeletonFlags: g-flags + Flags for the interface skeleton + + Signals from GObject: + notify (GParam) + """ + class Props: g_flags: Gio.DBusInterfaceSkeletonFlags active: bool @@ -195,8 +294,9 @@ class ClientSkeleton(Gio.DBusInterfaceSkeleton, Client, Gio.DBusInterface): location: str requested_accuracy_level: int time_threshold: int - props: Props = ... + parent_instance: Gio.DBusInterfaceSkeleton = ... + priv: ClientSkeletonPrivate = ... def __init__( self, g_flags: Gio.DBusInterfaceSkeletonFlags = ..., @@ -207,17 +307,30 @@ class ClientSkeleton(Gio.DBusInterfaceSkeleton, Client, Gio.DBusInterface): requested_accuracy_level: int = ..., time_threshold: int = ..., ): ... - parent_instance: Gio.DBusInterfaceSkeleton = ... - priv: ClientSkeletonPrivate = ... @classmethod def new(cls) -> ClientSkeleton: ... class ClientSkeletonClass(GObject.GPointer): + """ + :Constructors: + + :: + + ClientSkeletonClass() + """ + parent_class: Gio.DBusInterfaceSkeletonClass = ... class ClientSkeletonPrivate(GObject.GPointer): ... -class Location(GObject.Object): +class Location(GObject.GInterface): + """ + Interface GClueLocation + + Signals from GObject: + notify (GParam) + """ + @staticmethod def interface_info() -> Gio.DBusInterfaceInfo: ... @staticmethod @@ -226,6 +339,14 @@ class Location(GObject.Object): ) -> int: ... class LocationIface(GObject.GPointer): + """ + :Constructors: + + :: + + LocationIface() + """ + parent_iface: GObject.TypeInterface = ... get_accuracy: Callable[[Location], float] = ... get_altitude: Callable[[Location], float] = ... @@ -239,8 +360,48 @@ class LocationIface(GObject.GPointer): class LocationProxy( Gio.DBusProxy, Location, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable ): + """ + :Constructors: + + :: + + LocationProxy(**properties) + new_finish(res:Gio.AsyncResult) -> Geoclue.LocationProxy + new_for_bus_finish(res:Gio.AsyncResult) -> Geoclue.LocationProxy + new_for_bus_sync(bus_type:Gio.BusType, flags:Gio.DBusProxyFlags, name:str, object_path:str, cancellable:Gio.Cancellable=None) -> Geoclue.LocationProxy + new_sync(connection:Gio.DBusConnection, flags:Gio.DBusProxyFlags, name:str=None, object_path:str, cancellable:Gio.Cancellable=None) -> Geoclue.LocationProxy + + Object GClueLocationProxy + + Signals from GDBusProxy: + g-properties-changed (GVariant, GStrv) + g-signal (gchararray, gchararray, GVariant) + + Properties from GDBusProxy: + g-connection -> GDBusConnection: g-connection + The connection the proxy is for + g-bus-type -> GBusType: Bus Type + The bus to connect to, if any + g-name -> gchararray: g-name + The well-known or unique name that the proxy is for + g-name-owner -> gchararray: g-name-owner + The unique name for the owner + g-flags -> GDBusProxyFlags: g-flags + Flags for the proxy + g-object-path -> gchararray: g-object-path + The object path the proxy is for + g-interface-name -> gchararray: g-interface-name + The D-Bus interface name the proxy is for + g-default-timeout -> gint: Default Timeout + Timeout for remote method invocation + g-interface-info -> GDBusInterfaceInfo: Interface Information + Interface Information + + Signals from GObject: + notify (GParam) + """ + class Props: - g_bus_type: Gio.BusType g_connection: Gio.DBusConnection g_default_timeout: int g_flags: Gio.DBusProxyFlags @@ -257,8 +418,10 @@ class LocationProxy( longitude: float speed: float timestamp: GLib.Variant - + g_bus_type: Gio.BusType props: Props = ... + parent_instance: Gio.DBusProxy = ... + priv: LocationProxyPrivate = ... def __init__( self, g_bus_type: Gio.BusType = ..., @@ -278,8 +441,6 @@ class LocationProxy( speed: float = ..., timestamp: GLib.Variant = ..., ): ... - parent_instance: Gio.DBusProxy = ... - priv: LocationProxyPrivate = ... @staticmethod def new( connection: Gio.DBusConnection, @@ -324,11 +485,40 @@ class LocationProxy( ) -> LocationProxy: ... class LocationProxyClass(GObject.GPointer): + """ + :Constructors: + + :: + + LocationProxyClass() + """ + parent_class: Gio.DBusProxyClass = ... class LocationProxyPrivate(GObject.GPointer): ... class LocationSkeleton(Gio.DBusInterfaceSkeleton, Location, Gio.DBusInterface): + """ + :Constructors: + + :: + + LocationSkeleton(**properties) + new() -> Geoclue.LocationSkeleton + + Object GClueLocationSkeleton + + Signals from GDBusInterfaceSkeleton: + g-authorize-method (GDBusMethodInvocation) -> gboolean + + Properties from GDBusInterfaceSkeleton: + g-flags -> GDBusInterfaceSkeletonFlags: g-flags + Flags for the interface skeleton + + Signals from GObject: + notify (GParam) + """ + class Props: g_flags: Gio.DBusInterfaceSkeletonFlags accuracy: float @@ -339,8 +529,9 @@ class LocationSkeleton(Gio.DBusInterfaceSkeleton, Location, Gio.DBusInterface): longitude: float speed: float timestamp: GLib.Variant - props: Props = ... + parent_instance: Gio.DBusInterfaceSkeleton = ... + priv: LocationSkeletonPrivate = ... def __init__( self, g_flags: Gio.DBusInterfaceSkeletonFlags = ..., @@ -353,17 +544,30 @@ class LocationSkeleton(Gio.DBusInterfaceSkeleton, Location, Gio.DBusInterface): speed: float = ..., timestamp: GLib.Variant = ..., ): ... - parent_instance: Gio.DBusInterfaceSkeleton = ... - priv: LocationSkeletonPrivate = ... @classmethod def new(cls) -> LocationSkeleton: ... class LocationSkeletonClass(GObject.GPointer): + """ + :Constructors: + + :: + + LocationSkeletonClass() + """ + parent_class: Gio.DBusInterfaceSkeletonClass = ... class LocationSkeletonPrivate(GObject.GPointer): ... -class Manager(GObject.Object): +class Manager(GObject.GInterface): + """ + Interface GClueManager + + Signals from GObject: + notify (GParam) + """ + def call_add_agent( self, arg_id: str, @@ -422,6 +626,14 @@ class Manager(GObject.Object): ) -> int: ... class ManagerIface(GObject.GPointer): + """ + :Constructors: + + :: + + ManagerIface() + """ + parent_iface: GObject.TypeInterface = ... handle_add_agent: Callable[[Manager, Gio.DBusMethodInvocation, str], bool] = ... handle_create_client: Callable[[Manager, Gio.DBusMethodInvocation], bool] = ... @@ -433,8 +645,54 @@ class ManagerIface(GObject.GPointer): class ManagerProxy( Gio.DBusProxy, Manager, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable ): + """ + :Constructors: + + :: + + ManagerProxy(**properties) + new_finish(res:Gio.AsyncResult) -> Geoclue.ManagerProxy + new_for_bus_finish(res:Gio.AsyncResult) -> Geoclue.ManagerProxy + new_for_bus_sync(bus_type:Gio.BusType, flags:Gio.DBusProxyFlags, name:str, object_path:str, cancellable:Gio.Cancellable=None) -> Geoclue.ManagerProxy + new_sync(connection:Gio.DBusConnection, flags:Gio.DBusProxyFlags, name:str=None, object_path:str, cancellable:Gio.Cancellable=None) -> Geoclue.ManagerProxy + + Object GClueManagerProxy + + Signals from GClueManager: + handle-get-client (GDBusMethodInvocation) -> gboolean + handle-create-client (GDBusMethodInvocation) -> gboolean + handle-delete-client (GDBusMethodInvocation, gchararray) -> gboolean + handle-add-agent (GDBusMethodInvocation, gchararray) -> gboolean + + Signals from GDBusProxy: + g-properties-changed (GVariant, GStrv) + g-signal (gchararray, gchararray, GVariant) + + Properties from GDBusProxy: + g-connection -> GDBusConnection: g-connection + The connection the proxy is for + g-bus-type -> GBusType: Bus Type + The bus to connect to, if any + g-name -> gchararray: g-name + The well-known or unique name that the proxy is for + g-name-owner -> gchararray: g-name-owner + The unique name for the owner + g-flags -> GDBusProxyFlags: g-flags + Flags for the proxy + g-object-path -> gchararray: g-object-path + The object path the proxy is for + g-interface-name -> gchararray: g-interface-name + The D-Bus interface name the proxy is for + g-default-timeout -> gint: Default Timeout + Timeout for remote method invocation + g-interface-info -> GDBusInterfaceInfo: Interface Information + Interface Information + + Signals from GObject: + notify (GParam) + """ + class Props: - g_bus_type: Gio.BusType g_connection: Gio.DBusConnection g_default_timeout: int g_flags: Gio.DBusProxyFlags @@ -445,8 +703,10 @@ class ManagerProxy( g_object_path: str available_accuracy_level: int in_use: bool - + g_bus_type: Gio.BusType props: Props = ... + parent_instance: Gio.DBusProxy = ... + priv: ManagerProxyPrivate = ... def __init__( self, g_bus_type: Gio.BusType = ..., @@ -460,8 +720,6 @@ class ManagerProxy( available_accuracy_level: int = ..., in_use: bool = ..., ): ... - parent_instance: Gio.DBusProxy = ... - priv: ManagerProxyPrivate = ... @staticmethod def new( connection: Gio.DBusConnection, @@ -506,43 +764,117 @@ class ManagerProxy( ) -> ManagerProxy: ... class ManagerProxyClass(GObject.GPointer): + """ + :Constructors: + + :: + + ManagerProxyClass() + """ + parent_class: Gio.DBusProxyClass = ... class ManagerProxyPrivate(GObject.GPointer): ... class ManagerSkeleton(Gio.DBusInterfaceSkeleton, Manager, Gio.DBusInterface): + """ + :Constructors: + + :: + + ManagerSkeleton(**properties) + new() -> Geoclue.ManagerSkeleton + + Object GClueManagerSkeleton + + Signals from GClueManager: + handle-get-client (GDBusMethodInvocation) -> gboolean + handle-create-client (GDBusMethodInvocation) -> gboolean + handle-delete-client (GDBusMethodInvocation, gchararray) -> gboolean + handle-add-agent (GDBusMethodInvocation, gchararray) -> gboolean + + Signals from GDBusInterfaceSkeleton: + g-authorize-method (GDBusMethodInvocation) -> gboolean + + Properties from GDBusInterfaceSkeleton: + g-flags -> GDBusInterfaceSkeletonFlags: g-flags + Flags for the interface skeleton + + Signals from GObject: + notify (GParam) + """ + class Props: g_flags: Gio.DBusInterfaceSkeletonFlags available_accuracy_level: int in_use: bool - props: Props = ... + parent_instance: Gio.DBusInterfaceSkeleton = ... + priv: ManagerSkeletonPrivate = ... def __init__( self, g_flags: Gio.DBusInterfaceSkeletonFlags = ..., available_accuracy_level: int = ..., in_use: bool = ..., ): ... - parent_instance: Gio.DBusInterfaceSkeleton = ... - priv: ManagerSkeletonPrivate = ... @classmethod def new(cls) -> ManagerSkeleton: ... class ManagerSkeletonClass(GObject.GPointer): + """ + :Constructors: + + :: + + ManagerSkeletonClass() + """ + parent_class: Gio.DBusInterfaceSkeletonClass = ... class ManagerSkeletonPrivate(GObject.GPointer): ... class Simple(GObject.Object, Gio.AsyncInitable): + """ + :Constructors: + + :: + + Simple(**properties) + new_finish(result:Gio.AsyncResult) -> Geoclue.Simple + new_sync(desktop_id:str, accuracy_level:Geoclue.AccuracyLevel, cancellable:Gio.Cancellable=None) -> Geoclue.Simple + new_with_thresholds_finish(result:Gio.AsyncResult) -> Geoclue.Simple + new_with_thresholds_sync(desktop_id:str, accuracy_level:Geoclue.AccuracyLevel, time_threshold:int, distance_threshold:int, cancellable:Gio.Cancellable=None) -> Geoclue.Simple + + Object GClueSimple + + Properties from GClueSimple: + desktop-id -> gchararray: DesktopID + Desktop ID + accuracy-level -> GClueAccuracyLevel: AccuracyLevel + Requested accuracy level + client -> GClueClientProxy: Client + Client proxy + location -> GClueLocationProxy: Location + Location proxy + distance-threshold -> guint: DistanceThreshold + DistanceThreshold + time-threshold -> guint: TimeThreshold + TimeThreshold + + Signals from GObject: + notify (GParam) + """ + class Props: - accuracy_level: AccuracyLevel client: ClientProxy - desktop_id: str distance_threshold: int location: LocationProxy time_threshold: int - + accuracy_level: AccuracyLevel + desktop_id: str props: Props = ... + parent: GObject.Object = ... + priv: SimplePrivate = ... def __init__( self, accuracy_level: AccuracyLevel = ..., @@ -550,8 +882,6 @@ class Simple(GObject.Object, Gio.AsyncInitable): distance_threshold: int = ..., time_threshold: int = ..., ): ... - parent: GObject.Object = ... - priv: SimplePrivate = ... # override def get_client(self) -> Optional[ClientProxy]: ... def get_location(self) -> Location: ... @@ -595,6 +925,14 @@ class Simple(GObject.Object, Gio.AsyncInitable): ) -> Simple: ... class SimpleClass(GObject.GPointer): + """ + :Constructors: + + :: + + SimpleClass() + """ + parent_class: GObject.ObjectClass = ... class SimplePrivate(GObject.GPointer): ... diff --git a/src/gi-stubs/repository/Ggit.pyi b/src/gi-stubs/repository/Ggit.pyi index 05714f44..26660d2d 100644 --- a/src/gi-stubs/repository/Ggit.pyi +++ b/src/gi-stubs/repository/Ggit.pyi @@ -1,5 +1,6 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple @@ -12,11 +13,10 @@ from gi.repository import GObject BUILD_TYPE: str = "plain" MAJOR_VERSION: int = 1 -MINOR_VERSION: int = 1 -VERSION_S: str = "1.1.0" -_introspection_module = ... # FIXME Constant +MINOR_VERSION: int = 2 +VERSION_S: str = "1.2.0" +_lock = ... # FIXME Constant _namespace: str = "Ggit" -_overrides_module = ... # FIXME Constant _version: str = "1.0" def error_quark() -> int: ... @@ -25,6 +25,14 @@ def init() -> None: ... def message_prettify(message: str, strip_comments: bool, comment_char: int) -> str: ... class AnnotatedCommit(GObject.GBoxed): + """ + :Constructors: + + :: + + new_from_ref(repository:Ggit.Repository, ref:Ggit.Ref) -> Ggit.AnnotatedCommit + """ + def get_id(self) -> Optional[OId]: ... @classmethod def new_from_ref(cls, repository: Repository, ref: Ref) -> AnnotatedCommit: ... @@ -32,9 +40,25 @@ class AnnotatedCommit(GObject.GBoxed): def unref(self) -> None: ... class Blame(Native): + """ + :Constructors: + + :: + + Blame(**properties) + + Object GgitBlame + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... def __init__(self, native: None = ...): ... def from_buffer(self, buffer: Sequence[int]) -> Optional[Blame]: ... @@ -47,6 +71,14 @@ class Blame(Native): def set_flags(blame_options: BlameOptions, flags: BlameFlags) -> None: ... class BlameClass(GObject.GPointer): + """ + :Constructors: + + :: + + BlameClass() + """ + parent_class: NativeClass = ... class BlameHunk(GObject.GBoxed): @@ -63,6 +95,14 @@ class BlameHunk(GObject.GBoxed): def unref(self) -> None: ... class BlameOptions(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Ggit.BlameOptions + """ + def copy(self) -> Optional[BlameOptions]: ... def free(self) -> None: ... def get_maximum_line(self) -> int: ... @@ -79,33 +119,97 @@ class BlameOptions(GObject.GBoxed): def set_oldest_commit(self, oid: Optional[OId] = None) -> None: ... class Blob(Object): + """ + :Constructors: + + :: + + Blob(**properties) + + Object GgitBlob + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... def __init__(self, native: None = ...): ... def get_raw_content(self) -> Optional[bytes]: ... def is_binary(self) -> bool: ... class BlobClass(GObject.GPointer): + """ + :Constructors: + + :: + + BlobClass() + """ + parent_class: ObjectClass = ... class BlobOutputStream(Gio.OutputStream): + """ + :Constructors: + + :: + + BlobOutputStream(**properties) + + Object GgitBlobOutputStream + + Properties from GgitBlobOutputStream: + repository -> GgitRepository: Repository + Repository + + Signals from GObject: + notify (GParam) + """ + class Props: repository: Repository - props: Props = ... parent_instance: Gio.OutputStream = ... def __init__(self, repository: Repository = ...): ... def get_id(self) -> Optional[OId]: ... class BlobOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + BlobOutputStreamClass() + """ + parent_class: Gio.OutputStreamClass = ... class Branch(Ref): + """ + :Constructors: + + :: + + Branch(**properties) + + Object GgitBranch + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Ref = ... def __init__(self, native: None = ...): ... @@ -117,6 +221,14 @@ class Branch(Ref): def set_upstream(self, upstream_branch_name: str) -> None: ... class BranchClass(GObject.GPointer): + """ + :Constructors: + + :: + + BranchClass() + """ + parent_class: RefClass = ... class BranchEnumerator(GObject.GBoxed): @@ -127,34 +239,71 @@ class BranchEnumerator(GObject.GBoxed): def unref(self) -> None: ... class CheckoutOptions(GObject.Object): + """ + :Constructors: + + :: + + CheckoutOptions(**properties) + new() -> Ggit.CheckoutOptions or None + + Object GgitCheckoutOptions + + Properties from GgitCheckoutOptions: + strategy -> GgitCheckoutStrategy: Strategy + Strategy + disable-filters -> gboolean: Disable Filters + Disable filters + dir-mode -> guint: Dir Mode + Dir mode + file-mode -> guint: File Mode + File mode + file-open-flags -> gint: File Open Flags + File open flags + notify-flags -> GgitCheckoutNotifyFlags: Notify Flags + Notify flags + baseline -> GgitTree: Baseline + Baseline + target-directory -> gchararray: Target Directory + Target directory + ancestor-label -> gchararray: Ancestor Label + Ancestor label + our-label -> gchararray: Our Label + Our label + their-label -> gchararray: Their Label + Their label + + Signals from GObject: + notify (GParam) + """ + class Props: - ancestor_label: str - baseline: Tree + ancestor_label: Optional[str] + baseline: Optional[Tree] dir_mode: int disable_filters: bool file_mode: int file_open_flags: int notify_flags: CheckoutNotifyFlags - our_label: str + our_label: Optional[str] strategy: CheckoutStrategy - target_directory: str - their_label: str - + target_directory: Optional[str] + their_label: Optional[str] props: Props = ... parent_instance: GObject.Object = ... def __init__( self, - ancestor_label: str = ..., - baseline: Tree = ..., + ancestor_label: Optional[str] = ..., + baseline: Optional[Tree] = ..., dir_mode: int = ..., disable_filters: bool = ..., file_mode: int = ..., file_open_flags: int = ..., notify_flags: CheckoutNotifyFlags = ..., - our_label: str = ..., + our_label: Optional[str] = ..., strategy: CheckoutStrategy = ..., - target_directory: str = ..., - their_label: str = ..., + target_directory: Optional[str] = ..., + their_label: Optional[str] = ..., ): ... def do_notify( self, @@ -195,6 +344,14 @@ class CheckoutOptions(GObject.Object): def set_their_label(self, label: Optional[str] = None) -> None: ... class CheckoutOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + CheckoutOptionsClass() + """ + parent_class: GObject.ObjectClass = ... notify: Callable[ [CheckoutOptions, CheckoutNotifyFlags, str, DiffFile, DiffFile, DiffFile], int @@ -202,18 +359,39 @@ class CheckoutOptionsClass(GObject.GPointer): progress: Callable[[CheckoutOptions, str, int, int], None] = ... class CherryPickOptions(GObject.Object): + """ + :Constructors: + + :: + + CherryPickOptions(**properties) + new() -> Ggit.CherryPickOptions + + Object GgitCherryPickOptions + + Properties from GgitCherryPickOptions: + mainline -> guint: Mainline + Mainline + checkout-options -> GgitCheckoutOptions: Checkout Options + Checkout options + merge-options -> GgitMergeOptions: Merge Options + Merge options + + Signals from GObject: + notify (GParam) + """ + class Props: checkout_options: CheckoutOptions mainline: int merge_options: MergeOptions - props: Props = ... parent_instance: GObject.Object = ... def __init__( self, - checkout_options: CheckoutOptions = ..., + checkout_options: Optional[CheckoutOptions] = ..., mainline: int = ..., - merge_options: MergeOptions = ..., + merge_options: Optional[MergeOptions] = ..., ): ... def get_checkout_options(self) -> CheckoutOptions: ... def get_mainline(self) -> int: ... @@ -229,9 +407,31 @@ class CherryPickOptions(GObject.Object): ) -> None: ... class CherryPickOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + CherryPickOptionsClass() + """ + parent_class: GObject.ObjectClass = ... class CloneOptions(GObject.Object): + """ + :Constructors: + + :: + + CloneOptions(**properties) + new() -> Ggit.CloneOptions + + Object GgitCloneOptions + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def do_create_remote( self, repository: Repository, name: str, url: str @@ -253,16 +453,40 @@ class CloneOptions(GObject.Object): def set_local(self, local: CloneLocal) -> None: ... class CloneOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + CloneOptionsClass() + """ + parent_class: GObject.ObjectClass = ... create_repository: Callable[[CloneOptions, str, bool], Optional[Repository]] = ... - create_remote: Callable[[CloneOptions, Repository, str, str], Optional[Remote]] = ( - ... - ) + create_remote: Callable[ + [CloneOptions, Repository, str, str], Optional[Remote] + ] = ... class Commit(Object): + """ + :Constructors: + + :: + + Commit(**properties) + + Object GgitCommit + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Object = ... def __init__(self, native: None = ...): ... @@ -286,13 +510,40 @@ class Commit(Object): def get_tree_id(self) -> Optional[OId]: ... class CommitClass(GObject.GPointer): + """ + :Constructors: + + :: + + CommitClass() + """ + parent_class: ObjectClass = ... class CommitParents(GObject.Object): + """ + :Constructors: + + :: + + CommitParents(**properties) + new(commit:Ggit.Commit) -> Ggit.CommitParents + + Object GgitCommitParents + + Properties from GgitCommitParents: + commit -> GgitCommit: Commit + The commit for the parents collection + size -> guint: Size + The size of the parents collection + + Signals from GObject: + notify (GParam) + """ + class Props: commit: Commit size: int - props: Props = ... def __init__(self, commit: Commit = ...): ... def get(self, idx: int) -> Optional[Commit]: ... @@ -302,12 +553,39 @@ class CommitParents(GObject.Object): def new(cls, commit: Commit) -> CommitParents: ... class CommitParentsClass(GObject.GPointer): + """ + :Constructors: + + :: + + CommitParentsClass() + """ + parent_class: GObject.ObjectClass = ... class Config(Native): + """ + :Constructors: + + :: + + Config(**properties) + new() -> Ggit.Config + new_default() -> Ggit.Config + new_from_file(file:Gio.File) -> Ggit.Config + + Object GgitConfig + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... def __init__(self, native: None = ...): ... def add_file(self, file: Gio.File, level: ConfigLevel, force: bool) -> None: ... @@ -340,6 +618,14 @@ class Config(Native): def snapshot(self) -> Config: ... class ConfigClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConfigClass() + """ + parent_class: NativeClass = ... class ConfigEntry(GObject.GBoxed): @@ -350,22 +636,69 @@ class ConfigEntry(GObject.GBoxed): def unref(self) -> None: ... class Cred(Native): + """ + :Constructors: + + :: + + Cred(**properties) + + Object GgitCred + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Native = ... def __init__(self, native: None = ...): ... class CredClass(GObject.GPointer): + """ + :Constructors: + + :: + + CredClass() + """ + parent_class: NativeClass = ... class CredPlaintext(Cred, Gio.Initable): + """ + :Constructors: + + :: + + CredPlaintext(**properties) + new(username:str, password:str) -> Ggit.CredPlaintext + + Object GgitCredPlaintext + + Properties from GgitCredPlaintext: + username -> gchararray: user name + The user name + password -> gchararray: password + The password + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: password: str username: str native: None - props: Props = ... parent_instance: Cred = ... def __init__( @@ -377,13 +710,42 @@ class CredPlaintext(Cred, Gio.Initable): def new(cls, username: str, password: str) -> CredPlaintext: ... class CredPlaintextClass(GObject.GPointer): + """ + :Constructors: + + :: + + CredPlaintextClass() + """ + parent_class: CredClass = ... class CredSshInteractive(Cred, Gio.Initable): + """ + :Constructors: + + :: + + CredSshInteractive(**properties) + new(username:str) -> Ggit.CredSshInteractive + + Object GgitCredSshInteractive + + Properties from GgitCredSshInteractive: + username -> gchararray: user name + The user name + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: username: str native: None - props: Props = ... parent_instance: Cred = ... def __init__(self, username: str = ..., native: None = ...): ... @@ -393,12 +755,28 @@ class CredSshInteractive(Cred, Gio.Initable): def new(cls, username: str) -> CredSshInteractive: ... class CredSshInteractiveClass(GObject.GPointer): + """ + :Constructors: + + :: + + CredSshInteractiveClass() + """ + parent_class: CredClass = ... - prompt: Callable[[CredSshInteractive, Sequence[CredSshInteractivePrompt]], None] = ( - ... - ) + prompt: Callable[ + [CredSshInteractive, Sequence[CredSshInteractivePrompt]], None + ] = ... class CredSshInteractivePrompt(GObject.GBoxed): + """ + :Constructors: + + :: + + new(name:str, instruction:str, text:str, is_masked:bool) -> Ggit.CredSshInteractivePrompt + """ + def get_instruction(self) -> str: ... def get_name(self) -> str: ... def get_response(self) -> str: ... @@ -413,10 +791,31 @@ class CredSshInteractivePrompt(GObject.GBoxed): def unref(self) -> None: ... class CredSshKeyFromAgent(Cred, Gio.Initable): + """ + :Constructors: + + :: + + CredSshKeyFromAgent(**properties) + new(username:str) -> Ggit.CredSshKeyFromAgent or None + + Object GgitCredSshKeyFromAgent + + Properties from GgitCredSshKeyFromAgent: + username -> gchararray: user name + The user name + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: - username: str + username: Optional[str] native: None - props: Props = ... def __init__(self, username: str = ..., native: None = ...): ... def get_username(self) -> Optional[str]: ... @@ -424,13 +823,46 @@ class CredSshKeyFromAgent(Cred, Gio.Initable): def new(cls, username: str) -> Optional[CredSshKeyFromAgent]: ... class CredSshKeyFromAgentClass(GObject.GPointer): + """ + :Constructors: + + :: + + CredSshKeyFromAgentClass() + """ + parent_class: CredClass = ... class Diff(Native): + """ + :Constructors: + + :: + + Diff(**properties) + new_buffers(buffer1:list=None, buffer1_as_path:str=None, buffer2:list=None, buffer2_as_path:str=None, diff_options:Ggit.DiffOptions=None) -> Ggit.Diff or None + new_index_to_workdir(repository:Ggit.Repository, index:Ggit.Index=None, diff_options:Ggit.DiffOptions=None) -> Ggit.Diff or None + new_tree_to_index(repository:Ggit.Repository, old_tree:Ggit.Tree=None, index:Ggit.Index=None, diff_options:Ggit.DiffOptions=None) -> Ggit.Diff or None + new_tree_to_tree(repository:Ggit.Repository, old_tree:Ggit.Tree=None, new_tree:Ggit.Tree=None, diff_options:Ggit.DiffOptions=None) -> Ggit.Diff or None + new_tree_to_workdir(repository:Ggit.Repository, old_tree:Ggit.Tree=None, diff_options:Ggit.DiffOptions=None) -> Ggit.Diff or None + + Object GgitDiff + + Properties from GgitDiff: + repository -> GgitRepository: Repository + Repository + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: repository: Repository native: None - props: Props = ... parent_instance: Native = ... def __init__(self, repository: Repository = ..., native: None = ...): ... @@ -530,6 +962,14 @@ class DiffBinaryFile(GObject.GBoxed): def unref(self) -> None: ... class DiffClass(GObject.GPointer): + """ + :Constructors: + + :: + + DiffClass() + """ + parent_class: NativeClass = ... class DiffDelta(GObject.GBoxed): @@ -551,14 +991,41 @@ class DiffFile(GObject.GBoxed): def unref(self) -> None: ... class DiffFindOptions(GObject.Object): + """ + :Constructors: + + :: + + DiffFindOptions(**properties) + new() -> Ggit.DiffFindOptions or None + + Object GgitDiffFindOptions + + Properties from GgitDiffFindOptions: + flags -> GgitDiffFindFlags: Flags + Flags + rename-threshold -> guint: Rename Threshold + Rename threshold + rename-from-rewrite-threshold -> guint: Rename From Rewrite Threshold + Rename from rewrite threshold + copy-threshold -> guint: Copy Threshold + Copy threshold + rename-limit -> guint: Rename Limit + Rename limit + metric -> GgitDiffSimilarityMetric: Metric + Metric + + Signals from GObject: + notify (GParam) + """ + class Props: copy_threshold: int flags: DiffFindFlags - metric: DiffSimilarityMetric + metric: Optional[DiffSimilarityMetric] rename_from_rewrite_threshold: int rename_limit: int rename_threshold: int - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -586,28 +1053,65 @@ class DiffFindOptions(GObject.Object): def set_rename_threshold(self, threshold: int) -> None: ... class DiffFindOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + DiffFindOptionsClass() + """ + parent_class: GObject.ObjectClass = ... class DiffFormatEmailOptions(GObject.Object): + """ + :Constructors: + + :: + + DiffFormatEmailOptions(**properties) + new() -> Ggit.DiffFormatEmailOptions or None + + Object GgitDiffFormatEmailOptions + + Properties from GgitDiffFormatEmailOptions: + flags -> GgitDiffFormatEmailFlags: Flags + Flags + patch-number -> guint64: Patch Number + Patch number + total-patches -> guint64: Total Patches + Total patches + id -> GgitOId: Id + Id + summary -> gchararray: Summary + Summary + body -> gchararray: Body + Body + author -> GgitSignature: Author + Author + + Signals from GObject: + notify (GParam) + """ + class Props: - author: Signature - body: str + author: Optional[Signature] + body: Optional[str] flags: DiffFormatEmailFlags - id: OId + id: Optional[OId] patch_number: int - summary: str + summary: Optional[str] total_patches: int - props: Props = ... parent_instance: GObject.Object = ... def __init__( self, - author: Signature = ..., - body: str = ..., + author: Optional[Signature] = ..., + body: Optional[str] = ..., flags: DiffFormatEmailFlags = ..., - id: OId = ..., + id: Optional[OId] = ..., patch_number: int = ..., - summary: str = ..., + summary: Optional[str] = ..., total_patches: int = ..., ): ... def get_author(self) -> Optional[Signature]: ... @@ -628,6 +1132,14 @@ class DiffFormatEmailOptions(GObject.Object): def set_total_patches(self, patches: int) -> None: ... class DiffFormatEmailOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + DiffFormatEmailOptionsClass() + """ + parent_class: GObject.ObjectClass = ... class DiffHunk(GObject.GBoxed): @@ -650,14 +1162,41 @@ class DiffLine(GObject.GBoxed): def unref(self) -> None: ... class DiffOptions(GObject.Object): + """ + :Constructors: + + :: + + DiffOptions(**properties) + new() -> Ggit.DiffOptions or None + + Object GgitDiffOptions + + Properties from GgitDiffOptions: + flags -> GgitDiffOption: Flags + Flags + n-context-lines -> gint: N Context Lines + N context lines + n-interhunk-lines -> gint: N Interhunk Lines + N interhunk lines + old-prefix -> gchararray: Old Prefix + Old prefix + new-prefix -> gchararray: New Prefix + New prefix + pathspec -> GStrv: Pathspec + Pathspec + + Signals from GObject: + notify (GParam) + """ + class Props: flags: DiffOption n_context_lines: int n_interhunk_lines: int - new_prefix: str - old_prefix: str - pathspec: list[str] - + new_prefix: Optional[str] + old_prefix: Optional[str] + pathspec: Optional[list[str]] props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -667,7 +1206,7 @@ class DiffOptions(GObject.Object): n_interhunk_lines: int = ..., new_prefix: str = ..., old_prefix: str = ..., - pathspec: Sequence[str] = ..., + pathspec: Optional[Sequence[str]] = ..., ): ... def get_flags(self) -> DiffOption: ... def get_n_context_lines(self) -> int: ... @@ -685,9 +1224,25 @@ class DiffOptions(GObject.Object): def set_pathspec(self, pathspec: Optional[Sequence[str]] = None) -> None: ... class DiffOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + DiffOptionsClass() + """ + parent_class: GObject.ObjectClass = ... class DiffSimilarityMetric(GObject.GBoxed): + """ + :Constructors: + + :: + + new(file_signature:Ggit.DiffSimilarityMetricFileSignatureCallback, buffer_signature:Ggit.DiffSimilarityMetricBufferSignatureCallback, free_signature:Ggit.DiffSimilarityMetricFreeSignatureCallback, similarity:Ggit.DiffSimilarityMetricSimilarityCallback, user_data=None) -> Ggit.DiffSimilarityMetric + """ + def copy(self) -> Optional[DiffSimilarityMetric]: ... def free(self) -> None: ... @classmethod @@ -701,6 +1256,14 @@ class DiffSimilarityMetric(GObject.GBoxed): ) -> DiffSimilarityMetric: ... class FetchOptions(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Ggit.FetchOptions + """ + def copy(self) -> Optional[FetchOptions]: ... def free(self) -> None: ... def get_download_tags(self) -> RemoteDownloadTagsType: ... @@ -713,10 +1276,30 @@ class FetchOptions(GObject.GBoxed): ) -> None: ... class Index(Native, Gio.Initable): + """ + :Constructors: + + :: + + Index(**properties) + + Object GgitIndex + + Properties from GgitIndex: + file -> GFile: File + File + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: file: Gio.File native: None - props: Props = ... def __init__(self, file: Gio.File = ..., native: None = ...): ... def add(self, entry: IndexEntry) -> bool: ... @@ -735,6 +1318,14 @@ class Index(Native, Gio.Initable): def write_tree_to(self, repository: Repository) -> Optional[OId]: ... class IndexClass(GObject.GPointer): + """ + :Constructors: + + :: + + IndexClass() + """ + parent_class: NativeClass = ... class IndexEntries(GObject.GBoxed): @@ -786,9 +1377,27 @@ class IndexEntryResolveUndo(GObject.GBoxed): def unref(self) -> None: ... class Mailmap(Native): + """ + :Constructors: + + :: + + Mailmap(**properties) + new() -> Ggit.Mailmap or None + new_from_repository(repository:Ggit.Repository) -> Ggit.Mailmap or None + + Object GgitMailmap + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... def __init__(self, native: None = ...): ... def add_entry( @@ -806,9 +1415,25 @@ class Mailmap(Native): def resolve_signature(self, signature: Signature) -> Optional[Signature]: ... class MailmapClass(GObject.GPointer): + """ + :Constructors: + + :: + + MailmapClass() + """ + parent_class: NativeClass = ... class MergeOptions(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Ggit.MergeOptions + """ + def copy(self) -> Optional[MergeOptions]: ... def free(self) -> None: ... def get_file_favor(self) -> MergeFileFavor: ... @@ -827,14 +1452,38 @@ class MergeOptions(GObject.GBoxed): def set_target_limit(self, target_limit: int) -> None: ... class Native(ObjectFactoryBase): + """ + :Constructors: + + :: + + Native(**properties) + + Object GgitNative + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: ObjectFactoryBase = ... def __init__(self, native: None = ...): ... class NativeClass(GObject.GPointer): + """ + :Constructors: + + :: + + NativeClass() + """ + parent_class: ObjectFactoryBaseClass = ... class Note(GObject.GBoxed): @@ -844,6 +1493,15 @@ class Note(GObject.GBoxed): def unref(self) -> None: ... class OId(GObject.GBoxed): + """ + :Constructors: + + :: + + new_from_raw(raw:list) -> Ggit.OId or None + new_from_string(str:str) -> Ggit.OId or None + """ + def compare(self, b: OId) -> int: ... def copy(self) -> Optional[OId]: ... def equal(self, b: OId) -> bool: ... @@ -857,12 +1515,26 @@ class OId(GObject.GBoxed): def new_from_string(cls, str: str) -> Optional[OId]: ... def to_string(self) -> Optional[str]: ... -_O = TypeVar("O", bound=Object) - class Object(Native): + """ + :Constructors: + + :: + + Object(**properties) + + Object GgitObject + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Native = ... def __init__(self, native: None = ...): ... @@ -870,14 +1542,34 @@ class Object(Native): def get_owner(self) -> Optional[Repository]: ... class ObjectClass(GObject.GPointer): + """ + :Constructors: + + :: + + ObjectClass() + """ + parent_class: NativeClass = ... class ObjectFactory(GObject.Object): + """ + :Constructors: + + :: + + ObjectFactory(**properties) + + Object GgitObjectFactory + + Signals from GObject: + notify (GParam) + """ + def construct( self, parent_class: GObject.ObjectClass, basetype: Type, - n_construct_properties: int, construct_properties: Sequence[GObject.ObjectConstructParam], ) -> Optional[GObject.Object]: ... @staticmethod @@ -886,15 +1578,53 @@ class ObjectFactory(GObject.Object): def unregister(self, basetype: Type, subtype: Type) -> None: ... class ObjectFactoryBase(GObject.Object): + """ + :Constructors: + + :: + + ObjectFactoryBase(**properties) + + Object GgitObjectFactoryBase + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... class ObjectFactoryBaseClass(GObject.GPointer): + """ + :Constructors: + + :: + + ObjectFactoryBaseClass() + """ + parent_class: GObject.ObjectClass = ... class ObjectFactoryClass(GObject.GPointer): + """ + :Constructors: + + :: + + ObjectFactoryClass() + """ + parent_class: GObject.ObjectClass = ... class Patch(GObject.GBoxed): + """ + :Constructors: + + :: + + new_from_blobs(old_blob:Ggit.Blob=None, old_as_path:str=None, new_blob:Ggit.Blob=None, new_as_path:str=None, diff_options:Ggit.DiffOptions=None) -> Ggit.Patch or None + new_from_diff(diff:Ggit.Diff, idx:int) -> Ggit.Patch or None + """ + def get_delta(self) -> Optional[DiffDelta]: ... def get_hunk(self, idx: int) -> Optional[DiffHunk]: ... def get_line_stats(self) -> Tuple[bool, int, int, int]: ... @@ -917,18 +1647,59 @@ class Patch(GObject.GBoxed): def unref(self) -> None: ... class ProxyOptions(GObject.Object): + """ + :Constructors: + + :: + + ProxyOptions(**properties) + new() -> Ggit.ProxyOptions or None + + Object GgitProxyOptions + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... @classmethod def new(cls) -> Optional[ProxyOptions]: ... class ProxyOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyOptionsClass() + """ + parent_class: GObject.ObjectClass = ... class PushOptions(GObject.Object): + """ + :Constructors: + + :: + + PushOptions(**properties) + new() -> Ggit.PushOptions or None + + Object GgitPushOptions + + Properties from GgitPushOptions: + parallelism -> gint: Parallelism + Parallelism + callbacks -> GgitRemoteCallbacks: Callbacks + Callbacks + + Signals from GObject: + notify (GParam) + """ + class Props: callbacks: RemoteCallbacks parallelism: int - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, callbacks: RemoteCallbacks = ..., parallelism: int = ...): ... @@ -940,12 +1711,36 @@ class PushOptions(GObject.Object): def set_remote_callbacks(self, callbacks: RemoteCallbacks) -> None: ... class PushOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + PushOptionsClass() + """ + parent_class: GObject.ObjectClass = ... class Rebase(Native): + """ + :Constructors: + + :: + + Rebase(**properties) + + Object GgitRebase + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... def __init__(self, native: None = ...): ... def abort(self) -> None: ... @@ -962,6 +1757,14 @@ class Rebase(Native): def next(self) -> Optional[RebaseOperation]: ... class RebaseClass(GObject.GPointer): + """ + :Constructors: + + :: + + RebaseClass() + """ + parent_class: NativeClass = ... class RebaseOperation(GObject.GBoxed): @@ -972,6 +1775,14 @@ class RebaseOperation(GObject.GBoxed): def unref(self) -> None: ... class RebaseOptions(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Ggit.RebaseOptions + """ + def copy(self) -> Optional[RebaseOptions]: ... def free(self) -> None: ... def get_checkout_options(self) -> Optional[CheckoutOptions]: ... @@ -984,9 +1795,25 @@ class RebaseOptions(GObject.GBoxed): def set_rewrite_notes_ref(self, rewrite_notes_ref: str) -> None: ... class Ref(Native): + """ + :Constructors: + + :: + + Ref(**properties) + + Object GgitRef + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Native = ... def __init__(self, native: None = ...): ... @@ -1009,11 +1836,23 @@ class Ref(Native): def lookup(self) -> Optional[Object]: ... def rename(self, new_name: str, force: bool, log_message: str) -> Optional[Ref]: ... def resolve(self) -> Optional[Ref]: ... - def set_symbolic_target(self, target: str, log_message: str) -> Optional[Ref]: ... - def set_target(self, oid: OId, log_message: str) -> Optional[Ref]: ... + def set_symbolic_target( + self, target: str, log_message: Optional[str] = None + ) -> Optional[Ref]: ... + def set_target( + self, oid: OId, log_message: Optional[str] = None + ) -> Optional[Ref]: ... def to_string(self) -> Optional[str]: ... class RefClass(GObject.GPointer): + """ + :Constructors: + + :: + + RefClass() + """ + parent_class: NativeClass = ... class RefSpec(GObject.GBoxed): @@ -1041,9 +1880,27 @@ class ReflogEntry(GObject.GBoxed): def unref(self) -> None: ... class Remote(Native): + """ + :Constructors: + + :: + + Remote(**properties) + new(repository:Ggit.Repository, name:str, url:str) -> Ggit.Remote or None + new_anonymous(repository:Ggit.Repository, url:str) -> Ggit.Remote or None + + Object GgitRemote + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Native = ... def __init__(self, native: None = ...): ... @@ -1085,6 +1942,25 @@ class Remote(Native): ) -> bool: ... class RemoteCallbacks(GObject.Object): + """ + :Constructors: + + :: + + RemoteCallbacks(**properties) + + Object GgitRemoteCallbacks + + Signals from GgitRemoteCallbacks: + update-tips (gchararray, GgitOId, GgitOId) + progress (gchararray) + transfer-progress (GgitTransferProgress) + completion (GgitRemoteCompletionType) + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def do_completion(self, type: RemoteCompletionType) -> None: ... def do_credentials( @@ -1095,6 +1971,14 @@ class RemoteCallbacks(GObject.Object): def do_update_tips(self, refname: str, a: OId, b: OId) -> None: ... class RemoteCallbacksClass(GObject.GPointer): + """ + :Constructors: + + :: + + RemoteCallbacksClass() + """ + parent_class: GObject.ObjectClass = ... progress: Callable[[RemoteCallbacks, str], None] = ... transfer_progress: Callable[[RemoteCallbacks, TransferProgress], None] = ... @@ -1105,6 +1989,14 @@ class RemoteCallbacksClass(GObject.GPointer): ] = ... class RemoteClass(GObject.GPointer): + """ + :Constructors: + + :: + + RemoteClass() + """ + parent_class: NativeClass = ... class RemoteHead(GObject.GBoxed): @@ -1116,16 +2008,48 @@ class RemoteHead(GObject.GBoxed): def unref(self) -> None: ... class Repository(Native, Gio.Initable): + """ + :Constructors: + + :: + + Repository(**properties) + + Object GgitRepository + + Properties from GgitRepository: + url -> gchararray: URL for cloning a repository + The URL for cloning a repository + location -> GFile: Location of repository + The location of the repository + is-bare -> gboolean: Is bare + Is a bare repository + init -> gboolean: Init + Whether to initialize a repository + workdir -> GFile: Path to repository working directory + The path to the repository working directory + head -> GgitRef: Head + Head + clone-options -> GgitCloneOptions: Clone options + Clone options + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: clone_options: CloneOptions - head: Ref + head: Optional[Ref] init: bool is_bare: bool - location: Gio.File + location: Optional[Gio.File] url: str - workdir: Gio.File + workdir: Optional[Gio.File] native: None - props: Props = ... parent: Native = ... def __init__( @@ -1179,6 +2103,15 @@ class Repository(Native, Gio.Initable): tree: Tree, parents: Sequence[Commit], ) -> Optional[OId]: ... + def create_commit_buffer( + self, + author: Signature, + committer: Signature, + message_encoding: Optional[str], + message: str, + tree: Tree, + parents: Sequence[Commit], + ) -> Optional[str]: ... def create_commit_from_ids( self, update_ref: Optional[str], @@ -1189,6 +2122,12 @@ class Repository(Native, Gio.Initable): tree: OId, parents: Sequence[OId], ) -> Optional[OId]: ... + def create_commit_with_signature( + self, + commit_content: str, + signature: Optional[str] = None, + signature_field: Optional[str] = None, + ) -> Optional[OId]: ... def create_index_entry_for_file( self, file: Optional[Gio.File] = None, id: Optional[OId] = None ) -> Optional[IndexEntry]: ... @@ -1355,9 +2294,25 @@ class Repository(Native, Gio.Initable): def tag_foreach(self, callback: Callable[..., int], *user_data: Any) -> bool: ... class RepositoryClass(GObject.GPointer): + """ + :Constructors: + + :: + + RepositoryClass() + """ + parent_class: NativeClass = ... class RevertOptions(GObject.GBoxed): + """ + :Constructors: + + :: + + new(mainline:int, merge_options:Ggit.MergeOptions=None, checkout_options:Ggit.CheckoutOptions=None) -> Ggit.RevertOptions or None + """ + def copy(self) -> Optional[RevertOptions]: ... def free(self) -> None: ... @classmethod @@ -1369,10 +2324,31 @@ class RevertOptions(GObject.GBoxed): ) -> Optional[RevertOptions]: ... class RevisionWalker(Native, Gio.Initable): + """ + :Constructors: + + :: + + RevisionWalker(**properties) + new(repository:Ggit.Repository) -> Ggit.RevisionWalker or None + + Object GgitRevisionWalker + + Properties from GgitRevisionWalker: + repository -> GgitRepository: Repository + The repository where to make the walking + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: - repository: Repository + repository: Optional[Repository] native: None - props: Props = ... parent_instance: Native = ... def __init__(self, repository: Repository = ..., native: None = ...): ... @@ -1393,13 +2369,43 @@ class RevisionWalker(Native, Gio.Initable): def set_sort_mode(self, sort_mode: SortMode) -> None: ... class RevisionWalkerClass(GObject.GPointer): + """ + :Constructors: + + :: + + RevisionWalkerClass() + """ + parent_class: NativeClass = ... class Signature(Native): + """ + :Constructors: + + :: + + Signature(**properties) + new(name:str, email:str, signature_time:GLib.DateTime) -> Ggit.Signature or None + new_now(name:str, email:str) -> Ggit.Signature or None + + Object GgitSignature + + Properties from GgitSignature: + encoding -> gchararray: Encoding + Encoding + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: encoding: str native: None - props: Props = ... def __init__(self, encoding: str = ..., native: None = ...): ... def copy(self) -> Optional[Signature]: ... @@ -1415,9 +2421,25 @@ class Signature(Native): def new_now(cls, name: str, email: str) -> Optional[Signature]: ... class SignatureClass(GObject.GPointer): + """ + :Constructors: + + :: + + SignatureClass() + """ + parent_class: NativeClass = ... class StatusOptions(GObject.GBoxed): + """ + :Constructors: + + :: + + new(options:Ggit.StatusOption, show:Ggit.StatusShow, pathspec:list=None) -> Ggit.StatusOptions + """ + def copy(self) -> Optional[StatusOptions]: ... def free(self) -> None: ... @classmethod @@ -1448,14 +2470,35 @@ class Submodule(GObject.GBoxed): def update(self, init: bool, options: SubmoduleUpdateOptions) -> None: ... class SubmoduleUpdateOptions(GObject.Object): + """ + :Constructors: + + :: + + SubmoduleUpdateOptions(**properties) + new() -> Ggit.SubmoduleUpdateOptions or None + + Object GgitSubmoduleUpdateOptions + + Properties from GgitSubmoduleUpdateOptions: + checkout-options -> GgitCheckoutOptions: Checkout Options + Checkout options + fetch-options -> GgitFetchOptions: Fetch options + Fetch options + + Signals from GObject: + notify (GParam) + """ + class Props: - checkout_options: CheckoutOptions + checkout_options: Optional[CheckoutOptions] fetch_options: FetchOptions - props: Props = ... parent_instance: GObject.Object = ... def __init__( - self, checkout_options: CheckoutOptions = ..., fetch_options: FetchOptions = ... + self, + checkout_options: Optional[CheckoutOptions] = ..., + fetch_options: Optional[FetchOptions] = ..., ): ... def get_checkout_options(self) -> Optional[CheckoutOptions]: ... def get_fetch_options(self) -> FetchOptions: ... @@ -1469,12 +2512,36 @@ class SubmoduleUpdateOptions(GObject.Object): ) -> None: ... class SubmoduleUpdateOptionsClass(GObject.GPointer): + """ + :Constructors: + + :: + + SubmoduleUpdateOptionsClass() + """ + parent_class: GObject.ObjectClass = ... class Tag(Object): + """ + :Constructors: + + :: + + Tag(**properties) + + Object GgitTag + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Object = ... def __init__(self, native: None = ...): ... @@ -1487,6 +2554,14 @@ class Tag(Object): def peel(self) -> Optional[Object]: ... class TagClass(GObject.GPointer): + """ + :Constructors: + + :: + + TagClass() + """ + parent_class: ObjectClass = ... class TransferProgress(GObject.GBoxed): @@ -1498,9 +2573,25 @@ class TransferProgress(GObject.GBoxed): def get_total_objects(self) -> int: ... class Tree(Object): + """ + :Constructors: + + :: + + Tree(**properties) + + Object GgitTree + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Object = ... def __init__(self, native: None = ...): ... @@ -1514,9 +2605,25 @@ class Tree(Object): ) -> None: ... class TreeBuilder(Native): + """ + :Constructors: + + :: + + TreeBuilder(**properties) + + Object GgitTreeBuilder + + Properties from GgitNative: + native -> gpointer: Native + Native + + Signals from GObject: + notify (GParam) + """ + class Props: native: None - props: Props = ... parent_instance: Native = ... def __init__(self, native: None = ...): ... @@ -1529,9 +2636,25 @@ class TreeBuilder(Native): def write(self) -> Optional[OId]: ... class TreeBuilderClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeBuilderClass() + """ + parent_class: NativeClass = ... class TreeClass(GObject.GPointer): + """ + :Constructors: + + :: + + TreeClass() + """ + parent_class: ObjectClass = ... class TreeEntry(GObject.GBoxed): diff --git a/src/gi-stubs/repository/Gio.pyi b/src/gi-stubs/repository/Gio.pyi index ecebbe20..83bb6238 100644 --- a/src/gi-stubs/repository/Gio.pyi +++ b/src/gi-stubs/repository/Gio.pyi @@ -1,11 +1,11 @@ from typing import Any from typing import Callable -from typing import Iterator from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple from typing import Type +from typing import TypeVar from gi.repository import GLib from gi.repository import GObject @@ -77,8 +77,20 @@ FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: str = "standard::symlink-target" FILE_ATTRIBUTE_STANDARD_TARGET_URI: str = "standard::target-uri" FILE_ATTRIBUTE_STANDARD_TYPE: str = "standard::type" FILE_ATTRIBUTE_THUMBNAILING_FAILED: str = "thumbnail::failed" +FILE_ATTRIBUTE_THUMBNAILING_FAILED_LARGE: str = "thumbnail::failed-large" +FILE_ATTRIBUTE_THUMBNAILING_FAILED_NORMAL: str = "thumbnail::failed-normal" +FILE_ATTRIBUTE_THUMBNAILING_FAILED_XLARGE: str = "thumbnail::failed-xlarge" +FILE_ATTRIBUTE_THUMBNAILING_FAILED_XXLARGE: str = "thumbnail::failed-xxlarge" FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: str = "thumbnail::is-valid" +FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_LARGE: str = "thumbnail::is-valid-large" +FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_NORMAL: str = "thumbnail::is-valid-normal" +FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XLARGE: str = "thumbnail::is-valid-xlarge" +FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XXLARGE: str = "thumbnail::is-valid-xxlarge" FILE_ATTRIBUTE_THUMBNAIL_PATH: str = "thumbnail::path" +FILE_ATTRIBUTE_THUMBNAIL_PATH_LARGE: str = "thumbnail::path-large" +FILE_ATTRIBUTE_THUMBNAIL_PATH_NORMAL: str = "thumbnail::path-normal" +FILE_ATTRIBUTE_THUMBNAIL_PATH_XLARGE: str = "thumbnail::path-xlarge" +FILE_ATTRIBUTE_THUMBNAIL_PATH_XXLARGE: str = "thumbnail::path-xxlarge" FILE_ATTRIBUTE_TIME_ACCESS: str = "time::access" FILE_ATTRIBUTE_TIME_ACCESS_NSEC: str = "time::access-nsec" FILE_ATTRIBUTE_TIME_ACCESS_USEC: str = "time::access-usec" @@ -110,6 +122,7 @@ MENU_ATTRIBUTE_ACTION_NAMESPACE: str = "action-namespace" MENU_ATTRIBUTE_ICON: str = "icon" MENU_ATTRIBUTE_LABEL: str = "label" MENU_ATTRIBUTE_TARGET: str = "target" +MENU_EXPORTER_MAX_SECTION_SIZE: int = 1000 MENU_LINK_SECTION: str = "section" MENU_LINK_SUBMENU: str = "submenu" NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: str = "gio-native-volume-monitor" @@ -302,6 +315,7 @@ def dtls_client_connection_new( def dtls_server_connection_new( base_socket: DatagramBased, certificate: Optional[TlsCertificate] = None ) -> DtlsServerConnection: ... +def file_new_build_filenamev(args: Sequence[str]) -> File: ... def file_new_for_commandline_arg(arg: str) -> File: ... def file_new_for_commandline_arg_and_cwd(arg: str, cwd: str) -> File: ... def file_new_for_path(path: str) -> File: ... @@ -325,11 +339,9 @@ def file_new_tmp_dir_finish(result: AsyncResult) -> File: ... def file_new_tmp_finish(result: AsyncResult) -> Tuple[File, FileIOStream]: ... def file_parse_name(parse_name: str) -> File: ... def icon_deserialize(value: GLib.Variant) -> Optional[Icon]: ... -def icon_hash(icon: None) -> int: ... def icon_new_for_string(str: str) -> Icon: ... def initable_newv( object_type: Type, - n_parameters: int, parameters: Sequence[GObject.Parameter], cancellable: Optional[Cancellable] = None, ) -> GObject.Object: ... @@ -452,6 +464,13 @@ def unix_mounts_changed_since(time: int) -> bool: ... def unix_mounts_get() -> Tuple[list[UnixMountEntry], int]: ... class Action(GObject.GInterface): + """ + Interface GAction + + Signals from GObject: + notify (GParam) + """ + def activate(self, parameter: Optional[GLib.Variant] = None) -> None: ... def change_state(self, value: GLib.Variant) -> None: ... def get_enabled(self) -> bool: ... @@ -470,6 +489,14 @@ class Action(GObject.GInterface): ) -> str: ... class ActionEntry(GObject.GPointer): + """ + :Constructors: + + :: + + ActionEntry() + """ + name: str = ... activate: Callable[..., None] = ... parameter_type: str = ... @@ -478,6 +505,13 @@ class ActionEntry(GObject.GPointer): padding: list[int] = ... class ActionGroup(GObject.GInterface): + """ + Interface GActionGroup + + Signals from GObject: + notify (GParam) + """ + def action_added(self, action_name: str) -> None: ... def action_enabled_changed(self, action_name: str, enabled: bool) -> None: ... def action_removed(self, action_name: str) -> None: ... @@ -502,6 +536,14 @@ class ActionGroup(GObject.GInterface): ]: ... class ActionGroupInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ActionGroupInterface() + """ + g_iface: GObject.TypeInterface = ... has_action: Callable[[ActionGroup, str], bool] = ... list_actions: Callable[[ActionGroup], list[str]] = ... @@ -509,9 +551,9 @@ class ActionGroupInterface(GObject.GPointer): get_action_parameter_type: Callable[ [ActionGroup, str], Optional[GLib.VariantType] ] = ... - get_action_state_type: Callable[[ActionGroup, str], Optional[GLib.VariantType]] = ( - ... - ) + get_action_state_type: Callable[ + [ActionGroup, str], Optional[GLib.VariantType] + ] = ... get_action_state_hint: Callable[[ActionGroup, str], Optional[GLib.Variant]] = ... get_action_state: Callable[[ActionGroup, str], Optional[GLib.Variant]] = ... change_action_state: Callable[[ActionGroup, str, GLib.Variant], None] = ... @@ -528,6 +570,14 @@ class ActionGroupInterface(GObject.GPointer): ] = ... class ActionInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ActionInterface() + """ + g_iface: GObject.TypeInterface = ... get_name: Callable[[Action], str] = ... get_parameter_type: Callable[[Action], Optional[GLib.VariantType]] = ... @@ -539,18 +589,41 @@ class ActionInterface(GObject.GPointer): activate: Callable[[Action, Optional[GLib.Variant]], None] = ... class ActionMap(GObject.GInterface): + """ + Interface GActionMap + + Signals from GObject: + notify (GParam) + """ + def add_action(self, action: Action) -> None: ... def add_action_entries(self, entries, user_data=None): ... # FIXME Function def lookup_action(self, action_name: str) -> Optional[Action]: ... def remove_action(self, action_name: str) -> None: ... + def remove_action_entries(self, entries: Sequence[ActionEntry]) -> None: ... class ActionMapInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ActionMapInterface() + """ + g_iface: GObject.TypeInterface = ... lookup_action: Callable[[ActionMap, str], Optional[Action]] = ... add_action: Callable[[ActionMap, Action], None] = ... remove_action: Callable[[ActionMap, str], None] = ... class AppInfo(GObject.GInterface): + """ + Interface GAppInfo + + Signals from GObject: + notify (GParam) + """ + def add_supports_type(self, content_type: str) -> bool: ... def can_delete(self) -> bool: ... def can_remove_supports_type(self) -> bool: ... @@ -646,6 +719,14 @@ class AppInfo(GObject.GInterface): def supports_uris(self) -> bool: ... class AppInfoIface(GObject.GPointer): + """ + :Constructors: + + :: + + AppInfoIface() + """ + g_iface: GObject.TypeInterface = ... dup: Callable[[AppInfo], AppInfo] = ... equal: Callable[[AppInfo, AppInfo], bool] = ... @@ -678,10 +759,45 @@ class AppInfoIface(GObject.GPointer): launch_uris_finish: Callable[[AppInfo, AsyncResult], bool] = ... class AppInfoMonitor(GObject.Object): + """ + :Constructors: + + :: + + AppInfoMonitor(**properties) + + Object GAppInfoMonitor + + Signals from GAppInfoMonitor: + changed () + + Signals from GObject: + notify (GParam) + """ + @staticmethod def get() -> AppInfoMonitor: ... class AppLaunchContext(GObject.Object): + """ + :Constructors: + + :: + + AppLaunchContext(**properties) + new() -> Gio.AppLaunchContext + + Object GAppLaunchContext + + Signals from GAppLaunchContext: + launch-failed (gchararray) + launch-started (GAppInfo, GVariant) + launched (GAppInfo, GVariant) + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: AppLaunchContextPrivate = ... def do_get_display(self, info: AppInfo, files: list[File]) -> Optional[str]: ... @@ -703,6 +819,14 @@ class AppLaunchContext(GObject.Object): def unsetenv(self, variable: str) -> None: ... class AppLaunchContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + AppLaunchContextClass() + """ + parent_class: GObject.ObjectClass = ... get_display: Callable[[AppLaunchContext, AppInfo, list[File]], Optional[str]] = ... get_startup_notify_id: Callable[ @@ -718,26 +842,72 @@ class AppLaunchContextClass(GObject.GPointer): class AppLaunchContextPrivate(GObject.GPointer): ... class Application(GObject.Object, ActionGroup, ActionMap): + """ + :Constructors: + + :: + + Application(**properties) + new(application_id:str=None, flags:Gio.ApplicationFlags) -> Gio.Application + + Object GApplication + + Signals from GApplication: + startup () + shutdown () + activate () + open (gpointer, gint, gchararray) + command-line (GApplicationCommandLine) -> gint + handle-local-options (GVariantDict) -> gint + name-lost () -> gboolean + + Properties from GApplication: + application-id -> gchararray: Application identifier + The unique identifier for the application + flags -> GApplicationFlags: Application flags + Flags specifying the behaviour of the application + resource-base-path -> gchararray: Resource base path + The base resource path for the application + is-registered -> gboolean: Is registered + If g_application_register() has been called + is-remote -> gboolean: Is remote + If this application instance is remote + inactivity-timeout -> guint: Inactivity timeout + Time (ms) to stay alive after becoming idle + action-group -> GActionGroup: Action group + The group of actions that the application exports + is-busy -> gboolean: Is busy + If this application is currently marked busy + + Signals from GActionGroup: + action-added (gchararray) + action-removed (gchararray) + action-enabled-changed (gchararray, gboolean) + action-state-changed (gchararray, GVariant) + + Signals from GObject: + notify (GParam) + """ + class Props: - action_group: ActionGroup - application_id: str + application_id: Optional[str] flags: ApplicationFlags inactivity_timeout: int is_busy: bool is_registered: bool is_remote: bool - resource_base_path: str - + resource_base_path: Optional[str] + action_group: Optional[ActionGroup] props: Props = ... parent_instance: GObject.Object = ... priv: ApplicationPrivate = ... def __init__( self, - action_group: ActionGroup = ..., - application_id: str = ..., + action_group: Optional[ActionGroup] = ..., + application_id: Optional[str] = ..., flags: ApplicationFlags = ..., inactivity_timeout: int = ..., - resource_base_path: str = ..., + resource_base_path: Optional[str] = ..., ): ... def activate(self) -> None: ... def add_main_option( @@ -817,6 +987,14 @@ class Application(GObject.Object, ActionGroup, ActionMap): def withdraw_notification(self, id: str) -> None: ... class ApplicationClass(GObject.GPointer): + """ + :Constructors: + + :: + + ApplicationClass() + """ + parent_class: GObject.ObjectClass = ... startup: Callable[[Application], None] = ... activate: Callable[[Application], None] = ... @@ -836,12 +1014,34 @@ class ApplicationClass(GObject.GPointer): padding: list[None] = ... class ApplicationCommandLine(GObject.Object): + """ + :Constructors: + + :: + + ApplicationCommandLine(**properties) + + Object GApplicationCommandLine + + Properties from GApplicationCommandLine: + arguments -> GVariant: Commandline arguments + The commandline that caused this ::command-line signal emission + options -> GVariant: Options + The options sent along with the commandline + platform-data -> GVariant: Platform data + Platform-specific data for the commandline + is-remote -> gboolean: Is remote + TRUE if this is a remote commandline + + Signals from GObject: + notify (GParam) + """ + class Props: - arguments: GLib.Variant is_remote: bool + arguments: GLib.Variant options: GLib.Variant platform_data: GLib.Variant - props: Props = ... parent_instance: GObject.Object = ... priv: ApplicationCommandLinePrivate = ... @@ -867,6 +1067,14 @@ class ApplicationCommandLine(GObject.Object): def set_exit_status(self, exit_status: int) -> None: ... class ApplicationCommandLineClass(GObject.GPointer): + """ + :Constructors: + + :: + + ApplicationCommandLineClass() + """ + parent_class: GObject.ObjectClass = ... print_literal: Callable[[ApplicationCommandLine, str], None] = ... printerr_literal: Callable[[ApplicationCommandLine, str], None] = ... @@ -877,6 +1085,13 @@ class ApplicationCommandLinePrivate(GObject.GPointer): ... class ApplicationPrivate(GObject.GPointer): ... class AsyncInitable(GObject.GInterface): + """ + Interface GAsyncInitable + + Signals from GObject: + notify (GParam) + """ + def init_async( self, io_priority: int, @@ -898,28 +1113,75 @@ class AsyncInitable(GObject.GInterface): ) -> None: ... class AsyncInitableIface(GObject.GPointer): + """ + :Constructors: + + :: + + AsyncInitableIface() + """ + g_iface: GObject.TypeInterface = ... init_async: Callable[..., None] = ... init_finish: Callable[[AsyncInitable, AsyncResult], bool] = ... class AsyncResult(GObject.GInterface): + """ + Interface GAsyncResult + + Signals from GObject: + notify (GParam) + """ + def get_source_object(self) -> Optional[GObject.Object]: ... def get_user_data(self) -> None: ... def is_tagged(self, source_tag: None) -> bool: ... def legacy_propagate_error(self) -> bool: ... class AsyncResultIface(GObject.GPointer): + """ + :Constructors: + + :: + + AsyncResultIface() + """ + g_iface: GObject.TypeInterface = ... get_user_data: Callable[[AsyncResult], None] = ... get_source_object: Callable[[AsyncResult], Optional[GObject.Object]] = ... is_tagged: Callable[[AsyncResult, None], bool] = ... class BufferedInputStream(FilterInputStream, Seekable): + """ + :Constructors: + + :: + + BufferedInputStream(**properties) + new(base_stream:Gio.InputStream) -> Gio.InputStream + new_sized(base_stream:Gio.InputStream, size:int) -> Gio.InputStream + + Object GBufferedInputStream + + Properties from GBufferedInputStream: + buffer-size -> guint: Buffer Size + The size of the backend buffer + + Properties from GFilterInputStream: + base-stream -> GInputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: buffer_size: int base_stream: InputStream close_base_stream: bool - props: Props = ... parent_instance: FilterInputStream = ... priv: BufferedInputStreamPrivate = ... @@ -961,6 +1223,14 @@ class BufferedInputStream(FilterInputStream, Seekable): def set_buffer_size(self, size: int) -> None: ... class BufferedInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + BufferedInputStreamClass() + """ + parent_class: FilterInputStreamClass = ... fill: Callable[[BufferedInputStream, int, Optional[Cancellable]], int] = ... fill_async: Callable[..., None] = ... @@ -974,12 +1244,38 @@ class BufferedInputStreamClass(GObject.GPointer): class BufferedInputStreamPrivate(GObject.GPointer): ... class BufferedOutputStream(FilterOutputStream, Seekable): + """ + :Constructors: + + :: + + BufferedOutputStream(**properties) + new(base_stream:Gio.OutputStream) -> Gio.OutputStream + new_sized(base_stream:Gio.OutputStream, size:int) -> Gio.OutputStream + + Object GBufferedOutputStream + + Properties from GBufferedOutputStream: + buffer-size -> guint: Buffer Size + The size of the backend buffer + auto-grow -> gboolean: Auto-grow + Whether the buffer should automatically grow + + Properties from GFilterOutputStream: + base-stream -> GOutputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: auto_grow: bool buffer_size: int base_stream: OutputStream close_base_stream: bool - props: Props = ... parent_instance: FilterOutputStream = ... priv: BufferedOutputStreamPrivate = ... @@ -1002,6 +1298,14 @@ class BufferedOutputStream(FilterOutputStream, Seekable): def set_buffer_size(self, size: int) -> None: ... class BufferedOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + BufferedOutputStreamClass() + """ + parent_class: FilterOutputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -1009,9 +1313,26 @@ class BufferedOutputStreamClass(GObject.GPointer): class BufferedOutputStreamPrivate(GObject.GPointer): ... class BytesIcon(GObject.Object, Icon, LoadableIcon): + """ + :Constructors: + + :: + + BytesIcon(**properties) + new(bytes:GLib.Bytes) -> Gio.BytesIcon + + Object GBytesIcon + + Properties from GBytesIcon: + bytes -> GBytes: bytes + The bytes containing the icon + + Signals from GObject: + notify (GParam) + """ + class Props: bytes: GLib.Bytes - props: Props = ... def __init__(self, bytes: GLib.Bytes = ...): ... def get_bytes(self) -> GLib.Bytes: ... @@ -1019,10 +1340,27 @@ class BytesIcon(GObject.Object, Icon, LoadableIcon): def new(cls, bytes: GLib.Bytes) -> BytesIcon: ... class Cancellable(GObject.Object): + """ + :Constructors: + + :: + + Cancellable(**properties) + new() -> Gio.Cancellable + + Object GCancellable + + Signals from GCancellable: + cancelled () + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: CancellablePrivate = ... def cancel(self) -> None: ... - def connect(self, callback: Callable[[], None], *data: Any) -> int: ... + def connect(self, callback: Callable[..., None], *data: Any) -> int: ... def disconnect(self, handler_id: int) -> None: ... def do_cancelled(self) -> None: ... @staticmethod @@ -1040,6 +1378,14 @@ class Cancellable(GObject.Object): def source_new(self) -> GLib.Source: ... class CancellableClass(GObject.GPointer): + """ + :Constructors: + + :: + + CancellableClass() + """ + parent_class: GObject.ObjectClass = ... cancelled: Callable[[Optional[Cancellable]], None] = ... _g_reserved1: None = ... @@ -1051,11 +1397,32 @@ class CancellableClass(GObject.GPointer): class CancellablePrivate(GObject.GPointer): ... class CharsetConverter(GObject.Object, Converter, Initable): + """ + :Constructors: + + :: + + CharsetConverter(**properties) + new(to_charset:str, from_charset:str) -> Gio.CharsetConverter + + Object GCharsetConverter + + Properties from GCharsetConverter: + from-charset -> gchararray: From Charset + The character encoding to convert from + to-charset -> gchararray: To Charset + The character encoding to convert to + use-fallback -> gboolean: Fallback enabled + Use fallback (of form \) for invalid bytes + + Signals from GObject: + notify (GParam) + """ + class Props: from_charset: str to_charset: str use_fallback: bool - props: Props = ... def __init__( self, from_charset: str = ..., to_charset: str = ..., use_fallback: bool = ... @@ -1067,28 +1434,74 @@ class CharsetConverter(GObject.Object, Converter, Initable): def set_use_fallback(self, use_fallback: bool) -> None: ... class CharsetConverterClass(GObject.GPointer): + """ + :Constructors: + + :: + + CharsetConverterClass() + """ + parent_class: GObject.ObjectClass = ... class Converter(GObject.GInterface): + """ + Interface GConverter + + Signals from GObject: + notify (GParam) + """ + def convert( self, inbuf: Sequence[int], outbuf: Sequence[int], flags: ConverterFlags ) -> Tuple[ConverterResult, int, int]: ... def reset(self) -> None: ... class ConverterIface(GObject.GPointer): + """ + :Constructors: + + :: + + ConverterIface() + """ + g_iface: GObject.TypeInterface = ... convert: Callable[ - [Converter, Optional[Sequence[int]], Optional[Sequence[int]], ConverterFlags], + [Converter, Optional[Sequence[int]], Sequence[int], ConverterFlags], Tuple[ConverterResult, int, int], ] = ... reset: Callable[[Converter], None] = ... class ConverterInputStream(FilterInputStream, PollableInputStream): + """ + :Constructors: + + :: + + ConverterInputStream(**properties) + new(base_stream:Gio.InputStream, converter:Gio.Converter) -> Gio.InputStream + + Object GConverterInputStream + + Properties from GConverterInputStream: + converter -> GConverter: Converter + The converter object + + Properties from GFilterInputStream: + base-stream -> GInputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: converter: Converter base_stream: InputStream close_base_stream: bool - props: Props = ... parent_instance: FilterInputStream = ... priv: ConverterInputStreamPrivate = ... @@ -1105,6 +1518,14 @@ class ConverterInputStream(FilterInputStream, PollableInputStream): ) -> ConverterInputStream: ... class ConverterInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConverterInputStreamClass() + """ + parent_class: FilterInputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -1115,11 +1536,34 @@ class ConverterInputStreamClass(GObject.GPointer): class ConverterInputStreamPrivate(GObject.GPointer): ... class ConverterOutputStream(FilterOutputStream, PollableOutputStream): + """ + :Constructors: + + :: + + ConverterOutputStream(**properties) + new(base_stream:Gio.OutputStream, converter:Gio.Converter) -> Gio.OutputStream + + Object GConverterOutputStream + + Properties from GConverterOutputStream: + converter -> GConverter: Converter + The converter object + + Properties from GFilterOutputStream: + base-stream -> GOutputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: converter: Converter base_stream: OutputStream close_base_stream: bool - props: Props = ... parent_instance: FilterOutputStream = ... priv: ConverterOutputStreamPrivate = ... @@ -1136,6 +1580,14 @@ class ConverterOutputStream(FilterOutputStream, PollableOutputStream): ) -> ConverterOutputStream: ... class ConverterOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + ConverterOutputStreamClass() + """ + parent_class: FilterOutputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -1146,6 +1598,20 @@ class ConverterOutputStreamClass(GObject.GPointer): class ConverterOutputStreamPrivate(GObject.GPointer): ... class Credentials(GObject.Object): + """ + :Constructors: + + :: + + Credentials(**properties) + new() -> Gio.Credentials + + Object GCredentials + + Signals from GObject: + notify (GParam) + """ + def get_unix_pid(self) -> int: ... def get_unix_user(self) -> int: ... def is_same_user(self, other_credentials: Credentials) -> bool: ... @@ -1158,12 +1624,39 @@ class Credentials(GObject.Object): class CredentialsClass(GObject.GPointer): ... class DBusActionGroup(GObject.Object, ActionGroup, RemoteActionGroup): + """ + :Constructors: + + :: + + DBusActionGroup(**properties) + + Object GDBusActionGroup + + Signals from GActionGroup: + action-added (gchararray) + action-removed (gchararray) + action-enabled-changed (gchararray, gboolean) + action-state-changed (gchararray, GVariant) + + Signals from GObject: + notify (GParam) + """ + @staticmethod def get( connection: DBusConnection, bus_name: Optional[str], object_path: str ) -> DBusActionGroup: ... class DBusAnnotationInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + DBusAnnotationInfo() + """ + ref_count: int = ... key: str = ... value: str = ... @@ -1176,6 +1669,14 @@ class DBusAnnotationInfo(GObject.GBoxed): def unref(self) -> None: ... class DBusArgInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + DBusArgInfo() + """ + ref_count: int = ... name: str = ... signature: str = ... @@ -1184,6 +1685,24 @@ class DBusArgInfo(GObject.GBoxed): def unref(self) -> None: ... class DBusAuthObserver(GObject.Object): + """ + :Constructors: + + :: + + DBusAuthObserver(**properties) + new() -> Gio.DBusAuthObserver + + Object GDBusAuthObserver + + Signals from GDBusAuthObserver: + authorize-authenticated-peer (GIOStream, GCredentials) -> gboolean + allow-mechanism (gchararray) -> gboolean + + Signals from GObject: + notify (GParam) + """ + def allow_mechanism(self, mechanism: str) -> bool: ... def authorize_authenticated_peer( self, stream: IOStream, credentials: Optional[Credentials] = None @@ -1192,17 +1711,56 @@ class DBusAuthObserver(GObject.Object): def new(cls) -> DBusAuthObserver: ... class DBusConnection(GObject.Object, AsyncInitable, Initable): + """ + :Constructors: + + :: + + DBusConnection(**properties) + new_finish(res:Gio.AsyncResult) -> Gio.DBusConnection + new_for_address_finish(res:Gio.AsyncResult) -> Gio.DBusConnection + new_for_address_sync(address:str, flags:Gio.DBusConnectionFlags, observer:Gio.DBusAuthObserver=None, cancellable:Gio.Cancellable=None) -> Gio.DBusConnection + new_sync(stream:Gio.IOStream, guid:str=None, flags:Gio.DBusConnectionFlags, observer:Gio.DBusAuthObserver=None, cancellable:Gio.Cancellable=None) -> Gio.DBusConnection + + Object GDBusConnection + + Signals from GDBusConnection: + closed (gboolean, GError) + + Properties from GDBusConnection: + stream -> GIOStream: IO Stream + The underlying streams used for I/O + address -> gchararray: Address + D-Bus address specifying potential socket endpoints + flags -> GDBusConnectionFlags: Flags + Flags + guid -> gchararray: GUID + GUID of the server peer + unique-name -> gchararray: unique-name + Unique name of bus connection + closed -> gboolean: Closed + Whether the connection is closed + exit-on-close -> gboolean: Exit on close + Whether the process is terminated when the connection is closed + capabilities -> GDBusCapabilityFlags: Capabilities + Capabilities + authentication-observer -> GDBusAuthObserver: Authentication Observer + Object used to assist in the authentication process + + Signals from GObject: + notify (GParam) + """ + class Props: - address: str - authentication_observer: DBusAuthObserver capabilities: DBusCapabilityFlags closed: bool exit_on_close: bool flags: DBusConnectionFlags guid: str stream: IOStream - unique_name: str - + unique_name: Optional[str] + address: str + authentication_observer: DBusAuthObserver props: Props = ... def __init__( self, @@ -1408,15 +1966,38 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): def unregister_subtree(self, registration_id: int) -> bool: ... class DBusErrorEntry(GObject.GPointer): + """ + :Constructors: + + :: + + DBusErrorEntry() + """ + error_code: int = ... dbus_error_name: str = ... class DBusInterface(GObject.GInterface): + """ + Interface GDBusInterface + + Signals from GObject: + notify (GParam) + """ + def get_info(self) -> DBusInterfaceInfo: ... def get_object(self) -> Optional[DBusObject]: ... def set_object(self, object: Optional[DBusObject] = None) -> None: ... class DBusInterfaceIface(GObject.GPointer): + """ + :Constructors: + + :: + + DBusInterfaceIface() + """ + parent_iface: GObject.TypeInterface = ... get_info: Callable[[DBusInterface], DBusInterfaceInfo] = ... get_object: Callable[[DBusInterface], Optional[DBusObject]] = ... @@ -1424,6 +2005,14 @@ class DBusInterfaceIface(GObject.GPointer): dup_object: Callable[[DBusInterface], Optional[DBusObject]] = ... class DBusInterfaceInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + DBusInterfaceInfo() + """ + ref_count: int = ... name: str = ... methods: list[DBusMethodInfo] = ... @@ -1440,9 +2029,28 @@ class DBusInterfaceInfo(GObject.GBoxed): def unref(self) -> None: ... class DBusInterfaceSkeleton(GObject.Object, DBusInterface): + """ + :Constructors: + + :: + + DBusInterfaceSkeleton(**properties) + + Object GDBusInterfaceSkeleton + + Signals from GDBusInterfaceSkeleton: + g-authorize-method (GDBusMethodInvocation) -> gboolean + + Properties from GDBusInterfaceSkeleton: + g-flags -> GDBusInterfaceSkeletonFlags: g-flags + Flags for the interface skeleton + + Signals from GObject: + notify (GParam) + """ + class Props: g_flags: DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: GObject.Object = ... priv: DBusInterfaceSkeletonPrivate = ... @@ -1451,6 +2059,7 @@ class DBusInterfaceSkeleton(GObject.Object, DBusInterface): def do_g_authorize_method(self, invocation: DBusMethodInvocation) -> bool: ... def do_get_info(self) -> DBusInterfaceInfo: ... def do_get_properties(self) -> GLib.Variant: ... + def do_get_vtable(self) -> DBusInterfaceVTable: ... def export(self, connection: DBusConnection, object_path: str) -> bool: ... def flush(self) -> None: ... def get_connection(self) -> Optional[DBusConnection]: ... @@ -1459,15 +2068,24 @@ class DBusInterfaceSkeleton(GObject.Object, DBusInterface): def get_info(self) -> DBusInterfaceInfo: ... def get_object_path(self) -> Optional[str]: ... def get_properties(self) -> GLib.Variant: ... + def get_vtable(self) -> DBusInterfaceVTable: ... def has_connection(self, connection: DBusConnection) -> bool: ... def set_flags(self, flags: DBusInterfaceSkeletonFlags) -> None: ... def unexport(self) -> None: ... def unexport_from_connection(self, connection: DBusConnection) -> None: ... class DBusInterfaceSkeletonClass(GObject.GPointer): + """ + :Constructors: + + :: + + DBusInterfaceSkeletonClass() + """ + parent_class: GObject.ObjectClass = ... get_info: Callable[[DBusInterfaceSkeleton], DBusInterfaceInfo] = ... - get_vtable: None = ... + get_vtable: Callable[[DBusInterfaceSkeleton], DBusInterfaceVTable] = ... get_properties: Callable[[DBusInterfaceSkeleton], GLib.Variant] = ... flush: Callable[[DBusInterfaceSkeleton], None] = ... vfunc_padding: list[None] = ... @@ -1479,21 +2097,65 @@ class DBusInterfaceSkeletonClass(GObject.GPointer): class DBusInterfaceSkeletonPrivate(GObject.GPointer): ... class DBusInterfaceVTable(GObject.GPointer): + """ + :Constructors: + + :: + + DBusInterfaceVTable() + """ + method_call: Callable[..., None] = ... get_property: Callable[..., GLib.Variant] = ... set_property: Callable[..., bool] = ... padding: list[None] = ... class DBusMenuModel(MenuModel): + """ + :Constructors: + + :: + + DBusMenuModel(**properties) + + Object GDBusMenuModel + + Signals from GMenuModel: + items-changed (gint, gint, gint) + + Signals from GObject: + notify (GParam) + """ + @staticmethod def get( connection: DBusConnection, bus_name: Optional[str], object_path: str ) -> DBusMenuModel: ... class DBusMessage(GObject.Object): + """ + :Constructors: + + :: + + DBusMessage(**properties) + new() -> Gio.DBusMessage + new_from_blob(blob:list, capabilities:Gio.DBusCapabilityFlags) -> Gio.DBusMessage + new_method_call(name:str=None, path:str, interface_:str=None, method:str) -> Gio.DBusMessage + new_signal(path:str, interface_:str, signal:str) -> Gio.DBusMessage + + Object GDBusMessage + + Properties from GDBusMessage: + locked -> gboolean: Locked + Whether the message is locked + + Signals from GObject: + notify (GParam) + """ + class Props: locked: bool - props: Props = ... @staticmethod def bytes_needed(blob: Sequence[int]) -> int: ... @@ -1559,6 +2221,14 @@ class DBusMessage(GObject.Object): def to_gerror(self) -> bool: ... class DBusMethodInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + DBusMethodInfo() + """ + ref_count: int = ... name: str = ... in_args: list[DBusArgInfo] = ... @@ -1568,6 +2238,19 @@ class DBusMethodInfo(GObject.GBoxed): def unref(self) -> None: ... class DBusMethodInvocation(GObject.Object): + """ + :Constructors: + + :: + + DBusMethodInvocation(**properties) + + Object GDBusMethodInvocation + + Signals from GObject: + notify (GParam) + """ + def get_connection(self) -> DBusConnection: ... def get_interface_name(self) -> str: ... def get_message(self) -> DBusMessage: ... @@ -1588,6 +2271,15 @@ class DBusMethodInvocation(GObject.Object): ) -> None: ... class DBusNodeInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + DBusNodeInfo() + new_for_xml(xml_data:str) -> Gio.DBusNodeInfo + """ + ref_count: int = ... path: str = ... interfaces: list[DBusInterfaceInfo] = ... @@ -1601,11 +2293,26 @@ class DBusNodeInfo(GObject.GBoxed): def unref(self) -> None: ... class DBusObject(GObject.GInterface): + """ + Interface GDBusObject + + Signals from GObject: + notify (GParam) + """ + def get_interface(self, interface_name: str) -> Optional[DBusInterface]: ... def get_interfaces(self) -> list[DBusInterface]: ... def get_object_path(self) -> str: ... class DBusObjectIface(GObject.GPointer): + """ + :Constructors: + + :: + + DBusObjectIface() + """ + parent_iface: GObject.TypeInterface = ... get_object_path: Callable[[DBusObject], str] = ... get_interfaces: Callable[[DBusObject], list[DBusInterface]] = ... @@ -1614,6 +2321,13 @@ class DBusObjectIface(GObject.GPointer): interface_removed: Callable[[DBusObject, DBusInterface], None] = ... class DBusObjectManager(GObject.GInterface): + """ + Interface GDBusObjectManager + + Signals from GObject: + notify (GParam) + """ + def get_interface( self, object_path: str, interface_name: str ) -> Optional[DBusInterface]: ... @@ -1624,17 +2338,63 @@ class DBusObjectManager(GObject.GInterface): class DBusObjectManagerClient( GObject.Object, AsyncInitable, DBusObjectManager, Initable ): + """ + :Constructors: + + :: + + DBusObjectManagerClient(**properties) + new_finish(res:Gio.AsyncResult) -> Gio.DBusObjectManagerClient + new_for_bus_finish(res:Gio.AsyncResult) -> Gio.DBusObjectManagerClient + new_for_bus_sync(bus_type:Gio.BusType, flags:Gio.DBusObjectManagerClientFlags, name:str, object_path:str, get_proxy_type_func:Gio.DBusProxyTypeFunc=None, get_proxy_type_user_data=None, cancellable:Gio.Cancellable=None) -> Gio.DBusObjectManagerClient + new_sync(connection:Gio.DBusConnection, flags:Gio.DBusObjectManagerClientFlags, name:str=None, object_path:str, get_proxy_type_func:Gio.DBusProxyTypeFunc=None, get_proxy_type_user_data=None, cancellable:Gio.Cancellable=None) -> Gio.DBusObjectManagerClient + + Object GDBusObjectManagerClient + + Signals from GDBusObjectManagerClient: + interface-proxy-signal (GDBusObjectProxy, GDBusProxy, gchararray, gchararray, GVariant) + interface-proxy-properties-changed (GDBusObjectProxy, GDBusProxy, GVariant, GStrv) + + Properties from GDBusObjectManagerClient: + bus-type -> GBusType: Bus Type + The bus to connect to, if any + connection -> GDBusConnection: Connection + The connection to use + flags -> GDBusObjectManagerClientFlags: Flags + Flags for the proxy manager + object-path -> gchararray: Object Path + The object path of the control object + name -> gchararray: Name + Name that the manager is for + name-owner -> gchararray: Name Owner + The owner of the name we are watching + get-proxy-type-func -> gpointer: GDBusProxyTypeFunc Function Pointer + The GDBusProxyTypeFunc pointer to use + get-proxy-type-user-data -> gpointer: GDBusProxyTypeFunc User Data + The GDBusProxyTypeFunc user_data + get-proxy-type-destroy-notify -> gpointer: GDBusProxyTypeFunc user data free function + The GDBusProxyTypeFunc user data free function + + Signals from GDBusObjectManager: + object-added (GDBusObject) + object-removed (GDBusObject) + interface-added (GDBusObject, GDBusInterface) + interface-removed (GDBusObject, GDBusInterface) + + Signals from GObject: + notify (GParam) + """ + class Props: - bus_type: BusType connection: DBusConnection flags: DBusObjectManagerClientFlags get_proxy_type_destroy_notify: None get_proxy_type_func: None get_proxy_type_user_data: None name: str - name_owner: str + name_owner: Optional[str] object_path: str - + bus_type: BusType props: Props = ... parent_instance: GObject.Object = ... priv: DBusObjectManagerClientPrivate = ... @@ -1718,6 +2478,14 @@ class DBusObjectManagerClient( ) -> DBusObjectManagerClient: ... class DBusObjectManagerClientClass(GObject.GPointer): + """ + :Constructors: + + :: + + DBusObjectManagerClientClass() + """ + parent_class: GObject.ObjectClass = ... interface_proxy_signal: Callable[ [DBusObjectManagerClient, DBusObjectProxy, DBusProxy, str, str, GLib.Variant], @@ -1731,31 +2499,66 @@ class DBusObjectManagerClientClass(GObject.GPointer): class DBusObjectManagerClientPrivate(GObject.GPointer): ... class DBusObjectManagerIface(GObject.GPointer): + """ + :Constructors: + + :: + + DBusObjectManagerIface() + """ + parent_iface: GObject.TypeInterface = ... get_object_path: Callable[[DBusObjectManager], str] = ... get_objects: Callable[[DBusObjectManager], list[DBusObject]] = ... get_object: Callable[[DBusObjectManager, str], Optional[DBusObject]] = ... - get_interface: Callable[[DBusObjectManager, str, str], Optional[DBusInterface]] = ( - ... - ) + get_interface: Callable[ + [DBusObjectManager, str, str], Optional[DBusInterface] + ] = ... object_added: Callable[[DBusObjectManager, DBusObject], None] = ... object_removed: Callable[[DBusObjectManager, DBusObject], None] = ... - interface_added: Callable[[DBusObjectManager, DBusObject, DBusInterface], None] = ( - ... - ) + interface_added: Callable[ + [DBusObjectManager, DBusObject, DBusInterface], None + ] = ... interface_removed: Callable[ [DBusObjectManager, DBusObject, DBusInterface], None ] = ... class DBusObjectManagerServer(GObject.Object, DBusObjectManager): + """ + :Constructors: + + :: + + DBusObjectManagerServer(**properties) + new(object_path:str) -> Gio.DBusObjectManagerServer + + Object GDBusObjectManagerServer + + Properties from GDBusObjectManagerServer: + connection -> GDBusConnection: Connection + The connection to export objects on + object-path -> gchararray: Object Path + The object path to register the manager object at + + Signals from GDBusObjectManager: + object-added (GDBusObject) + object-removed (GDBusObject) + interface-added (GDBusObject, GDBusInterface) + interface-removed (GDBusObject, GDBusInterface) + + Signals from GObject: + notify (GParam) + """ + class Props: - connection: DBusConnection + connection: Optional[DBusConnection] object_path: str - props: Props = ... parent_instance: GObject.Object = ... priv: DBusObjectManagerServerPrivate = ... - def __init__(self, connection: DBusConnection = ..., object_path: str = ...): ... + def __init__( + self, connection: Optional[DBusConnection] = ..., object_path: str = ... + ): ... def export(self, object: DBusObjectSkeleton) -> None: ... def export_uniquely(self, object: DBusObjectSkeleton) -> None: ... def get_connection(self) -> Optional[DBusConnection]: ... @@ -1766,16 +2569,47 @@ class DBusObjectManagerServer(GObject.Object, DBusObjectManager): def unexport(self, object_path: str) -> bool: ... class DBusObjectManagerServerClass(GObject.GPointer): + """ + :Constructors: + + :: + + DBusObjectManagerServerClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class DBusObjectManagerServerPrivate(GObject.GPointer): ... class DBusObjectProxy(GObject.Object, DBusObject): - class Props: + """ + :Constructors: + + :: + + DBusObjectProxy(**properties) + new(connection:Gio.DBusConnection, object_path:str) -> Gio.DBusObjectProxy + + Object GDBusObjectProxy + + Properties from GDBusObjectProxy: + g-object-path -> gchararray: Object Path + The object path of the proxy + g-connection -> GDBusConnection: Connection + The connection of the proxy + + Signals from GDBusObject: + interface-added (GDBusInterface) + interface-removed (GDBusInterface) + + Signals from GObject: + notify (GParam) + """ + + class Props: g_connection: DBusConnection g_object_path: str - props: Props = ... parent_instance: GObject.Object = ... priv: DBusObjectProxyPrivate = ... @@ -1787,15 +2621,47 @@ class DBusObjectProxy(GObject.Object, DBusObject): def new(cls, connection: DBusConnection, object_path: str) -> DBusObjectProxy: ... class DBusObjectProxyClass(GObject.GPointer): + """ + :Constructors: + + :: + + DBusObjectProxyClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class DBusObjectProxyPrivate(GObject.GPointer): ... class DBusObjectSkeleton(GObject.Object, DBusObject): + """ + :Constructors: + + :: + + DBusObjectSkeleton(**properties) + new(object_path:str) -> Gio.DBusObjectSkeleton + + Object GDBusObjectSkeleton + + Signals from GDBusObjectSkeleton: + authorize-method (GDBusInterfaceSkeleton, GDBusMethodInvocation) -> gboolean + + Properties from GDBusObjectSkeleton: + g-object-path -> gchararray: Object Path + The object path where the object is exported + + Signals from GDBusObject: + interface-added (GDBusInterface) + interface-removed (GDBusInterface) + + Signals from GObject: + notify (GParam) + """ + class Props: g_object_path: str - props: Props = ... parent_instance: GObject.Object = ... priv: DBusObjectSkeletonPrivate = ... @@ -1812,6 +2678,14 @@ class DBusObjectSkeleton(GObject.Object, DBusObject): def set_object_path(self, object_path: str) -> None: ... class DBusObjectSkeletonClass(GObject.GPointer): + """ + :Constructors: + + :: + + DBusObjectSkeletonClass() + """ + parent_class: GObject.ObjectClass = ... authorize_method: Callable[ [DBusObjectSkeleton, DBusInterfaceSkeleton, DBusMethodInvocation], bool @@ -1821,6 +2695,14 @@ class DBusObjectSkeletonClass(GObject.GPointer): class DBusObjectSkeletonPrivate(GObject.GPointer): ... class DBusPropertyInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + DBusPropertyInfo() + """ + ref_count: int = ... name: str = ... signature: str = ... @@ -1830,8 +2712,127 @@ class DBusPropertyInfo(GObject.GBoxed): def unref(self) -> None: ... class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): + """ + Provide comfortable and pythonic method calls. + + This marshalls the method arguments into a GVariant, invokes the + call_sync() method on the DBusProxy object, and unmarshalls the result + GVariant back into a Python tuple. + + The first argument always needs to be the D-Bus signature tuple of the + method call. Example: + + proxy = Gio.DBusProxy.new_sync(...) + result = proxy.MyMethod('(is)', 42, 'hello') + + The exception are methods which take no arguments, like + proxy.MyMethod('()'). For these you can omit the signature and just write + proxy.MyMethod(). + + Optional keyword arguments: + + - timeout: timeout for the call in milliseconds (default to D-Bus timeout) + + - flags: Combination of Gio.DBusCallFlags.* + + - result_handler: Do an asynchronous method call and invoke + result_handler(proxy_object, result, user_data) when it finishes. + + - error_handler: If the asynchronous call raises an exception, + error_handler(proxy_object, exception, user_data) is called when it + finishes. If error_handler is not given, result_handler is called with + the exception object as result instead. + + - user_data: Optional user data to pass to result_handler for + asynchronous calls. + + Example for asynchronous calls: + + def mymethod_done(proxy, result, user_data): + if isinstance(result, Exception): + # handle error + else: + # do something with result + + proxy.MyMethod('(is)', 42, 'hello', + result_handler=mymethod_done, user_data='data') + + Object GDBusProxy + + Provide comfortable and pythonic method calls. + + This marshalls the method arguments into a GVariant, invokes the + call_sync() method on the DBusProxy object, and unmarshalls the result + GVariant back into a Python tuple. + + The first argument always needs to be the D-Bus signature tuple of the + method call. Example: + + proxy = Gio.DBusProxy.new_sync(...) + result = proxy.MyMethod('(is)', 42, 'hello') + + The exception are methods which take no arguments, like + proxy.MyMethod('()'). For these you can omit the signature and just write + proxy.MyMethod(). + + Optional keyword arguments: + + - timeout: timeout for the call in milliseconds (default to D-Bus timeout) + + - flags: Combination of Gio.DBusCallFlags.* + + - result_handler: Do an asynchronous method call and invoke + result_handler(proxy_object, result, user_data) when it finishes. + + - error_handler: If the asynchronous call raises an exception, + error_handler(proxy_object, exception, user_data) is called when it + finishes. If error_handler is not given, result_handler is called with + the exception object as result instead. + + - user_data: Optional user data to pass to result_handler for + asynchronous calls. + + Example for asynchronous calls: + + def mymethod_done(proxy, result, user_data): + if isinstance(result, Exception): + # handle error + else: + # do something with result + + proxy.MyMethod('(is)', 42, 'hello', + result_handler=mymethod_done, user_data='data') + + + Signals from GDBusProxy: + g-properties-changed (GVariant, GStrv) + g-signal (gchararray, gchararray, GVariant) + + Properties from GDBusProxy: + g-connection -> GDBusConnection: g-connection + The connection the proxy is for + g-bus-type -> GBusType: Bus Type + The bus to connect to, if any + g-name -> gchararray: g-name + The well-known or unique name that the proxy is for + g-name-owner -> gchararray: g-name-owner + The unique name for the owner + g-flags -> GDBusProxyFlags: g-flags + Flags for the proxy + g-object-path -> gchararray: g-object-path + The object path the proxy is for + g-interface-name -> gchararray: g-interface-name + The D-Bus interface name the proxy is for + g-default-timeout -> gint: Default Timeout + Timeout for remote method invocation + g-interface-info -> GDBusInterfaceInfo: Interface Information + Interface Information + + Signals from GObject: + notify (GParam) + """ + class Props: - g_bus_type: BusType g_connection: DBusConnection g_default_timeout: int g_flags: DBusProxyFlags @@ -1840,7 +2841,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): g_name: str g_name_owner: str g_object_path: str - + g_bus_type: BusType props: Props = ... parent_instance: GObject.Object = ... priv: DBusProxyPrivate = ... @@ -1970,6 +2971,14 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): def set_interface_info(self, info: Optional[DBusInterfaceInfo] = None) -> None: ... class DBusProxyClass(GObject.GPointer): + """ + :Constructors: + + :: + + DBusProxyClass() + """ + parent_class: GObject.ObjectClass = ... g_properties_changed: Callable[[DBusProxy, GLib.Variant, str], None] = ... g_signal: Callable[[DBusProxy, str, str, GLib.Variant], None] = ... @@ -1978,6 +2987,37 @@ class DBusProxyClass(GObject.GPointer): class DBusProxyPrivate(GObject.GPointer): ... class DBusServer(GObject.Object, Initable): + """ + :Constructors: + + :: + + DBusServer(**properties) + new_sync(address:str, flags:Gio.DBusServerFlags, guid:str, observer:Gio.DBusAuthObserver=None, cancellable:Gio.Cancellable=None) -> Gio.DBusServer + + Object GDBusServer + + Signals from GDBusServer: + new-connection (GDBusConnection) -> gboolean + + Properties from GDBusServer: + address -> gchararray: Address + The address to listen on + client-address -> gchararray: Client Address + The address clients can use + flags -> GDBusServerFlags: Flags + Flags for the server + guid -> gchararray: GUID + The guid of the server + active -> gboolean: Active + Whether the server is currently active + authentication-observer -> GDBusAuthObserver: Authentication Observer + Object used to assist in the authentication process + + Signals from GObject: + notify (GParam) + """ + class Props: active: bool address: str @@ -1985,7 +3025,6 @@ class DBusServer(GObject.Object, Initable): client_address: str flags: DBusServerFlags guid: str - props: Props = ... def __init__( self, @@ -2011,6 +3050,14 @@ class DBusServer(GObject.Object, Initable): def stop(self) -> None: ... class DBusSignalInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + DBusSignalInfo() + """ + ref_count: int = ... name: str = ... args: list[DBusArgInfo] = ... @@ -2019,19 +3066,56 @@ class DBusSignalInfo(GObject.GBoxed): def unref(self) -> None: ... class DBusSubtreeVTable(GObject.GPointer): + """ + :Constructors: + + :: + + DBusSubtreeVTable() + """ + enumerate: Callable[..., list[str]] = ... introspect: Callable[..., Optional[list[DBusInterfaceInfo]]] = ... dispatch: Callable[..., Optional[DBusInterfaceVTable]] = ... padding: list[None] = ... class DataInputStream(BufferedInputStream, Seekable): + """ + :Constructors: + + :: + + DataInputStream(**properties) + new(base_stream:Gio.InputStream) -> Gio.DataInputStream + + Object GDataInputStream + + Properties from GDataInputStream: + byte-order -> GDataStreamByteOrder: Byte order + The byte order + newline-type -> GDataStreamNewlineType: Newline type + The accepted types of line ending + + Properties from GBufferedInputStream: + buffer-size -> guint: Buffer Size + The size of the backend buffer + + Properties from GFilterInputStream: + base-stream -> GInputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: byte_order: DataStreamByteOrder newline_type: DataStreamNewlineType buffer_size: int base_stream: InputStream close_base_stream: bool - props: Props = ... parent_instance: BufferedInputStream = ... priv: DataInputStreamPrivate = ... @@ -2103,6 +3187,14 @@ class DataInputStream(BufferedInputStream, Seekable): def set_newline_type(self, type: DataStreamNewlineType) -> None: ... class DataInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + DataInputStreamClass() + """ + parent_class: BufferedInputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -2113,11 +3205,34 @@ class DataInputStreamClass(GObject.GPointer): class DataInputStreamPrivate(GObject.GPointer): ... class DataOutputStream(FilterOutputStream, Seekable): + """ + :Constructors: + + :: + + DataOutputStream(**properties) + new(base_stream:Gio.OutputStream) -> Gio.DataOutputStream + + Object GDataOutputStream + + Properties from GDataOutputStream: + byte-order -> GDataStreamByteOrder: Byte order + The byte order + + Properties from GFilterOutputStream: + base-stream -> GOutputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: byte_order: DataStreamByteOrder base_stream: OutputStream close_base_stream: bool - props: Props = ... parent_instance: FilterOutputStream = ... priv: DataOutputStreamPrivate = ... @@ -2157,6 +3272,14 @@ class DataOutputStream(FilterOutputStream, Seekable): def set_byte_order(self, order: DataStreamByteOrder) -> None: ... class DataOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + DataOutputStreamClass() + """ + parent_class: FilterOutputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -2167,6 +3290,13 @@ class DataOutputStreamClass(GObject.GPointer): class DataOutputStreamPrivate(GObject.GPointer): ... class DatagramBased(GObject.GInterface): + """ + Interface GDatagramBased + + Signals from GObject: + notify (GParam) + """ + def condition_check(self, condition: GLib.IOCondition) -> GLib.IOCondition: ... def condition_wait( self, @@ -2193,6 +3323,14 @@ class DatagramBased(GObject.GInterface): ) -> int: ... class DatagramBasedInterface(GObject.GPointer): + """ + :Constructors: + + :: + + DatagramBasedInterface() + """ + g_iface: GObject.TypeInterface = ... receive_messages: Callable[ [DatagramBased, Sequence[InputMessage], int, int, Optional[Cancellable]], int @@ -2209,14 +3347,41 @@ class DatagramBasedInterface(GObject.GPointer): ] = ... class DebugController(GObject.GInterface): + """ + Interface GDebugController + + Signals from GObject: + notify (GParam) + """ + def get_debug_enabled(self) -> bool: ... def set_debug_enabled(self, debug_enabled: bool) -> None: ... class DebugControllerDBus(GObject.Object, DebugController, Initable): + """ + :Constructors: + + :: + + DebugControllerDBus(**properties) + new(connection:Gio.DBusConnection, cancellable:Gio.Cancellable=None) -> Gio.DebugControllerDBus or None + + Object GDebugControllerDBus + + Signals from GDebugControllerDBus: + authorize (GDBusMethodInvocation) -> gboolean + + Properties from GDebugControllerDBus: + connection -> GDBusConnection: D-Bus Connection + The D-Bus connection to expose the debugging interface on. + + Signals from GObject: + notify (GParam) + """ + class Props: connection: DBusConnection debug_enabled: bool - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, connection: DBusConnection = ..., debug_enabled: bool = ...): ... @@ -2228,17 +3393,52 @@ class DebugControllerDBus(GObject.Object, DebugController, Initable): def stop(self) -> None: ... class DebugControllerDBusClass(GObject.GPointer): + """ + :Constructors: + + :: + + DebugControllerDBusClass() + """ + parent_class: GObject.ObjectClass = ... authorize: Callable[[DebugControllerDBus, DBusMethodInvocation], bool] = ... padding: list[None] = ... class DebugControllerInterface(GObject.GPointer): + """ + :Constructors: + + :: + + DebugControllerInterface() + """ + g_iface: GObject.TypeInterface = ... class DesktopAppInfo(GObject.Object, AppInfo): - class Props: - filename: str + """ + :Constructors: + + :: + + DesktopAppInfo(**properties) + new(desktop_id:str) -> Gio.DesktopAppInfo or None + new_from_filename(filename:str) -> Gio.DesktopAppInfo or None + new_from_keyfile(key_file:GLib.KeyFile) -> Gio.DesktopAppInfo or None + + Object GDesktopAppInfo + Properties from GDesktopAppInfo: + filename -> gchararray: Filename + + + Signals from GObject: + notify (GParam) + """ + + class Props: + filename: Optional[str] props: Props = ... def __init__(self, filename: str = ...): ... def get_action_name(self, action_name: str) -> str: ... @@ -2294,18 +3494,48 @@ class DesktopAppInfo(GObject.Object, AppInfo): def set_desktop_env(desktop_env: str) -> None: ... class DesktopAppInfoClass(GObject.GPointer): + """ + :Constructors: + + :: + + DesktopAppInfoClass() + """ + parent_class: GObject.ObjectClass = ... class DesktopAppInfoLookup(GObject.GInterface): + """ + Interface GDesktopAppInfoLookup + + Signals from GObject: + notify (GParam) + """ + def get_default_for_uri_scheme(self, uri_scheme: str) -> Optional[AppInfo]: ... class DesktopAppInfoLookupIface(GObject.GPointer): + """ + :Constructors: + + :: + + DesktopAppInfoLookupIface() + """ + g_iface: GObject.TypeInterface = ... get_default_for_uri_scheme: Callable[ [DesktopAppInfoLookup, str], Optional[AppInfo] ] = ... class Drive(GObject.GInterface): + """ + Interface GDrive + + Signals from GObject: + notify (GParam) + """ + def can_eject(self) -> bool: ... def can_poll_for_media(self) -> bool: ... def can_start(self) -> bool: ... @@ -2368,6 +3598,14 @@ class Drive(GObject.GInterface): def stop_finish(self, result: AsyncResult) -> bool: ... class DriveIface(GObject.GPointer): + """ + :Constructors: + + :: + + DriveIface() + """ + g_iface: GObject.TypeInterface = ... changed: Callable[[Drive], None] = ... disconnected: Callable[[Drive], None] = ... @@ -2403,6 +3641,13 @@ class DriveIface(GObject.GPointer): is_removable: Callable[[Drive], bool] = ... class DtlsClientConnection(GObject.GInterface): + """ + Interface GDtlsClientConnection + + Signals from GObject: + notify (GParam) + """ + def get_accepted_cas(self) -> list[Sequence[int]]: ... def get_server_identity(self) -> SocketConnectable: ... def get_validation_flags(self) -> TlsCertificateFlags: ... @@ -2414,9 +3659,24 @@ class DtlsClientConnection(GObject.GInterface): def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ... class DtlsClientConnectionInterface(GObject.GPointer): + """ + :Constructors: + + :: + + DtlsClientConnectionInterface() + """ + g_iface: GObject.TypeInterface = ... class DtlsConnection(GObject.GInterface): + """ + Interface GDtlsConnection + + Signals from GObject: + notify (GParam) + """ + def close(self, cancellable: Optional[Cancellable] = None) -> bool: ... def close_async( self, @@ -2477,6 +3737,14 @@ class DtlsConnection(GObject.GInterface): def shutdown_finish(self, result: AsyncResult) -> bool: ... class DtlsConnectionInterface(GObject.GPointer): + """ + :Constructors: + + :: + + DtlsConnectionInterface() + """ + g_iface: GObject.TypeInterface = ... accept_certificate: Callable[ [DtlsConnection, TlsCertificate, TlsCertificateFlags], bool @@ -2496,19 +3764,54 @@ class DtlsConnectionInterface(GObject.GPointer): ] = ... class DtlsServerConnection(GObject.GInterface): + """ + Interface GDtlsServerConnection + + Signals from GObject: + notify (GParam) + """ + @staticmethod def new( base_socket: DatagramBased, certificate: Optional[TlsCertificate] = None ) -> DtlsServerConnection: ... class DtlsServerConnectionInterface(GObject.GPointer): + """ + :Constructors: + + :: + + DtlsServerConnectionInterface() + """ + g_iface: GObject.TypeInterface = ... class Emblem(GObject.Object, Icon): + """ + :Constructors: + + :: + + Emblem(**properties) + new(icon:Gio.Icon) -> Gio.Emblem + new_with_origin(icon:Gio.Icon, origin:Gio.EmblemOrigin) -> Gio.Emblem + + Object GEmblem + + Properties from GEmblem: + icon -> GObject: The icon of the emblem + The actual icon of the emblem + origin -> GEmblemOrigin: GEmblem’s origin + Tells which origin the emblem is derived from + + Signals from GObject: + notify (GParam) + """ + class Props: icon: GObject.Object origin: EmblemOrigin - props: Props = ... def __init__(self, icon: GObject.Object = ..., origin: EmblemOrigin = ...): ... def get_icon(self) -> Icon: ... @@ -2521,9 +3824,26 @@ class Emblem(GObject.Object, Icon): class EmblemClass(GObject.GPointer): ... class EmblemedIcon(GObject.Object, Icon): + """ + :Constructors: + + :: + + EmblemedIcon(**properties) + new(icon:Gio.Icon, emblem:Gio.Emblem=None) -> Gio.EmblemedIcon + + Object GEmblemedIcon + + Properties from GEmblemedIcon: + gicon -> GIcon: The base GIcon + The GIcon to attach emblems to + + Signals from GObject: + notify (GParam) + """ + class Props: gicon: Icon - props: Props = ... parent_instance: GObject.Object = ... priv: EmblemedIconPrivate = ... @@ -2536,11 +3856,26 @@ class EmblemedIcon(GObject.Object, Icon): def new(cls, icon: Icon, emblem: Optional[Emblem] = None) -> EmblemedIcon: ... class EmblemedIconClass(GObject.GPointer): + """ + :Constructors: + + :: + + EmblemedIconClass() + """ + parent_class: GObject.ObjectClass = ... class EmblemedIconPrivate(GObject.GPointer): ... class File(GObject.GInterface): + """ + Interface GFile + + Signals from GObject: + notify (GParam) + """ + def append_to( self, flags: FileCreateFlags, cancellable: Optional[Cancellable] = None ) -> FileOutputStream: ... @@ -2771,6 +4106,8 @@ class File(GObject.GInterface): ) -> None: ... def move_finish(self, result: AsyncResult) -> bool: ... @staticmethod + def new_build_filenamev(args: Sequence[str]) -> File: ... + @staticmethod def new_for_commandline_arg(arg: str) -> File: ... @staticmethod def new_for_commandline_arg_and_cwd(arg: str, cwd: str) -> File: ... @@ -3070,11 +4407,28 @@ class File(GObject.GInterface): def unmount_mountable_with_operation_finish(self, result: AsyncResult) -> bool: ... class FileAttributeInfo(GObject.GPointer): + """ + :Constructors: + + :: + + FileAttributeInfo() + """ + name: str = ... type: FileAttributeType = ... flags: FileAttributeInfoFlags = ... class FileAttributeInfoList(GObject.GBoxed): + """ + :Constructors: + + :: + + FileAttributeInfoList() + new() -> Gio.FileAttributeInfoList + """ + infos: FileAttributeInfo = ... n_infos: int = ... def add( @@ -3088,6 +4442,14 @@ class FileAttributeInfoList(GObject.GBoxed): def unref(self) -> None: ... class FileAttributeMatcher(GObject.GBoxed): + """ + :Constructors: + + :: + + new(attributes:str) -> Gio.FileAttributeMatcher + """ + def enumerate_namespace(self, ns: str) -> bool: ... def enumerate_next(self) -> Optional[str]: ... def matches(self, attribute: str) -> bool: ... @@ -3102,16 +4464,47 @@ class FileAttributeMatcher(GObject.GBoxed): def unref(self) -> None: ... class FileDescriptorBased(GObject.GInterface): + """ + Interface GFileDescriptorBased + + Signals from GObject: + notify (GParam) + """ + def get_fd(self) -> int: ... class FileDescriptorBasedIface(GObject.GPointer): + """ + :Constructors: + + :: + + FileDescriptorBasedIface() + """ + g_iface: GObject.TypeInterface = ... get_fd: Callable[[FileDescriptorBased], int] = ... class FileEnumerator(GObject.Object): + """ + :Constructors: + + :: + + FileEnumerator(**properties) + + Object GFileEnumerator + + Properties from GFileEnumerator: + container -> GFile: Container + The container that is being enumerated + + Signals from GObject: + notify (GParam) + """ + class Props: container: File - props: Props = ... parent_instance: GObject.Object = ... priv: FileEnumeratorPrivate = ... @@ -3169,10 +4562,18 @@ class FileEnumerator(GObject.Object): def set_pending(self, pending: bool) -> None: ... class FileEnumeratorClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileEnumeratorClass() + """ + parent_class: GObject.ObjectClass = ... - next_file: Callable[[FileEnumerator, Optional[Cancellable]], Optional[FileInfo]] = ( - ... - ) + next_file: Callable[ + [FileEnumerator, Optional[Cancellable]], Optional[FileInfo] + ] = ... close_fn: Callable[[FileEnumerator, Optional[Cancellable]], bool] = ... next_files_async: Callable[..., None] = ... next_files_finish: Callable[[FileEnumerator, AsyncResult], list[FileInfo]] = ... @@ -3189,11 +4590,31 @@ class FileEnumeratorClass(GObject.GPointer): class FileEnumeratorPrivate(GObject.GPointer): ... class FileIOStream(IOStream, Seekable): + """ + :Constructors: + + :: + + FileIOStream(**properties) + + Object GFileIOStream + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: closed: bool input_stream: InputStream output_stream: OutputStream - props: Props = ... parent_instance: IOStream = ... priv: FileIOStreamPrivate = ... @@ -3237,12 +4658,20 @@ class FileIOStream(IOStream, Seekable): def query_info_finish(self, result: AsyncResult) -> FileInfo: ... class FileIOStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileIOStreamClass() + """ + parent_class: IOStreamClass = ... tell: Callable[[FileIOStream], int] = ... can_seek: Callable[[FileIOStream], bool] = ... - seek: Callable[[FileIOStream, int, GLib.SeekType, Optional[Cancellable]], bool] = ( - ... - ) + seek: Callable[ + [FileIOStream, int, GLib.SeekType, Optional[Cancellable]], bool + ] = ... can_truncate: Callable[[FileIOStream], bool] = ... truncate_fn: Callable[[FileIOStream, int, Optional[Cancellable]], bool] = ... query_info: Callable[[FileIOStream, str, Optional[Cancellable]], FileInfo] = ... @@ -3258,9 +4687,26 @@ class FileIOStreamClass(GObject.GPointer): class FileIOStreamPrivate(GObject.GPointer): ... class FileIcon(GObject.Object, Icon, LoadableIcon): + """ + :Constructors: + + :: + + FileIcon(**properties) + new(file:Gio.File) -> Gio.FileIcon + + Object GFileIcon + + Properties from GFileIcon: + file -> GFile: file + The file containing the icon + + Signals from GObject: + notify (GParam) + """ + class Props: file: File - props: Props = ... def __init__(self, file: File = ...): ... def get_file(self) -> File: ... @@ -3270,6 +4716,14 @@ class FileIcon(GObject.Object, Icon, LoadableIcon): class FileIconClass(GObject.GPointer): ... class FileIface(GObject.GPointer): + """ + :Constructors: + + :: + + FileIface() + """ + g_iface: GObject.TypeInterface = ... dup: Callable[[File], File] = ... hash: Callable[[File], int] = ... @@ -3407,6 +4861,20 @@ class FileIface(GObject.GPointer): ] = ... class FileInfo(GObject.Object): + """ + :Constructors: + + :: + + FileInfo(**properties) + new() -> Gio.FileInfo + + Object GFileInfo + + Signals from GObject: + notify (GParam) + """ + def clear_status(self) -> None: ... def copy_into(self, dest_info: FileInfo) -> None: ... def dup(self) -> FileInfo: ... @@ -3417,6 +4885,7 @@ class FileInfo(GObject.Object): def get_attribute_data( self, attribute: str ) -> Tuple[bool, FileAttributeType, None, FileAttributeStatus]: ... + def get_attribute_file_path(self, attribute: str) -> Optional[str]: ... def get_attribute_int32(self, attribute: str) -> int: ... def get_attribute_int64(self, attribute: str) -> int: ... def get_attribute_object(self, attribute: str) -> Optional[GObject.Object]: ... @@ -3458,6 +4927,7 @@ class FileInfo(GObject.Object): ) -> None: ... def set_attribute_boolean(self, attribute: str, attr_value: bool) -> None: ... def set_attribute_byte_string(self, attribute: str, attr_value: str) -> None: ... + def set_attribute_file_path(self, attribute: str, attr_value: str) -> None: ... def set_attribute_int32(self, attribute: str, attr_value: int) -> None: ... def set_attribute_int64(self, attribute: str, attr_value: int) -> None: ... def set_attribute_mask(self, mask: FileAttributeMatcher) -> None: ... @@ -3493,6 +4963,19 @@ class FileInfo(GObject.Object): class FileInfoClass(GObject.GPointer): ... class FileInputStream(InputStream, Seekable): + """ + :Constructors: + + :: + + FileInputStream(**properties) + + Object GFileInputStream + + Signals from GObject: + notify (GParam) + """ + parent_instance: InputStream = ... priv: FileInputStreamPrivate = ... def do_can_seek(self) -> bool: ... @@ -3529,6 +5012,14 @@ class FileInputStream(InputStream, Seekable): def query_info_finish(self, result: AsyncResult) -> FileInfo: ... class FileInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileInputStreamClass() + """ + parent_class: InputStreamClass = ... tell: Callable[[FileInputStream], int] = ... can_seek: Callable[[FileInputStream], bool] = ... @@ -3547,10 +5038,31 @@ class FileInputStreamClass(GObject.GPointer): class FileInputStreamPrivate(GObject.GPointer): ... class FileMonitor(GObject.Object): + """ + :Constructors: + + :: + + FileMonitor(**properties) + + Object GFileMonitor + + Signals from GFileMonitor: + changed (GFile, GFile, GFileMonitorEvent) + + Properties from GFileMonitor: + rate-limit -> gint: Rate limit + The limit of the monitor to watch for changes, in milliseconds + cancelled -> gboolean: Cancelled + Whether the monitor has been cancelled + + Signals from GObject: + notify (GParam) + """ + class Props: cancelled: bool rate_limit: int - props: Props = ... parent_instance: GObject.Object = ... priv: FileMonitorPrivate = ... @@ -3567,6 +5079,14 @@ class FileMonitor(GObject.Object): def set_rate_limit(self, limit_msecs: int) -> None: ... class FileMonitorClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileMonitorClass() + """ + parent_class: GObject.ObjectClass = ... changed: Callable[[FileMonitor, File, File, FileMonitorEvent], None] = ... cancel: Callable[[FileMonitor], bool] = ... @@ -3579,6 +5099,19 @@ class FileMonitorClass(GObject.GPointer): class FileMonitorPrivate(GObject.GPointer): ... class FileOutputStream(OutputStream, Seekable): + """ + :Constructors: + + :: + + FileOutputStream(**properties) + + Object GFileOutputStream + + Signals from GObject: + notify (GParam) + """ + parent_instance: OutputStream = ... priv: FileOutputStreamPrivate = ... def do_can_seek(self) -> bool: ... @@ -3621,6 +5154,14 @@ class FileOutputStream(OutputStream, Seekable): def query_info_finish(self, result: AsyncResult) -> FileInfo: ... class FileOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileOutputStreamClass() + """ + parent_class: OutputStreamClass = ... tell: Callable[[FileOutputStream], int] = ... can_seek: Callable[[FileOutputStream], bool] = ... @@ -3642,6 +5183,23 @@ class FileOutputStreamClass(GObject.GPointer): class FileOutputStreamPrivate(GObject.GPointer): ... class FilenameCompleter(GObject.Object): + """ + :Constructors: + + :: + + FilenameCompleter(**properties) + new() -> Gio.FilenameCompleter + + Object GFilenameCompleter + + Signals from GFilenameCompleter: + got-completion-data () + + Signals from GObject: + notify (GParam) + """ + def do_got_completion_data(self) -> None: ... def get_completion_suffix(self, initial_text: str) -> Optional[str]: ... def get_completions(self, initial_text: str) -> list[str]: ... @@ -3650,6 +5208,14 @@ class FilenameCompleter(GObject.Object): def set_dirs_only(self, dirs_only: bool) -> None: ... class FilenameCompleterClass(GObject.GPointer): + """ + :Constructors: + + :: + + FilenameCompleterClass() + """ + parent_class: GObject.ObjectClass = ... got_completion_data: Callable[[FilenameCompleter], None] = ... _g_reserved1: None = ... @@ -3657,10 +5223,28 @@ class FilenameCompleterClass(GObject.GPointer): _g_reserved3: None = ... class FilterInputStream(InputStream): + """ + :Constructors: + + :: + + FilterInputStream(**properties) + + Object GFilterInputStream + + Properties from GFilterInputStream: + base-stream -> GInputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: base_stream: InputStream close_base_stream: bool - props: Props = ... parent_instance: InputStream = ... base_stream: InputStream = ... @@ -3672,16 +5256,42 @@ class FilterInputStream(InputStream): def set_close_base_stream(self, close_base: bool) -> None: ... class FilterInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + FilterInputStreamClass() + """ + parent_class: InputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... _g_reserved3: None = ... class FilterOutputStream(OutputStream): + """ + :Constructors: + + :: + + FilterOutputStream(**properties) + + Object GFilterOutputStream + + Properties from GFilterOutputStream: + base-stream -> GOutputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: base_stream: OutputStream close_base_stream: bool - props: Props = ... parent_instance: OutputStream = ... base_stream: OutputStream = ... @@ -3693,6 +5303,14 @@ class FilterOutputStream(OutputStream): def set_close_base_stream(self, close_base: bool) -> None: ... class FilterOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + FilterOutputStreamClass() + """ + parent_class: OutputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -3718,6 +5336,20 @@ class IOExtensionPoint(GObject.GPointer): def set_required_type(self, type: Type) -> None: ... class IOModule(GObject.TypeModule, GObject.TypePlugin): + """ + :Constructors: + + :: + + IOModule(**properties) + new(filename:str) -> Gio.IOModule + + Object GIOModule + + Signals from GObject: + notify (GParam) + """ + @classmethod def new(cls, filename: str) -> IOModule: ... @staticmethod @@ -3736,11 +5368,31 @@ class IOSchedulerJob(GObject.GPointer): ) -> None: ... class IOStream(GObject.Object): + """ + :Constructors: + + :: + + IOStream(**properties) + + Object GIOStream + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: closed: bool input_stream: InputStream output_stream: OutputStream - props: Props = ... parent_instance: GObject.Object = ... priv: IOStreamPrivate = ... @@ -3785,6 +5437,14 @@ class IOStream(GObject.Object): class IOStreamAdapter(GObject.GPointer): ... class IOStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + IOStreamClass() + """ + parent_class: GObject.ObjectClass = ... get_input_stream: Callable[[IOStream], InputStream] = ... get_output_stream: Callable[[IOStream], OutputStream] = ... @@ -3805,25 +5465,82 @@ class IOStreamClass(GObject.GPointer): class IOStreamPrivate(GObject.GPointer): ... class Icon(GObject.GInterface): + """ + Interface GIcon + + Signals from GObject: + notify (GParam) + """ + @staticmethod def deserialize(value: GLib.Variant) -> Optional[Icon]: ... def equal(self, icon2: Optional[Icon] = None) -> bool: ... - @staticmethod - def hash(icon: None) -> int: ... + def hash(self) -> int: ... @staticmethod def new_for_string(str: str) -> Icon: ... def serialize(self) -> Optional[GLib.Variant]: ... def to_string(self) -> Optional[str]: ... class IconIface(GObject.GPointer): + """ + :Constructors: + + :: + + IconIface() + """ + g_iface: GObject.TypeInterface = ... hash: Callable[[Icon], int] = ... equal: Callable[[Optional[Icon], Optional[Icon]], bool] = ... - to_tokens: None = ... + to_tokens: Callable[[Icon], Tuple[bool, list[str], int]] = ... from_tokens: None = ... serialize: Callable[[Icon], Optional[GLib.Variant]] = ... class InetAddress(GObject.Object): + """ + :Constructors: + + :: + + InetAddress(**properties) + new_any(family:Gio.SocketFamily) -> Gio.InetAddress + new_from_bytes(bytes:list, family:Gio.SocketFamily) -> Gio.InetAddress + new_from_string(string:str) -> Gio.InetAddress or None + new_loopback(family:Gio.SocketFamily) -> Gio.InetAddress + + Object GInetAddress + + Properties from GInetAddress: + family -> GSocketFamily: Address family + The address family (IPv4 or IPv6) + bytes -> gpointer: Bytes + The raw address data + is-any -> gboolean: Is any + Whether this is the "any" address for its family + is-loopback -> gboolean: Is loopback + Whether this is the loopback address for its family + is-link-local -> gboolean: Is link-local + Whether this is a link-local address + is-site-local -> gboolean: Is site-local + Whether this is a site-local address + is-multicast -> gboolean: Is multicast + Whether this is a multicast address + is-mc-global -> gboolean: Is multicast global + Whether this is a global multicast address + is-mc-link-local -> gboolean: Is multicast link-local + Whether this is a link-local multicast address + is-mc-node-local -> gboolean: Is multicast node-local + Whether this is a node-local multicast address + is-mc-org-local -> gboolean: Is multicast org-local + Whether this is an organization-local multicast address + is-mc-site-local -> gboolean: Is multicast site-local + Whether this is a site-local multicast address + + Signals from GObject: + notify (GParam) + """ + class Props: bytes: None family: SocketFamily @@ -3837,7 +5554,6 @@ class InetAddress(GObject.Object): is_mc_site_local: bool is_multicast: bool is_site_local: bool - props: Props = ... parent_instance: GObject.Object = ... priv: InetAddressPrivate = ... @@ -3869,16 +5585,46 @@ class InetAddress(GObject.Object): def to_string(self) -> str: ... class InetAddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + InetAddressClass() + """ + parent_class: GObject.ObjectClass = ... to_string: Callable[[InetAddress], str] = ... to_bytes: Callable[[InetAddress], int] = ... class InetAddressMask(GObject.Object, Initable): + """ + :Constructors: + + :: + + InetAddressMask(**properties) + new(addr:Gio.InetAddress, length:int) -> Gio.InetAddressMask + new_from_string(mask_string:str) -> Gio.InetAddressMask + + Object GInetAddressMask + + Properties from GInetAddressMask: + family -> GSocketFamily: Address family + The address family (IPv4 or IPv6) + address -> GInetAddress: Address + The base address + length -> guint: Length + The prefix length + + Signals from GObject: + notify (GParam) + """ + class Props: address: InetAddress family: SocketFamily length: int - props: Props = ... parent_instance: GObject.Object = ... priv: InetAddressMaskPrivate = ... @@ -3895,19 +5641,55 @@ class InetAddressMask(GObject.Object, Initable): def to_string(self) -> str: ... class InetAddressMaskClass(GObject.GPointer): + """ + :Constructors: + + :: + + InetAddressMaskClass() + """ + parent_class: GObject.ObjectClass = ... class InetAddressMaskPrivate(GObject.GPointer): ... class InetAddressPrivate(GObject.GPointer): ... class InetSocketAddress(SocketAddress, SocketConnectable): + """ + :Constructors: + + :: + + InetSocketAddress(**properties) + new(address:Gio.InetAddress, port:int) -> Gio.SocketAddress + new_from_string(address:str, port:int) -> Gio.SocketAddress or None + + Object GInetSocketAddress + + Properties from GInetSocketAddress: + address -> GInetAddress: Address + The address + port -> guint: Port + The port + flowinfo -> guint: Flow info + IPv6 flow info + scope-id -> guint: Scope ID + IPv6 scope ID + + Properties from GSocketAddress: + family -> GSocketFamily: Address family + The family of the socket address + + Signals from GObject: + notify (GParam) + """ + class Props: address: InetAddress flowinfo: int port: int scope_id: int family: SocketFamily - props: Props = ... parent_instance: SocketAddress = ... priv: InetSocketAddressPrivate = ... @@ -3928,25 +5710,55 @@ class InetSocketAddress(SocketAddress, SocketConnectable): def new_from_string(cls, address: str, port: int) -> InetSocketAddress: ... class InetSocketAddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + InetSocketAddressClass() + """ + parent_class: SocketAddressClass = ... class InetSocketAddressPrivate(GObject.GPointer): ... class Initable(GObject.GInterface): + """ + Interface GInitable + + Signals from GObject: + notify (GParam) + """ + def init(self, cancellable: Optional[Cancellable] = None) -> bool: ... @staticmethod def newv( object_type: Type, - n_parameters: int, parameters: Sequence[GObject.Parameter], cancellable: Optional[Cancellable] = None, ) -> GObject.Object: ... class InitableIface(GObject.GPointer): + """ + :Constructors: + + :: + + InitableIface() + """ + g_iface: GObject.TypeInterface = ... init: Callable[[Initable, Optional[Cancellable]], bool] = ... class InputMessage(GObject.GPointer): + """ + :Constructors: + + :: + + InputMessage() + """ + address: SocketAddress = ... vectors: list[InputVector] = ... num_vectors: int = ... @@ -3956,6 +5768,19 @@ class InputMessage(GObject.GPointer): num_control_messages: int = ... class InputStream(GObject.Object): + """ + :Constructors: + + :: + + InputStream(**properties) + + Object GInputStream + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: InputStreamPrivate = ... def clear_pending(self) -> None: ... @@ -4045,6 +5870,14 @@ class InputStream(GObject.Object): def skip_finish(self, result: AsyncResult) -> int: ... class InputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + InputStreamClass() + """ + parent_class: GObject.ObjectClass = ... read_fn: Callable[[InputStream, None, int, Optional[Cancellable]], int] = ... skip: Callable[[InputStream, int, Optional[Cancellable]], int] = ... @@ -4064,6 +5897,14 @@ class InputStreamClass(GObject.GPointer): class InputStreamPrivate(GObject.GPointer): ... class InputVector(GObject.GPointer): + """ + :Constructors: + + :: + + InputVector() + """ + buffer: None = ... size: int = ... @@ -4079,25 +5920,58 @@ class ListModel(GObject.GInterface): def items_changed(self, position: int, removed: int, added: int) -> None: ... class ListModelInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ListModelInterface() + """ + g_iface: GObject.TypeInterface = ... get_item_type: Callable[[ListModel], Type] = ... get_n_items: Callable[[ListModel], int] = ... get_item: Callable[[ListModel, int], Optional[GObject.Object]] = ... class ListStore(GObject.Object, ListModel): + """ + :Constructors: + + :: + + ListStore(**properties) + new(item_type:GType) -> Gio.ListStore + + Object GListStore + + Properties from GListStore: + item-type -> GType: + + n-items -> guint: + + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GObject: + notify (GParam) + """ + class Props: item_type: Type n_items: int - props: Props = ... def __init__(self, item_type: Type = ...): ... def append(self, item: GObject.Object) -> None: ... def find(self, item: GObject.Object) -> Tuple[bool, int]: ... def find_with_equal_func( - self, item: GObject.Object, equal_func: Callable[[None, None], bool] + self, item: Optional[GObject.Object], equal_func: Callable[[None, None], bool] ) -> Tuple[bool, int]: ... def find_with_equal_func_full( - self, item: GObject.Object, equal_func: Callable[..., bool], *user_data: Any + self, + item: Optional[GObject.Object], + equal_func: Callable[..., bool], + *user_data: Any, ) -> Tuple[bool, int]: ... def insert(self, position: int, item: GObject.Object) -> None: ... def insert_sorted(self, item, compare_func, *user_data): ... # FIXME Function @@ -4111,9 +5985,24 @@ class ListStore(GObject.Object, ListModel): ) -> None: ... class ListStoreClass(GObject.GPointer): + """ + :Constructors: + + :: + + ListStoreClass() + """ + parent_class: GObject.ObjectClass = ... class LoadableIcon(GObject.GInterface): + """ + Interface GLoadableIcon + + Signals from GObject: + notify (GParam) + """ + def load( self, size: int, cancellable: Optional[Cancellable] = None ) -> Tuple[InputStream, str]: ... @@ -4127,6 +6016,14 @@ class LoadableIcon(GObject.GInterface): def load_finish(self, res: AsyncResult) -> Tuple[InputStream, str]: ... class LoadableIconIface(GObject.GPointer): + """ + :Constructors: + + :: + + LoadableIconIface() + """ + g_iface: GObject.TypeInterface = ... load: Callable[ [LoadableIcon, int, Optional[Cancellable]], Tuple[InputStream, str] @@ -4135,6 +6032,22 @@ class LoadableIconIface(GObject.GPointer): load_finish: Callable[[LoadableIcon, AsyncResult], Tuple[InputStream, str]] = ... class MemoryInputStream(InputStream, PollableInputStream, Seekable): + """ + :Constructors: + + :: + + MemoryInputStream(**properties) + new() -> Gio.InputStream + new_from_bytes(bytes:GLib.Bytes) -> Gio.InputStream + new_from_data(data:list, destroy:GLib.DestroyNotify=None) -> Gio.InputStream + + Object GMemoryInputStream + + Signals from GObject: + notify (GParam) + """ + parent_instance: InputStream = ... priv: MemoryInputStreamPrivate = ... def add_bytes(self, bytes: GLib.Bytes) -> None: ... @@ -4151,6 +6064,14 @@ class MemoryInputStream(InputStream, PollableInputStream, Seekable): ) -> MemoryInputStream: ... class MemoryInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + MemoryInputStreamClass() + """ + parent_class: InputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -4161,19 +6082,59 @@ class MemoryInputStreamClass(GObject.GPointer): class MemoryInputStreamPrivate(GObject.GPointer): ... class MemoryMonitor(GObject.GInterface): + """ + Interface GMemoryMonitor + + Signals from GObject: + notify (GParam) + """ + @staticmethod def dup_default() -> MemoryMonitor: ... class MemoryMonitorInterface(GObject.GPointer): + """ + :Constructors: + + :: + + MemoryMonitorInterface() + """ + g_iface: GObject.TypeInterface = ... low_memory_warning: Callable[[MemoryMonitor, MemoryMonitorWarningLevel], None] = ... class MemoryOutputStream(OutputStream, PollableOutputStream, Seekable): + """ + :Constructors: + + :: + + MemoryOutputStream(**properties) + new_resizable() -> Gio.OutputStream + + Object GMemoryOutputStream + + Properties from GMemoryOutputStream: + data -> gpointer: Data Buffer + Pointer to buffer where data will be written. + size -> gulong: Data Buffer Size + Current size of the data buffer. + data-size -> gulong: Data Size + Size of data written to the buffer. + realloc-function -> gpointer: Memory Reallocation Function + Function with realloc semantics called to enlarge the buffer. + destroy-function -> gpointer: Destroy Notification Function + Function called with the buffer as argument when the stream is destroyed. + + Signals from GObject: + notify (GParam) + """ + class Props: - data: None + data: Optional[None] data_size: int size: int - props: Props = ... parent_instance: OutputStream = ... priv: MemoryOutputStreamPrivate = ... @@ -4187,6 +6148,14 @@ class MemoryOutputStream(OutputStream, PollableOutputStream, Seekable): def steal_data(self) -> None: ... class MemoryOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + MemoryOutputStreamClass() + """ + parent_class: OutputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -4197,6 +6166,23 @@ class MemoryOutputStreamClass(GObject.GPointer): class MemoryOutputStreamPrivate(GObject.GPointer): ... class Menu(MenuModel): + """ + :Constructors: + + :: + + Menu(**properties) + new() -> Gio.Menu + + Object GMenu + + Signals from GMenuModel: + items-changed (gint, gint, gint) + + Signals from GObject: + notify (GParam) + """ + def append( self, label: Optional[str] = None, detailed_action: Optional[str] = None ) -> None: ... @@ -4229,6 +6215,19 @@ class Menu(MenuModel): def remove_all(self) -> None: ... class MenuAttributeIter(GObject.Object): + """ + :Constructors: + + :: + + MenuAttributeIter(**properties) + + Object GMenuAttributeIter + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: MenuAttributeIterPrivate = ... def do_get_next(self) -> Tuple[bool, str, GLib.Variant]: ... @@ -4238,12 +6237,37 @@ class MenuAttributeIter(GObject.Object): def next(self) -> bool: ... class MenuAttributeIterClass(GObject.GPointer): + """ + :Constructors: + + :: + + MenuAttributeIterClass() + """ + parent_class: GObject.ObjectClass = ... get_next: Callable[[MenuAttributeIter], Tuple[bool, str, GLib.Variant]] = ... class MenuAttributeIterPrivate(GObject.GPointer): ... class MenuItem(GObject.Object): + """ + :Constructors: + + :: + + MenuItem(**properties) + new(label:str=None, detailed_action:str=None) -> Gio.MenuItem + new_from_model(model:Gio.MenuModel, item_index:int) -> Gio.MenuItem + new_section(label:str=None, section:Gio.MenuModel) -> Gio.MenuItem + new_submenu(label:str=None, submenu:Gio.MenuModel) -> Gio.MenuItem + + Object GMenuItem + + Signals from GObject: + notify (GParam) + """ + def get_attribute_value( self, attribute: str, expected_type: Optional[GLib.VariantType] = None ) -> Optional[GLib.Variant]: ... @@ -4274,6 +6298,19 @@ class MenuItem(GObject.Object): def set_submenu(self, submenu: Optional[MenuModel] = None) -> None: ... class MenuLinkIter(GObject.Object): + """ + :Constructors: + + :: + + MenuLinkIter(**properties) + + Object GMenuLinkIter + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: MenuLinkIterPrivate = ... def do_get_next(self) -> Tuple[bool, str, MenuModel]: ... @@ -4283,12 +6320,36 @@ class MenuLinkIter(GObject.Object): def next(self) -> bool: ... class MenuLinkIterClass(GObject.GPointer): + """ + :Constructors: + + :: + + MenuLinkIterClass() + """ + parent_class: GObject.ObjectClass = ... get_next: Callable[[MenuLinkIter], Tuple[bool, str, MenuModel]] = ... class MenuLinkIterPrivate(GObject.GPointer): ... class MenuModel(GObject.Object): + """ + :Constructors: + + :: + + MenuModel(**properties) + + Object GMenuModel + + Signals from GMenuModel: + items-changed (gint, gint, gint) + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: MenuModelPrivate = ... def do_get_item_attribute_value( @@ -4318,6 +6379,14 @@ class MenuModel(GObject.Object): def iterate_item_links(self, item_index: int) -> MenuLinkIter: ... class MenuModelClass(GObject.GPointer): + """ + :Constructors: + + :: + + MenuModelClass() + """ + parent_class: GObject.ObjectClass = ... is_mutable: Callable[[MenuModel], bool] = ... get_n_items: Callable[[MenuModel], int] = ... @@ -4333,6 +6402,13 @@ class MenuModelClass(GObject.GPointer): class MenuModelPrivate(GObject.GPointer): ... class Mount(GObject.GInterface): + """ + Interface GMount + + Signals from GObject: + notify (GParam) + """ + def can_eject(self) -> bool: ... def can_unmount(self) -> bool: ... def eject( @@ -4403,6 +6479,14 @@ class Mount(GObject.GInterface): def unshadow(self) -> None: ... class MountIface(GObject.GPointer): + """ + :Constructors: + + :: + + MountIface() + """ + g_iface: GObject.TypeInterface = ... changed: Callable[[Mount], None] = ... unmounted: Callable[[Mount], None] = ... @@ -4435,17 +6519,58 @@ class MountIface(GObject.GPointer): get_symbolic_icon: Callable[[Mount], Icon] = ... class MountOperation(GObject.Object): + """ + :Constructors: + + :: + + MountOperation(**properties) + new() -> Gio.MountOperation + + Object GMountOperation + + Signals from GMountOperation: + ask-password (gchararray, gchararray, gchararray, GAskPasswordFlags) + ask-question (gchararray, GStrv) + reply (GMountOperationResult) + aborted () + show-processes (gchararray, GArray, GStrv) + show-unmount-progress (gchararray, gint64, gint64) + + Properties from GMountOperation: + username -> gchararray: Username + The user name + password -> gchararray: Password + The password + anonymous -> gboolean: Anonymous + Whether to use an anonymous user + domain -> gchararray: Domain + The domain of the mount operation + password-save -> GPasswordSave: Password save + How passwords should be saved + choice -> gint: Choice + The users choice + is-tcrypt-hidden-volume -> gboolean: TCRYPT Hidden Volume + Whether to unlock a TCRYPT hidden volume. See https://www.veracrypt.fr/en/Hidden%20Volume.html. + is-tcrypt-system-volume -> gboolean: TCRYPT System Volume + Whether to unlock a TCRYPT system volume. Only supported for unlocking Windows system volumes. See https://www.veracrypt.fr/en/System%20Encryption.html. + pim -> guint: PIM + The VeraCrypt PIM value + + Signals from GObject: + notify (GParam) + """ + class Props: anonymous: bool choice: int - domain: str + domain: Optional[str] is_tcrypt_hidden_volume: bool is_tcrypt_system_volume: bool - password: str + password: Optional[str] password_save: PasswordSave pim: int - username: str - + username: Optional[str] props: Props = ... parent_instance: GObject.Object = ... priv: MountOperationPrivate = ... @@ -4453,13 +6578,13 @@ class MountOperation(GObject.Object): self, anonymous: bool = ..., choice: int = ..., - domain: str = ..., + domain: Optional[str] = ..., is_tcrypt_hidden_volume: bool = ..., is_tcrypt_system_volume: bool = ..., - password: str = ..., + password: Optional[str] = ..., password_save: PasswordSave = ..., pim: int = ..., - username: str = ..., + username: Optional[str] = ..., ): ... def do_aborted(self) -> None: ... def do_ask_password( @@ -4500,10 +6625,18 @@ class MountOperation(GObject.Object): def set_username(self, username: Optional[str] = None) -> None: ... class MountOperationClass(GObject.GPointer): + """ + :Constructors: + + :: + + MountOperationClass() + """ + parent_class: GObject.ObjectClass = ... - ask_password: Callable[[MountOperation, str, str, str, AskPasswordFlags], None] = ( - ... - ) + ask_password: Callable[ + [MountOperation, str, str, str, AskPasswordFlags], None + ] = ... ask_question: Callable[[MountOperation, str, Sequence[str]], None] = ... reply: Callable[[MountOperation, MountOperationResult], None] = ... aborted: Callable[[MountOperation], None] = ... @@ -4524,9 +6657,26 @@ class MountOperationClass(GObject.GPointer): class MountOperationPrivate(GObject.GPointer): ... class NativeSocketAddress(SocketAddress, SocketConnectable): + """ + :Constructors: + + :: + + NativeSocketAddress(**properties) + new(native=None, len:int) -> Gio.SocketAddress + + Object GNativeSocketAddress + + Properties from GSocketAddress: + family -> GSocketFamily: Address family + The family of the socket address + + Signals from GObject: + notify (GParam) + """ + class Props: family: SocketFamily - props: Props = ... parent_instance: SocketAddress = ... priv: NativeSocketAddressPrivate = ... @@ -4534,23 +6684,88 @@ class NativeSocketAddress(SocketAddress, SocketConnectable): def new(cls, native: None, len: int) -> NativeSocketAddress: ... class NativeSocketAddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + NativeSocketAddressClass() + """ + parent_class: SocketAddressClass = ... class NativeSocketAddressPrivate(GObject.GPointer): ... class NativeVolumeMonitor(VolumeMonitor): + """ + :Constructors: + + :: + + NativeVolumeMonitor(**properties) + + Object GNativeVolumeMonitor + + Signals from GVolumeMonitor: + volume-added (GVolume) + volume-removed (GVolume) + volume-changed (GVolume) + mount-added (GMount) + mount-removed (GMount) + mount-pre-unmount (GMount) + mount-changed (GMount) + drive-connected (GDrive) + drive-disconnected (GDrive) + drive-changed (GDrive) + drive-eject-button (GDrive) + drive-stop-button (GDrive) + + Signals from GObject: + notify (GParam) + """ + parent_instance: VolumeMonitor = ... class NativeVolumeMonitorClass(GObject.GPointer): + """ + :Constructors: + + :: + + NativeVolumeMonitorClass() + """ + parent_class: VolumeMonitorClass = ... get_mount_for_mount_path: None = ... class NetworkAddress(GObject.Object, SocketConnectable): + """ + :Constructors: + + :: + + NetworkAddress(**properties) + new(hostname:str, port:int) -> Gio.NetworkAddress + new_loopback(port:int) -> Gio.NetworkAddress + + Object GNetworkAddress + + Properties from GNetworkAddress: + hostname -> gchararray: Hostname + Hostname to resolve + port -> guint: Port + Network port + scheme -> gchararray: Scheme + URI Scheme + + Signals from GObject: + notify (GParam) + """ + class Props: hostname: str port: int - scheme: str - + scheme: Optional[str] props: Props = ... parent_instance: GObject.Object = ... priv: NetworkAddressPrivate = ... @@ -4568,11 +6783,26 @@ class NetworkAddress(GObject.Object, SocketConnectable): def parse_uri(uri: str, default_port: int) -> NetworkAddress: ... class NetworkAddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + NetworkAddressClass() + """ + parent_class: GObject.ObjectClass = ... class NetworkAddressPrivate(GObject.GPointer): ... class NetworkMonitor(GObject.GInterface): + """ + Interface GNetworkMonitor + + Signals from GObject: + notify (GParam) + """ + def can_reach( self, connectable: SocketConnectable, cancellable: Optional[Cancellable] = None ) -> bool: ... @@ -4591,6 +6821,14 @@ class NetworkMonitor(GObject.GInterface): def get_network_metered(self) -> bool: ... class NetworkMonitorInterface(GObject.GPointer): + """ + :Constructors: + + :: + + NetworkMonitorInterface() + """ + g_iface: GObject.TypeInterface = ... network_changed: Callable[[NetworkMonitor, bool], None] = ... can_reach: Callable[ @@ -4600,12 +6838,35 @@ class NetworkMonitorInterface(GObject.GPointer): can_reach_finish: Callable[[NetworkMonitor, AsyncResult], bool] = ... class NetworkService(GObject.Object, SocketConnectable): + """ + :Constructors: + + :: + + NetworkService(**properties) + new(service:str, protocol:str, domain:str) -> Gio.NetworkService + + Object GNetworkService + + Properties from GNetworkService: + service -> gchararray: Service + Service name, eg "ldap" + protocol -> gchararray: Protocol + Network protocol, eg "tcp" + domain -> gchararray: Domain + Network domain, eg, "example.com" + scheme -> gchararray: Scheme + Network scheme (default is to use service) + + Signals from GObject: + notify (GParam) + """ + class Props: domain: str protocol: str scheme: str service: str - props: Props = ... parent_instance: GObject.Object = ... priv: NetworkServicePrivate = ... @@ -4625,11 +6886,33 @@ class NetworkService(GObject.Object, SocketConnectable): def set_scheme(self, scheme: str) -> None: ... class NetworkServiceClass(GObject.GPointer): + """ + :Constructors: + + :: + + NetworkServiceClass() + """ + parent_class: GObject.ObjectClass = ... class NetworkServicePrivate(GObject.GPointer): ... class Notification(GObject.Object): + """ + :Constructors: + + :: + + Notification(**properties) + new(title:str) -> Gio.Notification + + Object GNotification + + Signals from GObject: + notify (GParam) + """ + def add_button(self, label: str, detailed_action: str) -> None: ... def add_button_with_target( self, label: str, action: str, target: Optional[GLib.Variant] = None @@ -4648,6 +6931,14 @@ class Notification(GObject.Object): def set_urgent(self, urgent: bool) -> None: ... class OutputMessage(GObject.GPointer): + """ + :Constructors: + + :: + + OutputMessage() + """ + address: SocketAddress = ... vectors: OutputVector = ... num_vectors: int = ... @@ -4656,6 +6947,19 @@ class OutputMessage(GObject.GPointer): num_control_messages: int = ... class OutputStream(GObject.Object): + """ + :Constructors: + + :: + + OutputStream(**properties) + + Object GOutputStream + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: OutputStreamPrivate = ... def clear_pending(self) -> None: ... @@ -4819,6 +7123,14 @@ class OutputStream(GObject.Object): def writev_finish(self, result: AsyncResult) -> Tuple[bool, int]: ... class OutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + OutputStreamClass() + """ + parent_class: GObject.ObjectClass = ... write_fn: Callable[ [OutputStream, Optional[Sequence[int]], Optional[Cancellable]], int @@ -4850,15 +7162,43 @@ class OutputStreamClass(GObject.GPointer): class OutputStreamPrivate(GObject.GPointer): ... class OutputVector(GObject.GPointer): + """ + :Constructors: + + :: + + OutputVector() + """ + buffer: None = ... size: int = ... class Permission(GObject.Object): + """ + :Constructors: + + :: + + Permission(**properties) + + Object GPermission + + Properties from GPermission: + allowed -> gboolean: Is allowed + If the caller is allowed to perform the action + can-acquire -> gboolean: Can acquire + If calling g_permission_acquire() makes sense + can-release -> gboolean: Can release + If calling g_permission_release() makes sense + + Signals from GObject: + notify (GParam) + """ + class Props: allowed: bool can_acquire: bool can_release: bool - props: Props = ... parent_instance: GObject.Object = ... priv: PermissionPrivate = ... @@ -4902,6 +7242,14 @@ class Permission(GObject.Object): def release_finish(self, result: AsyncResult) -> bool: ... class PermissionClass(GObject.GPointer): + """ + :Constructors: + + :: + + PermissionClass() + """ + parent_class: GObject.ObjectClass = ... acquire: Callable[[Permission, Optional[Cancellable]], bool] = ... acquire_async: Callable[..., None] = ... @@ -4914,6 +7262,13 @@ class PermissionClass(GObject.GPointer): class PermissionPrivate(GObject.GPointer): ... class PollableInputStream(GObject.GInterface): + """ + Interface GPollableInputStream + + Signals from GObject: + notify (GParam) + """ + def can_poll(self) -> bool: ... def create_source( self, cancellable: Optional[Cancellable] = None @@ -4924,6 +7279,14 @@ class PollableInputStream(GObject.GInterface): ) -> Tuple[int, bytes]: ... class PollableInputStreamInterface(GObject.GPointer): + """ + :Constructors: + + :: + + PollableInputStreamInterface() + """ + g_iface: GObject.TypeInterface = ... can_poll: Callable[[PollableInputStream], bool] = ... is_readable: Callable[[PollableInputStream], bool] = ... @@ -4933,6 +7296,13 @@ class PollableInputStreamInterface(GObject.GPointer): read_nonblocking: Callable[[PollableInputStream], Tuple[int, bytes]] = ... class PollableOutputStream(GObject.GInterface): + """ + Interface GPollableOutputStream + + Signals from GObject: + notify (GParam) + """ + def can_poll(self) -> bool: ... def create_source( self, cancellable: Optional[Cancellable] = None @@ -4946,6 +7316,14 @@ class PollableOutputStream(GObject.GInterface): ) -> Tuple[PollableReturn, int]: ... class PollableOutputStreamInterface(GObject.GPointer): + """ + :Constructors: + + :: + + PollableOutputStreamInterface() + """ + g_iface: GObject.TypeInterface = ... can_poll: Callable[[PollableOutputStream], bool] = ... is_writable: Callable[[PollableOutputStream], bool] = ... @@ -4960,24 +7338,70 @@ class PollableOutputStreamInterface(GObject.GPointer): ] = ... class PowerProfileMonitor(GObject.GInterface): + """ + Interface GPowerProfileMonitor + + Signals from GObject: + notify (GParam) + """ + @staticmethod def dup_default() -> PowerProfileMonitor: ... def get_power_saver_enabled(self) -> bool: ... class PowerProfileMonitorInterface(GObject.GPointer): + """ + :Constructors: + + :: + + PowerProfileMonitorInterface() + """ + g_iface: GObject.TypeInterface = ... class PropertyAction(GObject.Object, Action): + """ + :Constructors: + + :: + + PropertyAction(**properties) + new(name:str, object:GObject.Object, property_name:str) -> Gio.PropertyAction + + Object GPropertyAction + + Properties from GPropertyAction: + name -> gchararray: Action Name + The name used to invoke the action + parameter-type -> GVariantType: Parameter Type + The type of GVariant passed to activate() + enabled -> gboolean: Enabled + If the action can be activated + state-type -> GVariantType: State Type + The type of the state kept by the action + state -> GVariant: State + The state the action is in + object -> GObject: Object + The object with the property to wrap + property-name -> gchararray: Property name + The name of the property to wrap + invert-boolean -> gboolean: Invert boolean + Whether to invert the value of a boolean property + + Signals from GObject: + notify (GParam) + """ + class Props: enabled: bool invert_boolean: bool name: str - object: GObject.Object parameter_type: GLib.VariantType - property_name: str state: GLib.Variant state_type: GLib.VariantType - + object: GObject.Object + property_name: str props: Props = ... def __init__( self, @@ -4992,6 +7416,13 @@ class PropertyAction(GObject.Object, Action): ) -> PropertyAction: ... class Proxy(GObject.GInterface): + """ + Interface GProxy + + Signals from GObject: + notify (GParam) + """ + def connect( self, connection: IOStream, @@ -5012,20 +7443,63 @@ class Proxy(GObject.GInterface): def supports_hostname(self) -> bool: ... class ProxyAddress(InetSocketAddress, SocketConnectable): + """ + :Constructors: + + :: + + ProxyAddress(**properties) + new(inetaddr:Gio.InetAddress, port:int, protocol:str, dest_hostname:str, dest_port:int, username:str=None, password:str=None) -> Gio.SocketAddress + + Object GProxyAddress + + Properties from GProxyAddress: + protocol -> gchararray: Protocol + The proxy protocol + destination-protocol -> gchararray: Destination Protocol + The proxy destination protocol + destination-hostname -> gchararray: Destination Hostname + The proxy destination hostname + destination-port -> guint: Destination Port + The proxy destination port + username -> gchararray: Username + The proxy username + password -> gchararray: Password + The proxy password + uri -> gchararray: URI + The proxy’s URI + + Properties from GInetSocketAddress: + address -> GInetAddress: Address + The address + port -> guint: Port + The port + flowinfo -> guint: Flow info + IPv6 flow info + scope-id -> guint: Scope ID + IPv6 scope ID + + Properties from GSocketAddress: + family -> GSocketFamily: Address family + The family of the socket address + + Signals from GObject: + notify (GParam) + """ + class Props: destination_hostname: str destination_port: int destination_protocol: str - password: str + password: Optional[str] protocol: str - uri: str - username: str + uri: Optional[str] + username: Optional[str] address: InetAddress flowinfo: int port: int scope_id: int family: SocketFamily - props: Props = ... parent_instance: InetSocketAddress = ... priv: ProxyAddressPrivate = ... @@ -5063,15 +7537,45 @@ class ProxyAddress(InetSocketAddress, SocketConnectable): ) -> ProxyAddress: ... class ProxyAddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyAddressClass() + """ + parent_class: InetSocketAddressClass = ... class ProxyAddressEnumerator(SocketAddressEnumerator): + """ + :Constructors: + + :: + + ProxyAddressEnumerator(**properties) + + Object GProxyAddressEnumerator + + Properties from GProxyAddressEnumerator: + uri -> gchararray: URI + The destination URI, use none:// for generic socket + default-port -> guint: Default port + The default port to use if uri does not specify one + connectable -> GSocketConnectable: Connectable + The connectable being enumerated. + proxy-resolver -> GProxyResolver: Proxy resolver + The proxy resolver to use. + + Signals from GObject: + notify (GParam) + """ + class Props: connectable: SocketConnectable default_port: int proxy_resolver: ProxyResolver uri: str - props: Props = ... parent_instance: SocketAddressEnumerator = ... priv: ProxyAddressEnumeratorPrivate = ... @@ -5084,6 +7588,14 @@ class ProxyAddressEnumerator(SocketAddressEnumerator): ): ... class ProxyAddressEnumeratorClass(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyAddressEnumeratorClass() + """ + parent_class: SocketAddressEnumeratorClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -5097,6 +7609,14 @@ class ProxyAddressEnumeratorPrivate(GObject.GPointer): ... class ProxyAddressPrivate(GObject.GPointer): ... class ProxyInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyInterface() + """ + g_iface: GObject.TypeInterface = ... connect: Callable[ [Proxy, IOStream, ProxyAddress, Optional[Cancellable]], IOStream @@ -5106,6 +7626,13 @@ class ProxyInterface(GObject.GPointer): supports_hostname: Callable[[Proxy], bool] = ... class ProxyResolver(GObject.GInterface): + """ + Interface GProxyResolver + + Signals from GObject: + notify (GParam) + """ + @staticmethod def get_default() -> ProxyResolver: ... def is_supported(self) -> bool: ... @@ -5122,6 +7649,14 @@ class ProxyResolver(GObject.GInterface): def lookup_finish(self, result: AsyncResult) -> list[str]: ... class ProxyResolverInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyResolverInterface() + """ + g_iface: GObject.TypeInterface = ... is_supported: Callable[[ProxyResolver], bool] = ... lookup: Callable[[ProxyResolver, str, Optional[Cancellable]], list[str]] = ... @@ -5129,6 +7664,13 @@ class ProxyResolverInterface(GObject.GPointer): lookup_finish: Callable[[ProxyResolver, AsyncResult], list[str]] = ... class RemoteActionGroup(GObject.GInterface): + """ + Interface GRemoteActionGroup + + Signals from GObject: + notify (GParam) + """ + def activate_action_full( self, action_name: str, @@ -5140,6 +7682,14 @@ class RemoteActionGroup(GObject.GInterface): ) -> None: ... class RemoteActionGroupInterface(GObject.GPointer): + """ + :Constructors: + + :: + + RemoteActionGroupInterface() + """ + g_iface: GObject.TypeInterface = ... activate_action_full: Callable[ [RemoteActionGroup, str, Optional[GLib.Variant], GLib.Variant], None @@ -5149,8 +7699,32 @@ class RemoteActionGroupInterface(GObject.GPointer): ] = ... class Resolver(GObject.Object): + """ + :Constructors: + + :: + + Resolver(**properties) + + Object GResolver + + Signals from GResolver: + reload () + + Properties from GResolver: + timeout -> guint: Timeout + Timeout (ms) applied to all resolver lookups + + Signals from GObject: + notify (GParam) + """ + + class Props: + timeout: int + props: Props = ... parent_instance: GObject.Object = ... priv: ResolverPrivate = ... + def __init__(self, timeout: int = ...): ... def do_lookup_by_address( self, address: InetAddress, cancellable: Optional[Cancellable] = None ) -> str: ... @@ -5216,6 +7790,7 @@ class Resolver(GObject.Object): def do_reload(self) -> None: ... @staticmethod def get_default() -> Resolver: ... + def get_timeout(self) -> int: ... def lookup_by_address( self, address: InetAddress, cancellable: Optional[Cancellable] = None ) -> str: ... @@ -5288,8 +7863,17 @@ class Resolver(GObject.Object): ) -> None: ... def lookup_service_finish(self, result: AsyncResult) -> list[SrvTarget]: ... def set_default(self) -> None: ... + def set_timeout(self, timeout_ms: int) -> None: ... class ResolverClass(GObject.GPointer): + """ + :Constructors: + + :: + + ResolverClass() + """ + parent_class: GObject.ObjectClass = ... reload: Callable[[Resolver], None] = ... lookup_by_name: Callable[ @@ -5297,9 +7881,9 @@ class ResolverClass(GObject.GPointer): ] = ... lookup_by_name_async: Callable[..., None] = ... lookup_by_name_finish: Callable[[Resolver, AsyncResult], list[InetAddress]] = ... - lookup_by_address: Callable[[Resolver, InetAddress, Optional[Cancellable]], str] = ( - ... - ) + lookup_by_address: Callable[ + [Resolver, InetAddress, Optional[Cancellable]], str + ] = ... lookup_by_address_async: Callable[..., None] = ... lookup_by_address_finish: Callable[[Resolver, AsyncResult], str] = ... lookup_service: None = ... @@ -5322,6 +7906,14 @@ class ResolverClass(GObject.GPointer): class ResolverPrivate(GObject.GPointer): ... class Resource(GObject.GBoxed): + """ + :Constructors: + + :: + + new_from_data(data:GLib.Bytes) -> Gio.Resource + """ + def enumerate_children( self, path: str, lookup_flags: ResourceLookupFlags ) -> list[str]: ... @@ -5342,6 +7934,13 @@ class Resource(GObject.GBoxed): def unref(self) -> None: ... class Seekable(GObject.GInterface): + """ + Interface GSeekable + + Signals from GObject: + notify (GParam) + """ + def can_seek(self) -> bool: ... def can_truncate(self) -> bool: ... def seek( @@ -5356,6 +7955,14 @@ class Seekable(GObject.GInterface): ) -> bool: ... class SeekableIface(GObject.GPointer): + """ + :Constructors: + + :: + + SeekableIface() + """ + g_iface: GObject.TypeInterface = ... tell: Callable[[Seekable], int] = ... can_seek: Callable[[Seekable], bool] = ... @@ -5364,6 +7971,39 @@ class SeekableIface(GObject.GPointer): truncate_fn: Callable[[Seekable, int, Optional[Cancellable]], bool] = ... class Settings(GObject.Object): + """ + Provide dictionary-like access to GLib.Settings. + + Object GSettings + + Provide dictionary-like access to GLib.Settings. + + Signals from GSettings: + changed (gchararray) + change-event (gpointer, gint) -> gboolean + writable-changed (gchararray) + writable-change-event (guint) -> gboolean + + Properties from GSettings: + settings-schema -> GSettingsSchema: schema + The GSettingsSchema for this settings object + schema -> gchararray: Schema name + The name of the schema for this settings object + schema-id -> gchararray: Schema name + The name of the schema for this settings object + backend -> GSettingsBackend: GSettingsBackend + The GSettingsBackend for this settings object + path -> gchararray: Base path + The path within the backend where the settings are + has-unapplied -> gboolean: Has unapplied changes + TRUE if there are outstanding changes to apply() + delay-apply -> gboolean: Delay-apply mode + Whether this settings object is in “delay-apply” mode + + Signals from GObject: + notify (GParam) + """ + class Props: backend: SettingsBackend delay_apply: bool @@ -5372,7 +8012,6 @@ class Settings(GObject.Object): schema: str schema_id: str settings_schema: SettingsSchema - props: Props = ... parent_instance: GObject.Object = ... priv: SettingsPrivate = ... @@ -5461,6 +8100,19 @@ class Settings(GObject.Object): def unbind(object: GObject.Object, property: str) -> None: ... class SettingsBackend(GObject.Object): + """ + :Constructors: + + :: + + SettingsBackend(**properties) + + Object GSettingsBackend + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: SettingsBackendPrivate = ... def changed(self, key: str, origin_tag: None) -> None: ... @@ -5490,6 +8142,14 @@ class SettingsBackend(GObject.Object): def writable_changed(self, key: str) -> None: ... class SettingsBackendClass(GObject.GPointer): + """ + :Constructors: + + :: + + SettingsBackendClass() + """ + parent_class: GObject.ObjectClass = ... read: Callable[[SettingsBackend, str, GLib.VariantType, bool], GLib.Variant] = ... get_writable: Callable[[SettingsBackend, str], bool] = ... @@ -5508,6 +8168,14 @@ class SettingsBackendClass(GObject.GPointer): class SettingsBackendPrivate(GObject.GPointer): ... class SettingsClass(GObject.GPointer): + """ + :Constructors: + + :: + + SettingsClass() + """ + parent_class: GObject.ObjectClass = ... writable_changed: Callable[[Settings, str], None] = ... changed: Callable[[Settings, str], None] = ... @@ -5539,6 +8207,14 @@ class SettingsSchemaKey(GObject.GBoxed): def unref(self) -> None: ... class SettingsSchemaSource(GObject.GBoxed): + """ + :Constructors: + + :: + + new_from_directory(directory:str, parent:Gio.SettingsSchemaSource=None, trusted:bool) -> Gio.SettingsSchemaSource + """ + @staticmethod def get_default() -> Optional[SettingsSchemaSource]: ... def list_schemas(self, recursive: bool) -> Tuple[list[str], list[str]]: ... @@ -5551,13 +8227,43 @@ class SettingsSchemaSource(GObject.GBoxed): def unref(self) -> None: ... class SimpleAction(GObject.Object, Action): + """ + :Constructors: + + :: + + SimpleAction(**properties) + new(name:str, parameter_type:GLib.VariantType=None) -> Gio.SimpleAction + new_stateful(name:str, parameter_type:GLib.VariantType=None, state:GLib.Variant) -> Gio.SimpleAction + + Object GSimpleAction + + Signals from GSimpleAction: + activate (GVariant) + change-state (GVariant) + + Properties from GSimpleAction: + name -> gchararray: Action Name + The name used to invoke the action + parameter-type -> GVariantType: Parameter Type + The type of GVariant passed to activate() + enabled -> gboolean: Enabled + If the action can be activated + state-type -> GVariantType: State Type + The type of the state kept by the action + state -> GVariant: State + The state the action is in + + Signals from GObject: + notify (GParam) + """ + class Props: enabled: bool name: str parameter_type: GLib.VariantType state: GLib.Variant state_type: GLib.VariantType - props: Props = ... def __init__( self, @@ -5579,6 +8285,26 @@ class SimpleAction(GObject.Object, Action): def set_state_hint(self, state_hint: Optional[GLib.Variant] = None) -> None: ... class SimpleActionGroup(GObject.Object, ActionGroup, ActionMap): + """ + :Constructors: + + :: + + SimpleActionGroup(**properties) + new() -> Gio.SimpleActionGroup + + Object GSimpleActionGroup + + Signals from GActionGroup: + action-added (gchararray) + action-removed (gchararray) + action-enabled-changed (gchararray, gboolean) + action-state-changed (gchararray, GVariant) + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: SimpleActionGroupPrivate = ... def add_entries(self, entries: Sequence[ActionEntry], user_data: None) -> None: ... @@ -5589,12 +8315,35 @@ class SimpleActionGroup(GObject.Object, ActionGroup, ActionMap): def remove(self, action_name: str) -> None: ... class SimpleActionGroupClass(GObject.GPointer): + """ + :Constructors: + + :: + + SimpleActionGroupClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class SimpleActionGroupPrivate(GObject.GPointer): ... class SimpleAsyncResult(GObject.Object, AsyncResult): + """ + :Constructors: + + :: + + SimpleAsyncResult(**properties) + new(source_object:GObject.Object=None, callback:Gio.AsyncReadyCallback=None, user_data=None, source_tag=None) -> Gio.SimpleAsyncResult + new_from_error(source_object:GObject.Object=None, callback:Gio.AsyncReadyCallback=None, user_data=None, error:error) -> Gio.SimpleAsyncResult + + Object GSimpleAsyncResult + + Signals from GObject: + notify (GParam) + """ + def complete(self) -> None: ... def complete_in_idle(self) -> None: ... def get_op_res_gboolean(self) -> bool: ... @@ -5631,11 +8380,38 @@ class SimpleAsyncResult(GObject.Object, AsyncResult): class SimpleAsyncResultClass(GObject.GPointer): ... class SimpleIOStream(IOStream): + """ + :Constructors: + + :: + + SimpleIOStream(**properties) + new(input_stream:Gio.InputStream, output_stream:Gio.OutputStream) -> Gio.IOStream + + Object GSimpleIOStream + + Properties from GSimpleIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: input_stream: InputStream output_stream: OutputStream closed: bool - props: Props = ... def __init__( self, input_stream: InputStream = ..., output_stream: OutputStream = ... @@ -5646,24 +8422,65 @@ class SimpleIOStream(IOStream): ) -> SimpleIOStream: ... class SimplePermission(Permission): + """ + :Constructors: + + :: + + SimplePermission(**properties) + new(allowed:bool) -> Gio.Permission + + Object GSimplePermission + + Properties from GPermission: + allowed -> gboolean: Is allowed + If the caller is allowed to perform the action + can-acquire -> gboolean: Can acquire + If calling g_permission_acquire() makes sense + can-release -> gboolean: Can release + If calling g_permission_release() makes sense + + Signals from GObject: + notify (GParam) + """ + class Props: allowed: bool can_acquire: bool can_release: bool - props: Props = ... @classmethod def new(cls, allowed: bool) -> SimplePermission: ... class SimpleProxyResolver(GObject.Object, ProxyResolver): + """ + :Constructors: + + :: + + SimpleProxyResolver(**properties) + + Object GSimpleProxyResolver + + Properties from GSimpleProxyResolver: + default-proxy -> gchararray: Default proxy + The default proxy URI + ignore-hosts -> GStrv: Ignore hosts + Hosts that will not use the proxy + + Signals from GObject: + notify (GParam) + """ + class Props: - default_proxy: str + default_proxy: Optional[str] ignore_hosts: list[str] - props: Props = ... parent_instance: GObject.Object = ... priv: SimpleProxyResolverPrivate = ... - def __init__(self, default_proxy: str = ..., ignore_hosts: Sequence[str] = ...): ... + def __init__( + self, default_proxy: Optional[str] = ..., ignore_hosts: Sequence[str] = ... + ): ... @staticmethod def new( default_proxy: Optional[str] = None, @@ -5674,6 +8491,14 @@ class SimpleProxyResolver(GObject.Object, ProxyResolver): def set_uri_proxy(self, uri_scheme: str, proxy: str) -> None: ... class SimpleProxyResolverClass(GObject.GPointer): + """ + :Constructors: + + :: + + SimpleProxyResolverClass() + """ + parent_class: GObject.ObjectClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -5684,6 +8509,51 @@ class SimpleProxyResolverClass(GObject.GPointer): class SimpleProxyResolverPrivate(GObject.GPointer): ... class Socket(GObject.Object, DatagramBased, Initable): + """ + :Constructors: + + :: + + Socket(**properties) + new(family:Gio.SocketFamily, type:Gio.SocketType, protocol:Gio.SocketProtocol) -> Gio.Socket + new_from_fd(fd:int) -> Gio.Socket + + Object GSocket + + Properties from GSocket: + family -> GSocketFamily: Socket family + The sockets address family + type -> GSocketType: Socket type + The sockets type + protocol -> GSocketProtocol: Socket protocol + The id of the protocol to use, or -1 for unknown + fd -> gint: File descriptor + The sockets file descriptor + blocking -> gboolean: blocking + Whether or not I/O on this socket is blocking + listen-backlog -> gint: Listen backlog + Outstanding connections in the listen queue + keepalive -> gboolean: Keep connection alive + Keep connection alive by sending periodic pings + local-address -> GSocketAddress: Local address + The local address the socket is bound to + remote-address -> GSocketAddress: Remote address + The remote address the socket is connected to + timeout -> guint: Timeout + The timeout in seconds on socket I/O + ttl -> guint: TTL + Time-to-live of outgoing unicast packets + broadcast -> gboolean: Broadcast + Whether to allow sending to broadcast addresses + multicast-loopback -> gboolean: Multicast loopback + Whether outgoing multicast packets loop back to the local host + multicast-ttl -> guint: Multicast TTL + Time-to-live of outgoing multicast packets + + Signals from GObject: + notify (GParam) + """ + class Props: blocking: bool broadcast: bool @@ -5699,7 +8569,6 @@ class Socket(GObject.Object, DatagramBased, Initable): timeout: int ttl: int type: SocketType - props: Props = ... parent_instance: GObject.Object = ... priv: SocketPrivate = ... @@ -5849,9 +8718,26 @@ class Socket(GObject.Object, DatagramBased, Initable): def speaks_ipv4(self) -> bool: ... class SocketAddress(GObject.Object, SocketConnectable): + """ + :Constructors: + + :: + + SocketAddress(**properties) + new_from_native(native, len:int) -> Gio.SocketAddress + + Object GSocketAddress + + Properties from GSocketAddress: + family -> GSocketFamily: Address family + The family of the socket address + + Signals from GObject: + notify (GParam) + """ + class Props: family: SocketFamily - props: Props = ... parent_instance: GObject.Object = ... def do_get_family(self) -> SocketFamily: ... @@ -5864,12 +8750,33 @@ class SocketAddress(GObject.Object, SocketConnectable): def to_native(self, dest: None, destlen: int) -> bool: ... class SocketAddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketAddressClass() + """ + parent_class: GObject.ObjectClass = ... get_family: Callable[[SocketAddress], SocketFamily] = ... get_native_size: Callable[[SocketAddress], int] = ... to_native: Callable[[SocketAddress, None, int], bool] = ... class SocketAddressEnumerator(GObject.Object): + """ + :Constructors: + + :: + + SocketAddressEnumerator(**properties) + + Object GSocketAddressEnumerator + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def do_next( self, cancellable: Optional[Cancellable] = None @@ -5893,6 +8800,14 @@ class SocketAddressEnumerator(GObject.Object): def next_finish(self, result: AsyncResult) -> Optional[SocketAddress]: ... class SocketAddressEnumeratorClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketAddressEnumeratorClass() + """ + parent_class: GObject.ObjectClass = ... next: Callable[ [SocketAddressEnumerator, Optional[Cancellable]], Optional[SocketAddress] @@ -5903,6 +8818,14 @@ class SocketAddressEnumeratorClass(GObject.GPointer): ] = ... class SocketClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketClass() + """ + parent_class: GObject.ObjectClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -5916,17 +8839,53 @@ class SocketClass(GObject.GPointer): _g_reserved10: None = ... class SocketClient(GObject.Object): + """ + :Constructors: + + :: + + SocketClient(**properties) + new() -> Gio.SocketClient + + Object GSocketClient + + Signals from GSocketClient: + event (GSocketClientEvent, GSocketConnectable, GIOStream) + + Properties from GSocketClient: + family -> GSocketFamily: Socket family + The sockets address family to use for socket construction + type -> GSocketType: Socket type + The sockets type to use for socket construction + protocol -> GSocketProtocol: Socket protocol + The protocol to use for socket construction, or 0 for default + local-address -> GSocketAddress: Local address + The local address constructed sockets will be bound to + timeout -> guint: Socket timeout + The I/O timeout for sockets, or 0 for none + enable-proxy -> gboolean: Enable proxy + Enable proxy support + tls -> gboolean: TLS + Whether to create TLS connections + tls-validation-flags -> GTlsCertificateFlags: TLS validation flags + TLS validation flags to use + proxy-resolver -> GProxyResolver: Proxy resolver + The proxy resolver to use + + Signals from GObject: + notify (GParam) + """ + class Props: enable_proxy: bool family: SocketFamily - local_address: SocketAddress + local_address: Optional[SocketAddress] protocol: SocketProtocol proxy_resolver: ProxyResolver timeout: int tls: bool tls_validation_flags: TlsCertificateFlags type: SocketType - props: Props = ... parent_instance: GObject.Object = ... priv: SocketClientPrivate = ... @@ -5934,9 +8893,9 @@ class SocketClient(GObject.Object): self, enable_proxy: bool = ..., family: SocketFamily = ..., - local_address: SocketAddress = ..., + local_address: Optional[SocketAddress] = ..., protocol: SocketProtocol = ..., - proxy_resolver: ProxyResolver = ..., + proxy_resolver: Optional[ProxyResolver] = ..., timeout: int = ..., tls: bool = ..., tls_validation_flags: TlsCertificateFlags = ..., @@ -6023,6 +8982,14 @@ class SocketClient(GObject.Object): def set_tls_validation_flags(self, flags: TlsCertificateFlags) -> None: ... class SocketClientClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketClientClass() + """ + parent_class: GObject.ObjectClass = ... event: Callable[ [SocketClient, SocketClientEvent, SocketConnectable, IOStream], None @@ -6035,23 +9002,62 @@ class SocketClientClass(GObject.GPointer): class SocketClientPrivate(GObject.GPointer): ... class SocketConnectable(GObject.GInterface): + """ + Interface GSocketConnectable + + Signals from GObject: + notify (GParam) + """ + def enumerate(self) -> SocketAddressEnumerator: ... def proxy_enumerate(self) -> SocketAddressEnumerator: ... def to_string(self) -> str: ... class SocketConnectableIface(GObject.GPointer): + """ + :Constructors: + + :: + + SocketConnectableIface() + """ + g_iface: GObject.TypeInterface = ... enumerate: Callable[[SocketConnectable], SocketAddressEnumerator] = ... proxy_enumerate: Callable[[SocketConnectable], SocketAddressEnumerator] = ... to_string: Callable[[SocketConnectable], str] = ... class SocketConnection(IOStream): + """ + :Constructors: + + :: + + SocketConnection(**properties) + + Object GSocketConnection + + Properties from GSocketConnection: + socket -> GSocket: Socket + The underlying GSocket + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: socket: Socket closed: bool input_stream: InputStream output_stream: OutputStream - props: Props = ... parent_instance: IOStream = ... priv: SocketConnectionPrivate = ... @@ -6081,6 +9087,14 @@ class SocketConnection(IOStream): def is_connected(self) -> bool: ... class SocketConnectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketConnectionClass() + """ + parent_class: IOStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -6092,12 +9106,25 @@ class SocketConnectionClass(GObject.GPointer): class SocketConnectionPrivate(GObject.GPointer): ... class SocketControlMessage(GObject.Object): + """ + :Constructors: + + :: + + SocketControlMessage(**properties) + + Object GSocketControlMessage + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: SocketControlMessagePrivate = ... @staticmethod def deserialize( - level: int, type: int, size: int, data: Sequence[int] - ) -> SocketControlMessage: ... + level: int, type: int, data: Sequence[int] + ) -> Optional[SocketControlMessage]: ... def do_get_level(self) -> int: ... def do_get_size(self) -> int: ... def do_get_type(self) -> int: ... @@ -6108,6 +9135,14 @@ class SocketControlMessage(GObject.Object): def serialize(self, data: None) -> None: ... class SocketControlMessageClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketControlMessageClass() + """ + parent_class: GObject.ObjectClass = ... get_size: Callable[[SocketControlMessage], int] = ... get_level: Callable[[SocketControlMessage], int] = ... @@ -6123,9 +9158,29 @@ class SocketControlMessageClass(GObject.GPointer): class SocketControlMessagePrivate(GObject.GPointer): ... class SocketListener(GObject.Object): + """ + :Constructors: + + :: + + SocketListener(**properties) + new() -> Gio.SocketListener + + Object GSocketListener + + Signals from GSocketListener: + event (GSocketListenerEvent, GSocket) + + Properties from GSocketListener: + listen-backlog -> gint: Listen backlog + outstanding connections in the listen queue + + Signals from GObject: + notify (GParam) + """ + class Props: listen_backlog: int - props: Props = ... parent_instance: GObject.Object = ... priv: SocketListenerPrivate = ... @@ -6178,6 +9233,14 @@ class SocketListener(GObject.Object): def set_backlog(self, listen_backlog: int) -> None: ... class SocketListenerClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketListenerClass() + """ + parent_class: GObject.ObjectClass = ... changed: Callable[[SocketListener], None] = ... event: Callable[[SocketListener, SocketListenerEvent, Socket], None] = ... @@ -6191,10 +9254,37 @@ class SocketListenerPrivate(GObject.GPointer): ... class SocketPrivate(GObject.GPointer): ... class SocketService(SocketListener): + """ + :Constructors: + + :: + + SocketService(**properties) + new() -> Gio.SocketService + + Object GSocketService + + Signals from GSocketService: + incoming (GSocketConnection, GObject) -> gboolean + + Properties from GSocketService: + active -> gboolean: Active + Whether the service is currently accepting connections + + Signals from GSocketListener: + event (GSocketListenerEvent, GSocket) + + Properties from GSocketListener: + listen-backlog -> gint: Listen backlog + outstanding connections in the listen queue + + Signals from GObject: + notify (GParam) + """ + class Props: active: bool listen_backlog: int - props: Props = ... parent_instance: SocketListener = ... priv: SocketServicePrivate = ... @@ -6209,6 +9299,14 @@ class SocketService(SocketListener): def stop(self) -> None: ... class SocketServiceClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketServiceClass() + """ + parent_class: SocketListenerClass = ... incoming: Callable[[SocketService, SocketConnection, GObject.Object], bool] = ... _g_reserved1: None = ... @@ -6221,6 +9319,14 @@ class SocketServiceClass(GObject.GPointer): class SocketServicePrivate(GObject.GPointer): ... class SrvTarget(GObject.GBoxed): + """ + :Constructors: + + :: + + new(hostname:str, port:int, priority:int, weight:int) -> Gio.SrvTarget + """ + def copy(self) -> SrvTarget: ... def free(self) -> None: ... def get_hostname(self) -> str: ... @@ -6230,7 +9336,15 @@ class SrvTarget(GObject.GBoxed): @classmethod def new(cls, hostname: str, port: int, priority: int, weight: int) -> SrvTarget: ... -class StaticResource(GObject.GPointer): +class StaticResource(GObject.GPointer): + """ + :Constructors: + + :: + + StaticResource() + """ + data: int = ... data_len: int = ... resource: Resource = ... @@ -6241,10 +9355,29 @@ class StaticResource(GObject.GPointer): def init(self) -> None: ... class Subprocess(GObject.Object, Initable): + """ + :Constructors: + + :: + + Subprocess(**properties) + new(argv:list, flags:Gio.SubprocessFlags) -> Gio.Subprocess + + Object GSubprocess + + Properties from GSubprocess: + flags -> GSubprocessFlags: Flags + Subprocess flags + argv -> GStrv: Arguments + Argument vector + + Signals from GObject: + notify (GParam) + """ + class Props: argv: list[str] flags: SubprocessFlags - props: Props = ... def __init__(self, argv: Sequence[str] = ..., flags: SubprocessFlags = ...): ... def communicate( @@ -6305,9 +9438,26 @@ class Subprocess(GObject.Object, Initable): def wait_finish(self, result: AsyncResult) -> bool: ... class SubprocessLauncher(GObject.Object): + """ + :Constructors: + + :: + + SubprocessLauncher(**properties) + new(flags:Gio.SubprocessFlags) -> Gio.SubprocessLauncher + + Object GSubprocessLauncher + + Properties from GSubprocessLauncher: + flags -> GSubprocessFlags: Flags + GSubprocessFlags for launched processes + + Signals from GObject: + notify (GParam) + """ + class Props: flags: SubprocessFlags - props: Props = ... def __init__(self, flags: SubprocessFlags = ...): ... def close(self) -> None: ... @@ -6329,11 +9479,28 @@ class SubprocessLauncher(GObject.Object): def unsetenv(self, variable: str) -> None: ... class Task(GObject.Object, AsyncResult): + """ + :Constructors: + + :: + + Task(**properties) + new(source_object:GObject.Object=None, cancellable:Gio.Cancellable=None, callback:Gio.AsyncReadyCallback=None, callback_data=None) -> Gio.Task + + Object GTask + + Properties from GTask: + completed -> gboolean: Task completed + Whether the task has completed yet + + Signals from GObject: + notify (GParam) + """ + class Props: completed: bool - props: Props = ... - def get_cancellable(self) -> Cancellable: ... + def get_cancellable(self) -> Optional[Cancellable]: ... def get_check_cancellable(self) -> bool: ... def get_completed(self) -> bool: ... def get_context(self) -> GLib.MainContext: ... @@ -6389,6 +9556,7 @@ class Task(GObject.Object, AsyncResult): def set_priority(self, priority: int) -> None: ... def set_return_on_cancel(self, return_on_cancel: bool) -> bool: ... def set_source_tag(self, source_tag: None) -> None: ... + def set_static_name(self, name: Optional[str] = None) -> None: ... def set_task_data( self, task_data: None, @@ -6398,13 +9566,41 @@ class Task(GObject.Object, AsyncResult): class TaskClass(GObject.GPointer): ... class TcpConnection(SocketConnection): + """ + :Constructors: + + :: + + TcpConnection(**properties) + + Object GTcpConnection + + Properties from GTcpConnection: + graceful-disconnect -> gboolean: Graceful Disconnect + Whether or not close does a graceful disconnect + + Properties from GSocketConnection: + socket -> GSocket: Socket + The underlying GSocket + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: graceful_disconnect: bool socket: Socket closed: bool input_stream: InputStream output_stream: OutputStream - props: Props = ... parent_instance: SocketConnection = ... priv: TcpConnectionPrivate = ... @@ -6413,11 +9609,53 @@ class TcpConnection(SocketConnection): def set_graceful_disconnect(self, graceful_disconnect: bool) -> None: ... class TcpConnectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + TcpConnectionClass() + """ + parent_class: SocketConnectionClass = ... class TcpConnectionPrivate(GObject.GPointer): ... class TcpWrapperConnection(TcpConnection): + """ + :Constructors: + + :: + + TcpWrapperConnection(**properties) + new(base_io_stream:Gio.IOStream, socket:Gio.Socket) -> Gio.SocketConnection + + Object GTcpWrapperConnection + + Properties from GTcpWrapperConnection: + base-io-stream -> GIOStream: Base IO Stream + The wrapped GIOStream + + Properties from GTcpConnection: + graceful-disconnect -> gboolean: Graceful Disconnect + Whether or not close does a graceful disconnect + + Properties from GSocketConnection: + socket -> GSocket: Socket + The underlying GSocket + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: base_io_stream: IOStream graceful_disconnect: bool @@ -6425,7 +9663,6 @@ class TcpWrapperConnection(TcpConnection): closed: bool input_stream: InputStream output_stream: OutputStream - props: Props = ... parent_instance: TcpConnection = ... priv: TcpWrapperConnectionPrivate = ... @@ -6440,14 +9677,39 @@ class TcpWrapperConnection(TcpConnection): def new(cls, base_io_stream: IOStream, socket: Socket) -> TcpWrapperConnection: ... class TcpWrapperConnectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + TcpWrapperConnectionClass() + """ + parent_class: TcpConnectionClass = ... class TcpWrapperConnectionPrivate(GObject.GPointer): ... class TestDBus(GObject.Object): + """ + :Constructors: + + :: + + TestDBus(**properties) + new(flags:Gio.TestDBusFlags) -> Gio.TestDBus + + Object GTestDBus + + Properties from GTestDBus: + flags -> GTestDBusFlags: D-Bus session flags + Flags specifying the behaviour of the D-Bus session + + Signals from GObject: + notify (GParam) + """ + class Props: flags: TestDBusFlags - props: Props = ... def __init__(self, flags: TestDBusFlags = ...): ... def add_service_dir(self, path: str) -> None: ... @@ -6462,11 +9724,34 @@ class TestDBus(GObject.Object): def up(self) -> None: ... class ThemedIcon(GObject.Object, Icon): + """ + :Constructors: + + :: + + ThemedIcon(**properties) + new(iconname:str) -> Gio.ThemedIcon + new_from_names(iconnames:list) -> Gio.ThemedIcon + new_with_default_fallbacks(iconname:str) -> Gio.ThemedIcon + + Object GThemedIcon + + Properties from GThemedIcon: + name -> gchararray: name + The name of the icon + names -> GStrv: names + An array containing the icon names + use-default-fallbacks -> gboolean: use default fallbacks + Whether to use default fallbacks found by shortening the name at “-” characters. Ignores names after the first if multiple names are given. + + Signals from GObject: + notify (GParam) + """ + class Props: - name: str names: list[str] use_default_fallbacks: bool - + name: str props: Props = ... def __init__( self, @@ -6487,11 +9772,45 @@ class ThemedIcon(GObject.Object, Icon): class ThemedIconClass(GObject.GPointer): ... class ThreadedSocketService(SocketService): + """ + :Constructors: + + :: + + ThreadedSocketService(**properties) + new(max_threads:int) -> Gio.SocketService + + Object GThreadedSocketService + + Signals from GThreadedSocketService: + run (GSocketConnection, GObject) -> gboolean + + Properties from GThreadedSocketService: + max-threads -> gint: Max threads + The max number of threads handling clients for this service + + Signals from GSocketService: + incoming (GSocketConnection, GObject) -> gboolean + + Properties from GSocketService: + active -> gboolean: Active + Whether the service is currently accepting connections + + Signals from GSocketListener: + event (GSocketListenerEvent, GSocket) + + Properties from GSocketListener: + listen-backlog -> gint: Listen backlog + outstanding connections in the listen queue + + Signals from GObject: + notify (GParam) + """ + class Props: max_threads: int active: bool listen_backlog: int - props: Props = ... parent_instance: SocketService = ... priv: ThreadedSocketServicePrivate = ... @@ -6505,6 +9824,14 @@ class ThreadedSocketService(SocketService): def new(cls, max_threads: int) -> ThreadedSocketService: ... class ThreadedSocketServiceClass(GObject.GPointer): + """ + :Constructors: + + :: + + ThreadedSocketServiceClass() + """ + parent_class: SocketServiceClass = ... run: Callable[[ThreadedSocketService, SocketConnection, GObject.Object], bool] = ... _g_reserved1: None = ... @@ -6516,6 +9843,13 @@ class ThreadedSocketServiceClass(GObject.GPointer): class ThreadedSocketServicePrivate(GObject.GPointer): ... class TlsBackend(GObject.GInterface): + """ + Interface GTlsBackend + + Signals from GObject: + notify (GParam) + """ + def get_certificate_type(self) -> Type: ... def get_client_connection_type(self) -> Type: ... @staticmethod @@ -6530,6 +9864,14 @@ class TlsBackend(GObject.GInterface): def supports_tls(self) -> bool: ... class TlsBackendInterface(GObject.GPointer): + """ + :Constructors: + + :: + + TlsBackendInterface() + """ + g_iface: GObject.TypeInterface = ... supports_tls: Callable[[TlsBackend], bool] = ... get_certificate_type: Callable[[], Type] = ... @@ -6542,23 +9884,73 @@ class TlsBackendInterface(GObject.GPointer): get_dtls_server_connection_type: Callable[[], Type] = ... class TlsCertificate(GObject.Object): + """ + :Constructors: + + :: + + TlsCertificate(**properties) + new_from_file(file:str) -> Gio.TlsCertificate + new_from_file_with_password(file:str, password:str) -> Gio.TlsCertificate + new_from_files(cert_file:str, key_file:str) -> Gio.TlsCertificate + new_from_pem(data:str, length:int) -> Gio.TlsCertificate + new_from_pkcs11_uris(pkcs11_uri:str, private_key_pkcs11_uri:str=None) -> Gio.TlsCertificate + new_from_pkcs12(data:list, password:str=None) -> Gio.TlsCertificate + + Object GTlsCertificate + + Properties from GTlsCertificate: + certificate -> GByteArray: Certificate + The DER representation of the certificate + certificate-pem -> gchararray: Certificate (PEM) + The PEM representation of the certificate + private-key -> GByteArray: Private key + The DER representation of the certificate’s private key + private-key-pem -> gchararray: Private key (PEM) + The PEM representation of the certificate’s private key + issuer -> GTlsCertificate: Issuer + The certificate for the issuing entity + pkcs11-uri -> gchararray: PKCS #11 URI + The PKCS #11 URI + private-key-pkcs11-uri -> gchararray: PKCS #11 URI + The PKCS #11 URI for a private key + not-valid-before -> GDateTime: Not Valid Before + Cert should not be considered valid before this time. + not-valid-after -> GDateTime: Not Valid after + Cert should not be considered valid after this time. + subject-name -> gchararray: Subject Name + The subject name from the certificate. + issuer-name -> gchararray: Issuer Name + The issuer from the certificate. + dns-names -> GPtrArray: DNS Names + DNS Names listed on the cert. + ip-addresses -> GPtrArray: IP Addresses + IP Addresses listed on the cert. + pkcs12-data -> GByteArray: PKCS #12 data + The PKCS #12 data used for construction + password -> gchararray: Password + Password used when constructing from bytes + + Signals from GObject: + notify (GParam) + """ + class Props: certificate: bytes certificate_pem: str - dns_names: list[None] - ip_addresses: list[None] - issuer: TlsCertificate - issuer_name: str - not_valid_after: GLib.DateTime - not_valid_before: GLib.DateTime - password: str + dns_names: Optional[list[None]] + ip_addresses: Optional[list[None]] + issuer: Optional[TlsCertificate] + issuer_name: Optional[str] + not_valid_after: Optional[GLib.DateTime] + not_valid_before: Optional[GLib.DateTime] pkcs11_uri: str - pkcs12_data: bytes private_key: bytes private_key_pem: str private_key_pkcs11_uri: str - subject_name: str - + subject_name: Optional[str] + password: str + pkcs12_data: bytes props: Props = ... parent_instance: GObject.Object = ... priv: TlsCertificatePrivate = ... @@ -6614,6 +10006,14 @@ class TlsCertificate(GObject.Object): ) -> TlsCertificateFlags: ... class TlsCertificateClass(GObject.GPointer): + """ + :Constructors: + + :: + + TlsCertificateClass() + """ + parent_class: GObject.ObjectClass = ... verify: Callable[ [TlsCertificate, Optional[SocketConnectable], Optional[TlsCertificate]], @@ -6624,6 +10024,13 @@ class TlsCertificateClass(GObject.GPointer): class TlsCertificatePrivate(GObject.GPointer): ... class TlsClientConnection(GObject.GInterface): + """ + Interface GTlsClientConnection + + Signals from GObject: + notify (GParam) + """ + def copy_session_state(self, source: TlsClientConnection) -> None: ... def get_accepted_cas(self) -> list[Sequence[int]]: ... def get_server_identity(self) -> Optional[SocketConnectable]: ... @@ -6638,19 +10045,79 @@ class TlsClientConnection(GObject.GInterface): def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ... class TlsClientConnectionInterface(GObject.GPointer): + """ + :Constructors: + + :: + + TlsClientConnectionInterface() + """ + g_iface: GObject.TypeInterface = ... copy_session_state: Callable[[TlsClientConnection, TlsClientConnection], None] = ... class TlsConnection(IOStream): + """ + :Constructors: + + :: + + TlsConnection(**properties) + + Object GTlsConnection + + Signals from GTlsConnection: + accept-certificate (GTlsCertificate, GTlsCertificateFlags) -> gboolean + + Properties from GTlsConnection: + base-io-stream -> GIOStream: Base IOStream + The GIOStream that the connection wraps + require-close-notify -> gboolean: Require close notify + Whether to require proper TLS close notification + rehandshake-mode -> GTlsRehandshakeMode: Rehandshake mode + When to allow rehandshaking + use-system-certdb -> gboolean: Use system certificate database + Whether to verify peer certificates against the system certificate database + database -> GTlsDatabase: Database + Certificate database to use for looking up or verifying certificates + interaction -> GTlsInteraction: Interaction + Optional object for user interaction + certificate -> GTlsCertificate: Certificate + The connection’s certificate + peer-certificate -> GTlsCertificate: Peer Certificate + The connection’s peer’s certificate + peer-certificate-errors -> GTlsCertificateFlags: Peer Certificate Errors + Errors found with the peer’s certificate + advertised-protocols -> GStrv: Advertised Protocols + Application-layer protocols available on this connection + negotiated-protocol -> gchararray: Negotiated Protocol + Application-layer protocol negotiated for this connection + protocol-version -> GTlsProtocolVersion: Protocol Version + TLS protocol version negotiated for this connection + ciphersuite-name -> gchararray: Ciphersuite Name + Name of ciphersuite negotiated for this connection + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: - advertised_protocols: list[str] + advertised_protocols: Optional[list[str]] base_io_stream: IOStream - certificate: TlsCertificate - ciphersuite_name: str - database: TlsDatabase - interaction: TlsInteraction - negotiated_protocol: str - peer_certificate: TlsCertificate + certificate: Optional[TlsCertificate] + ciphersuite_name: Optional[str] + database: Optional[TlsDatabase] + interaction: Optional[TlsInteraction] + negotiated_protocol: Optional[str] + peer_certificate: Optional[TlsCertificate] peer_certificate_errors: TlsCertificateFlags protocol_version: TlsProtocolVersion rehandshake_mode: TlsRehandshakeMode @@ -6659,17 +10126,16 @@ class TlsConnection(IOStream): closed: bool input_stream: InputStream output_stream: OutputStream - props: Props = ... parent_instance: IOStream = ... priv: TlsConnectionPrivate = ... def __init__( self, - advertised_protocols: Sequence[str] = ..., + advertised_protocols: Optional[Sequence[str]] = ..., base_io_stream: IOStream = ..., certificate: TlsCertificate = ..., - database: TlsDatabase = ..., - interaction: TlsInteraction = ..., + database: Optional[TlsDatabase] = ..., + interaction: Optional[TlsInteraction] = ..., rehandshake_mode: TlsRehandshakeMode = ..., require_close_notify: bool = ..., use_system_certdb: bool = ..., @@ -6727,6 +10193,14 @@ class TlsConnection(IOStream): def set_use_system_certdb(self, use_system_certdb: bool) -> None: ... class TlsConnectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + TlsConnectionClass() + """ + parent_class: IOStreamClass = ... accept_certificate: Callable[ [TlsConnection, TlsCertificate, TlsCertificateFlags], bool @@ -6743,6 +10217,19 @@ class TlsConnectionClass(GObject.GPointer): class TlsConnectionPrivate(GObject.GPointer): ... class TlsDatabase(GObject.Object): + """ + :Constructors: + + :: + + TlsDatabase(**properties) + + Object GTlsDatabase + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: TlsDatabasePrivate = ... def create_certificate_handle( @@ -6909,6 +10396,14 @@ class TlsDatabase(GObject.Object): def verify_chain_finish(self, result: AsyncResult) -> TlsCertificateFlags: ... class TlsDatabaseClass(GObject.GPointer): + """ + :Constructors: + + :: + + TlsDatabaseClass() + """ + parent_class: GObject.ObjectClass = ... verify_chain: Callable[ [ @@ -6974,14 +10469,42 @@ class TlsDatabaseClass(GObject.GPointer): class TlsDatabasePrivate(GObject.GPointer): ... class TlsFileDatabase(GObject.GInterface): + """ + Interface GTlsFileDatabase + + Signals from GObject: + notify (GParam) + """ + @staticmethod def new(anchors: str) -> TlsFileDatabase: ... class TlsFileDatabaseInterface(GObject.GPointer): + """ + :Constructors: + + :: + + TlsFileDatabaseInterface() + """ + g_iface: GObject.TypeInterface = ... padding: list[None] = ... class TlsInteraction(GObject.Object): + """ + :Constructors: + + :: + + TlsInteraction(**properties) + + Object GTlsInteraction + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: TlsInteractionPrivate = ... def ask_password( @@ -7051,6 +10574,14 @@ class TlsInteraction(GObject.Object): ) -> TlsInteractionResult: ... class TlsInteractionClass(GObject.GPointer): + """ + :Constructors: + + :: + + TlsInteractionClass() + """ + parent_class: GObject.ObjectClass = ... ask_password: Callable[ [TlsInteraction, TlsPassword, Optional[Cancellable]], TlsInteractionResult @@ -7077,11 +10608,32 @@ class TlsInteractionClass(GObject.GPointer): class TlsInteractionPrivate(GObject.GPointer): ... class TlsPassword(GObject.Object): + """ + :Constructors: + + :: + + TlsPassword(**properties) + new(flags:Gio.TlsPasswordFlags, description:str) -> Gio.TlsPassword + + Object GTlsPassword + + Properties from GTlsPassword: + flags -> GTlsPasswordFlags: Flags + Flags about the password + description -> gchararray: Description + Description of what the password is for + warning -> gchararray: Warning + Warning about the password + + Signals from GObject: + notify (GParam) + """ + class Props: description: str flags: TlsPasswordFlags warning: str - props: Props = ... parent_instance: GObject.Object = ... priv: TlsPasswordPrivate = ... @@ -7108,6 +10660,14 @@ class TlsPassword(GObject.Object): def set_warning(self, warning: str) -> None: ... class TlsPasswordClass(GObject.GPointer): + """ + :Constructors: + + :: + + TlsPasswordClass() + """ + parent_class: GObject.ObjectClass = ... get_value: Callable[[TlsPassword], bytes] = ... set_value: Callable[ @@ -7119,21 +10679,60 @@ class TlsPasswordClass(GObject.GPointer): class TlsPasswordPrivate(GObject.GPointer): ... class TlsServerConnection(GObject.GInterface): + """ + Interface GTlsServerConnection + + Signals from GObject: + notify (GParam) + """ + @staticmethod def new( base_io_stream: IOStream, certificate: Optional[TlsCertificate] = None ) -> TlsServerConnection: ... class TlsServerConnectionInterface(GObject.GPointer): + """ + :Constructors: + + :: + + TlsServerConnectionInterface() + """ + g_iface: GObject.TypeInterface = ... class UnixConnection(SocketConnection): + """ + :Constructors: + + :: + + UnixConnection(**properties) + + Object GUnixConnection + + Properties from GSocketConnection: + socket -> GSocket: Socket + The underlying GSocket + + Properties from GIOStream: + input-stream -> GInputStream: Input stream + The GInputStream to read from + output-stream -> GOutputStream: Output stream + The GOutputStream to write to + closed -> gboolean: Closed + Is the stream closed + + Signals from GObject: + notify (GParam) + """ + class Props: socket: Socket closed: bool input_stream: InputStream output_stream: OutputStream - props: Props = ... parent_instance: SocketConnection = ... priv: UnixConnectionPrivate = ... @@ -7160,14 +10759,40 @@ class UnixConnection(SocketConnection): def send_fd(self, fd: int, cancellable: Optional[Cancellable] = None) -> bool: ... class UnixConnectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + UnixConnectionClass() + """ + parent_class: SocketConnectionClass = ... class UnixConnectionPrivate(GObject.GPointer): ... class UnixCredentialsMessage(SocketControlMessage): + """ + :Constructors: + + :: + + UnixCredentialsMessage(**properties) + new() -> Gio.SocketControlMessage + new_with_credentials(credentials:Gio.Credentials) -> Gio.SocketControlMessage + + Object GUnixCredentialsMessage + + Properties from GUnixCredentialsMessage: + credentials -> GCredentials: Credentials + The credentials stored in the message + + Signals from GObject: + notify (GParam) + """ + class Props: credentials: Credentials - props: Props = ... parent_instance: SocketControlMessage = ... priv: UnixCredentialsMessagePrivate = ... @@ -7183,6 +10808,14 @@ class UnixCredentialsMessage(SocketControlMessage): ) -> UnixCredentialsMessage: ... class UnixCredentialsMessageClass(GObject.GPointer): + """ + :Constructors: + + :: + + UnixCredentialsMessageClass() + """ + parent_class: SocketControlMessageClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -7190,6 +10823,21 @@ class UnixCredentialsMessageClass(GObject.GPointer): class UnixCredentialsMessagePrivate(GObject.GPointer): ... class UnixFDList(GObject.Object): + """ + :Constructors: + + :: + + UnixFDList(**properties) + new() -> Gio.UnixFDList + new_from_array(fds:list) -> Gio.UnixFDList + + Object GUnixFDList + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: UnixFDListPrivate = ... def append(self, fd: int) -> int: ... @@ -7203,6 +10851,14 @@ class UnixFDList(GObject.Object): def steal_fds(self) -> list[int]: ... class UnixFDListClass(GObject.GPointer): + """ + :Constructors: + + :: + + UnixFDListClass() + """ + parent_class: GObject.ObjectClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -7213,9 +10869,27 @@ class UnixFDListClass(GObject.GPointer): class UnixFDListPrivate(GObject.GPointer): ... class UnixFDMessage(SocketControlMessage): + """ + :Constructors: + + :: + + UnixFDMessage(**properties) + new() -> Gio.SocketControlMessage + new_with_fd_list(fd_list:Gio.UnixFDList) -> Gio.SocketControlMessage + + Object GUnixFDMessage + + Properties from GUnixFDMessage: + fd-list -> GUnixFDList: file descriptor list + The GUnixFDList object to send with the message + + Signals from GObject: + notify (GParam) + """ + class Props: fd_list: UnixFDList - props: Props = ... parent_instance: SocketControlMessage = ... priv: UnixFDMessagePrivate = ... @@ -7229,6 +10903,14 @@ class UnixFDMessage(SocketControlMessage): def steal_fds(self) -> list[int]: ... class UnixFDMessageClass(GObject.GPointer): + """ + :Constructors: + + :: + + UnixFDMessageClass() + """ + parent_class: SocketControlMessageClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -7236,10 +10918,29 @@ class UnixFDMessageClass(GObject.GPointer): class UnixFDMessagePrivate(GObject.GPointer): ... class UnixInputStream(InputStream, FileDescriptorBased, PollableInputStream): + """ + :Constructors: + + :: + + UnixInputStream(**properties) + new(fd:int, close_fd:bool) -> Gio.InputStream + + Object GUnixInputStream + + Properties from GUnixInputStream: + fd -> gint: File descriptor + The file descriptor to read from + close-fd -> gboolean: Close file descriptor + Whether to close the file descriptor when the stream is closed + + Signals from GObject: + notify (GParam) + """ + class Props: close_fd: bool fd: int - props: Props = ... parent_instance: InputStream = ... priv: UnixInputStreamPrivate = ... @@ -7251,6 +10952,14 @@ class UnixInputStream(InputStream, FileDescriptorBased, PollableInputStream): def set_close_fd(self, close_fd: bool) -> None: ... class UnixInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + UnixInputStreamClass() + """ + parent_class: InputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -7262,6 +10971,24 @@ class UnixInputStreamPrivate(GObject.GPointer): ... class UnixMountEntry(GObject.GBoxed): ... class UnixMountMonitor(GObject.Object): + """ + :Constructors: + + :: + + UnixMountMonitor(**properties) + new() -> Gio.UnixMountMonitor + + Object GUnixMountMonitor + + Signals from GUnixMountMonitor: + mounts-changed () + mountpoints-changed () + + Signals from GObject: + notify (GParam) + """ + @staticmethod def get() -> UnixMountMonitor: ... @classmethod @@ -7289,10 +11016,29 @@ class UnixMountPoint(GObject.GBoxed): def is_user_mountable(self) -> bool: ... class UnixOutputStream(OutputStream, FileDescriptorBased, PollableOutputStream): + """ + :Constructors: + + :: + + UnixOutputStream(**properties) + new(fd:int, close_fd:bool) -> Gio.OutputStream + + Object GUnixOutputStream + + Properties from GUnixOutputStream: + fd -> gint: File descriptor + The file descriptor to write to + close-fd -> gboolean: Close file descriptor + Whether to close the file descriptor when the stream is closed + + Signals from GObject: + notify (GParam) + """ + class Props: close_fd: bool fd: int - props: Props = ... parent_instance: OutputStream = ... priv: UnixOutputStreamPrivate = ... @@ -7304,6 +11050,14 @@ class UnixOutputStream(OutputStream, FileDescriptorBased, PollableOutputStream): def set_close_fd(self, close_fd: bool) -> None: ... class UnixOutputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + UnixOutputStreamClass() + """ + parent_class: OutputStreamClass = ... _g_reserved1: None = ... _g_reserved2: None = ... @@ -7314,13 +11068,42 @@ class UnixOutputStreamClass(GObject.GPointer): class UnixOutputStreamPrivate(GObject.GPointer): ... class UnixSocketAddress(SocketAddress, SocketConnectable): + """ + :Constructors: + + :: + + UnixSocketAddress(**properties) + new(path:str) -> Gio.SocketAddress + new_abstract(path:list) -> Gio.SocketAddress + new_with_type(path:list, type:Gio.UnixSocketAddressType) -> Gio.SocketAddress + + Object GUnixSocketAddress + + Properties from GUnixSocketAddress: + path -> gchararray: Path + UNIX socket path + path-as-array -> GByteArray: Path array + UNIX socket path, as byte array + abstract -> gboolean: Abstract + Whether or not this is an abstract address + address-type -> GUnixSocketAddressType: Address type + The type of UNIX socket address + + Properties from GSocketAddress: + family -> GSocketFamily: Address family + The family of the socket address + + Signals from GObject: + notify (GParam) + """ + class Props: abstract: bool address_type: UnixSocketAddressType path: str path_as_array: bytes family: SocketFamily - props: Props = ... parent_instance: SocketAddress = ... priv: UnixSocketAddressPrivate = ... @@ -7347,11 +11130,32 @@ class UnixSocketAddress(SocketAddress, SocketConnectable): ) -> UnixSocketAddress: ... class UnixSocketAddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + UnixSocketAddressClass() + """ + parent_class: SocketAddressClass = ... class UnixSocketAddressPrivate(GObject.GPointer): ... class Vfs(GObject.Object): + """ + :Constructors: + + :: + + Vfs(**properties) + + Object GVfs + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def do_add_writable_namespaces(self, list: FileAttributeInfoList) -> None: ... def do_get_file_for_path(self, path: str) -> File: ... @@ -7397,6 +11201,14 @@ class Vfs(GObject.Object): def unregister_uri_scheme(self, scheme: str) -> bool: ... class VfsClass(GObject.GPointer): + """ + :Constructors: + + :: + + VfsClass() + """ + parent_class: GObject.ObjectClass = ... is_active: Callable[[Vfs], bool] = ... get_file_for_path: Callable[[Vfs, str], File] = ... @@ -7431,6 +11243,13 @@ class VfsClass(GObject.GPointer): _g_reserved6: None = ... class Volume(GObject.GInterface): + """ + Interface GVolume + + Signals from GObject: + notify (GParam) + """ + def can_eject(self) -> bool: ... def can_mount(self) -> bool: ... def eject( @@ -7472,6 +11291,14 @@ class Volume(GObject.GInterface): def should_automount(self) -> bool: ... class VolumeIface(GObject.GPointer): + """ + :Constructors: + + :: + + VolumeIface() + """ + g_iface: GObject.TypeInterface = ... changed: Callable[[Volume], None] = ... removed: Callable[[Volume], None] = ... @@ -7496,6 +11323,33 @@ class VolumeIface(GObject.GPointer): get_symbolic_icon: Callable[[Volume], Icon] = ... class VolumeMonitor(GObject.Object): + """ + :Constructors: + + :: + + VolumeMonitor(**properties) + + Object GVolumeMonitor + + Signals from GVolumeMonitor: + volume-added (GVolume) + volume-removed (GVolume) + volume-changed (GVolume) + mount-added (GMount) + mount-removed (GMount) + mount-pre-unmount (GMount) + mount-changed (GMount) + drive-connected (GDrive) + drive-disconnected (GDrive) + drive-changed (GDrive) + drive-eject-button (GDrive) + drive-stop-button (GDrive) + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... priv: None = ... @staticmethod @@ -7526,6 +11380,14 @@ class VolumeMonitor(GObject.Object): def get_volumes(self) -> list[Volume]: ... class VolumeMonitorClass(GObject.GPointer): + """ + :Constructors: + + :: + + VolumeMonitorClass() + """ + parent_class: GObject.ObjectClass = ... volume_added: Callable[[VolumeMonitor, Volume], None] = ... volume_removed: Callable[[VolumeMonitor, Volume], None] = ... @@ -7554,15 +11416,36 @@ class VolumeMonitorClass(GObject.GPointer): _g_reserved6: None = ... class ZlibCompressor(GObject.Object, Converter): + """ + :Constructors: + + :: + + ZlibCompressor(**properties) + new(format:Gio.ZlibCompressorFormat, level:int) -> Gio.ZlibCompressor + + Object GZlibCompressor + + Properties from GZlibCompressor: + format -> GZlibCompressorFormat: compression format + The format of the compressed data + level -> gint: compression level + The level of compression from 0 (no compression) to 9 (most compression), -1 for the default level + file-info -> GFileInfo: file info + File info + + Signals from GObject: + notify (GParam) + """ + class Props: - file_info: FileInfo + file_info: Optional[FileInfo] format: ZlibCompressorFormat level: int - props: Props = ... def __init__( self, - file_info: FileInfo = ..., + file_info: Optional[FileInfo] = ..., format: ZlibCompressorFormat = ..., level: int = ..., ): ... @@ -7572,13 +11455,40 @@ class ZlibCompressor(GObject.Object, Converter): def set_file_info(self, file_info: Optional[FileInfo] = None) -> None: ... class ZlibCompressorClass(GObject.GPointer): + """ + :Constructors: + + :: + + ZlibCompressorClass() + """ + parent_class: GObject.ObjectClass = ... class ZlibDecompressor(GObject.Object, Converter): + """ + :Constructors: + + :: + + ZlibDecompressor(**properties) + new(format:Gio.ZlibCompressorFormat) -> Gio.ZlibDecompressor + + Object GZlibDecompressor + + Properties from GZlibDecompressor: + format -> GZlibCompressorFormat: compression format + The format of the compressed data + file-info -> GFileInfo: file info + File info + + Signals from GObject: + notify (GParam) + """ + class Props: - file_info: FileInfo + file_info: Optional[FileInfo] format: ZlibCompressorFormat - props: Props = ... def __init__(self, format: ZlibCompressorFormat = ...): ... def get_file_info(self) -> Optional[FileInfo]: ... @@ -7586,6 +11496,14 @@ class ZlibDecompressor(GObject.Object, Converter): def new(cls, format: ZlibCompressorFormat) -> ZlibDecompressor: ... class ZlibDecompressorClass(GObject.GPointer): + """ + :Constructors: + + :: + + ZlibDecompressorClass() + """ + parent_class: GObject.ObjectClass = ... class AppInfoCreateFlags(GObject.GFlags): diff --git a/src/gi-stubs/repository/Goa.pyi b/src/gi-stubs/repository/Goa.pyi index 6f051015..0c94854b 100644 --- a/src/gi-stubs/repository/Goa.pyi +++ b/src/gi-stubs/repository/Goa.pyi @@ -162,22 +162,22 @@ class AccountIface(GObject.GPointer): get_chat_disabled: Callable[[Account], bool] = ... get_contacts_disabled: Callable[[Account], bool] = ... get_documents_disabled: Callable[[Account], bool] = ... + get_files_disabled: Callable[[Account], bool] = ... get_id: Callable[[Account], Optional[str]] = ... get_identity: Callable[[Account], Optional[str]] = ... + get_is_locked: Callable[[Account], bool] = ... get_is_temporary: Callable[[Account], bool] = ... get_mail_disabled: Callable[[Account], bool] = ... + get_maps_disabled: Callable[[Account], bool] = ... + get_music_disabled: Callable[[Account], bool] = ... + get_photos_disabled: Callable[[Account], bool] = ... get_presentation_identity: Callable[[Account], Optional[str]] = ... + get_printers_disabled: Callable[[Account], bool] = ... get_provider_icon: Callable[[Account], Optional[str]] = ... get_provider_name: Callable[[Account], Optional[str]] = ... get_provider_type: Callable[[Account], Optional[str]] = ... - get_ticketing_disabled: Callable[[Account], bool] = ... - get_files_disabled: Callable[[Account], bool] = ... - get_photos_disabled: Callable[[Account], bool] = ... - get_printers_disabled: Callable[[Account], bool] = ... get_read_later_disabled: Callable[[Account], bool] = ... - get_maps_disabled: Callable[[Account], bool] = ... - get_is_locked: Callable[[Account], bool] = ... - get_music_disabled: Callable[[Account], bool] = ... + get_ticketing_disabled: Callable[[Account], bool] = ... get_todo_disabled: Callable[[Account], bool] = ... class AccountProxy( @@ -260,7 +260,6 @@ class AccountProxy( ticketing_disabled: bool todo_disabled: bool g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: AccountProxyPrivate = ... @@ -403,7 +402,6 @@ class AccountSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Account): read_later_disabled: bool ticketing_disabled: bool todo_disabled: bool - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: AccountSkeletonPrivate = ... @@ -533,7 +531,6 @@ class CalendarProxy( accept_ssl_errors: bool uri: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: CalendarProxyPrivate = ... @@ -632,7 +629,6 @@ class CalendarSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Calendar): g_flags: Gio.DBusInterfaceSkeletonFlags accept_ssl_errors: bool uri: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: CalendarSkeletonPrivate = ... @@ -738,7 +734,6 @@ class ChatProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: ChatProxyPrivate = ... @@ -833,7 +828,6 @@ class ChatSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Chat): class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: ChatSkeletonPrivate = ... @@ -881,7 +875,6 @@ class Client(GObject.Object, Gio.AsyncInitable, Gio.Initable): class Props: object_manager: Gio.DBusObjectManager - props: Props = ... def get_accounts(self) -> list[Object]: ... def get_manager(self) -> Optional[Manager]: ... @@ -993,7 +986,6 @@ class ContactsProxy( accept_ssl_errors: bool uri: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: ContactsProxyPrivate = ... @@ -1092,7 +1084,6 @@ class ContactsSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Contacts): g_flags: Gio.DBusInterfaceSkeletonFlags accept_ssl_errors: bool uri: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: ContactsSkeletonPrivate = ... @@ -1198,7 +1189,6 @@ class DocumentsProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: DocumentsProxyPrivate = ... @@ -1293,7 +1283,6 @@ class DocumentsSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Documents) class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: DocumentsSkeletonPrivate = ... @@ -1339,8 +1328,8 @@ class ExchangeIface(GObject.GPointer): """ parent_iface: GObject.TypeInterface = ... - get_host: Callable[[Exchange], Optional[str]] = ... get_accept_ssl_errors: Callable[[Exchange], bool] = ... + get_host: Callable[[Exchange], Optional[str]] = ... class ExchangeProxy( Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, Exchange @@ -1398,7 +1387,6 @@ class ExchangeProxy( accept_ssl_errors: bool host: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: ExchangeProxyPrivate = ... @@ -1497,7 +1485,6 @@ class ExchangeSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Exchange): g_flags: Gio.DBusInterfaceSkeletonFlags accept_ssl_errors: bool host: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: ExchangeSkeletonPrivate = ... @@ -1607,7 +1594,6 @@ class FilesProxy( accept_ssl_errors: bool uri: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: FilesProxyPrivate = ... @@ -1706,7 +1692,6 @@ class FilesSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Files): g_flags: Gio.DBusInterfaceSkeletonFlags accept_ssl_errors: bool uri: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: FilesSkeletonPrivate = ... @@ -1758,23 +1743,23 @@ class MailIface(GObject.GPointer): parent_iface: GObject.TypeInterface = ... get_email_address: Callable[[Mail], Optional[str]] = ... + get_imap_accept_ssl_errors: Callable[[Mail], bool] = ... get_imap_host: Callable[[Mail], Optional[str]] = ... get_imap_supported: Callable[[Mail], bool] = ... + get_imap_use_ssl: Callable[[Mail], bool] = ... get_imap_use_tls: Callable[[Mail], bool] = ... get_imap_user_name: Callable[[Mail], Optional[str]] = ... - get_smtp_host: Callable[[Mail], Optional[str]] = ... - get_smtp_supported: Callable[[Mail], bool] = ... - get_smtp_use_tls: Callable[[Mail], bool] = ... - get_smtp_user_name: Callable[[Mail], Optional[str]] = ... - get_imap_accept_ssl_errors: Callable[[Mail], bool] = ... - get_imap_use_ssl: Callable[[Mail], bool] = ... get_name: Callable[[Mail], Optional[str]] = ... get_smtp_accept_ssl_errors: Callable[[Mail], bool] = ... - get_smtp_use_auth: Callable[[Mail], bool] = ... - get_smtp_use_ssl: Callable[[Mail], bool] = ... get_smtp_auth_login: Callable[[Mail], bool] = ... get_smtp_auth_plain: Callable[[Mail], bool] = ... get_smtp_auth_xoauth2: Callable[[Mail], bool] = ... + get_smtp_host: Callable[[Mail], Optional[str]] = ... + get_smtp_supported: Callable[[Mail], bool] = ... + get_smtp_use_auth: Callable[[Mail], bool] = ... + get_smtp_use_ssl: Callable[[Mail], bool] = ... + get_smtp_use_tls: Callable[[Mail], bool] = ... + get_smtp_user_name: Callable[[Mail], Optional[str]] = ... class MailProxy( Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, Mail @@ -1848,7 +1833,6 @@ class MailProxy( smtp_use_tls: bool smtp_user_name: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: MailProxyPrivate = ... @@ -1979,7 +1963,6 @@ class MailSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Mail): smtp_use_ssl: bool smtp_use_tls: bool smtp_user_name: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: MailSkeletonPrivate = ... @@ -2152,7 +2135,6 @@ class ManagerProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: ManagerProxyPrivate = ... @@ -2251,7 +2233,6 @@ class ManagerSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Manager): class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: ManagerSkeletonPrivate = ... @@ -2352,7 +2333,6 @@ class MapsProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: MapsProxyPrivate = ... @@ -2447,7 +2427,6 @@ class MapsSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Maps): class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: MapsSkeletonPrivate = ... @@ -2552,7 +2531,6 @@ class MediaServerProxy( dlna_supported: bool udn: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: MediaServerProxyPrivate = ... @@ -2651,7 +2629,6 @@ class MediaServerSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, MediaSer g_flags: Gio.DBusInterfaceSkeletonFlags dlna_supported: bool udn: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: MediaServerSkeletonPrivate = ... @@ -2757,7 +2734,6 @@ class MusicProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: MusicProxyPrivate = ... @@ -2852,7 +2828,6 @@ class MusicSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Music): class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: MusicSkeletonPrivate = ... @@ -2913,9 +2888,9 @@ class OAuth2BasedIface(GObject.GPointer): """ parent_iface: GObject.TypeInterface = ... - handle_get_access_token: Callable[[OAuth2Based, Gio.DBusMethodInvocation], bool] = ( - ... - ) + handle_get_access_token: Callable[ + [OAuth2Based, Gio.DBusMethodInvocation], bool + ] = ... get_client_id: Callable[[OAuth2Based], Optional[str]] = ... get_client_secret: Callable[[OAuth2Based], Optional[str]] = ... @@ -2978,7 +2953,6 @@ class OAuth2BasedProxy( client_id: str client_secret: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: OAuth2BasedProxyPrivate = ... @@ -3080,7 +3054,6 @@ class OAuth2BasedSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, OAuth2Ba g_flags: Gio.DBusInterfaceSkeletonFlags client_id: str client_secret: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: OAuth2BasedSkeletonPrivate = ... @@ -3150,9 +3123,9 @@ class OAuthBasedIface(GObject.GPointer): """ parent_iface: GObject.TypeInterface = ... - handle_get_access_token: Callable[[OAuthBased, Gio.DBusMethodInvocation], bool] = ( - ... - ) + handle_get_access_token: Callable[ + [OAuthBased, Gio.DBusMethodInvocation], bool + ] = ... get_consumer_key: Callable[[OAuthBased], Optional[str]] = ... get_consumer_secret: Callable[[OAuthBased], Optional[str]] = ... @@ -3215,7 +3188,6 @@ class OAuthBasedProxy( consumer_key: str consumer_secret: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: OAuthBasedProxyPrivate = ... @@ -3317,7 +3289,6 @@ class OAuthBasedSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, OAuthBase g_flags: Gio.DBusInterfaceSkeletonFlags consumer_key: str consumer_secret: str - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: OAuthBasedSkeletonPrivate = ... @@ -3449,7 +3420,6 @@ class ObjectManagerClient( name_owner: Optional[str] object_path: str bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusObjectManagerClient = ... priv: ObjectManagerClientPrivate = ... @@ -3579,7 +3549,6 @@ class ObjectProxy(Gio.DBusObjectProxy, Gio.DBusObject, Object): read_later: Optional[ReadLater] ticketing: Optional[Ticketing] todo: Optional[Todo] - props: Props = ... parent_instance: Gio.DBusObjectProxy = ... priv: ObjectProxyPrivate = ... @@ -3676,7 +3645,6 @@ class ObjectSkeleton(Gio.DBusObjectSkeleton, Gio.DBusObject, Object): read_later: Optional[ReadLater] ticketing: Optional[Ticketing] todo: Optional[Todo] - props: Props = ... parent_instance: Gio.DBusObjectSkeleton = ... priv: ObjectSkeletonPrivate = ... @@ -3842,7 +3810,6 @@ class PasswordBasedProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: PasswordBasedProxyPrivate = ... @@ -3942,7 +3909,6 @@ class PasswordBasedSkeleton( class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: PasswordBasedSkeletonPrivate = ... @@ -4043,7 +4009,6 @@ class PhotosProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: PhotosProxyPrivate = ... @@ -4138,7 +4103,6 @@ class PhotosSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Photos): class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: PhotosSkeletonPrivate = ... @@ -4239,7 +4203,6 @@ class PrintersProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: PrintersProxyPrivate = ... @@ -4334,7 +4297,6 @@ class PrintersSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Printers): class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: PrintersSkeletonPrivate = ... @@ -4435,7 +4397,6 @@ class ReadLaterProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: ReadLaterProxyPrivate = ... @@ -4530,7 +4491,6 @@ class ReadLaterSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, ReadLater) class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: ReadLaterSkeletonPrivate = ... @@ -4648,7 +4608,6 @@ class TicketingProxy( g_object_path: str details: GLib.Variant g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: TicketingProxyPrivate = ... @@ -4748,7 +4707,6 @@ class TicketingSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Ticketing) class Props: g_flags: Gio.DBusInterfaceSkeletonFlags details: GLib.Variant - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: TicketingSkeletonPrivate = ... @@ -4851,7 +4809,6 @@ class TodoProxy( g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: TodoProxyPrivate = ... @@ -4946,7 +4903,6 @@ class TodoSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Todo): class Props: g_flags: Gio.DBusInterfaceSkeletonFlags - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: TodoSkeletonPrivate = ... diff --git a/src/gi-stubs/repository/Graphene.pyi b/src/gi-stubs/repository/Graphene.pyi index c8a70e95..82d7e94a 100644 --- a/src/gi-stubs/repository/Graphene.pyi +++ b/src/gi-stubs/repository/Graphene.pyi @@ -46,6 +46,15 @@ def vec4_z_axis() -> Vec4: ... def vec4_zero() -> Vec4: ... class Box(GObject.GBoxed): + """ + :Constructors: + + :: + + Box() + alloc() -> Graphene.Box + """ + min: Vec3 = ... max: Vec3 = ... @classmethod @@ -74,11 +83,11 @@ class Box(GObject.GBoxed): self, min: Optional[Point3D] = None, max: Optional[Point3D] = None ) -> Box: ... def init_from_box(self, src: Box) -> Box: ... - def init_from_points(self, n_points: int, points: Sequence[Point3D]) -> Box: ... + def init_from_points(self, points: Sequence[Point3D]) -> Box: ... def init_from_vec3( self, min: Optional[Vec3] = None, max: Optional[Vec3] = None ) -> Box: ... - def init_from_vectors(self, n_vectors: int, vectors: Sequence[Vec3]) -> Box: ... + def init_from_vectors(self, vectors: Sequence[Vec3]) -> Box: ... def intersection(self, b: Box) -> Tuple[bool, Box]: ... @staticmethod def minus_one() -> Box: ... @@ -91,6 +100,15 @@ class Box(GObject.GBoxed): def zero() -> Box: ... class Euler(GObject.GBoxed): + """ + :Constructors: + + :: + + Euler() + alloc() -> Graphene.Euler + """ + angles: Vec3 = ... order: EulerOrder = ... @classmethod @@ -123,6 +141,15 @@ class Euler(GObject.GBoxed): def to_vec3(self) -> Vec3: ... class Frustum(GObject.GBoxed): + """ + :Constructors: + + :: + + Frustum() + alloc() -> Graphene.Frustum + """ + planes: list[Plane] = ... @classmethod def alloc(cls) -> Frustum: ... @@ -139,6 +166,15 @@ class Frustum(GObject.GBoxed): def intersects_sphere(self, sphere: Sphere) -> bool: ... class Matrix(GObject.GBoxed): + """ + :Constructors: + + :: + + Matrix() + alloc() -> Graphene.Matrix + """ + value: Simd4X4F = ... @classmethod def alloc(cls) -> Matrix: ... @@ -230,6 +266,15 @@ class Matrix(GObject.GBoxed): def untransform_point(self, p: Point, bounds: Rect) -> Tuple[bool, Point]: ... class Plane(GObject.GBoxed): + """ + :Constructors: + + :: + + Plane() + alloc() -> Graphene.Plane + """ + normal: Vec3 = ... constant: float = ... @classmethod @@ -251,6 +296,15 @@ class Plane(GObject.GBoxed): ) -> Plane: ... class Point(GObject.GBoxed): + """ + :Constructors: + + :: + + Point() + alloc() -> Graphene.Point + """ + x: float = ... y: float = ... @classmethod @@ -268,6 +322,15 @@ class Point(GObject.GBoxed): def zero() -> Point: ... class Point3D(GObject.GBoxed): + """ + :Constructors: + + :: + + Point3D() + alloc() -> Graphene.Point3D + """ + x: float = ... y: float = ... z: float = ... @@ -294,6 +357,15 @@ class Point3D(GObject.GBoxed): def zero() -> Point3D: ... class Quad(GObject.GBoxed): + """ + :Constructors: + + :: + + Quad() + alloc() -> Graphene.Quad + """ + points: list[Point] = ... @classmethod def alloc(cls) -> Quad: ... @@ -306,6 +378,15 @@ class Quad(GObject.GBoxed): def init_from_rect(self, r: Rect) -> Quad: ... class Quaternion(GObject.GBoxed): + """ + :Constructors: + + :: + + Quaternion() + alloc() -> Graphene.Quaternion + """ + x: float = ... y: float = ... z: float = ... @@ -341,6 +422,15 @@ class Quaternion(GObject.GBoxed): def to_vec4(self) -> Vec4: ... class Ray(GObject.GBoxed): + """ + :Constructors: + + :: + + Ray() + alloc() -> Graphene.Ray + """ + origin: Vec3 = ... direction: Vec3 = ... @classmethod @@ -368,6 +458,14 @@ class Ray(GObject.GBoxed): def intersects_triangle(self, t: Triangle) -> bool: ... class Rect(GObject.GBoxed): + """ + :Constructors: + + :: + + Rect() + """ + origin: Point = ... size: Size = ... @staticmethod @@ -407,18 +505,43 @@ class Rect(GObject.GBoxed): def zero() -> Rect: ... class Simd4F(GObject.GPointer): + """ + :Constructors: + + :: + + Simd4F() + """ + x: float = ... y: float = ... z: float = ... w: float = ... class Simd4X4F(GObject.GPointer): + """ + :Constructors: + + :: + + Simd4X4F() + """ + x: Simd4F = ... y: Simd4F = ... z: Simd4F = ... w: Simd4F = ... class Size(GObject.GBoxed): + """ + :Constructors: + + :: + + Size() + alloc() -> Graphene.Size + """ + width: float = ... height: float = ... @classmethod @@ -433,6 +556,15 @@ class Size(GObject.GBoxed): def zero() -> Size: ... class Sphere(GObject.GBoxed): + """ + :Constructors: + + :: + + Sphere() + alloc() -> Graphene.Sphere + """ + center: Vec3 = ... radius: float = ... @classmethod @@ -446,15 +578,24 @@ class Sphere(GObject.GBoxed): def get_radius(self) -> float: ... def init(self, center: Optional[Point3D], radius: float) -> Sphere: ... def init_from_points( - self, n_points: int, points: Sequence[Point3D], center: Optional[Point3D] = None + self, points: Sequence[Point3D], center: Optional[Point3D] = None ) -> Sphere: ... def init_from_vectors( - self, n_vectors: int, vectors: Sequence[Vec3], center: Optional[Point3D] = None + self, vectors: Sequence[Vec3], center: Optional[Point3D] = None ) -> Sphere: ... def is_empty(self) -> bool: ... def translate(self, point: Point3D) -> Sphere: ... class Triangle(GObject.GBoxed): + """ + :Constructors: + + :: + + Triangle() + alloc() -> Graphene.Triangle + """ + a: Vec3 = ... b: Vec3 = ... c: Vec3 = ... @@ -491,6 +632,15 @@ class Triangle(GObject.GBoxed): ) -> Triangle: ... class Vec2(GObject.GBoxed): + """ + :Constructors: + + :: + + Vec2() + alloc() -> Graphene.Vec2 + """ + value: Simd4F = ... def add(self, b: Vec2) -> Vec2: ... @classmethod @@ -525,6 +675,15 @@ class Vec2(GObject.GBoxed): def zero() -> Vec2: ... class Vec3(GObject.GBoxed): + """ + :Constructors: + + :: + + Vec3() + alloc() -> Graphene.Vec3 + """ + value: Simd4F = ... def add(self, b: Vec3) -> Vec3: ... @classmethod @@ -568,6 +727,15 @@ class Vec3(GObject.GBoxed): def zero() -> Vec3: ... class Vec4(GObject.GBoxed): + """ + :Constructors: + + :: + + Vec4() + alloc() -> Graphene.Vec4 + """ + value: Simd4F = ... def add(self, b: Vec4) -> Vec4: ... @classmethod diff --git a/src/gi-stubs/repository/Gsk.pyi b/src/gi-stubs/repository/Gsk.pyi index dc56b9d9..ee849f0f 100644 --- a/src/gi-stubs/repository/Gsk.pyi +++ b/src/gi-stubs/repository/Gsk.pyi @@ -28,6 +28,15 @@ def value_set_render_node(value: Any, node: RenderNode) -> None: ... def value_take_render_node(value: Any, node: Optional[RenderNode] = None) -> None: ... class BlendNode(RenderNode): + """ + :Constructors: + + :: + + BlendNode(**properties) + new(bottom:Gsk.RenderNode, top:Gsk.RenderNode, blend_mode:Gsk.BlendMode) -> Gsk.BlendNode + """ + def get_blend_mode(self) -> BlendMode: ... def get_bottom_child(self) -> RenderNode: ... def get_top_child(self) -> RenderNode: ... @@ -37,12 +46,30 @@ class BlendNode(RenderNode): ) -> BlendNode: ... class BlurNode(RenderNode): + """ + :Constructors: + + :: + + BlurNode(**properties) + new(child:Gsk.RenderNode, radius:float) -> Gsk.BlurNode + """ + def get_child(self) -> RenderNode: ... def get_radius(self) -> float: ... @classmethod def new(cls, child: RenderNode, radius: float) -> BlurNode: ... class BorderNode(RenderNode): + """ + :Constructors: + + :: + + BorderNode(**properties) + new(outline:Gsk.RoundedRect, border_width:list, border_color:list) -> Gsk.BorderNode + """ + def get_colors(self) -> Gdk.RGBA: ... def get_outline(self) -> RoundedRect: ... def get_widths(self) -> list[float]: ... @@ -55,42 +82,101 @@ class BorderNode(RenderNode): ) -> BorderNode: ... class BroadwayRenderer(Renderer): + """ + :Constructors: + + :: + + BroadwayRenderer(**properties) + new() -> Gsk.Renderer + + Object GskBroadwayRenderer + + Properties from GskRenderer: + realized -> gboolean: realized + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + class Props: realized: bool surface: Optional[Gdk.Surface] - props: Props = ... - @classmethod def new(cls) -> BroadwayRenderer: ... class BroadwayRendererClass(GObject.GPointer): ... class CairoNode(RenderNode): + """ + :Constructors: + + :: + + CairoNode(**properties) + new(bounds:Graphene.Rect) -> Gsk.CairoNode + """ + def get_draw_context(self) -> cairo.Context: ... def get_surface(self) -> cairo.Surface: ... @classmethod def new(cls, bounds: Graphene.Rect) -> CairoNode: ... class CairoRenderer(Renderer): + """ + :Constructors: + + :: + + CairoRenderer(**properties) + new() -> Gsk.Renderer + + Object GskCairoRenderer + + Properties from GskRenderer: + realized -> gboolean: realized + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + class Props: realized: bool surface: Optional[Gdk.Surface] - props: Props = ... - @classmethod def new(cls) -> CairoRenderer: ... class CairoRendererClass(GObject.GPointer): ... class ClipNode(RenderNode): + """ + :Constructors: + + :: + + ClipNode(**properties) + new(child:Gsk.RenderNode, clip:Graphene.Rect) -> Gsk.ClipNode + """ + def get_child(self) -> RenderNode: ... def get_clip(self) -> Graphene.Rect: ... @classmethod def new(cls, child: RenderNode, clip: Graphene.Rect) -> ClipNode: ... class ColorMatrixNode(RenderNode): + """ + :Constructors: + + :: + + ColorMatrixNode(**properties) + new(child:Gsk.RenderNode, color_matrix:Graphene.Matrix, color_offset:Graphene.Vec4) -> Gsk.ColorMatrixNode + """ + def get_child(self) -> RenderNode: ... def get_color_matrix(self) -> Graphene.Matrix: ... def get_color_offset(self) -> Graphene.Vec4: ... @@ -103,15 +189,41 @@ class ColorMatrixNode(RenderNode): ) -> ColorMatrixNode: ... class ColorNode(RenderNode): + """ + :Constructors: + + :: + + ColorNode(**properties) + new(rgba:Gdk.RGBA, bounds:Graphene.Rect) -> Gsk.ColorNode + """ + def get_color(self) -> Gdk.RGBA: ... @classmethod def new(cls, rgba: Gdk.RGBA, bounds: Graphene.Rect) -> ColorNode: ... class ColorStop(GObject.GPointer): + """ + :Constructors: + + :: + + ColorStop() + """ + offset: float = ... color: Gdk.RGBA = ... class ConicGradientNode(RenderNode): + """ + :Constructors: + + :: + + ConicGradientNode(**properties) + new(bounds:Graphene.Rect, center:Graphene.Point, rotation:float, color_stops:list) -> Gsk.ConicGradientNode + """ + def get_angle(self) -> float: ... def get_center(self) -> Graphene.Point: ... def get_color_stops(self) -> list[ColorStop]: ... @@ -127,12 +239,30 @@ class ConicGradientNode(RenderNode): ) -> ConicGradientNode: ... class ContainerNode(RenderNode): + """ + :Constructors: + + :: + + ContainerNode(**properties) + new(children:list) -> Gsk.ContainerNode + """ + def get_child(self, idx: int) -> RenderNode: ... def get_n_children(self) -> int: ... @classmethod def new(cls, children: Sequence[RenderNode]) -> ContainerNode: ... class CrossFadeNode(RenderNode): + """ + :Constructors: + + :: + + CrossFadeNode(**properties) + new(start:Gsk.RenderNode, end:Gsk.RenderNode, progress:float) -> Gsk.CrossFadeNode + """ + def get_end_child(self) -> RenderNode: ... def get_progress(self) -> float: ... def get_start_child(self) -> RenderNode: ... @@ -142,30 +272,72 @@ class CrossFadeNode(RenderNode): ) -> CrossFadeNode: ... class DebugNode(RenderNode): + """ + :Constructors: + + :: + + DebugNode(**properties) + new(child:Gsk.RenderNode, message:str) -> Gsk.DebugNode + """ + def get_child(self) -> RenderNode: ... def get_message(self) -> str: ... @classmethod def new(cls, child: RenderNode, message: str) -> DebugNode: ... class GLRenderer(Renderer): + """ + :Constructors: + + :: + + GLRenderer(**properties) + new() -> Gsk.Renderer + + Object GskGLRenderer + + Properties from GskRenderer: + realized -> gboolean: realized + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + class Props: realized: bool surface: Optional[Gdk.Surface] - props: Props = ... - @classmethod def new(cls) -> GLRenderer: ... class GLRendererClass(GObject.GPointer): ... class GLShader(GObject.Object): + """ + :Constructors: + + :: + + GLShader(**properties) + new_from_bytes(sourcecode:GLib.Bytes) -> Gsk.GLShader + new_from_resource(resource_path:str) -> Gsk.GLShader + + Object GskGLShader + + Properties from GskGLShader: + source -> GBytes: source + resource -> gchararray: resource + + Signals from GObject: + notify (GParam) + """ + class Props: resource: Optional[str] source: GLib.Bytes - props: Props = ... - def __init__(self, resource: str = ..., source: GLib.Bytes = ...): ... def compile(self, renderer: Renderer) -> bool: ... def find_uniform_by_name(self, name: str) -> int: ... @@ -196,9 +368,26 @@ class GLShader(GObject.Object): def new_from_resource(cls, resource_path: str) -> GLShader: ... class GLShaderClass(GObject.GPointer): + """ + :Constructors: + + :: + + GLShaderClass() + """ + parent_class: GObject.ObjectClass = ... class GLShaderNode(RenderNode): + """ + :Constructors: + + :: + + GLShaderNode(**properties) + new(shader:Gsk.GLShader, bounds:Graphene.Rect, args:GLib.Bytes, children:list=None) -> Gsk.GLShaderNode + """ + def get_args(self) -> GLib.Bytes: ... def get_child(self, idx: int) -> RenderNode: ... def get_n_children(self) -> int: ... @@ -213,6 +402,15 @@ class GLShaderNode(RenderNode): ) -> GLShaderNode: ... class InsetShadowNode(RenderNode): + """ + :Constructors: + + :: + + InsetShadowNode(**properties) + new(outline:Gsk.RoundedRect, color:Gdk.RGBA, dx:float, dy:float, spread:float, blur_radius:float) -> Gsk.InsetShadowNode + """ + def get_blur_radius(self) -> float: ... def get_color(self) -> Gdk.RGBA: ... def get_dx(self) -> float: ... @@ -231,6 +429,15 @@ class InsetShadowNode(RenderNode): ) -> InsetShadowNode: ... class LinearGradientNode(RenderNode): + """ + :Constructors: + + :: + + LinearGradientNode(**properties) + new(bounds:Graphene.Rect, start:Graphene.Point, end:Graphene.Point, color_stops:list) -> Gsk.LinearGradientNode + """ + def get_color_stops(self) -> list[ColorStop]: ... def get_end(self) -> Graphene.Point: ... def get_n_color_stops(self) -> int: ... @@ -244,23 +451,75 @@ class LinearGradientNode(RenderNode): color_stops: Sequence[ColorStop], ) -> LinearGradientNode: ... +class MaskNode(RenderNode): + """ + :Constructors: + + :: + + MaskNode(**properties) + new(source:Gsk.RenderNode, mask:Gsk.RenderNode, mask_mode:Gsk.MaskMode) -> Gsk.MaskNode + """ + + def get_mask(self) -> RenderNode: ... + def get_mask_mode(self) -> MaskMode: ... + def get_source(self) -> RenderNode: ... + @classmethod + def new( + cls, source: RenderNode, mask: RenderNode, mask_mode: MaskMode + ) -> MaskNode: ... + class NglRenderer(Renderer): + """ + :Constructors: + + :: + + NglRenderer(**properties) + new() -> Gsk.Renderer + + Object GskNglRenderer + + Properties from GskRenderer: + realized -> gboolean: realized + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + class Props: realized: bool surface: Optional[Gdk.Surface] - props: Props = ... - @classmethod def new(cls) -> NglRenderer: ... class OpacityNode(RenderNode): + """ + :Constructors: + + :: + + OpacityNode(**properties) + new(child:Gsk.RenderNode, opacity:float) -> Gsk.OpacityNode + """ + def get_child(self) -> RenderNode: ... def get_opacity(self) -> float: ... @classmethod def new(cls, child: RenderNode, opacity: float) -> OpacityNode: ... class OutsetShadowNode(RenderNode): + """ + :Constructors: + + :: + + OutsetShadowNode(**properties) + new(outline:Gsk.RoundedRect, color:Gdk.RGBA, dx:float, dy:float, spread:float, blur_radius:float) -> Gsk.OutsetShadowNode + """ + def get_blur_radius(self) -> float: ... def get_color(self) -> Gdk.RGBA: ... def get_dx(self) -> float: ... @@ -279,6 +538,14 @@ class OutsetShadowNode(RenderNode): ) -> OutsetShadowNode: ... class ParseLocation(GObject.GPointer): + """ + :Constructors: + + :: + + ParseLocation() + """ + bytes: int = ... chars: int = ... lines: int = ... @@ -286,6 +553,15 @@ class ParseLocation(GObject.GPointer): line_chars: int = ... class RadialGradientNode(RenderNode): + """ + :Constructors: + + :: + + RadialGradientNode(**properties) + new(bounds:Graphene.Rect, center:Graphene.Point, hradius:float, vradius:float, start:float, end:float, color_stops:list) -> Gsk.RadialGradientNode + """ + def get_center(self) -> Graphene.Point: ... def get_color_stops(self) -> list[ColorStop]: ... def get_end(self) -> float: ... @@ -306,6 +582,14 @@ class RadialGradientNode(RenderNode): ) -> RadialGradientNode: ... class RenderNode: + """ + :Constructors: + + :: + + RenderNode(**properties) + """ + @staticmethod def deserialize( bytes: GLib.Bytes, @@ -321,12 +605,28 @@ class RenderNode: def write_to_file(self, filename: str) -> bool: ... class Renderer(GObject.Object): + """ + :Constructors: + + :: + + Renderer(**properties) + new_for_surface(surface:Gdk.Surface) -> Gsk.Renderer or None + + Object GskRenderer + + Properties from GskRenderer: + realized -> gboolean: realized + surface -> GdkSurface: surface + + Signals from GObject: + notify (GParam) + """ + class Props: realized: bool surface: Optional[Gdk.Surface] - props: Props = ... - def get_surface(self) -> Optional[Gdk.Surface]: ... def is_realized(self) -> bool: ... @classmethod @@ -343,6 +643,15 @@ class Renderer(GObject.Object): class RendererClass(GObject.GPointer): ... class RepeatNode(RenderNode): + """ + :Constructors: + + :: + + RepeatNode(**properties) + new(bounds:Graphene.Rect, child:Gsk.RenderNode, child_bounds:Graphene.Rect=None) -> Gsk.RepeatNode + """ + def get_child(self) -> RenderNode: ... def get_child_bounds(self) -> Graphene.Rect: ... @classmethod @@ -354,6 +663,15 @@ class RepeatNode(RenderNode): ) -> RepeatNode: ... class RepeatingLinearGradientNode(RenderNode): + """ + :Constructors: + + :: + + RepeatingLinearGradientNode(**properties) + new(bounds:Graphene.Rect, start:Graphene.Point, end:Graphene.Point, color_stops:list) -> Gsk.RepeatingLinearGradientNode + """ + @classmethod def new( cls, @@ -364,6 +682,15 @@ class RepeatingLinearGradientNode(RenderNode): ) -> RepeatingLinearGradientNode: ... class RepeatingRadialGradientNode(RenderNode): + """ + :Constructors: + + :: + + RepeatingRadialGradientNode(**properties) + new(bounds:Graphene.Rect, center:Graphene.Point, hradius:float, vradius:float, start:float, end:float, color_stops:list) -> Gsk.RepeatingRadialGradientNode + """ + @classmethod def new( cls, @@ -377,15 +704,31 @@ class RepeatingRadialGradientNode(RenderNode): ) -> RepeatingRadialGradientNode: ... class RoundedClipNode(RenderNode): + """ + :Constructors: + + :: + + RoundedClipNode(**properties) + new(child:Gsk.RenderNode, clip:Gsk.RoundedRect) -> Gsk.RoundedClipNode + """ + def get_child(self) -> RenderNode: ... def get_clip(self) -> RoundedRect: ... @classmethod def new(cls, child: RenderNode, clip: RoundedRect) -> RoundedClipNode: ... class RoundedRect(GObject.GPointer): + """ + :Constructors: + + :: + + RoundedRect() + """ + bounds: Graphene.Rect = ... corner: list[Graphene.Size] = ... - def contains_point(self, point: Graphene.Point) -> bool: ... def contains_rect(self, rect: Graphene.Rect) -> bool: ... def init( @@ -407,6 +750,14 @@ class RoundedRect(GObject.GPointer): ) -> RoundedRect: ... class ShaderArgsBuilder(GObject.GBoxed): + """ + :Constructors: + + :: + + new(shader:Gsk.GLShader, initial_values:GLib.Bytes=None) -> Gsk.ShaderArgsBuilder + """ + @classmethod def new( cls, shader: GLShader, initial_values: Optional[GLib.Bytes] = None @@ -423,12 +774,29 @@ class ShaderArgsBuilder(GObject.GBoxed): def unref(self) -> None: ... class Shadow(GObject.GPointer): + """ + :Constructors: + + :: + + Shadow() + """ + color: Gdk.RGBA = ... dx: float = ... dy: float = ... radius: float = ... class ShadowNode(RenderNode): + """ + :Constructors: + + :: + + ShadowNode(**properties) + new(child:Gsk.RenderNode, shadows:list) -> Gsk.ShadowNode + """ + def get_child(self) -> RenderNode: ... def get_n_shadows(self) -> int: ... def get_shadow(self, i: int) -> Shadow: ... @@ -436,6 +804,15 @@ class ShadowNode(RenderNode): def new(cls, child: RenderNode, shadows: Sequence[Shadow]) -> ShadowNode: ... class TextNode(RenderNode): + """ + :Constructors: + + :: + + TextNode(**properties) + new(font:Pango.Font, glyphs:Pango.GlyphString, color:Gdk.RGBA, offset:Graphene.Point) -> Gsk.TextNode or None + """ + def get_color(self) -> Gdk.RGBA: ... def get_font(self) -> Pango.Font: ... def get_glyphs(self) -> list[Pango.GlyphInfo]: ... @@ -452,11 +829,45 @@ class TextNode(RenderNode): ) -> Optional[TextNode]: ... class TextureNode(RenderNode): + """ + :Constructors: + + :: + + TextureNode(**properties) + new(texture:Gdk.Texture, bounds:Graphene.Rect) -> Gsk.TextureNode + """ + def get_texture(self) -> Gdk.Texture: ... @classmethod def new(cls, texture: Gdk.Texture, bounds: Graphene.Rect) -> TextureNode: ... +class TextureScaleNode(RenderNode): + """ + :Constructors: + + :: + + TextureScaleNode(**properties) + new(texture:Gdk.Texture, bounds:Graphene.Rect, filter:Gsk.ScalingFilter) -> Gsk.TextureScaleNode + """ + + def get_filter(self) -> ScalingFilter: ... + def get_texture(self) -> Gdk.Texture: ... + @classmethod + def new( + cls, texture: Gdk.Texture, bounds: Graphene.Rect, filter: ScalingFilter + ) -> TextureScaleNode: ... + class Transform(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gsk.Transform + """ + def equal(self, second: Optional[Transform] = None) -> bool: ... def get_category(self) -> TransformCategory: ... def invert(self) -> Optional[Transform]: ... @@ -491,6 +902,15 @@ class Transform(GObject.GBoxed): def unref(self) -> None: ... class TransformNode(RenderNode): + """ + :Constructors: + + :: + + TransformNode(**properties) + new(child:Gsk.RenderNode, transform:Gsk.Transform) -> Gsk.TransformNode + """ + def get_child(self) -> RenderNode: ... def get_transform(self) -> Transform: ... @classmethod @@ -530,6 +950,12 @@ class GLUniformType(GObject.GEnum): VEC3 = 6 VEC4 = 7 +class MaskMode(GObject.GEnum): + ALPHA = 0 + INVERTED_ALPHA = 1 + INVERTED_LUMINANCE = 3 + LUMINANCE = 2 + class RenderNodeType(GObject.GEnum): BLEND_NODE = 20 BLUR_NODE = 23 @@ -545,6 +971,7 @@ class RenderNodeType(GObject.GEnum): GL_SHADER_NODE = 25 INSET_SHADOW_NODE = 11 LINEAR_GRADIENT_NODE = 4 + MASK_NODE = 27 NOT_A_RENDER_NODE = 0 OPACITY_NODE = 14 OUTSET_SHADOW_NODE = 12 @@ -555,6 +982,7 @@ class RenderNodeType(GObject.GEnum): ROUNDED_CLIP_NODE = 18 SHADOW_NODE = 19 TEXTURE_NODE = 10 + TEXTURE_SCALE_NODE = 26 TEXT_NODE = 22 TRANSFORM_NODE = 13 @@ -567,7 +995,6 @@ class SerializationError(GObject.GEnum): INVALID_DATA = 2 UNSUPPORTED_FORMAT = 0 UNSUPPORTED_VERSION = 1 - @staticmethod def quark() -> int: ... diff --git a/src/gi-stubs/repository/Gspell.pyi b/src/gi-stubs/repository/Gspell.pyi index 67416e64..2b205b01 100644 --- a/src/gi-stubs/repository/Gspell.pyi +++ b/src/gi-stubs/repository/Gspell.pyi @@ -1,10 +1,22 @@ +from typing import Any +from typing import Callable +from typing import Literal from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar +from gi.repository import Atk +from gi.repository import Gdk +from gi.repository import GdkPixbuf +from gi.repository import GLib from gi.repository import GObject from gi.repository import Gtk -_namespace: str = ... -_version: str = ... +_lock = ... # FIXME Constant +_namespace: str = "Gspell" +_version: str = "1" def checker_error_quark() -> int: ... def language_get_available() -> list[Language]: ... @@ -12,105 +24,1582 @@ def language_get_default() -> Optional[Language]: ... def language_lookup(language_code: str) -> Optional[Language]: ... class Checker(GObject.Object): - parent_instance = ... + """ + :Constructors: + :: + + Checker(**properties) + new(language:Gspell.Language=None) -> Gspell.Checker + + Object GspellChecker + + Signals from GspellChecker: + word-added-to-personal (gchararray) + word-added-to-session (gchararray) + session-cleared () + + Properties from GspellChecker: + language -> GspellLanguage: Language + + + Signals from GObject: + notify (GParam) + """ + + class Props: + language: Optional[Language] + props: Props = ... + parent_instance: GObject.Object = ... + def __init__(self, language: Optional[Language] = ...): ... def add_word_to_personal(self, word: str, word_length: int) -> None: ... def add_word_to_session(self, word: str, word_length: int) -> None: ... def check_word(self, word: str, word_length: int) -> bool: ... def clear_session(self) -> None: ... + def do_session_cleared(self) -> None: ... + def do_word_added_to_personal(self, word: str) -> None: ... + def do_word_added_to_session(self, word: str) -> None: ... def get_language(self) -> Optional[Language]: ... def get_suggestions(self, word: str, word_length: int) -> list[str]: ... @classmethod - def new(cls, language: Optional[Language]) -> Checker: ... + def new(cls, language: Optional[Language] = None) -> Checker: ... def set_correction( self, word: str, word_length: int, replacement: str, replacement_length: int ) -> None: ... - def set_language(self, language: Optional[Language]) -> None: ... - def do_session_cleared(self) -> None: ... - def do_word_added_to_personal(self, word: str) -> None: ... - def do_word_added_to_session(self, word: str) -> None: ... + def set_language(self, language: Optional[Language] = None) -> None: ... + +class CheckerClass(GObject.GPointer): + """ + :Constructors: + + :: + + CheckerClass() + """ + + parent_class: GObject.ObjectClass = ... + word_added_to_personal: Callable[[Checker, str], None] = ... + word_added_to_session: Callable[[Checker, str], None] = ... + session_cleared: Callable[[Checker], None] = ... + padding: list[None] = ... + +class CheckerDialog(Gtk.Dialog, Atk.ImplementorIface, Gtk.Buildable): + """ + :Constructors: + + :: -class CheckerDialog(Gtk.Dialog): + CheckerDialog(**properties) + new(parent:Gtk.Window, navigator:Gspell.Navigator) -> Gtk.Widget + + Object GspellCheckerDialog + + Properties from GspellCheckerDialog: + spell-navigator -> GspellNavigator: Spell Navigator + + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: Use Header Bar + Use Header Bar for actions. + + Signals from GtkWindow: + keys-changed () + set-focus (GtkWidget) + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + + Properties from GtkWindow: + type -> GtkWindowType: Window Type + The type of the window + title -> gchararray: Window Title + The title of the window + role -> gchararray: Window Role + Unique identifier for the window to be used when restoring a session + resizable -> gboolean: Resizable + If TRUE, users can resize the window + modal -> gboolean: Modal + If TRUE, the window is modal (other windows are not usable while this one is up) + window-position -> GtkWindowPosition: Window Position + The initial position of the window + default-width -> gint: Default Width + The default width of the window, used when initially showing the window + default-height -> gint: Default Height + The default height of the window, used when initially showing the window + destroy-with-parent -> gboolean: Destroy with Parent + If this window should be destroyed when the parent is destroyed + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised + icon -> GdkPixbuf: Icon + Icon for this window + icon-name -> gchararray: Icon Name + Name of the themed icon for this window + screen -> GdkScreen: Screen + The screen where this window will be displayed + type-hint -> GdkWindowTypeHint: Type hint + Hint to help the desktop environment understand what kind of window this is and how to treat it. + skip-taskbar-hint -> gboolean: Skip taskbar + TRUE if the window should not be in the task bar. + skip-pager-hint -> gboolean: Skip pager + TRUE if the window should not be in the pager. + urgency-hint -> gboolean: Urgent + TRUE if the window should be brought to the user's attention. + accept-focus -> gboolean: Accept focus + TRUE if the window should receive the input focus. + focus-on-map -> gboolean: Focus on map + TRUE if the window should receive the input focus when mapped. + decorated -> gboolean: Decorated + Whether the window should be decorated by the window manager + deletable -> gboolean: Deletable + Whether the window frame should have a close button + gravity -> GdkGravity: Gravity + The window gravity of the window + transient-for -> GtkWindow: Transient for Window + The transient parent of the dialogue + attached-to -> GtkWidget: Attached to Widget + The widget where the window is attached + has-resize-grip -> gboolean: Resize grip + Specifies whether the window should have a resize grip + resize-grip-visible -> gboolean: Resize grip is visible + Specifies whether the window's resize grip is visible. + application -> GtkApplication: GtkApplication + The GtkApplication for the window + is-active -> gboolean: Is Active + Whether the toplevel is the current active window + has-toplevel-focus -> gboolean: Focus in Toplevel + Whether the input focus is within this GtkWindow + startup-id -> gchararray: Startup ID + Unique startup identifier for the window used by startup-notification + mnemonics-visible -> gboolean: Mnemonics Visible + Whether mnemonics are currently visible in this window + focus-visible -> gboolean: Focus Visible + Whether focus rectangles are currently visible in this window + is-maximized -> gboolean: Is maximised + Whether the window is maximised + + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + + class Props: + spell_navigator: Navigator + use_header_bar: int + accept_focus: bool + application: Optional[Gtk.Application] + attached_to: Optional[Gtk.Widget] + decorated: bool + default_height: int + default_width: int + deletable: bool + destroy_with_parent: bool + focus_on_map: bool + focus_visible: bool + gravity: Gdk.Gravity + has_resize_grip: bool + has_toplevel_focus: bool + hide_titlebar_when_maximized: bool + icon: Optional[GdkPixbuf.Pixbuf] + icon_name: Optional[str] + is_active: bool + is_maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + resize_grip_visible: bool + role: Optional[str] + screen: Gdk.Screen + skip_pager_hint: bool + skip_taskbar_hint: bool + title: Optional[str] + transient_for: Optional[Gtk.Window] + type: Gtk.WindowType + type_hint: Gdk.WindowTypeHint + urgency_hint: bool + window_position: Gtk.WindowPosition + border_width: int + resize_mode: Gtk.ResizeMode + app_paintable: bool + can_default: bool + can_focus: bool + composite_child: bool + double_buffered: bool + events: Gdk.EventMask + expand: bool + focus_on_click: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + is_focus: bool + margin: int + margin_bottom: int + margin_end: int + margin_left: int + margin_right: int + margin_start: int + margin_top: int + name: str + no_show_all: bool + opacity: float + parent: Optional[Gtk.Container] + receives_default: bool + scale_factor: int + sensitive: bool + style: Gtk.Style + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + window: Optional[Gdk.Window] + startup_id: str + child: Gtk.Widget + props: Props = ... + parent_instance: Gtk.Dialog = ... + def __init__( + self, + spell_navigator: Navigator = ..., + use_header_bar: int = ..., + accept_focus: bool = ..., + application: Optional[Gtk.Application] = ..., + attached_to: Optional[Gtk.Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + focus_on_map: bool = ..., + focus_visible: bool = ..., + gravity: Gdk.Gravity = ..., + has_resize_grip: bool = ..., + hide_titlebar_when_maximized: bool = ..., + icon: Optional[GdkPixbuf.Pixbuf] = ..., + icon_name: Optional[str] = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + role: str = ..., + screen: Gdk.Screen = ..., + skip_pager_hint: bool = ..., + skip_taskbar_hint: bool = ..., + startup_id: str = ..., + title: str = ..., + transient_for: Optional[Gtk.Window] = ..., + type: Gtk.WindowType = ..., + type_hint: Gdk.WindowTypeHint = ..., + urgency_hint: bool = ..., + window_position: Gtk.WindowPosition = ..., + border_width: int = ..., + child: Gtk.Widget = ..., + resize_mode: Gtk.ResizeMode = ..., + app_paintable: bool = ..., + can_default: bool = ..., + can_focus: bool = ..., + double_buffered: bool = ..., + events: Gdk.EventMask = ..., + expand: bool = ..., + focus_on_click: bool = ..., + halign: Gtk.Align = ..., + has_default: bool = ..., + has_focus: bool = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + is_focus: bool = ..., + margin: int = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_left: int = ..., + margin_right: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + no_show_all: bool = ..., + opacity: float = ..., + parent: Gtk.Container = ..., + receives_default: bool = ..., + sensitive: bool = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + ): ... def get_spell_navigator(self) -> Navigator: ... + @classmethod + def new(cls, parent: Gtk.Window, navigator: Navigator) -> CheckerDialog: ... + +class CheckerDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + CheckerDialogClass() + """ + + parent_class: Gtk.DialogClass = ... + padding: list[None] = ... class Entry(GObject.Object): + """ + :Constructors: + + :: + + Entry(**properties) + + Object GspellEntry + + Properties from GspellEntry: + entry -> GtkEntry: Entry + + inline-spell-checking -> gboolean: Inline Spell Checking + + + Signals from GObject: + notify (GParam) + """ + + class Props: + entry: Gtk.Entry + inline_spell_checking: bool + props: Props = ... + def __init__(self, entry: Gtk.Entry = ..., inline_spell_checking: bool = ...): ... def basic_setup(self) -> None: ... def get_entry(self) -> Gtk.Entry: ... - @classmethod - def get_from_gtk_entry(cls, gtk_entry: Gtk.Entry) -> Entry: ... + @staticmethod + def get_from_gtk_entry(gtk_entry: Gtk.Entry) -> Entry: ... def get_inline_spell_checking(self) -> bool: ... def set_inline_spell_checking(self, enable: bool) -> None: ... class EntryBuffer(GObject.Object): - def get_buffer(self) -> EntryBuffer: ... - @classmethod - def get_from_gtk_entry_buffer(cls, gtk_buffer: Gtk.EntryBuffer) -> EntryBuffer: ... - def get_spell_checker(self) -> Checker: ... - def set_spell_checker(self, spell_checker: Optional[Checker]) -> None: ... + """ + :Constructors: + + :: + + EntryBuffer(**properties) + + Object GspellEntryBuffer + + Properties from GspellEntryBuffer: + buffer -> GtkEntryBuffer: Buffer + + spell-checker -> GspellChecker: Spell Checker + + + Signals from GObject: + notify (GParam) + """ + + class Props: + buffer: Gtk.EntryBuffer + spell_checker: Optional[Checker] + props: Props = ... + def __init__( + self, buffer: Gtk.EntryBuffer = ..., spell_checker: Optional[Checker] = ... + ): ... + def get_buffer(self) -> Gtk.EntryBuffer: ... + @staticmethod + def get_from_gtk_entry_buffer(gtk_buffer: Gtk.EntryBuffer) -> EntryBuffer: ... + def get_spell_checker(self) -> Optional[Checker]: ... + def set_spell_checker(self, spell_checker: Optional[Checker] = None) -> None: ... -class Language: +class EntryBufferClass(GObject.GPointer): + """ + :Constructors: + + :: + + EntryBufferClass() + """ + + parent_class: GObject.ObjectClass = ... + +class EntryClass(GObject.GPointer): + """ + :Constructors: + + :: + + EntryClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Language(GObject.GBoxed): def compare(self, language_b: Language) -> int: ... + def copy(self) -> Language: ... def free(self) -> None: ... - def get_available(cls) -> list[Language]: ... + @staticmethod + def get_available() -> list[Language]: ... def get_code(self) -> str: ... - @classmethod - def get_default(cls) -> Language: ... + @staticmethod + def get_default() -> Optional[Language]: ... def get_name(self) -> str: ... - @classmethod - def lookup(cls, language_code: str) -> Optional[Language]: ... + @staticmethod + def lookup(language_code: str) -> Optional[Language]: ... class LanguageChooser(GObject.GInterface): + """ + Interface GspellLanguageChooser + + Signals from GObject: + notify (GParam) + """ + def get_language(self) -> Optional[Language]: ... def get_language_code(self) -> str: ... - def set_language(self, language: Optional[Language]) -> None: ... - def set_language_code(self, language_code: Optional[str]) -> None: ... + def set_language(self, language: Optional[Language] = None) -> None: ... + def set_language_code(self, language_code: Optional[str] = None) -> None: ... + +class LanguageChooserButton( + Gtk.Button, + Atk.ImplementorIface, + LanguageChooser, + Gtk.Actionable, + Gtk.Activatable, + Gtk.Buildable, +): + """ + :Constructors: + + :: + + LanguageChooserButton(**properties) + new(current_language:Gspell.Language=None) -> Gtk.Widget + + Object GspellLanguageChooserButton + + Signals from GtkButton: + activate () + pressed () + released () + clicked () + enter () + leave () + + Properties from GtkButton: + label -> gchararray: Label + Text of the label widget inside the button, if the button contains a label widget + image -> GtkWidget: Image widget + Child widget to appear next to the button text + relief -> GtkReliefStyle: Border relief + The border relief style + use-underline -> gboolean: Use underline + If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key + use-stock -> gboolean: Use stock + If set, the label is used to pick a stock item instead of being displayed + xalign -> gfloat: Horizontal alignment for child + Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned + yalign -> gfloat: Vertical alignment for child + Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned + image-position -> GtkPositionType: Image position + The position of the image relative to the text + always-show-image -> gboolean: Always show image + Whether the image will always be shown -class LanguageChooserButton(Gtk.Button): ... -class LanguageChooserDialog(Gtk.Dialog, LanguageChooser): ... + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + + class Props: + always_show_image: bool + image: Optional[Gtk.Widget] + image_position: Gtk.PositionType + label: str + relief: Gtk.ReliefStyle + use_stock: bool + use_underline: bool + xalign: float + yalign: float + border_width: int + resize_mode: Gtk.ResizeMode + app_paintable: bool + can_default: bool + can_focus: bool + composite_child: bool + double_buffered: bool + events: Gdk.EventMask + expand: bool + focus_on_click: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + is_focus: bool + margin: int + margin_bottom: int + margin_end: int + margin_left: int + margin_right: int + margin_start: int + margin_top: int + name: str + no_show_all: bool + opacity: float + parent: Optional[Gtk.Container] + receives_default: bool + scale_factor: int + sensitive: bool + style: Gtk.Style + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + window: Optional[Gdk.Window] + language: Optional[Language] + language_code: str + action_name: Optional[str] + action_target: GLib.Variant + related_action: Gtk.Action + use_action_appearance: bool + child: Gtk.Widget + props: Props = ... + parent_instance: Gtk.Button = ... + def __init__( + self, + always_show_image: bool = ..., + image: Optional[Gtk.Widget] = ..., + image_position: Gtk.PositionType = ..., + label: str = ..., + relief: Gtk.ReliefStyle = ..., + use_stock: bool = ..., + use_underline: bool = ..., + xalign: float = ..., + yalign: float = ..., + border_width: int = ..., + child: Gtk.Widget = ..., + resize_mode: Gtk.ResizeMode = ..., + app_paintable: bool = ..., + can_default: bool = ..., + can_focus: bool = ..., + double_buffered: bool = ..., + events: Gdk.EventMask = ..., + expand: bool = ..., + focus_on_click: bool = ..., + halign: Gtk.Align = ..., + has_default: bool = ..., + has_focus: bool = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + is_focus: bool = ..., + margin: int = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_left: int = ..., + margin_right: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + no_show_all: bool = ..., + opacity: float = ..., + parent: Gtk.Container = ..., + receives_default: bool = ..., + sensitive: bool = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + language: Optional[Language] = ..., + language_code: Optional[str] = ..., + action_name: Optional[str] = ..., + action_target: GLib.Variant = ..., + related_action: Gtk.Action = ..., + use_action_appearance: bool = ..., + ): ... + @classmethod + def new( + cls, current_language: Optional[Language] = None + ) -> LanguageChooserButton: ... + +class LanguageChooserButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + LanguageChooserButtonClass() + """ + + parent_class: Gtk.ButtonClass = ... + padding: list[None] = ... + +class LanguageChooserDialog( + Gtk.Dialog, Atk.ImplementorIface, LanguageChooser, Gtk.Buildable +): + """ + :Constructors: + + :: + + LanguageChooserDialog(**properties) + new(parent:Gtk.Window, current_language:Gspell.Language=None, flags:Gtk.DialogFlags) -> Gtk.Widget + + Object GspellLanguageChooserDialog + + Signals from GtkDialog: + response (gint) + close () + + Properties from GtkDialog: + use-header-bar -> gint: Use Header Bar + Use Header Bar for actions. + + Signals from GtkWindow: + keys-changed () + set-focus (GtkWidget) + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + + Properties from GtkWindow: + type -> GtkWindowType: Window Type + The type of the window + title -> gchararray: Window Title + The title of the window + role -> gchararray: Window Role + Unique identifier for the window to be used when restoring a session + resizable -> gboolean: Resizable + If TRUE, users can resize the window + modal -> gboolean: Modal + If TRUE, the window is modal (other windows are not usable while this one is up) + window-position -> GtkWindowPosition: Window Position + The initial position of the window + default-width -> gint: Default Width + The default width of the window, used when initially showing the window + default-height -> gint: Default Height + The default height of the window, used when initially showing the window + destroy-with-parent -> gboolean: Destroy with Parent + If this window should be destroyed when the parent is destroyed + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised + icon -> GdkPixbuf: Icon + Icon for this window + icon-name -> gchararray: Icon Name + Name of the themed icon for this window + screen -> GdkScreen: Screen + The screen where this window will be displayed + type-hint -> GdkWindowTypeHint: Type hint + Hint to help the desktop environment understand what kind of window this is and how to treat it. + skip-taskbar-hint -> gboolean: Skip taskbar + TRUE if the window should not be in the task bar. + skip-pager-hint -> gboolean: Skip pager + TRUE if the window should not be in the pager. + urgency-hint -> gboolean: Urgent + TRUE if the window should be brought to the user's attention. + accept-focus -> gboolean: Accept focus + TRUE if the window should receive the input focus. + focus-on-map -> gboolean: Focus on map + TRUE if the window should receive the input focus when mapped. + decorated -> gboolean: Decorated + Whether the window should be decorated by the window manager + deletable -> gboolean: Deletable + Whether the window frame should have a close button + gravity -> GdkGravity: Gravity + The window gravity of the window + transient-for -> GtkWindow: Transient for Window + The transient parent of the dialogue + attached-to -> GtkWidget: Attached to Widget + The widget where the window is attached + has-resize-grip -> gboolean: Resize grip + Specifies whether the window should have a resize grip + resize-grip-visible -> gboolean: Resize grip is visible + Specifies whether the window's resize grip is visible. + application -> GtkApplication: GtkApplication + The GtkApplication for the window + is-active -> gboolean: Is Active + Whether the toplevel is the current active window + has-toplevel-focus -> gboolean: Focus in Toplevel + Whether the input focus is within this GtkWindow + startup-id -> gchararray: Startup ID + Unique startup identifier for the window used by startup-notification + mnemonics-visible -> gboolean: Mnemonics Visible + Whether mnemonics are currently visible in this window + focus-visible -> gboolean: Focus Visible + Whether focus rectangles are currently visible in this window + is-maximized -> gboolean: Is maximised + Whether the window is maximised + + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + + class Props: + use_header_bar: int + accept_focus: bool + application: Optional[Gtk.Application] + attached_to: Optional[Gtk.Widget] + decorated: bool + default_height: int + default_width: int + deletable: bool + destroy_with_parent: bool + focus_on_map: bool + focus_visible: bool + gravity: Gdk.Gravity + has_resize_grip: bool + has_toplevel_focus: bool + hide_titlebar_when_maximized: bool + icon: Optional[GdkPixbuf.Pixbuf] + icon_name: Optional[str] + is_active: bool + is_maximized: bool + mnemonics_visible: bool + modal: bool + resizable: bool + resize_grip_visible: bool + role: Optional[str] + screen: Gdk.Screen + skip_pager_hint: bool + skip_taskbar_hint: bool + title: Optional[str] + transient_for: Optional[Gtk.Window] + type: Gtk.WindowType + type_hint: Gdk.WindowTypeHint + urgency_hint: bool + window_position: Gtk.WindowPosition + border_width: int + resize_mode: Gtk.ResizeMode + app_paintable: bool + can_default: bool + can_focus: bool + composite_child: bool + double_buffered: bool + events: Gdk.EventMask + expand: bool + focus_on_click: bool + halign: Gtk.Align + has_default: bool + has_focus: bool + has_tooltip: bool + height_request: int + hexpand: bool + hexpand_set: bool + is_focus: bool + margin: int + margin_bottom: int + margin_end: int + margin_left: int + margin_right: int + margin_start: int + margin_top: int + name: str + no_show_all: bool + opacity: float + parent: Optional[Gtk.Container] + receives_default: bool + scale_factor: int + sensitive: bool + style: Gtk.Style + tooltip_markup: Optional[str] + tooltip_text: Optional[str] + valign: Gtk.Align + vexpand: bool + vexpand_set: bool + visible: bool + width_request: int + window: Optional[Gdk.Window] + language: Optional[Language] + language_code: str + startup_id: str + child: Gtk.Widget + props: Props = ... + parent_instance: Gtk.Dialog = ... + def __init__( + self, + use_header_bar: int = ..., + accept_focus: bool = ..., + application: Optional[Gtk.Application] = ..., + attached_to: Optional[Gtk.Widget] = ..., + decorated: bool = ..., + default_height: int = ..., + default_width: int = ..., + deletable: bool = ..., + destroy_with_parent: bool = ..., + focus_on_map: bool = ..., + focus_visible: bool = ..., + gravity: Gdk.Gravity = ..., + has_resize_grip: bool = ..., + hide_titlebar_when_maximized: bool = ..., + icon: Optional[GdkPixbuf.Pixbuf] = ..., + icon_name: Optional[str] = ..., + mnemonics_visible: bool = ..., + modal: bool = ..., + resizable: bool = ..., + role: str = ..., + screen: Gdk.Screen = ..., + skip_pager_hint: bool = ..., + skip_taskbar_hint: bool = ..., + startup_id: str = ..., + title: str = ..., + transient_for: Optional[Gtk.Window] = ..., + type: Gtk.WindowType = ..., + type_hint: Gdk.WindowTypeHint = ..., + urgency_hint: bool = ..., + window_position: Gtk.WindowPosition = ..., + border_width: int = ..., + child: Gtk.Widget = ..., + resize_mode: Gtk.ResizeMode = ..., + app_paintable: bool = ..., + can_default: bool = ..., + can_focus: bool = ..., + double_buffered: bool = ..., + events: Gdk.EventMask = ..., + expand: bool = ..., + focus_on_click: bool = ..., + halign: Gtk.Align = ..., + has_default: bool = ..., + has_focus: bool = ..., + has_tooltip: bool = ..., + height_request: int = ..., + hexpand: bool = ..., + hexpand_set: bool = ..., + is_focus: bool = ..., + margin: int = ..., + margin_bottom: int = ..., + margin_end: int = ..., + margin_left: int = ..., + margin_right: int = ..., + margin_start: int = ..., + margin_top: int = ..., + name: str = ..., + no_show_all: bool = ..., + opacity: float = ..., + parent: Gtk.Container = ..., + receives_default: bool = ..., + sensitive: bool = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., + valign: Gtk.Align = ..., + vexpand: bool = ..., + vexpand_set: bool = ..., + visible: bool = ..., + width_request: int = ..., + language: Optional[Language] = ..., + language_code: Optional[str] = ..., + ): ... + @classmethod + def new( + cls, + parent: Gtk.Window, + current_language: Optional[Language], + flags: Gtk.DialogFlags, + ) -> LanguageChooserDialog: ... + +class LanguageChooserDialogClass(GObject.GPointer): + """ + :Constructors: + + :: + + LanguageChooserDialogClass() + """ + + parent_class: Gtk.DialogClass = ... + padding: list[None] = ... + +class LanguageChooserInterface(GObject.GPointer): + """ + :Constructors: + + :: + + LanguageChooserInterface() + """ -class LanguageChooserInterface: - get_language_full: object = ... parent_interface: GObject.TypeInterface = ... - set_language: object = ... + get_language_full: Callable[[LanguageChooser, bool], Language] = ... + set_language: Callable[[LanguageChooser, Optional[Language]], None] = ... class Navigator(GObject.GInterface): + """ + Interface GspellNavigator + + Signals from GObject: + notify (GParam) + """ + def change(self, word: str, change_to: str) -> None: ... def change_all(self, word: str, change_to: str) -> None: ... - def goto_next(self) -> tuple[bool, str, Checker]: ... + def goto_next(self) -> Tuple[bool, str, Checker]: ... + +class NavigatorInterface(GObject.GPointer): + """ + :Constructors: + + :: + + NavigatorInterface() + """ -class NavigatorInterface: - change: object = ... - change_all: object = ... - goto_next: object = ... parent_interface: GObject.TypeInterface = ... + goto_next: Callable[[Navigator], Tuple[bool, str, Checker]] = ... + change: Callable[[Navigator, str, str], None] = ... + change_all: Callable[[Navigator, str, str], None] = ... -class NavigatorTextView(GObject.Object, Navigator): - parent_instance = ... +class NavigatorTextView(GObject.InitiallyUnowned, Navigator): + """ + :Constructors: + :: + + NavigatorTextView(**properties) + + Object GspellNavigatorTextView + + Properties from GspellNavigatorTextView: + view -> GtkTextView: View + + + Signals from GObject: + notify (GParam) + """ + + class Props: + view: Gtk.TextView + props: Props = ... + parent_instance: GObject.InitiallyUnowned = ... + def __init__(self, view: Gtk.TextView = ...): ... def get_view(self) -> Gtk.TextView: ... - @classmethod - def new(cls, view: Gtk.TextView) -> Navigator: ... + @staticmethod + def new(view: Gtk.TextView) -> Navigator: ... + +class NavigatorTextViewClass(GObject.GPointer): + """ + :Constructors: + + :: + + NavigatorTextViewClass() + """ + + parent_class: GObject.InitiallyUnownedClass = ... + padding: list[None] = ... class TextBuffer(GObject.Object): + """ + :Constructors: + + :: + + TextBuffer(**properties) + + Object GspellTextBuffer + + Properties from GspellTextBuffer: + buffer -> GtkTextBuffer: Buffer + + spell-checker -> GspellChecker: Spell Checker + + + Signals from GObject: + notify (GParam) + """ + + class Props: + buffer: Gtk.TextBuffer + spell_checker: Optional[Checker] + props: Props = ... + def __init__( + self, buffer: Gtk.TextBuffer = ..., spell_checker: Optional[Checker] = ... + ): ... def get_buffer(self) -> Gtk.TextBuffer: ... - @classmethod - def get_from_gtk_text_buffer(cls, gtk_buffer: Gtk.TextBuffer) -> TextBuffer: ... + @staticmethod + def get_from_gtk_text_buffer(gtk_buffer: Gtk.TextBuffer) -> TextBuffer: ... def get_spell_checker(self) -> Optional[Checker]: ... - def set_spell_checker(self, spell_checker: Optional[Checker]) -> None: ... + def set_spell_checker(self, spell_checker: Optional[Checker] = None) -> None: ... + +class TextBufferClass(GObject.GPointer): + """ + :Constructors: + + :: + + TextBufferClass() + """ + + parent_class: GObject.ObjectClass = ... class TextView(GObject.Object): - parent_instance = ... + """ + :Constructors: + + :: + + TextView(**properties) + + Object GspellTextView + + Properties from GspellTextView: + view -> GtkTextView: View + inline-spell-checking -> gboolean: Inline Spell Checking + + enable-language-menu -> gboolean: Enable Language Menu + + + Signals from GObject: + notify (GParam) + """ + + class Props: + enable_language_menu: bool + inline_spell_checking: bool + view: Gtk.TextView + props: Props = ... + parent_instance: GObject.Object = ... + def __init__( + self, + enable_language_menu: bool = ..., + inline_spell_checking: bool = ..., + view: Gtk.TextView = ..., + ): ... def basic_setup(self) -> None: ... def get_enable_language_menu(self) -> bool: ... - @classmethod - def get_from_gtk_text_view(cls, gtk_view: Gtk.TextView) -> TextView: ... + @staticmethod + def get_from_gtk_text_view(gtk_view: Gtk.TextView) -> TextView: ... def get_inline_spell_checking(self) -> bool: ... def get_view(self) -> Gtk.TextView: ... def set_enable_language_menu(self, enable_language_menu: bool) -> None: ... def set_inline_spell_checking(self, enable: bool) -> None: ... +class TextViewClass(GObject.GPointer): + """ + :Constructors: + + :: + + TextViewClass() + """ + + parent_class: GObject.ObjectClass = ... + padding: list[None] = ... + class CheckerError(GObject.GEnum): - DICTIONARY: int = ... - NO_LANGUAGE_SET: int = ... - quark: int = ... + DICTIONARY = 0 + NO_LANGUAGE_SET = 1 + @staticmethod + def quark() -> int: ... diff --git a/src/gi-stubs/repository/Gst.pyi b/src/gi-stubs/repository/Gst.pyi index bffbae1e..f479ce74 100644 --- a/src/gi-stubs/repository/Gst.pyi +++ b/src/gi-stubs/repository/Gst.pyi @@ -189,8 +189,8 @@ VALUE_GREATER_THAN: int = 1 VALUE_LESS_THAN: int = -1 VALUE_UNORDERED: int = 2 VERSION_MAJOR: int = 1 -VERSION_MICRO: int = 5 -VERSION_MINOR: int = 20 +VERSION_MICRO: int = 9 +VERSION_MINOR: int = 22 VERSION_NANO: int = 0 _lock = ... # FIXME Constant _namespace: str = "Gst" @@ -239,6 +239,15 @@ def debug_log_get_line( object: Optional[GObject.Object], message: DebugMessage, ) -> str: ... +def debug_log_id_literal( + category: DebugCategory, + level: DebugLevel, + file: str, + function: str, + line: int, + id: Optional[str], + message_string: str, +) -> None: ... def debug_log_literal( category: DebugCategory, level: DebugLevel, @@ -267,7 +276,8 @@ def error_get_message(domain: int, code: int) -> str: ... def event_type_get_flags(type: EventType) -> EventTypeFlags: ... def event_type_get_name(type: EventType) -> str: ... def event_type_to_quark(type: EventType) -> int: ... -def filename_to_uri(filename: str) -> str: ... +def event_type_to_sticky_ordering(type: EventType) -> int: ... +def filename_to_uri(filename: str) -> Optional[str]: ... def flow_get_name(ret: FlowReturn) -> str: ... def flow_to_quark(ret: FlowReturn) -> int: ... def format_get_by_nick(nick: str) -> Format: ... @@ -375,9 +385,9 @@ def stream_error_quark() -> int: ... def stream_type_get_name(stype: StreamType) -> str: ... def structure_take(newstr: Optional[Structure] = None) -> Tuple[bool, Structure]: ... def tag_exists(tag: str) -> bool: ... -def tag_get_description(tag: str) -> Optional[str]: ... +def tag_get_description(tag: str) -> str: ... def tag_get_flag(tag: str) -> TagFlag: ... -def tag_get_nick(tag: str) -> Optional[str]: ... +def tag_get_nick(tag: str) -> str: ... def tag_get_type(tag: str) -> Type: ... def tag_is_fixed(tag: str) -> bool: ... def tag_list_copy_value(list: TagList, tag: str) -> Tuple[bool, Any]: ... @@ -409,7 +419,7 @@ def uri_get_location(uri: str) -> Optional[str]: ... def uri_get_protocol(uri: str) -> Optional[str]: ... def uri_has_protocol(uri: str, protocol: str) -> bool: ... def uri_is_valid(uri: str) -> bool: ... -def uri_join_strings(base_uri: str, ref_uri: str) -> str: ... +def uri_join_strings(base_uri: str, ref_uri: str) -> Optional[str]: ... def uri_protocol_is_supported(type: URIType, protocol: str) -> bool: ... def uri_protocol_is_valid(protocol: str) -> bool: ... def util_array_binary_search( @@ -515,6 +525,15 @@ def version() -> Tuple[int, int, int, int]: ... def version_string() -> str: ... class AllocationParams(GObject.GBoxed): + """ + :Constructors: + + :: + + AllocationParams() + new() -> Gst.AllocationParams + """ + flags: MemoryFlags = ... align: int = ... prefix: int = ... @@ -527,10 +546,31 @@ class AllocationParams(GObject.GBoxed): def new(cls) -> AllocationParams: ... class Allocator(Object): + """ + :Constructors: + + :: + + Allocator(**properties) + + Object GstAllocator + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... mem_type: str = ... @@ -543,7 +583,7 @@ class Allocator(Object): mem_unmap_full: Callable[[Memory, MapInfo], None] = ... _gst_reserved: list[None] = ... priv: AllocatorPrivate = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def alloc( self, size: int, params: Optional[AllocationParams] = None ) -> Optional[Memory]: ... @@ -559,6 +599,14 @@ class Allocator(Object): def set_default(self) -> None: ... class AllocatorClass(GObject.GPointer): + """ + :Constructors: + + :: + + AllocatorClass() + """ + object_class: ObjectClass = ... alloc: Callable[ [Optional[Allocator], int, Optional[AllocationParams]], Optional[Memory] @@ -569,6 +617,14 @@ class AllocatorClass(GObject.GPointer): class AllocatorPrivate(GObject.GPointer): ... class AtomicQueue(GObject.GBoxed): + """ + :Constructors: + + :: + + new(initial_size:int) -> Gst.AtomicQueue + """ + def length(self) -> int: ... @classmethod def new(cls, initial_size: int) -> AtomicQueue: ... @@ -579,12 +635,56 @@ class AtomicQueue(GObject.GBoxed): def unref(self) -> None: ... class Bin(Element, ChildProxy): + """ + :Constructors: + + :: + + Bin(**properties) + new(name:str=None) -> Gst.Element + + Object GstBin + + Signals from GstBin: + element-added (GstElement) + element-removed (GstElement) + deep-element-added (GstBin, GstElement) + deep-element-removed (GstBin, GstElement) + do-latency () -> gboolean + + Properties from GstBin: + async-handling -> gboolean: Async Handling + The bin will handle Asynchronous state changes + message-forward -> gboolean: Message Forward + Forwards all children messages + + Signals from GstChildProxy: + child-added (GObject, gchararray) + child-removed (GObject, gchararray) + + Signals from GstElement: + pad-added (GstPad) + pad-removed (GstPad) + no-more-pads () + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: async_handling: bool message_forward: bool name: Optional[str] parent: Optional[Object] - props: Props = ... element: Element = ... numchildren: int = ... @@ -603,7 +703,7 @@ class Bin(Element, ChildProxy): self, async_handling: bool = ..., message_forward: bool = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... def add(self, element: Element) -> bool: ... @@ -637,6 +737,14 @@ class Bin(Element, ChildProxy): def sync_children_states(self) -> bool: ... class BinClass(GObject.GPointer): + """ + :Constructors: + + :: + + BinClass() + """ + parent_class: ElementClass = ... pool: GLib.ThreadPool = ... element_added: Callable[[Bin, Element], None] = ... @@ -653,6 +761,20 @@ class BinPrivate(GObject.GPointer): ... class Bitmask: ... class Buffer(GObject.GBoxed): + """ + :Constructors: + + :: + + Buffer() + new() -> Gst.Buffer + new_allocate(allocator:Gst.Allocator=None, size:int, params:Gst.AllocationParams=None) -> Gst.Buffer or None + new_memdup(data:list) -> Gst.Buffer + new_wrapped(data:list) -> Gst.Buffer + new_wrapped_bytes(bytes:GLib.Bytes) -> Gst.Buffer + new_wrapped_full(flags:Gst.MemoryFlags, data:list, maxsize:int, offset:int, user_data=None, notify:GLib.DestroyNotify=None) -> Gst.Buffer + """ + mini_object: MiniObject = ... pool: BufferPool = ... pts: int = ... @@ -670,11 +792,13 @@ class Buffer(GObject.GBoxed): def append(self, buf2: Buffer) -> Buffer: ... def append_memory(self, mem: Memory) -> None: ... def append_region(self, buf2: Buffer, offset: int, size: int) -> Buffer: ... - def copy_deep(self) -> Buffer: ... + def copy_deep(self) -> Optional[Buffer]: ... def copy_into( self, src: Buffer, flags: BufferCopyFlags, offset: int, size: int ) -> bool: ... - def copy_region(self, flags: BufferCopyFlags, offset: int, size: int) -> Buffer: ... + def copy_region( + self, flags: BufferCopyFlags, offset: int, size: int + ) -> Optional[Buffer]: ... def extract(self, offset: int) -> Tuple[int, bytes]: ... def extract_dup(self, offset: int, size: int) -> bytes: ... def fill(self, offset: int, src: Sequence[int]) -> int: ... @@ -752,6 +876,15 @@ class Buffer(GObject.GBoxed): def unset_flags(self, flags: BufferFlags) -> bool: ... class BufferList(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gst.BufferList + new_sized(size:int) -> Gst.BufferList + """ + def calculate_size(self) -> int: ... def copy_deep(self) -> BufferList: ... def foreach( @@ -768,16 +901,38 @@ class BufferList(GObject.GBoxed): def remove(self, idx: int, length: int) -> None: ... class BufferPool(Object): + """ + :Constructors: + + :: + + BufferPool(**properties) + new() -> Gst.BufferPool + + Object GstBufferPool + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... flushing: int = ... priv: BufferPoolPrivate = ... _gst_reserved: list[None] = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def acquire_buffer( self, params: Optional[BufferPoolAcquireParams] = None ) -> Tuple[FlowReturn, Buffer]: ... @@ -844,6 +999,14 @@ class BufferPool(Object): def set_flushing(self, flushing: bool) -> None: ... class BufferPoolAcquireParams(GObject.GPointer): + """ + :Constructors: + + :: + + BufferPoolAcquireParams() + """ + format: Format = ... start: int = ... stop: int = ... @@ -851,6 +1014,14 @@ class BufferPoolAcquireParams(GObject.GPointer): _gst_reserved: list[None] = ... class BufferPoolClass(GObject.GPointer): + """ + :Constructors: + + :: + + BufferPoolClass() + """ + object_class: ObjectClass = ... get_options: Callable[[BufferPool], list[str]] = ... set_config: Callable[[BufferPool, Structure], bool] = ... @@ -872,17 +1043,43 @@ class BufferPoolClass(GObject.GPointer): class BufferPoolPrivate(GObject.GPointer): ... class Bus(Object): + """ + :Constructors: + + :: + + Bus(**properties) + new() -> Gst.Bus + + Object GstBus + + Properties from GstBus: + enable-async -> gboolean: Enable Async + Enable async message delivery for bus watches and gst_bus_pop() + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] enable_async: bool - props: Props = ... object: Object = ... priv: BusPrivate = ... _gst_reserved: list[None] = ... def __init__( - self, enable_async: bool = ..., name: str = ..., parent: Object = ... + self, enable_async: bool = ..., name: Optional[str] = ..., parent: Object = ... ): ... def add_signal_watch(self) -> None: ... def add_signal_watch_full(self, priority: int) -> None: ... @@ -917,6 +1114,14 @@ class Bus(Object): ) -> Optional[Message]: ... class BusClass(GObject.GPointer): + """ + :Constructors: + + :: + + BusClass() + """ + parent_class: ObjectClass = ... message: Callable[[Bus, Message], None] = ... sync_message: Callable[[Bus, Message], None] = ... @@ -925,6 +1130,17 @@ class BusClass(GObject.GPointer): class BusPrivate(GObject.GPointer): ... class Caps(GObject.GBoxed): + """ + :Constructors: + + :: + + Caps() + new_any() -> Gst.Caps + new_empty() -> Gst.Caps + new_empty_simple(media_type:str) -> Gst.Caps + """ + mini_object: MiniObject = ... def append(self, caps2: Caps) -> None: ... def append_structure(self, structure: Structure) -> None: ... @@ -985,6 +1201,16 @@ class Caps(GObject.GBoxed): def truncate(self) -> Caps: ... class CapsFeatures(GObject.GBoxed): + """ + :Constructors: + + :: + + new_any() -> Gst.CapsFeatures + new_empty() -> Gst.CapsFeatures + new_single(feature:str) -> Gst.CapsFeatures + """ + def add(self, feature: str) -> None: ... def add_id(self, feature: int) -> None: ... def contains(self, feature: str) -> bool: ... @@ -1010,16 +1236,32 @@ class CapsFeatures(GObject.GBoxed): def to_string(self) -> str: ... class ChildProxy(GObject.GInterface): + """ + Interface GstChildProxy + + Signals from GObject: + notify (GParam) + """ + def child_added(self, child: GObject.Object, name: str) -> None: ... def child_removed(self, child: GObject.Object, name: str) -> None: ... def get_child_by_index(self, index: int) -> Optional[GObject.Object]: ... def get_child_by_name(self, name: str) -> Optional[GObject.Object]: ... + def get_child_by_name_recurse(self, name: str) -> Optional[GObject.Object]: ... def get_children_count(self) -> int: ... def get_property(self, name: str) -> Any: ... def lookup(self, name: str) -> Tuple[bool, GObject.Object, GObject.ParamSpec]: ... def set_property(self, name: str, value: Any) -> None: ... class ChildProxyInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ChildProxyInterface() + """ + parent: GObject.TypeInterface = ... get_child_by_name: Callable[[ChildProxy, str], Optional[GObject.Object]] = ... get_child_by_index: Callable[[ChildProxy, int], Optional[GObject.Object]] = ... @@ -1029,13 +1271,45 @@ class ChildProxyInterface(GObject.GPointer): _gst_reserved: list[None] = ... class Clock(Object): + """ + :Constructors: + + :: + + Clock(**properties) + + Object GstClock + + Signals from GstClock: + synced (gboolean) + + Properties from GstClock: + window-size -> gint: Window size + The size of the window used to calculate rate and offset + window-threshold -> gint: Window threshold + The threshold to start calculating rate and offset + timeout -> guint64: Timeout + The amount of time, in nanoseconds, to sample master and slave clocks + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: timeout: int window_size: int window_threshold: int name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... priv: ClockPrivate = ... @@ -1045,7 +1319,7 @@ class Clock(Object): timeout: int = ..., window_size: int = ..., window_threshold: int = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... def add_observation(self, slave: int, master: int) -> Tuple[bool, float]: ... @@ -1117,6 +1391,14 @@ class Clock(Object): def wait_for_sync(self, timeout: int) -> bool: ... class ClockClass(GObject.GPointer): + """ + :Constructors: + + :: + + ClockClass() + """ + parent_class: ObjectClass = ... change_resolution: Callable[[Clock, int, int], int] = ... get_resolution: Callable[[Clock], int] = ... @@ -1127,6 +1409,14 @@ class ClockClass(GObject.GPointer): _gst_reserved: list[None] = ... class ClockEntry(GObject.GPointer): + """ + :Constructors: + + :: + + ClockEntry() + """ + refcount: int = ... clock: Clock = ... type: ClockEntryType = ... @@ -1143,6 +1433,14 @@ class ClockEntry(GObject.GPointer): class ClockPrivate(GObject.GPointer): ... class Context(GObject.GBoxed): + """ + :Constructors: + + :: + + new(context_type:str, persistent:bool) -> Gst.Context + """ + def get_context_type(self) -> str: ... def get_structure(self) -> Structure: ... def has_context_type(self, context_type: str) -> bool: ... @@ -1152,11 +1450,38 @@ class Context(GObject.GBoxed): def writable_structure(self) -> Structure: ... class ControlBinding(Object): + """ + :Constructors: + + :: + + ControlBinding(**properties) + + Object GstControlBinding + + Properties from GstControlBinding: + object -> GstObject: Object + The object of the property + name -> gchararray: Name + The name of the property + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: str object: Object parent: Optional[Object] - props: Props = ... parent: Object = ... name: str = ... @@ -1165,14 +1490,14 @@ class ControlBinding(Object): disabled: bool = ... def __init__(self, name: str = ..., object: Object = ..., parent: Object = ...): ... def do_get_g_value_array( - self, timestamp: int, interval: int, n_values: int, values: Sequence[Any] + self, timestamp: int, interval: int, values: Sequence[Any] ) -> bool: ... def do_get_value(self, timestamp: int) -> Optional[Any]: ... def do_sync_values( self, object: Object, timestamp: int, last_sync: int ) -> bool: ... def get_g_value_array( - self, timestamp: int, interval: int, n_values: int, values: Sequence[Any] + self, timestamp: int, interval: int, values: Sequence[Any] ) -> bool: ... def get_value(self, timestamp: int) -> Optional[Any]: ... def is_disabled(self) -> bool: ... @@ -1180,43 +1505,106 @@ class ControlBinding(Object): def sync_values(self, object: Object, timestamp: int, last_sync: int) -> bool: ... class ControlBindingClass(GObject.GPointer): + """ + :Constructors: + + :: + + ControlBindingClass() + """ + parent_class: ObjectClass = ... sync_values: Callable[[ControlBinding, Object, int, int], bool] = ... get_value: Callable[[ControlBinding, int], Optional[Any]] = ... get_value_array: None = ... - get_g_value_array: Callable[ - [ControlBinding, int, int, int, Sequence[Any]], bool - ] = ... + get_g_value_array: Callable[[ControlBinding, int, int, Sequence[Any]], bool] = ... _gst_reserved: list[None] = ... class ControlBindingPrivate(GObject.GPointer): ... class ControlSource(Object): + """ + :Constructors: + + :: + + ControlSource(**properties) + + Object GstControlSource + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... parent: Object = ... get_value: Callable[[ControlSource, int, float], bool] = ... get_value_array: Callable[[ControlSource, int, int, int, float], bool] = ... _gst_reserved: list[None] = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def control_source_get_value(self, timestamp: int) -> Tuple[bool, float]: ... def control_source_get_value_array( - self, timestamp: int, interval: int, n_values: int, values: Sequence[float] + self, timestamp: int, interval: int, values: Sequence[float] ) -> bool: ... class ControlSourceClass(GObject.GPointer): + """ + :Constructors: + + :: + + ControlSourceClass() + """ + parent_class: ObjectClass = ... _gst_reserved: list[None] = ... class CustomMeta(GObject.GPointer): + """ + :Constructors: + + :: + + CustomMeta() + """ + meta: Meta = ... def get_structure(self) -> Structure: ... def has_name(self, name: str) -> bool: ... class DateTime(GObject.GBoxed): + """ + :Constructors: + + :: + + new(tzoffset:float, year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> Gst.DateTime or None + new_from_g_date_time(dt:GLib.DateTime=None) -> Gst.DateTime or None + new_from_iso8601_string(string:str) -> Gst.DateTime or None + new_from_unix_epoch_local_time(secs:int) -> Gst.DateTime or None + new_from_unix_epoch_local_time_usecs(usecs:int) -> Gst.DateTime or None + new_from_unix_epoch_utc(secs:int) -> Gst.DateTime or None + new_from_unix_epoch_utc_usecs(usecs:int) -> Gst.DateTime or None + new_local_time(year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> Gst.DateTime or None + new_now_local_time() -> Gst.DateTime or None + new_now_utc() -> Gst.DateTime or None + new_y(year:int) -> Gst.DateTime or None + new_ym(year:int, month:int) -> Gst.DateTime or None + new_ymd(year:int, month:int, day:int) -> Gst.DateTime or None + """ + def get_day(self) -> int: ... def get_hour(self) -> int: ... def get_microsecond(self) -> int: ... @@ -1275,6 +1663,14 @@ class DateTime(GObject.GBoxed): def unref(self) -> None: ... class DebugCategory(GObject.GPointer): + """ + :Constructors: + + :: + + DebugCategory() + """ + threshold: int = ... color: int = ... name: str = ... @@ -1289,8 +1685,40 @@ class DebugCategory(GObject.GPointer): class DebugMessage(GObject.GPointer): def get(self) -> Optional[str]: ... + def get_id(self) -> Optional[str]: ... class Device(Object): + """ + :Constructors: + + :: + + Device(**properties) + + Object GstDevice + + Signals from GstDevice: + removed () + + Properties from GstDevice: + display-name -> gchararray: Display Name + The user-friendly name of the device + device-class -> gchararray: Device Class + The Class of the device + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: caps: Optional[Caps] device_class: str @@ -1298,7 +1726,6 @@ class Device(Object): properties: Optional[Structure] name: Optional[str] parent: Optional[Object] - props: Props = ... parent: Object = ... priv: DevicePrivate = ... @@ -1309,7 +1736,7 @@ class Device(Object): device_class: str = ..., display_name: str = ..., properties: Structure = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... def create_element(self, name: Optional[str] = None) -> Optional[Element]: ... @@ -1324,22 +1751,58 @@ class Device(Object): def reconfigure_element(self, element: Element) -> bool: ... class DeviceClass(GObject.GPointer): + """ + :Constructors: + + :: + + DeviceClass() + """ + parent_class: ObjectClass = ... create_element: Callable[[Device, Optional[str]], Optional[Element]] = ... reconfigure_element: Callable[[Device, Element], bool] = ... _gst_reserved: list[None] = ... class DeviceMonitor(Object): + """ + :Constructors: + + :: + + DeviceMonitor(**properties) + new() -> Gst.DeviceMonitor + + Object GstDeviceMonitor + + Properties from GstDeviceMonitor: + show-all -> gboolean: Show All + Show all devices, even those from hidden providers + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: show_all: bool name: Optional[str] parent: Optional[Object] - props: Props = ... parent: Object = ... priv: DeviceMonitorPrivate = ... _gst_reserved: list[None] = ... - def __init__(self, show_all: bool = ..., name: str = ..., parent: Object = ...): ... + def __init__( + self, show_all: bool = ..., name: Optional[str] = ..., parent: Object = ... + ): ... def add_filter( self, classes: Optional[str] = None, caps: Optional[Caps] = None ) -> int: ... @@ -1355,6 +1818,14 @@ class DeviceMonitor(Object): def stop(self) -> None: ... class DeviceMonitorClass(GObject.GPointer): + """ + :Constructors: + + :: + + DeviceMonitorClass() + """ + parent_class: ObjectClass = ... _gst_reserved: list[None] = ... @@ -1362,16 +1833,41 @@ class DeviceMonitorPrivate(GObject.GPointer): ... class DevicePrivate(GObject.GPointer): ... class DeviceProvider(Object): + """ + :Constructors: + + :: + + DeviceProvider(**properties) + + Object GstDeviceProvider + + Signals from GstDeviceProvider: + provider-hidden (gchararray) + provider-unhidden (gchararray) + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... parent: Object = ... devices: list[None] = ... priv: DeviceProviderPrivate = ... _gst_reserved: list[None] = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def add_metadata(self, key: str, value: str) -> None: ... def add_static_metadata(self, key: str, value: str) -> None: ... def can_monitor(self) -> bool: ... @@ -1402,6 +1898,14 @@ class DeviceProvider(Object): def unhide_provider(self, name: str) -> None: ... class DeviceProviderClass(GObject.GPointer): + """ + :Constructors: + + :: + + DeviceProviderClass() + """ + parent_class: ObjectClass = ... factory: DeviceProviderFactory = ... probe: None = ... @@ -1420,12 +1924,33 @@ class DeviceProviderClass(GObject.GPointer): ) -> None: ... class DeviceProviderFactory(PluginFeature): + """ + :Constructors: + + :: + + DeviceProviderFactory(**properties) + + Object GstDeviceProviderFactory + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... @staticmethod def find(name: str) -> Optional[DeviceProviderFactory]: ... def get(self) -> Optional[DeviceProvider]: ... @@ -1444,22 +1969,69 @@ class DeviceProviderPrivate(GObject.GPointer): ... class DoubleRange: ... class DynamicTypeFactory(PluginFeature): + """ + :Constructors: + + :: + + DynamicTypeFactory(**properties) + + Object GstDynamicTypeFactory + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... @staticmethod def load(factoryname: str) -> Type: ... class DynamicTypeFactoryClass(GObject.GPointer): ... class Element(Object): + """ + :Constructors: + + :: + + Element(**properties) + + Object GstElement + + Signals from GstElement: + pad-added (GstPad) + pad-removed (GstPad) + no-more-pads () + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... state_lock: GLib.RecMutex = ... @@ -1483,7 +2055,7 @@ class Element(Object): pads_cookie: int = ... contexts: list[Context] = ... _gst_reserved: list[None] = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def abort_state(self) -> None: ... def add_metadata(self, key: str, value: str) -> None: ... def add_pad(self, pad: Pad) -> bool: ... @@ -1666,6 +2238,14 @@ class Element(Object): def unlink_pads(self, srcpadname: str, dest: Element, destpadname: str) -> None: ... class ElementClass(GObject.GPointer): + """ + :Constructors: + + :: + + ElementClass() + """ + parent_class: ObjectClass = ... metadata: None = ... elementfactory: ElementFactory = ... @@ -1709,12 +2289,33 @@ class ElementClass(GObject.GPointer): ) -> None: ... class ElementFactory(PluginFeature): + """ + :Constructors: + + :: + + ElementFactory(**properties) + + Object GstElementFactory + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def can_sink_all_caps(self, caps: Caps) -> bool: ... def can_sink_any_caps(self, caps: Caps) -> bool: ... def can_src_all_caps(self, caps: Caps) -> bool: ... @@ -1722,7 +2323,6 @@ class ElementFactory(PluginFeature): def create(self, name: Optional[str] = None) -> Optional[Element]: ... def create_with_properties( self, - n: int, names: Optional[Sequence[str]] = None, values: Optional[Sequence[Any]] = None, ) -> Optional[Element]: ... @@ -1752,7 +2352,6 @@ class ElementFactory(PluginFeature): @staticmethod def make_with_properties( factoryname: str, - n: int, names: Optional[Sequence[str]] = None, values: Optional[Sequence[Any]] = None, ) -> Optional[Element]: ... @@ -1760,6 +2359,40 @@ class ElementFactory(PluginFeature): class ElementFactoryClass(GObject.GPointer): ... class Event(GObject.GBoxed): + """ + :Constructors: + + :: + + Event() + new_buffer_size(format:Gst.Format, minsize:int, maxsize:int, async:bool) -> Gst.Event + new_caps(caps:Gst.Caps) -> Gst.Event + new_custom(type:Gst.EventType, structure:Gst.Structure) -> Gst.Event + new_eos() -> Gst.Event + new_flush_start() -> Gst.Event + new_flush_stop(reset_time:bool) -> Gst.Event + new_gap(timestamp:int, duration:int) -> Gst.Event + new_instant_rate_change(rate_multiplier:float, new_flags:Gst.SegmentFlags) -> Gst.Event + new_instant_rate_sync_time(rate_multiplier:float, running_time:int, upstream_running_time:int) -> Gst.Event + new_latency(latency:int) -> Gst.Event + new_navigation(structure:Gst.Structure) -> Gst.Event + new_protection(system_id:str, data:Gst.Buffer, origin:str) -> Gst.Event + new_qos(type:Gst.QOSType, proportion:float, diff:int, timestamp:int) -> Gst.Event + new_reconfigure() -> Gst.Event + new_seek(rate:float, format:Gst.Format, flags:Gst.SeekFlags, start_type:Gst.SeekType, start:int, stop_type:Gst.SeekType, stop:int) -> Gst.Event + new_segment(segment:Gst.Segment) -> Gst.Event + new_segment_done(format:Gst.Format, position:int) -> Gst.Event + new_select_streams(streams:list) -> Gst.Event + new_sink_message(name:str, msg:Gst.Message) -> Gst.Event + new_step(format:Gst.Format, amount:int, rate:float, flush:bool, intermediate:bool) -> Gst.Event + new_stream_collection(collection:Gst.StreamCollection) -> Gst.Event + new_stream_group_done(group_id:int) -> Gst.Event + new_stream_start(stream_id:str) -> Gst.Event + new_tag(taglist:Gst.TagList) -> Gst.Event + new_toc(toc:Gst.Toc, updated:bool) -> Gst.Event + new_toc_select(uid:str) -> Gst.Event + """ + mini_object: MiniObject = ... type: EventType = ... timestamp: int = ... @@ -1776,9 +2409,9 @@ class Event(GObject.GBoxed): cls, format: Format, minsize: int, maxsize: int, _async: bool ) -> Event: ... @classmethod - def new_caps(cls, caps: Caps) -> Optional[Event]: ... + def new_caps(cls, caps: Caps) -> Event: ... @classmethod - def new_custom(cls, type: EventType, structure: Structure) -> Optional[Event]: ... + def new_custom(cls, type: EventType, structure: Structure) -> Event: ... @classmethod def new_eos(cls) -> Event: ... @classmethod @@ -1804,7 +2437,7 @@ class Event(GObject.GBoxed): @classmethod def new_qos( cls, type: QOSType, proportion: float, diff: int, timestamp: int - ) -> Optional[Event]: ... + ) -> Event: ... @classmethod def new_reconfigure(cls) -> Event: ... @classmethod @@ -1817,9 +2450,9 @@ class Event(GObject.GBoxed): start: int, stop_type: SeekType, stop: int, - ) -> Optional[Event]: ... + ) -> Event: ... @classmethod - def new_segment(cls, segment: Segment) -> Optional[Event]: ... + def new_segment(cls, segment: Segment) -> Event: ... @classmethod def new_segment_done(cls, format: Format, position: int) -> Event: ... @classmethod @@ -1829,7 +2462,7 @@ class Event(GObject.GBoxed): @classmethod def new_step( cls, format: Format, amount: int, rate: float, flush: bool, intermediate: bool - ) -> Optional[Event]: ... + ) -> Event: ... @classmethod def new_stream_collection(cls, collection: StreamCollection) -> Event: ... @classmethod @@ -1880,10 +2513,26 @@ class Event(GObject.GBoxed): def writable_structure(self) -> Structure: ... class FlagSet: + """ + :Constructors: + + :: + + FlagSet(**properties) + """ + @staticmethod def register(flags_type: Type) -> Type: ... class FormatDefinition(GObject.GPointer): + """ + :Constructors: + + :: + + FormatDefinition() + """ + value: Format = ... nick: str = ... description: str = ... @@ -1893,6 +2542,44 @@ class Fraction: ... class FractionRange: ... class GhostPad(ProxyPad): + """ + :Constructors: + + :: + + GhostPad(**properties) + new(name:str=None, target:Gst.Pad) -> Gst.Pad or None + new_from_template(name:str=None, target:Gst.Pad, templ:Gst.PadTemplate) -> Gst.Pad or None + new_no_target(name:str=None, dir:Gst.PadDirection) -> Gst.Pad or None + new_no_target_from_template(name:str=None, templ:Gst.PadTemplate) -> Gst.Pad or None + + Object GstGhostPad + + Signals from GstPad: + linked (GstPad) + unlinked (GstPad) + + Properties from GstPad: + direction -> GstPadDirection: Direction + The direction of the pad + template -> GstPadTemplate: Template + The GstPadTemplate of this pad + offset -> gint64: Offset + The running time offset of the pad + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: caps: Caps direction: PadDirection @@ -1900,7 +2587,6 @@ class GhostPad(ProxyPad): template: PadTemplate name: Optional[str] parent: Optional[Object] - props: Props = ... pad: ProxyPad = ... priv: GhostPadPrivate = ... @@ -1909,7 +2595,7 @@ class GhostPad(ProxyPad): direction: PadDirection = ..., offset: int = ..., template: PadTemplate = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... @staticmethod @@ -1937,6 +2623,14 @@ class GhostPad(ProxyPad): def set_target(self, newtarget: Optional[Pad] = None) -> bool: ... class GhostPadClass(GObject.GPointer): + """ + :Constructors: + + :: + + GhostPadClass() + """ + parent_class: ProxyPadClass = ... _gst_reserved: list[None] = ... @@ -1954,6 +2648,7 @@ class Iterator(GObject.GBoxed): master_cookie: int = ... size: int = ... _gst_reserved: list[None] = ... + def copy(self) -> Iterator: ... def filter(self, func: Callable[[None, None], int], user_data: Any) -> Iterator: ... def find_custom( @@ -1971,6 +2666,14 @@ class Iterator(GObject.GBoxed): def resync(self) -> None: ... class MapInfo(GObject.GPointer): + """ + :Constructors: + + :: + + MapInfo() + """ + memory: Memory = ... flags: MapFlags = ... data: bytes = ... @@ -1980,6 +2683,15 @@ class MapInfo(GObject.GPointer): _gst_reserved: list[None] = ... class Memory(GObject.GBoxed): + """ + :Constructors: + + :: + + Memory() + new_wrapped(flags:Gst.MemoryFlags, data:list, maxsize:int, offset:int, user_data=None, notify:GLib.DestroyNotify=None) -> Gst.Memory or None + """ + mini_object: MiniObject = ... allocator: Allocator = ... parent: Memory = ... @@ -1987,7 +2699,7 @@ class Memory(GObject.GBoxed): align: int = ... offset: int = ... size: int = ... - def copy(self, offset: int, size: int) -> Memory: ... + def copy(self, offset: int, size: int) -> Optional[Memory]: ... def get_sizes(self) -> Tuple[int, int, int]: ... def is_span(self, mem2: Memory) -> Tuple[bool, int]: ... def is_type(self, mem_type: str) -> bool: ... @@ -2010,6 +2722,57 @@ class Memory(GObject.GBoxed): def unmap(self, info: MapInfo) -> None: ... class Message(GObject.GBoxed): + """ + :Constructors: + + :: + + Message() + new_application(src:Gst.Object=None, structure:Gst.Structure) -> Gst.Message + new_async_done(src:Gst.Object=None, running_time:int) -> Gst.Message + new_async_start(src:Gst.Object=None) -> Gst.Message + new_buffering(src:Gst.Object=None, percent:int) -> Gst.Message + new_clock_lost(src:Gst.Object=None, clock:Gst.Clock) -> Gst.Message + new_clock_provide(src:Gst.Object=None, clock:Gst.Clock, ready:bool) -> Gst.Message + new_custom(type:Gst.MessageType, src:Gst.Object=None, structure:Gst.Structure=None) -> Gst.Message + new_device_added(src:Gst.Object=None, device:Gst.Device) -> Gst.Message + new_device_changed(src:Gst.Object=None, device:Gst.Device, changed_device:Gst.Device) -> Gst.Message + new_device_removed(src:Gst.Object=None, device:Gst.Device) -> Gst.Message + new_duration_changed(src:Gst.Object=None) -> Gst.Message + new_element(src:Gst.Object=None, structure:Gst.Structure) -> Gst.Message + new_eos(src:Gst.Object=None) -> Gst.Message + new_error(src:Gst.Object=None, error:error, debug:str) -> Gst.Message + new_error_with_details(src:Gst.Object=None, error:error, debug:str, details:Gst.Structure=None) -> Gst.Message + new_have_context(src:Gst.Object=None, context:Gst.Context) -> Gst.Message + new_info(src:Gst.Object=None, error:error, debug:str) -> Gst.Message + new_info_with_details(src:Gst.Object=None, error:error, debug:str, details:Gst.Structure=None) -> Gst.Message + new_instant_rate_request(src:Gst.Object=None, rate_multiplier:float) -> Gst.Message + new_latency(src:Gst.Object=None) -> Gst.Message + new_need_context(src:Gst.Object=None, context_type:str) -> Gst.Message + new_new_clock(src:Gst.Object=None, clock:Gst.Clock) -> Gst.Message + new_progress(src:Gst.Object=None, type:Gst.ProgressType, code:str, text:str) -> Gst.Message + new_property_notify(src:Gst.Object, property_name:str, val:GObject.Value=None) -> Gst.Message + new_qos(src:Gst.Object=None, live:bool, running_time:int, stream_time:int, timestamp:int, duration:int) -> Gst.Message + new_redirect(src:Gst.Object=None, location:str, tag_list:Gst.TagList=None, entry_struct:Gst.Structure=None) -> Gst.Message + new_request_state(src:Gst.Object=None, state:Gst.State) -> Gst.Message + new_reset_time(src:Gst.Object=None, running_time:int) -> Gst.Message + new_segment_done(src:Gst.Object=None, format:Gst.Format, position:int) -> Gst.Message + new_segment_start(src:Gst.Object=None, format:Gst.Format, position:int) -> Gst.Message + new_state_changed(src:Gst.Object=None, oldstate:Gst.State, newstate:Gst.State, pending:Gst.State) -> Gst.Message + new_state_dirty(src:Gst.Object=None) -> Gst.Message + new_step_done(src:Gst.Object=None, format:Gst.Format, amount:int, rate:float, flush:bool, intermediate:bool, duration:int, eos:bool) -> Gst.Message + new_step_start(src:Gst.Object=None, active:bool, format:Gst.Format, amount:int, rate:float, flush:bool, intermediate:bool) -> Gst.Message + new_stream_collection(src:Gst.Object=None, collection:Gst.StreamCollection) -> Gst.Message + new_stream_start(src:Gst.Object=None) -> Gst.Message + new_stream_status(src:Gst.Object=None, type:Gst.StreamStatusType, owner:Gst.Element) -> Gst.Message + new_streams_selected(src:Gst.Object=None, collection:Gst.StreamCollection) -> Gst.Message + new_structure_change(src:Gst.Object=None, type:Gst.StructureChangeType, owner:Gst.Element, busy:bool) -> Gst.Message + new_tag(src:Gst.Object=None, tag_list:Gst.TagList) -> Gst.Message + new_toc(src:Gst.Object=None, toc:Gst.Toc, updated:bool) -> Gst.Message + new_warning(src:Gst.Object=None, error:error, debug:str) -> Gst.Message + new_warning_with_details(src:Gst.Object=None, error:error, debug:str, details:Gst.Structure=None) -> Gst.Message + """ + mini_object: MiniObject = ... type: MessageType = ... timestamp: int = ... @@ -2031,15 +2794,13 @@ class Message(GObject.GBoxed): @classmethod def new_application( cls, src: Optional[Object], structure: Structure - ) -> Optional[Message]: ... + ) -> Message: ... @classmethod def new_async_done(cls, src: Optional[Object], running_time: int) -> Message: ... @classmethod def new_async_start(cls, src: Optional[Object] = None) -> Message: ... @classmethod - def new_buffering( - cls, src: Optional[Object], percent: int - ) -> Optional[Message]: ... + def new_buffering(cls, src: Optional[Object], percent: int) -> Message: ... @classmethod def new_clock_lost(cls, src: Optional[Object], clock: Clock) -> Message: ... @classmethod @@ -2052,21 +2813,19 @@ class Message(GObject.GBoxed): type: MessageType, src: Optional[Object] = None, structure: Optional[Structure] = None, - ) -> Optional[Message]: ... + ) -> Message: ... @classmethod - def new_device_added(cls, src: Object, device: Device) -> Message: ... + def new_device_added(cls, src: Optional[Object], device: Device) -> Message: ... @classmethod def new_device_changed( - cls, src: Object, device: Device, changed_device: Device + cls, src: Optional[Object], device: Device, changed_device: Device ) -> Message: ... @classmethod - def new_device_removed(cls, src: Object, device: Device) -> Message: ... + def new_device_removed(cls, src: Optional[Object], device: Device) -> Message: ... @classmethod def new_duration_changed(cls, src: Optional[Object] = None) -> Message: ... @classmethod - def new_element( - cls, src: Optional[Object], structure: Structure - ) -> Optional[Message]: ... + def new_element(cls, src: Optional[Object], structure: Structure) -> Message: ... @classmethod def new_eos(cls, src: Optional[Object] = None) -> Message: ... @classmethod @@ -2080,7 +2839,7 @@ class Message(GObject.GBoxed): error: GLib.Error, debug: str, details: Optional[Structure] = None, - ) -> Optional[Message]: ... + ) -> Message: ... @classmethod def new_have_context(cls, src: Optional[Object], context: Context) -> Message: ... @classmethod @@ -2094,10 +2853,10 @@ class Message(GObject.GBoxed): error: GLib.Error, debug: str, details: Optional[Structure] = None, - ) -> Optional[Message]: ... + ) -> Message: ... @classmethod def new_instant_rate_request( - cls, src: Object, rate_multiplier: float + cls, src: Optional[Object], rate_multiplier: float ) -> Message: ... @classmethod def new_latency(cls, src: Optional[Object] = None) -> Message: ... @@ -2107,8 +2866,8 @@ class Message(GObject.GBoxed): def new_new_clock(cls, src: Optional[Object], clock: Clock) -> Message: ... @classmethod def new_progress( - cls, src: Object, type: ProgressType, code: str, text: str - ) -> Optional[Message]: ... + cls, src: Optional[Object], type: ProgressType, code: str, text: str + ) -> Message: ... @classmethod def new_property_notify( cls, src: Object, property_name: str, val: Optional[Any] = None @@ -2116,7 +2875,7 @@ class Message(GObject.GBoxed): @classmethod def new_qos( cls, - src: Object, + src: Optional[Object], live: bool, running_time: int, stream_time: int, @@ -2126,7 +2885,7 @@ class Message(GObject.GBoxed): @classmethod def new_redirect( cls, - src: Object, + src: Optional[Object], location: str, tag_list: Optional[TagList] = None, entry_struct: Optional[Structure] = None, @@ -2152,7 +2911,7 @@ class Message(GObject.GBoxed): @classmethod def new_step_done( cls, - src: Object, + src: Optional[Object], format: Format, amount: int, rate: float, @@ -2164,7 +2923,7 @@ class Message(GObject.GBoxed): @classmethod def new_step_start( cls, - src: Object, + src: Optional[Object], active: bool, format: Format, amount: int, @@ -2174,17 +2933,17 @@ class Message(GObject.GBoxed): ) -> Message: ... @classmethod def new_stream_collection( - cls, src: Object, collection: StreamCollection + cls, src: Optional[Object], collection: StreamCollection ) -> Message: ... @classmethod def new_stream_start(cls, src: Optional[Object] = None) -> Message: ... @classmethod def new_stream_status( - cls, src: Object, type: StreamStatusType, owner: Element + cls, src: Optional[Object], type: StreamStatusType, owner: Element ) -> Message: ... @classmethod def new_streams_selected( - cls, src: Object, collection: StreamCollection + cls, src: Optional[Object], collection: StreamCollection ) -> Message: ... @classmethod def new_structure_change( @@ -2197,7 +2956,7 @@ class Message(GObject.GBoxed): @classmethod def new_tag(cls, src: Optional[Object], tag_list: TagList) -> Message: ... @classmethod - def new_toc(cls, src: Object, toc: Toc, updated: bool) -> Message: ... + def new_toc(cls, src: Optional[Object], toc: Toc, updated: bool) -> Message: ... @classmethod def new_warning( cls, src: Optional[Object], error: GLib.Error, debug: str @@ -2209,7 +2968,7 @@ class Message(GObject.GBoxed): error: GLib.Error, debug: str, details: Optional[Structure] = None, - ) -> Optional[Message]: ... + ) -> Message: ... def parse_async_done(self) -> int: ... def parse_buffering(self) -> int: ... def parse_buffering_stats(self) -> Tuple[BufferingMode, int, int, int]: ... @@ -2264,6 +3023,14 @@ class Message(GObject.GBoxed): def writable_structure(self) -> Structure: ... class Meta(GObject.GPointer): + """ + :Constructors: + + :: + + Meta() + """ + flags: MetaFlags = ... info: MetaInfo = ... @staticmethod @@ -2294,6 +3061,14 @@ class Meta(GObject.GPointer): ) -> MetaInfo: ... class MetaInfo(GObject.GPointer): + """ + :Constructors: + + :: + + MetaInfo() + """ + api: Type = ... type: Type = ... size: int = ... @@ -2303,11 +3078,27 @@ class MetaInfo(GObject.GPointer): def is_custom(self) -> bool: ... class MetaTransformCopy(GObject.GPointer): + """ + :Constructors: + + :: + + MetaTransformCopy() + """ + region: bool = ... offset: int = ... size: int = ... class MiniObject(GObject.GBoxed): + """ + :Constructors: + + :: + + MiniObject() + """ + type: Type = ... refcount: int = ... lockstate: int = ... @@ -2333,10 +3124,31 @@ class MiniObject(GObject.GBoxed): def unlock(self, flags: LockFlags) -> None: ... class Object(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + Object(**properties) + + Object GstObject + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... object: GObject.InitiallyUnowned = ... lock: GLib.Mutex = ... @@ -2347,7 +3159,7 @@ class Object(GObject.InitiallyUnowned): control_rate: int = ... last_sync: int = ... _gst_reserved: None = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def add_control_binding(self, binding: ControlBinding) -> bool: ... @staticmethod def check_uniqueness(list: list[Object], name: str) -> bool: ... @@ -2363,12 +3175,7 @@ class Object(GObject.InitiallyUnowned): def get_control_binding(self, property_name: str) -> Optional[ControlBinding]: ... def get_control_rate(self) -> int: ... def get_g_value_array( - self, - property_name: str, - timestamp: int, - interval: int, - n_values: int, - values: Sequence[Any], + self, property_name: str, timestamp: int, interval: int, values: Sequence[Any] ) -> bool: ... def get_name(self) -> Optional[str]: ... def get_parent(self) -> Optional[Object]: ... @@ -2395,12 +3202,57 @@ class Object(GObject.InitiallyUnowned): def unref(self) -> None: ... class ObjectClass(GObject.GPointer): + """ + :Constructors: + + :: + + ObjectClass() + """ + parent_class: GObject.InitiallyUnownedClass = ... path_string_separator: str = ... deep_notify: Callable[[Object, Object, GObject.ParamSpec], None] = ... _gst_reserved: list[None] = ... class Pad(Object): + """ + :Constructors: + + :: + + Pad(**properties) + new(name:str=None, direction:Gst.PadDirection) -> Gst.Pad + new_from_static_template(templ:Gst.StaticPadTemplate, name:str) -> Gst.Pad + new_from_template(templ:Gst.PadTemplate, name:str=None) -> Gst.Pad + + Object GstPad + + Signals from GstPad: + linked (GstPad) + unlinked (GstPad) + + Properties from GstPad: + direction -> GstPadDirection: Direction + The direction of the pad + template -> GstPadTemplate: Template + The GstPadTemplate of this pad + offset -> gint64: Offset + The running time offset of the pad + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: caps: Caps direction: PadDirection @@ -2408,7 +3260,6 @@ class Pad(Object): template: PadTemplate name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... element_private: None = ... @@ -2459,7 +3310,7 @@ class Pad(Object): direction: PadDirection = ..., offset: int = ..., template: PadTemplate = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... def activate_mode(self, mode: PadMode, active: bool) -> bool: ... @@ -2548,52 +3399,40 @@ class Pad(Object): def remove_probe(self, id: int) -> None: ... def send_event(self, event: Event) -> bool: ... def set_activate_function_full( - self, activate: Callable[[Pad, Object], bool], *user_data: Any + self, activate: Callable[..., bool], *user_data: Any ) -> None: ... def set_activatemode_function_full( - self, - activatemode: Callable[[Pad, Object, PadMode, bool], bool], - *user_data: Any, + self, activatemode: Callable[..., bool], *user_data: Any ) -> None: ... def set_active(self, active: bool) -> bool: ... def set_chain_function_full( - self, - chain: Callable[[Pad, Optional[Object], Buffer], FlowReturn], - *user_data: Any, + self, chain: Callable[..., FlowReturn], *user_data: Any ) -> None: ... def set_chain_list_function_full( - self, - chainlist: Callable[[Pad, Optional[Object], BufferList], FlowReturn], - *user_data: Any, + self, chainlist: Callable[..., FlowReturn], *user_data: Any ) -> None: ... def set_element_private(self, priv: None) -> None: ... def set_event_full_function_full( - self, - event: Callable[[Pad, Optional[Object], Event], FlowReturn], - *user_data: Any, + self, event: Callable[..., FlowReturn], *user_data: Any ) -> None: ... def set_event_function_full( - self, event: Callable[[Pad, Optional[Object], Event], bool], *user_data: Any + self, event: Callable[..., bool], *user_data: Any ) -> None: ... def set_getrange_function_full( - self, - get: Callable[[Pad, Optional[Object], int, int, Buffer], FlowReturn], - *user_data: Any, + self, get: Callable[..., FlowReturn], *user_data: Any ) -> None: ... def set_iterate_internal_links_function_full( - self, iterintlink: Callable[[Pad, Optional[Object]], Iterator], *user_data: Any + self, iterintlink: Callable[..., Iterator], *user_data: Any ) -> None: ... def set_link_function_full( - self, - link: Callable[[Pad, Optional[Object], Pad], PadLinkReturn], - *user_data: Any, + self, link: Callable[..., PadLinkReturn], *user_data: Any ) -> None: ... def set_offset(self, offset: int) -> None: ... def set_query_function_full( - self, query: Callable[[Pad, Optional[Object], Query], bool], *user_data: Any + self, query: Callable[..., bool], *user_data: Any ) -> None: ... def set_unlink_function_full( - self, unlink: Callable[[Pad, Optional[Object]], None], *user_data: Any + self, unlink: Callable[..., None], *user_data: Any ) -> None: ... def start_task(self, func: Callable[..., None], *user_data: Any) -> bool: ... def sticky_events_foreach( @@ -2605,6 +3444,14 @@ class Pad(Object): def use_fixed_caps(self) -> None: ... class PadClass(GObject.GPointer): + """ + :Constructors: + + :: + + PadClass() + """ + parent_class: ObjectClass = ... linked: Callable[[Pad, Pad], None] = ... unlinked: Callable[[Pad, Pad], None] = ... @@ -2613,6 +3460,14 @@ class PadClass(GObject.GPointer): class PadPrivate(GObject.GPointer): ... class PadProbeInfo(GObject.GPointer): + """ + :Constructors: + + :: + + PadProbeInfo() + """ + type: PadProbeType = ... id: int = ... data: None = ... @@ -2624,6 +3479,44 @@ class PadProbeInfo(GObject.GPointer): def get_query(self) -> Optional[Query]: ... class PadTemplate(Object): + """ + :Constructors: + + :: + + PadTemplate(**properties) + new(name_template:str, direction:Gst.PadDirection, presence:Gst.PadPresence, caps:Gst.Caps) -> Gst.PadTemplate or None + new_from_static_pad_template_with_gtype(pad_template:Gst.StaticPadTemplate, pad_type:GType) -> Gst.PadTemplate or None + new_with_gtype(name_template:str, direction:Gst.PadDirection, presence:Gst.PadPresence, caps:Gst.Caps, pad_type:GType) -> Gst.PadTemplate or None + + Object GstPadTemplate + + Signals from GstPadTemplate: + pad-created (GstPad) + + Properties from GstPadTemplate: + name-template -> gchararray: Name template + The name template of the pad template + direction -> GstPadDirection: Direction + The direction of the pad described by the pad template + presence -> GstPadPresence: Presence + When the pad described by the pad template will become available + gtype -> GType: GType + The GType of the pad described by the pad template + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: caps: Caps direction: PadDirection @@ -2632,7 +3525,6 @@ class PadTemplate(Object): presence: PadPresence name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... name_template: str = ... @@ -2646,7 +3538,7 @@ class PadTemplate(Object): gtype: Type = ..., name_template: str = ..., presence: PadPresence = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... def do_pad_created(self, pad: Pad) -> None: ... @@ -2677,6 +3569,14 @@ class PadTemplate(Object): def set_documentation_caps(self, caps: Caps) -> None: ... class PadTemplateClass(GObject.GPointer): + """ + :Constructors: + + :: + + PadTemplateClass() + """ + parent_class: ObjectClass = ... pad_created: Callable[[PadTemplate, Pad], None] = ... _gst_reserved: list[None] = ... @@ -2685,10 +3585,26 @@ class ParamArray(GObject.ParamSpec): ... class ParamFraction(GObject.ParamSpec): ... class ParamSpecArray(GObject.GPointer): + """ + :Constructors: + + :: + + ParamSpecArray() + """ + parent_instance: GObject.ParamSpec = ... element_spec: GObject.ParamSpec = ... class ParamSpecFraction(GObject.GPointer): + """ + :Constructors: + + :: + + ParamSpecFraction() + """ + parent_instance: GObject.ParamSpec = ... min_num: int = ... min_den: int = ... @@ -2698,12 +3614,28 @@ class ParamSpecFraction(GObject.GPointer): def_den: int = ... class ParentBufferMeta(GObject.GPointer): + """ + :Constructors: + + :: + + ParentBufferMeta() + """ + parent: Meta = ... buffer: Buffer = ... @staticmethod def get_info() -> MetaInfo: ... class ParseContext(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gst.ParseContext or None + """ + def copy(self) -> Optional[ParseContext]: ... def free(self) -> None: ... def get_missing_elements(self) -> Optional[list[str]]: ... @@ -2711,6 +3643,63 @@ class ParseContext(GObject.GBoxed): def new(cls) -> Optional[ParseContext]: ... class Pipeline(Bin, ChildProxy): + """ + :Constructors: + + :: + + Pipeline(**properties) + new(name:str=None) -> Gst.Element + + Object GstPipeline + + Properties from GstPipeline: + delay -> guint64: Delay + Expected delay needed for elements to spin up to PLAYING in nanoseconds + auto-flush-bus -> gboolean: Auto Flush Bus + Whether to automatically flush the pipeline's bus when going from READY into NULL state + latency -> guint64: Latency + Latency to configure on the pipeline + + Signals from GstChildProxy: + child-added (GObject, gchararray) + child-removed (GObject, gchararray) + + Signals from GstBin: + element-added (GstElement) + element-removed (GstElement) + deep-element-added (GstBin, GstElement) + deep-element-removed (GstBin, GstElement) + do-latency () -> gboolean + + Properties from GstBin: + async-handling -> gboolean: Async Handling + The bin will handle Asynchronous state changes + message-forward -> gboolean: Message Forward + Forwards all children messages + + Signals from GstChildProxy: + child-added (GObject, gchararray) + child-removed (GObject, gchararray) + + Signals from GstElement: + pad-added (GstPad) + pad-removed (GstPad) + no-more-pads () + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: auto_flush_bus: bool delay: int @@ -2719,7 +3708,6 @@ class Pipeline(Bin, ChildProxy): message_forward: bool name: Optional[str] parent: Optional[Object] - props: Props = ... bin: Bin = ... fixed_clock: Clock = ... @@ -2734,7 +3722,7 @@ class Pipeline(Bin, ChildProxy): latency: int = ..., async_handling: bool = ..., message_forward: bool = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... def auto_clock(self) -> None: ... @@ -2751,18 +3739,47 @@ class Pipeline(Bin, ChildProxy): def use_clock(self, clock: Optional[Clock] = None) -> None: ... class PipelineClass(GObject.GPointer): + """ + :Constructors: + + :: + + PipelineClass() + """ + parent_class: BinClass = ... _gst_reserved: list[None] = ... class PipelinePrivate(GObject.GPointer): ... class Plugin(Object): + """ + :Constructors: + + :: + + Plugin(**properties) + + Object GstPlugin + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def add_dependency( self, env_vars: Optional[Sequence[str]], @@ -2827,6 +3844,14 @@ class Plugin(Object): class PluginClass(GObject.GPointer): ... class PluginDesc(GObject.GPointer): + """ + :Constructors: + + :: + + PluginDesc() + """ + major_version: int = ... minor_version: int = ... name: str = ... @@ -2841,12 +3866,33 @@ class PluginDesc(GObject.GPointer): _gst_reserved: list[None] = ... class PluginFeature(Object): + """ + :Constructors: + + :: + + PluginFeature(**properties) + + Object GstPluginFeature + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def check_version(self, min_major: int, min_minor: int, min_micro: int) -> bool: ... def get_plugin(self) -> Optional[Plugin]: ... def get_plugin_name(self) -> Optional[str]: ... @@ -2886,11 +3932,23 @@ class Poll(GObject.GPointer): def write_control(self) -> bool: ... class PollFD(GObject.GPointer): + """ + :Constructors: + + :: + + PollFD() + """ + fd: int = ... idx: int = ... def init(self) -> None: ... class Preset(GObject.GInterface): + """ + Interface GstPreset + """ + def delete_preset(self, name: str) -> bool: ... @staticmethod def get_app_dir() -> Optional[str]: ... @@ -2906,6 +3964,14 @@ class Preset(GObject.GInterface): def set_meta(self, name: str, tag: str, value: Optional[str] = None) -> bool: ... class PresetInterface(GObject.GPointer): + """ + :Constructors: + + :: + + PresetInterface() + """ + parent: GObject.TypeInterface = ... get_preset_names: Callable[[Preset], list[str]] = ... get_property_names: Callable[[Preset], list[str]] = ... @@ -2918,6 +3984,16 @@ class PresetInterface(GObject.GPointer): _gst_reserved: list[None] = ... class Promise(GObject.GBoxed): + """ + :Constructors: + + :: + + Promise() + new() -> Gst.Promise + new_with_change_func(func:Gst.PromiseChangeFunc, user_data=None) -> Gst.Promise + """ + parent: MiniObject = ... def expire(self) -> None: ... def get_reply(self) -> Optional[Structure]: ... @@ -2932,12 +4008,54 @@ class Promise(GObject.GBoxed): def wait(self) -> PromiseResult: ... class ProtectionMeta(GObject.GPointer): + """ + :Constructors: + + :: + + ProtectionMeta() + """ + meta: Meta = ... info: Structure = ... @staticmethod def get_info() -> MetaInfo: ... class ProxyPad(Pad): + """ + :Constructors: + + :: + + ProxyPad(**properties) + + Object GstProxyPad + + Signals from GstPad: + linked (GstPad) + unlinked (GstPad) + + Properties from GstPad: + direction -> GstPadDirection: Direction + The direction of the pad + template -> GstPadTemplate: Template + The GstPadTemplate of this pad + offset -> gint64: Offset + The running time offset of the pad + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: caps: Caps direction: PadDirection @@ -2945,7 +4063,6 @@ class ProxyPad(Pad): template: PadTemplate name: Optional[str] parent: Optional[Object] - props: Props = ... pad: Pad = ... priv: ProxyPadPrivate = ... @@ -2954,7 +4071,7 @@ class ProxyPad(Pad): direction: PadDirection = ..., offset: int = ..., template: PadTemplate = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... @staticmethod @@ -2976,12 +4093,46 @@ class ProxyPad(Pad): ) -> Optional[Iterator]: ... class ProxyPadClass(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyPadClass() + """ + parent_class: PadClass = ... _gst_reserved: list[None] = ... class ProxyPadPrivate(GObject.GPointer): ... class Query(GObject.GBoxed): + """ + :Constructors: + + :: + + Query() + new_accept_caps(caps:Gst.Caps) -> Gst.Query + new_allocation(caps:Gst.Caps=None, need_pool:bool) -> Gst.Query + new_bitrate() -> Gst.Query + new_buffering(format:Gst.Format) -> Gst.Query + new_caps(filter:Gst.Caps) -> Gst.Query + new_context(context_type:str) -> Gst.Query + new_convert(src_format:Gst.Format, value:int, dest_format:Gst.Format) -> Gst.Query + new_custom(type:Gst.QueryType, structure:Gst.Structure=None) -> Gst.Query + new_drain() -> Gst.Query + new_duration(format:Gst.Format) -> Gst.Query + new_formats() -> Gst.Query + new_latency() -> Gst.Query + new_position(format:Gst.Format) -> Gst.Query + new_scheduling() -> Gst.Query + new_seeking(format:Gst.Format) -> Gst.Query + new_segment(format:Gst.Format) -> Gst.Query + new_selectable() -> Gst.Query + new_uri() -> Gst.Query + """ + mini_object: MiniObject = ... type: QueryType = ... def add_allocation_meta( @@ -3011,7 +4162,7 @@ class Query(GObject.GBoxed): @classmethod def new_accept_caps(cls, caps: Caps) -> Query: ... @classmethod - def new_allocation(cls, caps: Caps, need_pool: bool) -> Query: ... + def new_allocation(cls, caps: Optional[Caps], need_pool: bool) -> Query: ... @classmethod def new_bitrate(cls) -> Query: ... @classmethod @@ -3027,7 +4178,7 @@ class Query(GObject.GBoxed): @classmethod def new_custom( cls, type: QueryType, structure: Optional[Structure] = None - ) -> Optional[Query]: ... + ) -> Query: ... @classmethod def new_drain(cls) -> Query: ... @classmethod @@ -3045,6 +4196,8 @@ class Query(GObject.GBoxed): @classmethod def new_segment(cls, format: Format) -> Query: ... @classmethod + def new_selectable(cls) -> Query: ... + @classmethod def new_uri(cls) -> Query: ... def parse_accept_caps(self) -> Caps: ... def parse_accept_caps_result(self) -> bool: ... @@ -3075,6 +4228,7 @@ class Query(GObject.GBoxed): def parse_scheduling(self) -> Tuple[SchedulingFlags, int, int, int]: ... def parse_seeking(self) -> Tuple[Format, bool, int, int]: ... def parse_segment(self) -> Tuple[float, Format, int, int]: ... + def parse_selectable(self) -> bool: ... def parse_uri(self) -> str: ... def parse_uri_redirection(self) -> str: ... def parse_uri_redirection_permanent(self) -> bool: ... @@ -3090,13 +4244,13 @@ class Query(GObject.GBoxed): def set_buffering_stats( self, mode: BufferingMode, avg_in: int, avg_out: int, buffering_left: int ) -> None: ... - def set_caps_result(self, caps: Caps) -> None: ... - def set_context(self, context: Context) -> None: ... + def set_caps_result(self, caps: Optional[Caps] = None) -> None: ... + def set_context(self, context: Optional[Context] = None) -> None: ... def set_convert( self, src_format: Format, src_value: int, dest_format: Format, dest_value: int ) -> None: ... def set_duration(self, format: Format, duration: int) -> None: ... - def set_formatsv(self, n_formats: int, formats: Sequence[Format]) -> None: ... + def set_formatsv(self, formats: Sequence[Format]) -> None: ... def set_latency(self, live: bool, min_latency: int, max_latency: int) -> None: ... def set_nth_allocation_param( self, @@ -3122,12 +4276,21 @@ class Query(GObject.GBoxed): def set_segment( self, rate: float, format: Format, start_value: int, stop_value: int ) -> None: ... - def set_uri(self, uri: str) -> None: ... - def set_uri_redirection(self, uri: str) -> None: ... + def set_selectable(self, selectable: bool) -> None: ... + def set_uri(self, uri: Optional[str] = None) -> None: ... + def set_uri_redirection(self, uri: Optional[str] = None) -> None: ... def set_uri_redirection_permanent(self, permanent: bool) -> None: ... def writable_structure(self) -> Structure: ... class ReferenceTimestampMeta(GObject.GPointer): + """ + :Constructors: + + :: + + ReferenceTimestampMeta() + """ + parent: Meta = ... reference: Caps = ... timestamp: int = ... @@ -3136,14 +4299,39 @@ class ReferenceTimestampMeta(GObject.GPointer): def get_info() -> MetaInfo: ... class Registry(Object): + """ + :Constructors: + + :: + + Registry(**properties) + + Object GstRegistry + + Signals from GstRegistry: + plugin-added (GstPlugin) + feature-added (GstPluginFeature) + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... priv: RegistryPrivate = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def add_feature(self, feature: PluginFeature) -> bool: ... def add_plugin(self, plugin: Plugin) -> bool: ... def check_feature_version( @@ -3174,11 +4362,27 @@ class Registry(Object): def scan_path(self, path: str) -> bool: ... class RegistryClass(GObject.GPointer): + """ + :Constructors: + + :: + + RegistryClass() + """ + parent_class: ObjectClass = ... class RegistryPrivate(GObject.GPointer): ... class Sample(GObject.GBoxed): + """ + :Constructors: + + :: + + new(buffer:Gst.Buffer=None, caps:Gst.Caps=None, segment:Gst.Segment=None, info:Gst.Structure=None) -> Gst.Sample + """ + def get_buffer(self) -> Optional[Buffer]: ... def get_buffer_list(self) -> Optional[BufferList]: ... def get_caps(self) -> Optional[Caps]: ... @@ -3199,6 +4403,15 @@ class Sample(GObject.GBoxed): def set_segment(self, segment: Segment) -> None: ... class Segment(GObject.GBoxed): + """ + :Constructors: + + :: + + Segment() + new() -> Gst.Segment + """ + flags: SegmentFlags = ... rate: float = ... applied_rate: float = ... @@ -3248,27 +4461,65 @@ class Segment(GObject.GBoxed): def to_stream_time_full(self, format: Format, position: int) -> Tuple[int, int]: ... class SharedTaskPool(TaskPool): + """ + :Constructors: + + :: + + SharedTaskPool(**properties) + new() -> Gst.TaskPool + + Object GstSharedTaskPool + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... parent: TaskPool = ... priv: SharedTaskPoolPrivate = ... _gst_reserved: list[None] = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def get_max_threads(self) -> int: ... @classmethod def new(cls) -> SharedTaskPool: ... def set_max_threads(self, max_threads: int) -> None: ... class SharedTaskPoolClass(GObject.GPointer): + """ + :Constructors: + + :: + + SharedTaskPoolClass() + """ + parent_class: TaskPoolClass = ... _gst_reserved: list[None] = ... class SharedTaskPoolPrivate(GObject.GPointer): ... class StaticCaps(GObject.GPointer): + """ + :Constructors: + + :: + + StaticCaps() + """ + caps: Caps = ... string: str = ... _gst_reserved: list[None] = ... @@ -3276,6 +4527,14 @@ class StaticCaps(GObject.GPointer): def get(self) -> Optional[Caps]: ... class StaticPadTemplate(GObject.GPointer): + """ + :Constructors: + + :: + + StaticPadTemplate() + """ + name_template: str = ... direction: PadDirection = ... presence: PadPresence = ... @@ -3284,6 +4543,37 @@ class StaticPadTemplate(GObject.GPointer): def get_caps(self) -> Caps: ... class Stream(Object): + """ + :Constructors: + + :: + + Stream(**properties) + new(stream_id:str=None, caps:Gst.Caps=None, type:Gst.StreamType, flags:Gst.StreamFlags) -> Gst.Stream + + Object GstStream + + Properties from GstStream: + stream-id -> gchararray: Stream ID + The stream ID of the stream + stream-flags -> GstStreamFlags: Stream Flags + The stream flags + stream-type -> GstStreamType: Stream Type + The type of stream + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: caps: Optional[Caps] stream_flags: StreamFlags @@ -3292,7 +4582,6 @@ class Stream(Object): tags: Optional[TagList] name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... stream_id: str = ... @@ -3300,12 +4589,12 @@ class Stream(Object): _gst_reserved: list[None] = ... def __init__( self, - caps: Caps = ..., + caps: Optional[Caps] = ..., stream_flags: StreamFlags = ..., stream_id: str = ..., stream_type: StreamType = ..., - tags: TagList = ..., - name: str = ..., + tags: Optional[TagList] = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... def get_caps(self) -> Optional[Caps]: ... @@ -3327,22 +4616,59 @@ class Stream(Object): def set_tags(self, tags: Optional[TagList] = None) -> None: ... class StreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + StreamClass() + """ + parent_class: ObjectClass = ... _gst_reserved: list[None] = ... class StreamCollection(Object): + """ + :Constructors: + + :: + + StreamCollection(**properties) + new(upstream_id:str=None) -> Gst.StreamCollection + + Object GstStreamCollection + + Signals from GstStreamCollection: + stream-notify (GstStream, GParam) + + Properties from GstStreamCollection: + upstream-id -> gchararray: Upstream ID + The stream ID of the parent stream + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: upstream_id: Optional[str] name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... upstream_id: str = ... priv: StreamCollectionPrivate = ... _gst_reserved: list[None] = ... def __init__( - self, upstream_id: str = ..., name: str = ..., parent: Object = ... + self, upstream_id: str = ..., name: Optional[str] = ..., parent: Object = ... ): ... def add_stream(self, stream: Stream) -> bool: ... def do_stream_notify(self, stream: Stream, pspec: GObject.ParamSpec) -> None: ... @@ -3353,6 +4679,14 @@ class StreamCollection(Object): def new(cls, upstream_id: Optional[str] = None) -> StreamCollection: ... class StreamCollectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + StreamCollectionClass() + """ + parent_class: ObjectClass = ... stream_notify: Callable[[StreamCollection, Stream, GObject.ParamSpec], None] = ... _gst_reserved: list[None] = ... @@ -3361,6 +4695,18 @@ class StreamCollectionPrivate(GObject.GPointer): ... class StreamPrivate(GObject.GPointer): ... class Structure(GObject.GBoxed): + """ + :Constructors: + + :: + + Structure() + from_string(string:str) -> Gst.Structure or None, end:str + new_empty(name:str) -> Gst.Structure + new_from_string(string:str) -> Gst.Structure or None + new_id_empty(quark:int) -> Gst.Structure + """ + type: Type = ... name: int = ... def can_intersect(self, struct2: Structure) -> bool: ... @@ -3389,6 +4735,7 @@ class Structure(GObject.GBoxed): def get_double(self, fieldname: str) -> Tuple[bool, float]: ... def get_enum(self, fieldname: str, enumtype: Type) -> Tuple[bool, int]: ... def get_field_type(self, fieldname: str) -> Type: ... + def get_flags(self, fieldname: str, flags_type: Type) -> Tuple[bool, int]: ... def get_flagset(self, fieldname: str) -> Tuple[bool, int, int]: ... def get_fraction(self, fieldname: str) -> Tuple[bool, int, int]: ... def get_int(self, fieldname: str) -> Tuple[bool, int]: ... @@ -3434,6 +4781,43 @@ class Structure(GObject.GBoxed): def to_string(self) -> str: ... class SystemClock(Clock): + """ + :Constructors: + + :: + + SystemClock(**properties) + + Object GstSystemClock + + Properties from GstSystemClock: + clock-type -> GstClockType: Clock type + The type of underlying clock implementation used + + Signals from GstClock: + synced (gboolean) + + Properties from GstClock: + window-size -> gint: Window size + The size of the window used to calculate rate and offset + window-threshold -> gint: Window threshold + The threshold to start calculating rate and offset + timeout -> guint64: Timeout + The amount of time, in nanoseconds, to sample master and slave clocks + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: clock_type: ClockType timeout: int @@ -3441,7 +4825,6 @@ class SystemClock(Clock): window_threshold: int name: Optional[str] parent: Optional[Object] - props: Props = ... clock: Clock = ... priv: SystemClockPrivate = ... @@ -3452,7 +4835,7 @@ class SystemClock(Clock): timeout: int = ..., window_size: int = ..., window_threshold: int = ..., - name: str = ..., + name: Optional[str] = ..., parent: Object = ..., ): ... @staticmethod @@ -3461,12 +4844,30 @@ class SystemClock(Clock): def set_default(new_clock: Optional[Clock] = None) -> None: ... class SystemClockClass(GObject.GPointer): + """ + :Constructors: + + :: + + SystemClockClass() + """ + parent_class: ClockClass = ... _gst_reserved: list[None] = ... class SystemClockPrivate(GObject.GPointer): ... class TagList(GObject.GBoxed): + """ + :Constructors: + + :: + + TagList() + new_empty() -> Gst.TagList + new_from_string(str:str) -> Gst.TagList or None + """ + mini_object: MiniObject = ... def add_value(self, mode: TagMergeMode, tag: str, value: Any) -> None: ... def copy(self) -> TagList: ... @@ -3515,9 +4916,16 @@ class TagList(GObject.GBoxed): def peek_string_index(self, tag: str, index: int) -> Tuple[bool, str]: ... def remove_tag(self, tag: str) -> None: ... def set_scope(self, scope: TagScope) -> None: ... - def to_string(self) -> Optional[str]: ... + def to_string(self) -> str: ... class TagSetter(GObject.GInterface): + """ + Interface GstTagSetter + + Signals from GObject: + notify (GParam) + """ + def add_tag_value(self, mode: TagMergeMode, tag: str, value: Any) -> None: ... def get_tag_list(self) -> Optional[TagList]: ... def get_tag_merge_mode(self) -> TagMergeMode: ... @@ -3526,13 +4934,43 @@ class TagSetter(GObject.GInterface): def set_tag_merge_mode(self, mode: TagMergeMode) -> None: ... class TagSetterInterface(GObject.GPointer): + """ + :Constructors: + + :: + + TagSetterInterface() + """ + g_iface: GObject.TypeInterface = ... class Task(Object): + """ + :Constructors: + + :: + + Task(**properties) + new(func:Gst.TaskFunction, user_data=None) -> Gst.Task + + Object GstTask + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... state: TaskState = ... @@ -3545,7 +4983,7 @@ class Task(Object): thread: GLib.Thread = ... priv: TaskPrivate = ... _gst_reserved: list[None] = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... @staticmethod def cleanup_all() -> None: ... def get_pool(self) -> TaskPool: ... @@ -3568,20 +5006,50 @@ class Task(Object): def stop(self) -> bool: ... class TaskClass(GObject.GPointer): + """ + :Constructors: + + :: + + TaskClass() + """ + parent_class: ObjectClass = ... pool: TaskPool = ... _gst_reserved: list[None] = ... class TaskPool(Object): + """ + :Constructors: + + :: + + TaskPool(**properties) + new() -> Gst.TaskPool + + Object GstTaskPool + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... object: Object = ... pool: GLib.ThreadPool = ... _gst_reserved: list[None] = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def cleanup(self) -> None: ... def dispose_handle(self, id: None) -> None: ... def do_cleanup(self) -> None: ... @@ -3596,6 +5064,14 @@ class TaskPool(Object): def push(self, func: Callable[..., None], *user_data: Any) -> None: ... class TaskPoolClass(GObject.GPointer): + """ + :Constructors: + + :: + + TaskPoolClass() + """ + parent_class: ObjectClass = ... prepare: Callable[[TaskPool], None] = ... cleanup: Callable[[TaskPool], None] = ... @@ -3607,30 +5083,54 @@ class TaskPoolClass(GObject.GPointer): class TaskPrivate(GObject.GPointer): ... class TimedValue(GObject.GPointer): + """ + :Constructors: + + :: + + TimedValue() + """ + timestamp: int = ... value: float = ... class Toc(GObject.GBoxed): + """ + :Constructors: + + :: + + new(scope:Gst.TocScope) -> Gst.Toc + """ + def append_entry(self, entry: TocEntry) -> None: ... def dump(self) -> None: ... def find_entry(self, uid: str) -> Optional[TocEntry]: ... def get_entries(self) -> list[TocEntry]: ... def get_scope(self) -> TocScope: ... - def get_tags(self) -> TagList: ... + def get_tags(self) -> Optional[TagList]: ... def merge_tags(self, tags: Optional[TagList], mode: TagMergeMode) -> None: ... @classmethod def new(cls, scope: TocScope) -> Toc: ... def set_tags(self, tags: Optional[TagList] = None) -> None: ... class TocEntry(GObject.GBoxed): + """ + :Constructors: + + :: + + new(type:Gst.TocEntryType, uid:str) -> Gst.TocEntry + """ + def append_sub_entry(self, subentry: TocEntry) -> None: ... def get_entry_type(self) -> TocEntryType: ... def get_loop(self) -> Tuple[bool, TocLoopType, int]: ... def get_parent(self) -> Optional[TocEntry]: ... def get_start_stop_times(self) -> Tuple[bool, int, int]: ... def get_sub_entries(self) -> list[TocEntry]: ... - def get_tags(self) -> TagList: ... - def get_toc(self) -> Toc: ... + def get_tags(self) -> Optional[TagList]: ... + def get_toc(self) -> Optional[Toc]: ... def get_uid(self) -> str: ... def is_alternative(self) -> bool: ... def is_sequence(self) -> bool: ... @@ -3642,38 +5142,109 @@ class TocEntry(GObject.GBoxed): def set_tags(self, tags: Optional[TagList] = None) -> None: ... class TocSetter(GObject.GInterface): + """ + Interface GstTocSetter + + Signals from GObject: + notify (GParam) + """ + def get_toc(self) -> Optional[Toc]: ... def reset(self) -> None: ... def set_toc(self, toc: Optional[Toc] = None) -> None: ... class TocSetterInterface(GObject.GPointer): + """ + :Constructors: + + :: + + TocSetterInterface() + """ + g_iface: GObject.TypeInterface = ... class Tracer(Object): + """ + :Constructors: + + :: + + Tracer(**properties) + + Object GstTracer + + Properties from GstTracer: + params -> gchararray: Params + Extra configuration parameters + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: params: str name: Optional[str] parent: Optional[Object] - props: Props = ... parent: Object = ... priv: TracerPrivate = ... _gst_reserved: list[None] = ... - def __init__(self, params: str = ..., name: str = ..., parent: Object = ...): ... + def __init__( + self, params: str = ..., name: Optional[str] = ..., parent: Object = ... + ): ... @staticmethod def register(plugin: Optional[Plugin], name: str, type: Type) -> bool: ... class TracerClass(GObject.GPointer): + """ + :Constructors: + + :: + + TracerClass() + """ + parent_class: ObjectClass = ... _gst_reserved: list[None] = ... class TracerFactory(PluginFeature): + """ + :Constructors: + + :: + + TracerFactory(**properties) + + Object GstTracerFactory + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... @staticmethod def get_list() -> list[TracerFactory]: ... def get_tracer_type(self) -> Type: ... @@ -3682,23 +5253,52 @@ class TracerFactoryClass(GObject.GPointer): ... class TracerPrivate(GObject.GPointer): ... class TracerRecord(Object): + """ + :Constructors: + + :: + + TracerRecord(**properties) + + Object GstTracerRecord + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... class TracerRecordClass(GObject.GPointer): ... class TypeFind(GObject.GPointer): + """ + :Constructors: + + :: + + TypeFind() + """ + peek: Callable[[None, int, int], int] = ... suggest: Callable[[None, int, Caps], None] = ... data: None = ... get_length: Callable[[None], int] = ... _gst_reserved: list[None] = ... def get_length(self) -> int: ... - def peek(self, offset: int) -> Optional[bytes]: ... + def peek(self, offset: int, size: int) -> Optional[int]: ... @staticmethod def register( plugin: Optional[Plugin], @@ -3713,12 +5313,33 @@ class TypeFind(GObject.GPointer): def suggest_empty_simple(self, probability: int, media_type: str) -> None: ... class TypeFindFactory(PluginFeature): + """ + :Constructors: + + :: + + TypeFindFactory(**properties) + + Object GstTypeFindFactory + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + class Props: name: Optional[str] parent: Optional[Object] - props: Props = ... - def __init__(self, name: str = ..., parent: Object = ...): ... + def __init__(self, name: Optional[str] = ..., parent: Object = ...): ... def call_function(self, find: TypeFind) -> None: ... def get_caps(self) -> Optional[Caps]: ... def get_extensions(self) -> Optional[list[str]]: ... @@ -3729,12 +5350,24 @@ class TypeFindFactory(PluginFeature): class TypeFindFactoryClass(GObject.GPointer): ... class URIHandler(GObject.GInterface): + """ + Interface GstURIHandler + """ + def get_protocols(self) -> Optional[list[str]]: ... def get_uri(self) -> Optional[str]: ... def get_uri_type(self) -> URIType: ... def set_uri(self, uri: str) -> bool: ... class URIHandlerInterface(GObject.GPointer): + """ + :Constructors: + + :: + + URIHandlerInterface() + """ + parent: GObject.TypeInterface = ... get_type: Callable[[Type], URIType] = ... get_protocols: Callable[[Type], list[str]] = ... @@ -3742,8 +5375,16 @@ class URIHandlerInterface(GObject.GPointer): set_uri: Callable[[URIHandler, str], bool] = ... class Uri(GObject.GBoxed): - def append_path(self, relative_path: str) -> bool: ... - def append_path_segment(self, path_segment: str) -> bool: ... + """ + :Constructors: + + :: + + new(scheme:str=None, userinfo:str=None, host:str=None, port:int, path:str=None, query:str=None, fragment:str=None) -> Gst.Uri + """ + + def append_path(self, relative_path: Optional[str] = None) -> bool: ... + def append_path_segment(self, path_segment: Optional[str] = None) -> bool: ... @staticmethod def construct(protocol: str, location: str) -> str: ... def equal(self, second: Uri) -> bool: ... @@ -3751,7 +5392,7 @@ class Uri(GObject.GBoxed): def from_string(uri: str) -> Optional[Uri]: ... @staticmethod def from_string_escaped(uri: str) -> Optional[Uri]: ... - def from_string_with_base(self, uri: str) -> Uri: ... + def from_string_with_base(self, uri: str) -> Optional[Uri]: ... def get_fragment(self) -> Optional[str]: ... def get_host(self) -> Optional[str]: ... @staticmethod @@ -3777,7 +5418,7 @@ class Uri(GObject.GBoxed): def is_writable(self) -> bool: ... def join(self, ref_uri: Optional[Uri] = None) -> Optional[Uri]: ... @staticmethod - def join_strings(base_uri: str, ref_uri: str) -> str: ... + def join_strings(base_uri: str, ref_uri: str) -> Optional[str]: ... def make_writable(self) -> Uri: ... @classmethod def new( @@ -3809,11 +5450,11 @@ class Uri(GObject.GBoxed): def remove_query_key(self, query_key: str) -> bool: ... def set_fragment(self, fragment: Optional[str] = None) -> bool: ... def set_host(self, host: str) -> bool: ... - def set_path(self, path: str) -> bool: ... + def set_path(self, path: Optional[str] = None) -> bool: ... def set_path_segments(self, path_segments: Optional[list[str]] = None) -> bool: ... def set_path_string(self, path: str) -> bool: ... def set_port(self, port: int) -> bool: ... - def set_query_string(self, query: str) -> bool: ... + def set_query_string(self, query: Optional[str] = None) -> bool: ... def set_query_table(self, query_table: Optional[dict[str, str]] = None) -> bool: ... def set_query_value( self, query_key: str, query_value: Optional[str] = None @@ -3823,6 +5464,14 @@ class Uri(GObject.GBoxed): def to_string(self) -> str: ... class ValueArray: + """ + :Constructors: + + :: + + ValueArray(**properties) + """ + @staticmethod def append_and_take_value(value: Any, append_value: Any) -> None: ... @staticmethod @@ -3837,6 +5486,14 @@ class ValueArray: def prepend_value(value: Any, prepend_value: Any) -> None: ... class ValueList: + """ + :Constructors: + + :: + + ValueList(**properties) + """ + @staticmethod def append_and_take_value(value: Any, append_value: Any) -> None: ... @staticmethod @@ -3855,6 +5512,14 @@ class ValueList: def prepend_value(value: Any, prepend_value: Any) -> None: ... class ValueTable(GObject.GPointer): + """ + :Constructors: + + :: + + ValueTable() + """ + type: Type = ... compare: Callable[[Any, Any], int] = ... serialize: Callable[[Any], str] = ... @@ -4305,6 +5970,8 @@ class EventType(GObject.GEnum): def get_name(type: EventType) -> str: ... @staticmethod def to_quark(type: EventType) -> int: ... + @staticmethod + def to_sticky_ordering(type: EventType) -> int: ... class FlowReturn(GObject.GEnum): CUSTOM_ERROR = -100 @@ -4452,6 +6119,7 @@ class QueryType(GObject.GEnum): SCHEDULING = 38401 SEEKING = 15363 SEGMENT = 17923 + SELECTABLE = 53763 UNKNOWN = 0 URI = 33283 @staticmethod diff --git a/src/gi-stubs/repository/GstSdp.pyi b/src/gi-stubs/repository/GstSdp.pyi index 25d49a4d..741f71e7 100644 --- a/src/gi-stubs/repository/GstSdp.pyi +++ b/src/gi-stubs/repository/GstSdp.pyi @@ -24,9 +24,11 @@ _version: str = "1.0" def sdp_address_is_multicast(nettype: str, addrtype: str, addr: str) -> bool: ... def sdp_make_keymgmt(uri: str, base64: str) -> str: ... +def sdp_media_init() -> Tuple[SDPResult, SDPMedia]: ... def sdp_media_new() -> Tuple[SDPResult, SDPMedia]: ... -def sdp_media_set_media_from_caps(caps: Gst.Caps, media: SDPMedia) -> SDPResult: ... +def sdp_media_set_media_from_caps(caps: Gst.Caps) -> Tuple[SDPResult, SDPMedia]: ... def sdp_message_as_uri(scheme: str, msg: SDPMessage) -> str: ... +def sdp_message_init() -> Tuple[SDPResult, SDPMessage]: ... def sdp_message_new() -> Tuple[SDPResult, SDPMessage]: ... def sdp_message_new_from_text(text: str) -> Tuple[SDPResult, SDPMessage]: ... def sdp_message_parse_buffer(data: Sequence[int], msg: SDPMessage) -> SDPResult: ... @@ -57,7 +59,7 @@ class MIKEYMessage(GObject.GBoxed): MIKEYMessage() new() -> GstSdp.MIKEYMessage new_from_bytes(bytes:GLib.Bytes, info:GstSdp.MIKEYDecryptInfo) -> GstSdp.MIKEYMessage - new_from_caps(caps:Gst.Caps) -> GstSdp.MIKEYMessage + new_from_caps(caps:Gst.Caps) -> GstSdp.MIKEYMessage or None new_from_data(data:list, info:GstSdp.MIKEYDecryptInfo) -> GstSdp.MIKEYMessage """ @@ -78,11 +80,13 @@ class MIKEYMessage(GObject.GBoxed): def add_t(self, type: MIKEYTSType, ts_value: Sequence[int]) -> bool: ... def add_t_now_ntp_utc(self) -> bool: ... def base64_encode(self) -> str: ... - def find_payload(self, type: MIKEYPayloadType, nth: int) -> MIKEYPayload: ... - def get_cs_srtp(self, idx: int) -> MIKEYMapSRTP: ... + def find_payload( + self, type: MIKEYPayloadType, nth: int + ) -> Optional[MIKEYPayload]: ... + def get_cs_srtp(self, idx: int) -> Optional[MIKEYMapSRTP]: ... def get_n_cs(self) -> int: ... def get_n_payloads(self) -> int: ... - def get_payload(self, idx: int) -> MIKEYPayload: ... + def get_payload(self, idx: int) -> Optional[MIKEYPayload]: ... def insert_cs_srtp(self, idx: int, map: MIKEYMapSRTP) -> bool: ... def insert_payload(self, idx: int, payload: MIKEYPayload) -> bool: ... @classmethod @@ -92,7 +96,7 @@ class MIKEYMessage(GObject.GBoxed): cls, bytes: GLib.Bytes, info: MIKEYDecryptInfo ) -> MIKEYMessage: ... @classmethod - def new_from_caps(cls, caps: Gst.Caps) -> MIKEYMessage: ... + def new_from_caps(cls, caps: Gst.Caps) -> Optional[MIKEYMessage]: ... @classmethod def new_from_data( cls, data: Sequence[int], info: MIKEYDecryptInfo @@ -128,7 +132,7 @@ class MIKEYPayload(GObject.GBoxed): len: int = ... def kemac_add_sub(self, newpay: MIKEYPayload) -> bool: ... def kemac_get_n_sub(self) -> int: ... - def kemac_get_sub(self, idx: int) -> MIKEYPayload: ... + def kemac_get_sub(self, idx: int) -> Optional[MIKEYPayload]: ... def kemac_remove_sub(self, idx: int) -> bool: ... def kemac_set(self, enc_alg: MIKEYEncAlg, mac_alg: MIKEYMacAlg) -> bool: ... def key_data_set_interval( @@ -145,7 +149,7 @@ class MIKEYPayload(GObject.GBoxed): def rand_set(self, rand: Sequence[int]) -> bool: ... def sp_add_param(self, type: int, val: Sequence[int]) -> bool: ... def sp_get_n_params(self) -> int: ... - def sp_get_param(self, idx: int) -> MIKEYPayloadSPParam: ... + def sp_get_param(self, idx: int) -> Optional[MIKEYPayloadSPParam]: ... def sp_remove_param(self, idx: int) -> bool: ... def sp_set(self, policy: int, proto: MIKEYSecProto) -> bool: ... def t_set(self, type: MIKEYTSType, ts_value: Sequence[int]) -> bool: ... @@ -343,10 +347,10 @@ class SDPMedia(GObject.GPointer): def formats_len(self) -> int: ... def free(self) -> SDPResult: ... def get_attribute(self, idx: int) -> SDPAttribute: ... - def get_attribute_val(self, key: str) -> str: ... - def get_attribute_val_n(self, key: str, nth: int) -> str: ... + def get_attribute_val(self, key: str) -> Optional[str]: ... + def get_attribute_val_n(self, key: str, nth: int) -> Optional[str]: ... def get_bandwidth(self, idx: int) -> SDPBandwidth: ... - def get_caps_from_media(self, pt: int) -> Gst.Caps: ... + def get_caps_from_media(self, pt: int) -> Optional[Gst.Caps]: ... def get_connection(self, idx: int) -> SDPConnection: ... def get_format(self, idx: int) -> str: ... def get_information(self) -> str: ... @@ -355,7 +359,8 @@ class SDPMedia(GObject.GPointer): def get_num_ports(self) -> int: ... def get_port(self) -> int: ... def get_proto(self) -> str: ... - def init(self) -> SDPResult: ... + @staticmethod + def init() -> Tuple[SDPResult, SDPMedia]: ... def insert_attribute(self, idx: int, attr: SDPAttribute) -> SDPResult: ... def insert_bandwidth(self, idx: int, bw: SDPBandwidth) -> SDPResult: ... def insert_connection(self, idx: int, conn: SDPConnection) -> SDPResult: ... @@ -375,7 +380,7 @@ class SDPMedia(GObject.GPointer): def set_key(self, type: str, data: str) -> SDPResult: ... def set_media(self, med: str) -> SDPResult: ... @staticmethod - def set_media_from_caps(caps: Gst.Caps, media: SDPMedia) -> SDPResult: ... + def set_media_from_caps(caps: Gst.Caps) -> Tuple[SDPResult, SDPMedia]: ... def set_port_info(self, port: int, num_ports: int) -> SDPResult: ... def set_proto(self, proto: str) -> SDPResult: ... def uninit(self) -> SDPResult: ... @@ -421,8 +426,8 @@ class SDPMessage(GObject.GBoxed): def emails_len(self) -> int: ... def free(self) -> SDPResult: ... def get_attribute(self, idx: int) -> SDPAttribute: ... - def get_attribute_val(self, key: str) -> str: ... - def get_attribute_val_n(self, key: str, nth: int) -> str: ... + def get_attribute_val(self, key: str) -> Optional[str]: ... + def get_attribute_val_n(self, key: str, nth: int) -> Optional[str]: ... def get_bandwidth(self, idx: int) -> SDPBandwidth: ... def get_connection(self) -> SDPConnection: ... def get_email(self, idx: int) -> str: ... @@ -436,7 +441,8 @@ class SDPMessage(GObject.GBoxed): def get_uri(self) -> str: ... def get_version(self) -> str: ... def get_zone(self, idx: int) -> SDPZone: ... - def init(self) -> SDPResult: ... + @staticmethod + def init() -> Tuple[SDPResult, SDPMessage]: ... def insert_attribute(self, idx: int, attr: SDPAttribute) -> SDPResult: ... def insert_bandwidth(self, idx: int, bw: SDPBandwidth) -> SDPResult: ... def insert_email(self, idx: int, email: str) -> SDPResult: ... diff --git a/src/gi-stubs/repository/GstWebRTC.pyi b/src/gi-stubs/repository/GstWebRTC.pyi index 2f14da34..a0950c4a 100644 --- a/src/gi-stubs/repository/GstWebRTC.pyi +++ b/src/gi-stubs/repository/GstWebRTC.pyi @@ -65,7 +65,6 @@ class WebRTCDTLSTransport(Gst.Object): transport: WebRTCICETransport name: Optional[str] parent: Optional[Gst.Object] - props: Props = ... def __init__( self, @@ -139,7 +138,6 @@ class WebRTCDataChannel(GObject.Object): priority: WebRTCPriorityType protocol: str ready_state: WebRTCDataChannelState - props: Props = ... def __init__( self, @@ -155,10 +153,258 @@ class WebRTCDataChannel(GObject.Object): ): ... def close(self) -> None: ... def send_data(self, data: Optional[GLib.Bytes] = None) -> None: ... + def send_data_full(self, data: Optional[GLib.Bytes] = None) -> bool: ... def send_string(self, str: Optional[str] = None) -> None: ... + def send_string_full(self, str: Optional[str] = None) -> bool: ... class WebRTCDataChannelClass(GObject.GPointer): ... +class WebRTCICE(Gst.Object): + """ + :Constructors: + + :: + + WebRTCICE(**properties) + + Object GstWebRTCICE + + Signals from GstWebRTCICE: + add-local-ip-address (gchararray) -> gboolean + + Properties from GstWebRTCICE: + min-rtp-port -> guint: ICE RTP candidate min port + Minimum port for local rtp port range. min-rtp-port must be <= max-rtp-port + max-rtp-port -> guint: ICE RTP candidate max port + Maximum port for local rtp port range. max-rtp-port must be >= min-rtp-port + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + + class Props: + max_rtp_port: int + min_rtp_port: int + name: Optional[str] + parent: Optional[Gst.Object] + props: Props = ... + parent: Gst.Object = ... + ice_gathering_state: WebRTCICEGatheringState = ... + ice_connection_state: WebRTCICEConnectionState = ... + min_rtp_port: int = ... + max_rtp_port: int = ... + _gst_reserved: list[None] = ... + def __init__( + self, + max_rtp_port: int = ..., + min_rtp_port: int = ..., + name: Optional[str] = ..., + parent: Gst.Object = ..., + ): ... + def add_candidate(self, stream: WebRTCICEStream, candidate: str) -> None: ... + def add_stream(self, session_id: int) -> Optional[WebRTCICEStream]: ... + def add_turn_server(self, uri: str) -> bool: ... + def do_add_candidate(self, stream: WebRTCICEStream, candidate: str) -> None: ... + def do_add_stream(self, session_id: int) -> Optional[WebRTCICEStream]: ... + def do_add_turn_server(self, uri: str) -> bool: ... + def do_find_transport( + self, stream: WebRTCICEStream, component: WebRTCICEComponent + ) -> Optional[WebRTCICETransport]: ... + def do_gather_candidates(self, stream: WebRTCICEStream) -> bool: ... + def do_get_http_proxy(self) -> str: ... + def do_get_is_controller(self) -> bool: ... + def do_get_local_candidates( + self, stream: WebRTCICEStream + ) -> WebRTCICECandidateStats: ... + def do_get_remote_candidates( + self, stream: WebRTCICEStream + ) -> WebRTCICECandidateStats: ... + def do_get_selected_pair( + self, stream: WebRTCICEStream + ) -> Tuple[bool, WebRTCICECandidateStats, WebRTCICECandidateStats]: ... + def do_get_stun_server(self) -> Optional[str]: ... + def do_get_turn_server(self) -> Optional[str]: ... + def do_set_force_relay(self, force_relay: bool) -> None: ... + def do_set_http_proxy(self, uri: str) -> None: ... + def do_set_is_controller(self, controller: bool) -> None: ... + def do_set_local_credentials( + self, stream: WebRTCICEStream, ufrag: str, pwd: str + ) -> bool: ... + def do_set_on_ice_candidate( + self, func: Callable[..., None], *user_data: Any + ) -> None: ... + def do_set_remote_credentials( + self, stream: WebRTCICEStream, ufrag: str, pwd: str + ) -> bool: ... + def do_set_stun_server(self, uri: Optional[str] = None) -> None: ... + def do_set_tos(self, stream: WebRTCICEStream, tos: int) -> None: ... + def do_set_turn_server(self, uri: Optional[str] = None) -> None: ... + def find_transport( + self, stream: WebRTCICEStream, component: WebRTCICEComponent + ) -> Optional[WebRTCICETransport]: ... + def gather_candidates(self, stream: WebRTCICEStream) -> bool: ... + def get_http_proxy(self) -> str: ... + def get_is_controller(self) -> bool: ... + def get_local_candidates( + self, stream: WebRTCICEStream + ) -> list[WebRTCICECandidateStats]: ... + def get_remote_candidates( + self, stream: WebRTCICEStream + ) -> list[WebRTCICECandidateStats]: ... + def get_selected_pair( + self, stream: WebRTCICEStream + ) -> Tuple[bool, WebRTCICECandidateStats, WebRTCICECandidateStats]: ... + def get_stun_server(self) -> Optional[str]: ... + def get_turn_server(self) -> Optional[str]: ... + def set_force_relay(self, force_relay: bool) -> None: ... + def set_http_proxy(self, uri: str) -> None: ... + def set_is_controller(self, controller: bool) -> None: ... + def set_local_credentials( + self, stream: WebRTCICEStream, ufrag: str, pwd: str + ) -> bool: ... + def set_on_ice_candidate( + self, func: Callable[..., None], *user_data: Any + ) -> None: ... + def set_remote_credentials( + self, stream: WebRTCICEStream, ufrag: str, pwd: str + ) -> bool: ... + def set_stun_server(self, uri: Optional[str] = None) -> None: ... + def set_tos(self, stream: WebRTCICEStream, tos: int) -> None: ... + def set_turn_server(self, uri: Optional[str] = None) -> None: ... + +class WebRTCICECandidateStats(GObject.GBoxed): + """ + :Constructors: + + :: + + WebRTCICECandidateStats() + """ + + ipaddr: str = ... + port: int = ... + stream_id: int = ... + type: str = ... + proto: str = ... + relay_proto: str = ... + prio: int = ... + url: str = ... + _gst_reserved: list[None] = ... + def copy(self) -> WebRTCICECandidateStats: ... + def free(self) -> None: ... + +class WebRTCICEClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebRTCICEClass() + """ + + parent_class: Gst.ObjectClass = ... + add_stream: Callable[[WebRTCICE, int], Optional[WebRTCICEStream]] = ... + find_transport: Callable[ + [WebRTCICE, WebRTCICEStream, WebRTCICEComponent], Optional[WebRTCICETransport] + ] = ... + gather_candidates: Callable[[WebRTCICE, WebRTCICEStream], bool] = ... + add_candidate: Callable[[WebRTCICE, WebRTCICEStream, str], None] = ... + set_local_credentials: Callable[[WebRTCICE, WebRTCICEStream, str, str], bool] = ... + set_remote_credentials: Callable[[WebRTCICE, WebRTCICEStream, str, str], bool] = ... + add_turn_server: Callable[[WebRTCICE, str], bool] = ... + set_is_controller: Callable[[WebRTCICE, bool], None] = ... + get_is_controller: Callable[[WebRTCICE], bool] = ... + set_force_relay: Callable[[WebRTCICE, bool], None] = ... + set_stun_server: Callable[[WebRTCICE, Optional[str]], None] = ... + get_stun_server: Callable[[WebRTCICE], Optional[str]] = ... + set_turn_server: Callable[[WebRTCICE, Optional[str]], None] = ... + get_turn_server: Callable[[WebRTCICE], Optional[str]] = ... + set_http_proxy: Callable[[WebRTCICE, str], None] = ... + get_http_proxy: Callable[[WebRTCICE], str] = ... + set_tos: Callable[[WebRTCICE, WebRTCICEStream, int], None] = ... + set_on_ice_candidate: Callable[..., None] = ... + get_local_candidates: Callable[ + [WebRTCICE, WebRTCICEStream], WebRTCICECandidateStats + ] = ... + get_remote_candidates: Callable[ + [WebRTCICE, WebRTCICEStream], WebRTCICECandidateStats + ] = ... + get_selected_pair: Callable[ + [WebRTCICE, WebRTCICEStream], + Tuple[bool, WebRTCICECandidateStats, WebRTCICECandidateStats], + ] = ... + _gst_reserved: list[None] = ... + +class WebRTCICEStream(Gst.Object): + """ + :Constructors: + + :: + + WebRTCICEStream(**properties) + + Object GstWebRTCICEStream + + Properties from GstWebRTCICEStream: + stream-id -> guint: ICE stream id + ICE stream id associated with this stream + + Signals from GstObject: + deep-notify (GstObject, GParam) + + Properties from GstObject: + name -> gchararray: Name + The name of the object + parent -> GstObject: Parent + The parent of the object + + Signals from GObject: + notify (GParam) + """ + + class Props: + stream_id: int + name: Optional[str] + parent: Optional[Gst.Object] + props: Props = ... + parent: Gst.Object = ... + stream_id: int = ... + def __init__( + self, stream_id: int = ..., name: Optional[str] = ..., parent: Gst.Object = ... + ): ... + def do_find_transport( + self, component: WebRTCICEComponent + ) -> Optional[WebRTCICETransport]: ... + def do_gather_candidates(self) -> bool: ... + def find_transport( + self, component: WebRTCICEComponent + ) -> Optional[WebRTCICETransport]: ... + def gather_candidates(self) -> bool: ... + +class WebRTCICEStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebRTCICEStreamClass() + """ + + parent_class: Gst.ObjectClass = ... + find_transport: Callable[ + [WebRTCICEStream, WebRTCICEComponent], Optional[WebRTCICETransport] + ] = ... + gather_candidates: Callable[[WebRTCICEStream], bool] = ... + class WebRTCICETransport(Gst.Object): """ :Constructors: @@ -200,16 +446,41 @@ class WebRTCICETransport(Gst.Object): state: WebRTCICEConnectionState name: Optional[str] parent: Optional[Gst.Object] - props: Props = ... + parent: Gst.Object = ... + role: WebRTCICERole = ... + component: WebRTCICEComponent = ... + state: WebRTCICEConnectionState = ... + gathering_state: WebRTCICEGatheringState = ... + src: Gst.Element = ... + sink: Gst.Element = ... + _padding: list[None] = ... def __init__( self, component: WebRTCICEComponent = ..., name: Optional[str] = ..., parent: Gst.Object = ..., ): ... + def connection_state_change(self, new_state: WebRTCICEConnectionState) -> None: ... + def do_gather_candidates(self) -> bool: ... + def gathering_state_change(self, new_state: WebRTCICEGatheringState) -> None: ... + def new_candidate( + self, stream_id: int, component: WebRTCICEComponent, attr: str + ) -> None: ... + def selected_pair_change(self) -> None: ... + +class WebRTCICETransportClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebRTCICETransportClass() + """ -class WebRTCICETransportClass(GObject.GPointer): ... + parent_class: Gst.ObjectClass = ... + gather_candidates: Callable[[WebRTCICETransport], bool] = ... + _padding: list[None] = ... class WebRTCRTPReceiver(Gst.Object): """ @@ -242,7 +513,6 @@ class WebRTCRTPReceiver(Gst.Object): transport: WebRTCDTLSTransport name: Optional[str] parent: Optional[Gst.Object] - props: Props = ... def __init__(self, name: Optional[str] = ..., parent: Gst.Object = ...): ... @@ -282,7 +552,6 @@ class WebRTCRTPSender(Gst.Object): transport: WebRTCDTLSTransport name: Optional[str] parent: Optional[Gst.Object] - props: Props = ... def __init__( self, @@ -344,7 +613,6 @@ class WebRTCRTPTransceiver(Gst.Object): sender: WebRTCRTPSender name: Optional[str] parent: Optional[Gst.Object] - props: Props = ... def __init__( self, @@ -399,7 +667,6 @@ class WebRTCSCTPTransport(Gst.Object): transport: WebRTCDTLSTransport name: Optional[str] parent: Optional[Gst.Object] - props: Props = ... def __init__(self, name: Optional[str] = ..., parent: Gst.Object = ...): ... @@ -447,7 +714,6 @@ class WebRTCDataChannelState(GObject.GEnum): CLOSED = 4 CLOSING = 3 CONNECTING = 1 - NEW = 0 OPEN = 2 class WebRTCError(GObject.GEnum): @@ -457,9 +723,11 @@ class WebRTCError(GObject.GEnum): FINGERPRINT_FAILURE = 2 HARDWARE_ENCODER_NOT_AVAILABLE = 5 INTERNAL_FAILURE = 8 + INVALID_MODIFICATION = 9 INVALID_STATE = 7 SCTP_FAILURE = 3 SDP_SYNTAX_ERROR = 4 + TYPE_ERROR = 10 @staticmethod def quark() -> int: ... diff --git a/src/gi-stubs/repository/Handy.pyi b/src/gi-stubs/repository/Handy.pyi index f936945d..c6d9409f 100644 --- a/src/gi-stubs/repository/Handy.pyi +++ b/src/gi-stubs/repository/Handy.pyi @@ -85,6 +85,8 @@ class ActionRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Builda Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -93,13 +95,11 @@ class ActionRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Builda realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -185,7 +185,7 @@ class ActionRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Builda composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -197,7 +197,7 @@ class ActionRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Builda tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -291,7 +291,6 @@ class ActionRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Builda action_name: Optional[str] action_target: GLib.Variant child: Gtk.Widget - props: Props = ... parent_instance: PreferencesRow = ... def __init__( @@ -436,8 +435,8 @@ class ApplicationWindow( The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -463,7 +462,7 @@ class ApplicationWindow( gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -482,8 +481,8 @@ class ApplicationWindow( Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -502,6 +501,8 @@ class ApplicationWindow( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -510,13 +511,11 @@ class ApplicationWindow( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -602,7 +601,7 @@ class ApplicationWindow( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -614,7 +613,7 @@ class ApplicationWindow( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -731,7 +730,6 @@ class ApplicationWindow( window: Optional[Gdk.Window] startup_id: str child: Gtk.Widget - props: Props = ... parent_instance: Gtk.ApplicationWindow = ... def __init__( @@ -847,6 +845,8 @@ class Avatar(Gtk.DrawingArea, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -855,13 +855,11 @@ class Avatar(Gtk.DrawingArea, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -947,7 +945,7 @@ class Avatar(Gtk.DrawingArea, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -959,7 +957,7 @@ class Avatar(Gtk.DrawingArea, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -1044,7 +1042,6 @@ class Avatar(Gtk.DrawingArea, Atk.ImplementorIface, Gtk.Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... def __init__( self, @@ -1193,6 +1190,8 @@ class Carousel( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -1201,13 +1200,11 @@ class Carousel( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -1293,7 +1290,7 @@ class Carousel( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -1305,7 +1302,7 @@ class Carousel( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -1400,7 +1397,6 @@ class Carousel( window: Optional[Gdk.Window] orientation: Gtk.Orientation child: Gtk.Widget - props: Props = ... def __init__( self, @@ -1509,6 +1505,8 @@ class CarouselIndicatorDots( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -1517,13 +1515,11 @@ class CarouselIndicatorDots( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -1609,7 +1605,7 @@ class CarouselIndicatorDots( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -1621,7 +1617,7 @@ class CarouselIndicatorDots( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -1703,7 +1699,6 @@ class CarouselIndicatorDots( width_request: int window: Optional[Gdk.Window] orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -1782,6 +1777,8 @@ class CarouselIndicatorLines( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -1790,13 +1787,11 @@ class CarouselIndicatorLines( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -1882,7 +1877,7 @@ class CarouselIndicatorLines( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -1894,7 +1889,7 @@ class CarouselIndicatorLines( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -1976,7 +1971,6 @@ class CarouselIndicatorLines( width_request: int window: Optional[Gdk.Window] orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -2069,6 +2063,8 @@ class Clamp(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -2077,13 +2073,11 @@ class Clamp(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -2169,7 +2163,7 @@ class Clamp(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -2181,7 +2175,7 @@ class Clamp(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -2267,7 +2261,6 @@ class Clamp(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable): window: Optional[Gdk.Window] orientation: Gtk.Orientation child: Gtk.Widget - props: Props = ... def __init__( self, @@ -2398,6 +2391,8 @@ class ComboRow(ActionRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -2406,13 +2401,11 @@ class ComboRow(ActionRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -2498,7 +2491,7 @@ class ComboRow(ActionRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -2510,7 +2503,7 @@ class ComboRow(ActionRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -2606,7 +2599,6 @@ class ComboRow(ActionRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buildable): action_name: Optional[str] action_target: GLib.Variant child: Gtk.Widget - props: Props = ... parent_instance: ActionRow = ... def __init__( @@ -2761,6 +2753,8 @@ class Deck( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -2769,13 +2763,11 @@ class Deck( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -2861,7 +2853,7 @@ class Deck( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -2873,7 +2865,7 @@ class Deck( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -2967,7 +2959,6 @@ class Deck( window: Optional[Gdk.Window] orientation: Gtk.Orientation child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Container = ... def __init__( @@ -3157,6 +3148,8 @@ class ExpanderRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buil Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -3165,13 +3158,11 @@ class ExpanderRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buil realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -3257,7 +3248,7 @@ class ExpanderRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buil composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -3269,7 +3260,7 @@ class ExpanderRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buil tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -3363,7 +3354,6 @@ class ExpanderRow(PreferencesRow, Atk.ImplementorIface, Gtk.Actionable, Gtk.Buil action_name: Optional[str] action_target: GLib.Variant child: Gtk.Widget - props: Props = ... parent_instance: PreferencesRow = ... def __init__( @@ -3513,6 +3503,8 @@ class Flap( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -3521,13 +3513,11 @@ class Flap( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -3613,7 +3603,7 @@ class Flap( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -3625,7 +3615,7 @@ class Flap( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -3724,7 +3714,6 @@ class Flap( window: Optional[Gdk.Window] orientation: Gtk.Orientation child: Gtk.Widget - props: Props = ... def __init__( self, @@ -3878,6 +3867,8 @@ class HeaderBar(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -3886,13 +3877,11 @@ class HeaderBar(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -3978,7 +3967,7 @@ class HeaderBar(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -3990,7 +3979,7 @@ class HeaderBar(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -4085,7 +4074,6 @@ class HeaderBar(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Container = ... def __init__( @@ -4201,7 +4189,6 @@ class HeaderGroup(GObject.Object, Gtk.Buildable): class Props: decorate_all: bool - props: Props = ... def __init__(self, decorate_all: bool = ...): ... def add_gtk_header_bar(self, header_bar: Gtk.HeaderBar) -> None: ... @@ -4302,6 +4289,8 @@ class Keypad(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -4310,13 +4299,11 @@ class Keypad(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -4402,7 +4389,7 @@ class Keypad(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -4414,7 +4401,7 @@ class Keypad(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -4504,7 +4491,6 @@ class Keypad(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Bin = ... def __init__( @@ -4648,6 +4634,8 @@ class Leaflet( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -4656,13 +4644,11 @@ class Leaflet( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -4748,7 +4734,7 @@ class Leaflet( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -4760,7 +4746,7 @@ class Leaflet( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -4858,7 +4844,6 @@ class Leaflet( window: Optional[Gdk.Window] orientation: Gtk.Orientation child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Container = ... def __init__( @@ -5001,6 +4986,8 @@ class PreferencesGroup(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -5009,13 +4996,11 @@ class PreferencesGroup(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -5101,7 +5086,7 @@ class PreferencesGroup(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -5113,7 +5098,7 @@ class PreferencesGroup(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -5199,7 +5184,6 @@ class PreferencesGroup(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Bin = ... def __init__( @@ -5302,6 +5286,8 @@ class PreferencesPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -5310,13 +5296,11 @@ class PreferencesPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -5402,7 +5386,7 @@ class PreferencesPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -5414,7 +5398,7 @@ class PreferencesPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -5499,7 +5483,6 @@ class PreferencesPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Bin = ... def __init__( @@ -5610,6 +5593,8 @@ class PreferencesRow( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -5618,13 +5603,11 @@ class PreferencesRow( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -5710,7 +5693,7 @@ class PreferencesRow( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -5722,7 +5705,7 @@ class PreferencesRow( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -5811,7 +5794,6 @@ class PreferencesRow( action_name: Optional[str] action_target: GLib.Variant child: Gtk.Widget - props: Props = ... parent_instance: Gtk.ListBoxRow = ... def __init__( @@ -5924,8 +5906,8 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -5951,7 +5933,7 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -5970,8 +5952,8 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -5990,6 +5972,8 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -5998,13 +5982,11 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -6090,7 +6072,7 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -6102,7 +6084,7 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -6220,7 +6202,6 @@ class PreferencesWindow(Window, Atk.ImplementorIface, Gtk.Buildable): window: Optional[Gdk.Window] startup_id: str child: Gtk.Widget - props: Props = ... parent_instance: Window = ... def __init__( @@ -6351,6 +6332,8 @@ class SearchBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -6359,13 +6342,11 @@ class SearchBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -6451,7 +6432,7 @@ class SearchBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -6463,7 +6444,7 @@ class SearchBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -6548,7 +6529,6 @@ class SearchBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Bin = ... def __init__( @@ -6662,6 +6642,8 @@ class Squeezer(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -6670,13 +6652,11 @@ class Squeezer(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -6762,7 +6742,7 @@ class Squeezer(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -6774,7 +6754,7 @@ class Squeezer(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -6866,7 +6846,6 @@ class Squeezer(Gtk.Container, Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl window: Optional[Gdk.Window] orientation: Gtk.Orientation child: Gtk.Widget - props: Props = ... def __init__( self, @@ -6983,6 +6962,8 @@ class StatusPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -6991,13 +6972,11 @@ class StatusPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -7083,7 +7062,7 @@ class StatusPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -7095,7 +7074,7 @@ class StatusPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -7181,7 +7160,6 @@ class StatusPage(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -7280,7 +7258,6 @@ class StyleManager(GObject.Object): display: Gdk.Display high_contrast: bool system_supports_color_schemes: bool - props: Props = ... def __init__(self, color_scheme: ColorScheme = ..., display: Gdk.Display = ...): ... def get_color_scheme(self) -> ColorScheme: ... @@ -7376,7 +7353,6 @@ class SwipeTracker(GObject.Object, Gtk.Orientable): reversed: bool swipeable: Swipeable orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -7446,9 +7422,9 @@ class SwipeableInterface(GObject.GPointer): get_snap_points: Callable[[Swipeable], list[float]] = ... get_progress: Callable[[Swipeable], float] = ... get_cancel_progress: Callable[[Swipeable], float] = ... - get_swipe_area: Callable[[Swipeable, NavigationDirection, bool], Gdk.Rectangle] = ( - ... - ) + get_swipe_area: Callable[ + [Swipeable, NavigationDirection, bool], Gdk.Rectangle + ] = ... padding: list[None] = ... class TabBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): @@ -7502,6 +7478,8 @@ class TabBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -7510,13 +7488,11 @@ class TabBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -7602,7 +7578,7 @@ class TabBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -7614,7 +7590,7 @@ class TabBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -7706,7 +7682,6 @@ class TabBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -7839,7 +7814,6 @@ class TabPage(GObject.Object): selected: bool title: Optional[str] tooltip: Optional[str] - props: Props = ... def __init__( self, @@ -7936,6 +7910,8 @@ class TabView(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -7944,13 +7920,11 @@ class TabView(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -8036,7 +8010,7 @@ class TabView(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -8048,7 +8022,7 @@ class TabView(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -8138,7 +8112,6 @@ class TabView(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -8272,6 +8245,8 @@ class TitleBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -8280,13 +8255,11 @@ class TitleBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -8372,7 +8345,7 @@ class TitleBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -8384,7 +8357,7 @@ class TitleBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -8468,7 +8441,6 @@ class TitleBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -8550,7 +8522,6 @@ class ValueObject(GObject.Object): class Props: value: Any - props: Props = ... def __init__(self, value: Any = ...): ... def copy_value(self, dest: Any) -> None: ... @@ -8607,6 +8578,8 @@ class ViewSwitcher(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -8615,13 +8588,11 @@ class ViewSwitcher(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -8707,7 +8678,7 @@ class ViewSwitcher(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -8719,7 +8690,7 @@ class ViewSwitcher(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -8805,7 +8776,6 @@ class ViewSwitcher(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -8897,6 +8867,8 @@ class ViewSwitcherBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -8905,13 +8877,11 @@ class ViewSwitcherBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -8997,7 +8967,7 @@ class ViewSwitcherBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -9009,7 +8979,7 @@ class ViewSwitcherBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -9095,7 +9065,6 @@ class ViewSwitcherBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -9215,6 +9184,8 @@ class ViewSwitcherTitle(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -9223,13 +9194,11 @@ class ViewSwitcherTitle(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -9315,7 +9284,7 @@ class ViewSwitcherTitle(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -9327,7 +9296,7 @@ class ViewSwitcherTitle(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -9416,7 +9385,6 @@ class ViewSwitcherTitle(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -9527,8 +9495,8 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -9554,7 +9522,7 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -9573,8 +9541,8 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -9593,6 +9561,8 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -9601,13 +9571,11 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -9693,7 +9661,7 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -9705,7 +9673,7 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -9821,7 +9789,6 @@ class Window(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): window: Optional[Gdk.Window] startup_id: str child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Window = ... def __init__( @@ -9944,6 +9911,8 @@ class WindowHandle(Gtk.EventBox, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -9952,13 +9921,11 @@ class WindowHandle(Gtk.EventBox, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -10044,7 +10011,7 @@ class WindowHandle(Gtk.EventBox, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -10056,7 +10023,7 @@ class WindowHandle(Gtk.EventBox, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -10141,7 +10108,6 @@ class WindowHandle(Gtk.EventBox, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, diff --git a/src/gi-stubs/repository/Manette.pyi b/src/gi-stubs/repository/Manette.pyi index 3805455a..11a2c444 100644 --- a/src/gi-stubs/repository/Manette.pyi +++ b/src/gi-stubs/repository/Manette.pyi @@ -1,15 +1,43 @@ -from typing import Union +from typing import Any +from typing import Callable +from typing import Literal +from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar from gi.repository import Gio from gi.repository import GObject -_lock = ... -_namespace: str = ... -_version: str = ... +_lock = ... # FIXME Constant +_namespace: str = "Manette" +_version: str = "0.2" def get_resource() -> Gio.Resource: ... class Device(GObject.Object): + """ + :Constructors: + + :: + + Device(**properties) + + Object ManetteDevice + + Signals from ManetteDevice: + event (ManetteEvent) + button-press-event (ManetteEvent) + button-release-event (ManetteEvent) + absolute-axis-event (ManetteEvent) + hat-axis-event (ManetteEvent) + disconnected () + + Signals from GObject: + notify (GParam) + """ + def get_name(self) -> str: ... def has_input(self, type: int, code: int) -> bool: ... def has_rumble(self) -> bool: ... @@ -20,29 +48,69 @@ class Device(GObject.Object): ) -> bool: ... def save_user_mapping(self, mapping_string: str) -> None: ... -class Event: - def get_absolute(self) -> tuple[bool, int, float]: ... - def get_button(self) -> tuple[bool, int]: ... +class DeviceClass(GObject.GPointer): + """ + :Constructors: + + :: + + DeviceClass() + """ + + parent_class: GObject.ObjectClass = ... + +class Event(GObject.GBoxed): + def get_absolute(self) -> Tuple[bool, int, float]: ... + def get_button(self) -> Tuple[bool, int]: ... def get_device(self) -> Device: ... def get_event_type(self) -> EventType: ... def get_hardware_code(self) -> int: ... def get_hardware_index(self) -> int: ... def get_hardware_type(self) -> int: ... def get_hardware_value(self) -> int: ... - def get_hat(self) -> tuple[bool, int, int]: ... + def get_hat(self) -> Tuple[bool, int, int]: ... def get_time(self) -> int: ... class Monitor(GObject.Object): + """ + :Constructors: + + :: + + Monitor(**properties) + new() -> Manette.Monitor + + Object ManetteMonitor + + Signals from ManetteMonitor: + device-connected (ManetteDevice) + device-disconnected (ManetteDevice) + + Signals from GObject: + notify (GParam) + """ + def iterate(self) -> MonitorIter: ... @classmethod - def new() -> Monitor: ... + def new(cls) -> Monitor: ... + +class MonitorClass(GObject.GPointer): + """ + :Constructors: + + :: + + MonitorClass() + """ + + parent_class: GObject.ObjectClass = ... -class MonitorIter: - def next(self) -> tuple[bool, Union[Device, None]]: ... +class MonitorIter(GObject.GBoxed): + def next(self) -> Tuple[bool, Device]: ... class EventType(GObject.GEnum): - EVENT_ABSOLUTE = ... - EVENT_BUTTON_PRESS = ... - EVENT_BUTTON_RELEASE = ... - EVENT_HAT = ... - EVENT_NOTHING = ... + EVENT_ABSOLUTE = 2 + EVENT_BUTTON_PRESS = 0 + EVENT_BUTTON_RELEASE = 1 + EVENT_HAT = 3 + EVENT_NOTHING = -1 diff --git a/src/gi-stubs/repository/Notify.pyi b/src/gi-stubs/repository/Notify.pyi index fb518b6a..e05e7287 100644 --- a/src/gi-stubs/repository/Notify.pyi +++ b/src/gi-stubs/repository/Notify.pyi @@ -67,7 +67,6 @@ class Notification(GObject.Object): icon_name: str id: int summary: str - props: Props = ... parent_object: GObject.Object = ... priv: NotificationPrivate = ... diff --git a/src/gi-stubs/repository/OSTree.pyi b/src/gi-stubs/repository/OSTree.pyi index 744fd665..4f7f1c38 100644 --- a/src/gi-stubs/repository/OSTree.pyi +++ b/src/gi-stubs/repository/OSTree.pyi @@ -22,14 +22,14 @@ COMMIT_META_KEY_VERSION: str = "version" DIRMETA_GVARIANT_STRING: str = "(uuua(ayay))" FILEMETA_GVARIANT_STRING: str = "(uuua(ayay))" GPG_KEY_GVARIANT_STRING: str = "(aa{sv}aa{sv}a{sv})" -MAX_METADATA_SIZE: int = 134217728 +MAX_METADATA_SIZE: int = 10485760 MAX_METADATA_WARN_SIZE: int = 7340032 METADATA_KEY_BOOTABLE: str = "ostree.bootable" METADATA_KEY_LINUX: str = "ostree.linux" META_KEY_DEPLOY_COLLECTION_ID: str = "ostree.deploy-collection-id" ORIGIN_TRANSIENT_GROUP: str = "libostree-transient" PATH_BOOTED: str = "/run/ostree-booted" -RELEASE_VERSION: int = 4 +RELEASE_VERSION: int = 2 REPO_METADATA_REF: str = "ostree-metadata" SHA256_DIGEST_LEN: int = 32 SHA256_STRING_LEN: int = 64 @@ -38,8 +38,8 @@ SUMMARY_GVARIANT_STRING: str = "(a(s(taya{sv}))a{sv})" SUMMARY_SIG_GVARIANT_STRING: str = "a{sv}" TIMESTAMP: int = 0 TREE_GVARIANT_STRING: str = "(a(say)a(sayay))" -VERSION: float = 2023.4 -VERSION_S: str = "2023.4" +VERSION: float = 2023.2 +VERSION_S: str = "2023.2" YEAR_VERSION: int = 2023 _lock = ... # FIXME Constant _namespace: str = "OSTree" @@ -623,7 +623,6 @@ class Repo(GObject.Object): path: Gio.File remotes_config_dir: str sysroot_path: Gio.File - props: Props = ... def __init__( self, @@ -664,13 +663,6 @@ class Repo(GObject.Object): source_info: Gio.FileInfo, cancellable: Optional[Gio.Cancellable] = None, ) -> bool: ... - def commit_add_composefs_metadata( - self, - format_version: int, - dict: GLib.VariantDict, - repo_root: RepoFile, - cancellable: Optional[Gio.Cancellable] = None, - ) -> bool: ... def commit_transaction( self, cancellable: Optional[Gio.Cancellable] = None ) -> Tuple[bool, RepoTransactionStats]: ... @@ -1512,9 +1504,9 @@ class RepoFinderInterface(GObject.GPointer): g_iface: GObject.TypeInterface = ... resolve_async: Callable[..., None] = ... - resolve_finish: Callable[[RepoFinder, Gio.AsyncResult], list[RepoFinderResult]] = ( - ... - ) + resolve_finish: Callable[ + [RepoFinder, Gio.AsyncResult], list[RepoFinderResult] + ] = ... class RepoFinderMount(GObject.Object, RepoFinder): """ @@ -1537,7 +1529,6 @@ class RepoFinderMount(GObject.Object, RepoFinder): class Props: monitor: Gio.VolumeMonitor - props: Props = ... def __init__(self, monitor: Gio.VolumeMonitor = ...): ... @classmethod @@ -1678,7 +1669,6 @@ class SePolicy(GObject.Object, Gio.Initable): class Props: path: Optional[Gio.File] rootfs_dfd: int - props: Props = ... def __init__(self, path: Gio.File = ..., rootfs_dfd: int = ...): ... @staticmethod @@ -1837,7 +1827,6 @@ class Sysroot(GObject.Object): class Props: path: Gio.File - props: Props = ... def __init__(self, path: Gio.File = ...): ... def cleanup(self, cancellable: Optional[Gio.Cancellable] = None) -> bool: ... @@ -2037,7 +2026,6 @@ class SysrootUpgrader(GObject.Object, Gio.Initable): flags: SysrootUpgraderFlags osname: str sysroot: Sysroot - props: Props = ... def __init__( self, @@ -2101,7 +2089,6 @@ class SysrootWriteDeploymentsOpts(GObject.GPointer): """ do_postclean: bool = ... - disable_auto_early_prune: bool = ... unused_bools: list[bool] = ... unused_ints: list[int] = ... unused_ptrs: list[None] = ... diff --git a/src/gi-stubs/repository/Panel.pyi b/src/gi-stubs/repository/Panel.pyi index ff452382..9c962556 100644 --- a/src/gi-stubs/repository/Panel.pyi +++ b/src/gi-stubs/repository/Panel.pyi @@ -188,7 +188,6 @@ class Application(Adw.Application, Gio.ActionGroup, Gio.ActionMap): is_remote: bool resource_base_path: Optional[str] action_group: Optional[Gio.ActionGroup] - props: Props = ... parent_instance: Adw.Application = ... def __init__( @@ -362,7 +361,6 @@ class Dock(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -666,7 +664,6 @@ class DocumentWorkspace( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... parent_instance: Workspace = ... def __init__( @@ -879,7 +876,6 @@ class Frame( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -1080,7 +1076,6 @@ class FrameHeaderBar( width_request: int accessible_role: Gtk.AccessibleRole frame: Optional[Frame] - props: Props = ... def __init__( self, @@ -1260,7 +1255,6 @@ class FrameSwitcher( accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation frame: Optional[Frame] - props: Props = ... def __init__( self, @@ -1427,7 +1421,6 @@ class FrameTabBar( width_request: int accessible_role: Gtk.AccessibleRole frame: Optional[Frame] - props: Props = ... def __init__( self, @@ -1511,7 +1504,6 @@ class GSettingsActionGroup(GObject.Object, Gio.ActionGroup): class Props: settings: Gio.Settings - props: Props = ... def __init__(self, settings: Gio.Settings = ...): ... @staticmethod @@ -1633,7 +1625,6 @@ class Grid(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -1801,7 +1792,6 @@ class GridColumn(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -1909,7 +1899,6 @@ class LayeredSettings(GObject.Object): class Props: path: str schema_id: str - props: Props = ... def __init__(self, path: str = ..., schema_id: str = ...): ... def append(self, settings: Gio.Settings) -> None: ... @@ -2118,7 +2107,6 @@ class OmniBar( accessible_role: Gtk.AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -2290,7 +2278,6 @@ class Paned( width_request: int accessible_role: Gtk.AccessibleRole orientation: Gtk.Orientation - props: Props = ... def __init__( self, @@ -2382,7 +2369,6 @@ class Position(GObject.Object): depth_set: bool row: int row_set: bool - props: Props = ... def __init__( self, @@ -2471,7 +2457,6 @@ class SaveDelegate(GObject.Object): progress: float subtitle: Optional[str] title: Optional[str] - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -2726,7 +2711,6 @@ class SaveDialog( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... def __init__( self, @@ -2885,7 +2869,6 @@ class SessionItem(GObject.Object): position: Optional[Position] type_hint: Optional[str] workspace: Optional[str] - props: Props = ... def __init__( self, @@ -2976,7 +2959,6 @@ class Settings(GObject.Object, Gio.ActionGroup): path_suffix: str schema_id: str schema_id_prefix: str - props: Props = ... def __init__( self, @@ -3151,7 +3133,6 @@ class Statusbar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget) visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -3310,7 +3291,6 @@ class ThemeSelector(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTar visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -3470,7 +3450,6 @@ class ToggleButton(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -3670,7 +3649,6 @@ class Widget(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -3809,7 +3787,6 @@ class Workbench(Gtk.WindowGroup): class Props: id: str - props: Props = ... parent_instance: Gtk.WindowGroup = ... def __init__(self, id: str = ...): ... @@ -4068,7 +4045,6 @@ class Workspace( width_request: int accessible_role: Gtk.AccessibleRole startup_id: str - props: Props = ... parent_instance: Adw.ApplicationWindow = ... def __init__( diff --git a/src/gi-stubs/repository/Pango.pyi b/src/gi-stubs/repository/Pango.pyi index d4e80ab0..f6234027 100644 --- a/src/gi-stubs/repository/Pango.pyi +++ b/src/gi-stubs/repository/Pango.pyi @@ -1,9 +1,11 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple from typing import Type +from typing import TypeVar from gi.repository import Gio from gi.repository import GLib @@ -20,9 +22,9 @@ GLYPH_INVALID_INPUT: int = 4294967295 GLYPH_UNKNOWN_FLAG: int = 268435456 SCALE: int = 1024 VERSION_MAJOR: int = 1 -VERSION_MICRO: int = 12 -VERSION_MINOR: int = 50 -VERSION_STRING: str = "1.50.12" +VERSION_MICRO: int = 0 +VERSION_MINOR: int = 51 +VERSION_STRING: str = "1.51.0" _introspection_module = ... # FIXME Constant _lock = ... # FIXME Constant _namespace: str = "Pango" @@ -566,9 +568,9 @@ class FontClass(GObject.GPointer): parent_class: GObject.ObjectClass = ... describe: Callable[[Font], FontDescription] = ... get_coverage: Callable[[Font, Language], Coverage] = ... - get_glyph_extents: Callable[[Optional[Font], int], Tuple[Rectangle, Rectangle]] = ( - ... - ) + get_glyph_extents: Callable[ + [Optional[Font], int], Tuple[Rectangle, Rectangle] + ] = ... get_metrics: Callable[[Optional[Font], Optional[Language]], FontMetrics] = ... get_font_map: Callable[[Optional[Font]], Optional[FontMap]] = ... describe_absolute: Callable[[Font], FontDescription] = ... @@ -697,7 +699,6 @@ class FontFamily(GObject.Object, Gio.ListModel): class Props: item_type: Type n_items: int - props: Props = ... parent_instance: GObject.Object = ... def do_get_face(self, name: Optional[str] = None) -> Optional[FontFace]: ... @@ -754,7 +755,6 @@ class FontMap(GObject.Object, Gio.ListModel): class Props: item_type: Type n_items: int - props: Props = ... parent_instance: GObject.Object = ... def changed(self) -> None: ... @@ -1375,9 +1375,9 @@ class RendererClass(GObject.GPointer): begin: Callable[[Renderer], None] = ... end: Callable[[Renderer], None] = ... prepare_run: Callable[[Renderer, GlyphItem], None] = ... - draw_glyph_item: Callable[[Renderer, Optional[str], GlyphItem, int, int], None] = ( - ... - ) + draw_glyph_item: Callable[ + [Renderer, Optional[str], GlyphItem, int, int], None + ] = ... _pango_reserved2: None = ... _pango_reserved3: None = ... _pango_reserved4: None = ... diff --git a/src/gi-stubs/repository/PangoCairo.pyi b/src/gi-stubs/repository/PangoCairo.pyi index 272536d9..c6c2c177 100644 --- a/src/gi-stubs/repository/PangoCairo.pyi +++ b/src/gi-stubs/repository/PangoCairo.pyi @@ -1,6 +1,10 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional +from typing import Sequence +from typing import Tuple +from typing import Type from typing import TypeVar import cairo diff --git a/src/gi-stubs/repository/Rsvg.pyi b/src/gi-stubs/repository/Rsvg.pyi index 52516fba..625292b5 100644 --- a/src/gi-stubs/repository/Rsvg.pyi +++ b/src/gi-stubs/repository/Rsvg.pyi @@ -1,18 +1,20 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple from typing import Type +from typing import TypeVar from gi.repository import GdkPixbuf from gi.repository import Gio from gi.repository import GObject MAJOR_VERSION: int = 2 -MICRO_VERSION: int = 5 -MINOR_VERSION: int = 54 -VERSION: str = "2.54.5" +MICRO_VERSION: int = 1 +MINOR_VERSION: int = 57 +VERSION: str = "2.57.1" _lock = ... # FIXME Constant _namespace: str = "Rsvg" _version: str = "2.0" @@ -38,25 +40,64 @@ def set_default_dpi_x_y(dpi_x: float, dpi_y: float) -> None: ... def term() -> None: ... class DimensionData(GObject.GPointer): + """ + :Constructors: + + :: + + DimensionData() + """ + width: int = ... height: int = ... em: float = ... ex: float = ... class Handle(GObject.Object): + """ + :Constructors: + + :: + + Handle(**properties) + new() -> Rsvg.Handle + new_from_data(data:list) -> Rsvg.Handle or None + new_from_file(filename:str) -> Rsvg.Handle or None + new_from_gfile_sync(file:Gio.File, flags:Rsvg.HandleFlags, cancellable:Gio.Cancellable=None) -> Rsvg.Handle or None + new_from_stream_sync(input_stream:Gio.InputStream, base_file:Gio.File=None, flags:Rsvg.HandleFlags, cancellable:Gio.Cancellable=None) -> Rsvg.Handle or None + new_with_flags(flags:Rsvg.HandleFlags) -> Rsvg.Handle + + Object RsvgHandle + + Properties from RsvgHandle: + flags -> RsvgHandleFlags: flags + dpi-x -> gdouble: dpi-x + dpi-y -> gdouble: dpi-y + base-uri -> gchararray: base-uri + width -> gint: width + height -> gint: height + em -> gdouble: em + ex -> gdouble: ex + title -> gchararray: title + desc -> gchararray: desc + metadata -> gchararray: metadata + + Signals from GObject: + notify (GParam) + """ + class Props: base_uri: str - desc: str + desc: Optional[str] dpi_x: float dpi_y: float em: float ex: float flags: HandleFlags height: int - metadata: str - title: str + metadata: Optional[str] + title: Optional[str] width: int - props: Props = ... parent: GObject.Object = ... _abi_padding: list[None] = ... @@ -151,18 +192,50 @@ class Handle(GObject.Object): def write(self, buf: Sequence[int]) -> bool: ... class HandleClass(GObject.GPointer): + """ + :Constructors: + + :: + + HandleClass() + """ + parent: GObject.ObjectClass = ... _abi_padding: list[None] = ... class Length(GObject.GPointer): + """ + :Constructors: + + :: + + Length() + """ + length: float = ... unit: Unit = ... class PositionData(GObject.GPointer): + """ + :Constructors: + + :: + + PositionData() + """ + x: int = ... y: int = ... class Rectangle(GObject.GPointer): + """ + :Constructors: + + :: + + Rectangle() + """ + x: float = ... y: float = ... width: float = ... diff --git a/src/gi-stubs/repository/Secret.pyi b/src/gi-stubs/repository/Secret.pyi index 12413071..3d19607d 100644 --- a/src/gi-stubs/repository/Secret.pyi +++ b/src/gi-stubs/repository/Secret.pyi @@ -15,7 +15,7 @@ BACKEND_EXTENSION_POINT_NAME: str = "secret-backend" COLLECTION_DEFAULT: str = "default" COLLECTION_SESSION: str = "session" MAJOR_VERSION: int = 0 -MICRO_VERSION: int = 2 +MICRO_VERSION: int = 3 MINOR_VERSION: int = 21 _lock = ... # FIXME Constant _namespace: str = "Secret" @@ -220,7 +220,6 @@ class Collection(Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initab g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent: Gio.DBusProxy = ... pv: CollectionPrivate = ... @@ -412,7 +411,6 @@ class Item( label: str modified: int g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... pv: ItemPrivate = ... @@ -598,7 +596,6 @@ class Prompt(Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable): g_name_owner: str g_object_path: str g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... pv: PromptPrivate = ... @@ -785,7 +782,6 @@ class Service( g_object_path: str flags: ServiceFlags g_bus_type: Gio.BusType - props: Props = ... parent: Gio.DBusProxy = ... pv: ServicePrivate = ... diff --git a/src/gi-stubs/repository/Vte.pyi b/src/gi-stubs/repository/Vte.pyi index 9c90a22a..8be057a6 100644 --- a/src/gi-stubs/repository/Vte.pyi +++ b/src/gi-stubs/repository/Vte.pyi @@ -1,9 +1,13 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple +from typing import Type +from typing import TypeVar +import cairo from gi.repository import Atk from gi.repository import Gdk from gi.repository import Gio @@ -12,15 +16,18 @@ from gi.repository import GObject from gi.repository import Gtk from gi.repository import Pango +_SomeSurface = TypeVar("_SomeSurface", bound=cairo.Surface) + MAJOR_VERSION: int = 0 -MICRO_VERSION: int = 0 -MINOR_VERSION: int = 70 +MICRO_VERSION: int = 2 +MINOR_VERSION: int = 74 REGEX_FLAGS_DEFAULT: int = 1075314688 SPAWN_NO_PARENT_ENVV: int = 33554432 SPAWN_NO_SYSTEMD_SCOPE: int = 67108864 SPAWN_REQUIRE_SYSTEMD_SCOPE: int = 134217728 TEST_FLAGS_ALL: int = 18446744073709551615 TEST_FLAGS_NONE: int = 0 +_lock = ... # FIXME Constant _namespace: str = "Vte" _version: str = "2.91" @@ -36,6 +43,14 @@ def pty_error_quark() -> int: ... def regex_error_quark() -> int: ... class CharAttributes(GObject.GPointer): + """ + :Constructors: + + :: + + CharAttributes() + """ + row: int = ... column: int = ... fore: Pango.Color = ... @@ -45,10 +60,28 @@ class CharAttributes(GObject.GPointer): columns: int = ... class Pty(GObject.Object, Gio.Initable): + """ + :Constructors: + + :: + + Pty(**properties) + new_foreign_sync(fd:int, cancellable:Gio.Cancellable=None) -> Vte.Pty + new_sync(flags:Vte.PtyFlags, cancellable:Gio.Cancellable=None) -> Vte.Pty + + Object VtePty + + Properties from VtePty: + flags -> VtePtyFlags: flags + fd -> gint: fd + + Signals from GObject: + notify (GParam) + """ + class Props: fd: int flags: PtyFlags - props: Props = ... def __init__(self, fd: int = ..., flags: PtyFlags = ...): ... def child_setup(self) -> None: ... @@ -96,6 +129,15 @@ class Pty(GObject.Object, Gio.Initable): class PtyClass(GObject.GPointer): ... class Regex(GObject.GBoxed): + """ + :Constructors: + + :: + + new_for_match(pattern:str, pattern_length:int, flags:int) -> Vte.Regex + new_for_search(pattern:str, pattern_length:int, flags:int) -> Vte.Regex + """ + def jit(self, flags: int) -> bool: ... @classmethod def new_for_match(cls, pattern: str, pattern_length: int, flags: int) -> Regex: ... @@ -106,6 +148,240 @@ class Regex(GObject.GBoxed): def unref(self) -> Regex: ... class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): + """ + :Constructors: + + :: + + Terminal(**properties) + new() -> Vte.Terminal + + Object VteTerminal + + Signals from VteTerminal: + eof () + child-exited (gint) + window-title-changed () + icon-title-changed () + current-directory-uri-changed () + current-file-uri-changed () + hyperlink-hover-uri-changed (gchararray, GdkRectangle) + encoding-changed () + commit (gchararray, guint) + char-size-changed (guint, guint) + selection-changed () + contents-changed () + cursor-moved () + deiconify-window () + iconify-window () + raise-window () + lower-window () + refresh-window () + restore-window () + maximize-window () + resize-window (guint, guint) + move-window (guint, guint) + increase-font-size () + decrease-font-size () + text-modified () + text-inserted () + text-deleted () + text-scrolled (gint) + copy-clipboard () + paste-clipboard () + bell () + + Properties from VteTerminal: + allow-bold -> gboolean: allow-bold + allow-hyperlink -> gboolean: allow-hyperlink + audible-bell -> gboolean: audible-bell + backspace-binding -> VteEraseBinding: backspace-binding + bold-is-bright -> gboolean: bold-is-bright + cell-height-scale -> gdouble: cell-height-scale + cell-width-scale -> gdouble: cell-width-scale + cjk-ambiguous-width -> gint: cjk-ambiguous-width + cursor-blink-mode -> VteCursorBlinkMode: cursor-blink-mode + cursor-shape -> VteCursorShape: cursor-shape + current-directory-uri -> gchararray: current-directory-uri + current-file-uri -> gchararray: current-file-uri + delete-binding -> VteEraseBinding: delete-binding + enable-bidi -> gboolean: enable-bidi + enable-fallback-scrolling -> gboolean: enable-fallback-scrolling + enable-shaping -> gboolean: enable-shaping + enable-sixel -> gboolean: enable-sixel + encoding -> gchararray: encoding + font-desc -> PangoFontDescription: font-desc + font-options -> CairoFontOptions: font-options + font-scale -> gdouble: font-scale + hyperlink-hover-uri -> gchararray: hyperlink-hover-uri + icon-title -> gchararray: icon-title + input-enabled -> gboolean: input-enabled + pointer-autohide -> gboolean: pointer-autohide + pty -> VtePty: pty + rewrap-on-resize -> gboolean: rewrap-on-resize + scrollback-lines -> guint: scrollback-lines + scroll-on-keystroke -> gboolean: scroll-on-keystroke + scroll-on-output -> gboolean: scroll-on-output + scroll-unit-is-pixels -> gboolean: scroll-unit-is-pixels + text-blink-mode -> VteTextBlinkMode: text-blink-mode + window-title -> gchararray: window-title + word-char-exceptions -> gchararray: word-char-exceptions + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + class Props: allow_bold: bool allow_hyperlink: bool @@ -115,8 +391,8 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): cell_height_scale: float cell_width_scale: float cjk_ambiguous_width: int - current_directory_uri: str - current_file_uri: str + current_directory_uri: Optional[str] + current_file_uri: Optional[str] cursor_blink_mode: CursorBlinkMode cursor_shape: CursorShape delete_binding: EraseBinding @@ -124,11 +400,12 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): enable_fallback_scrolling: bool enable_shaping: bool enable_sixel: bool - encoding: str + encoding: Optional[str] font_desc: Pango.FontDescription + font_options: Optional[cairo.FontOptions] font_scale: float hyperlink_hover_uri: str - icon_title: str + icon_title: Optional[str] input_enabled: bool pointer_autohide: bool pty: Pty @@ -138,8 +415,8 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): scroll_unit_is_pixels: bool scrollback_lines: int text_blink_mode: TextBlinkMode - window_title: str - word_char_exceptions: str + window_title: Optional[str] + word_char_exceptions: Optional[str] app_paintable: bool can_default: bool can_focus: bool @@ -166,24 +443,23 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): name: str no_show_all: bool opacity: float - parent: Gtk.Container + parent: Optional[Gtk.Container] receives_default: bool scale_factor: int sensitive: bool style: Gtk.Style - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int - window: Gdk.Window + window: Optional[Gdk.Window] hadjustment: Gtk.Adjustment hscroll_policy: Gtk.ScrollablePolicy vadjustment: Gtk.Adjustment vscroll_policy: Gtk.ScrollablePolicy - props: Props = ... widget: Gtk.Widget = ... _unused_padding: list[None] = ... @@ -204,12 +480,13 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): enable_fallback_scrolling: bool = ..., enable_shaping: bool = ..., enable_sixel: bool = ..., - encoding: str = ..., + encoding: Optional[str] = ..., font_desc: Pango.FontDescription = ..., + font_options: Optional[cairo.FontOptions] = ..., font_scale: float = ..., input_enabled: bool = ..., pointer_autohide: bool = ..., - pty: Pty = ..., + pty: Optional[Pty] = ..., rewrap_on_resize: bool = ..., scroll_on_keystroke: bool = ..., scroll_on_output: bool = ..., @@ -244,17 +521,17 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): parent: Gtk.Container = ..., receives_default: bool = ..., sensitive: bool = ..., - style: Gtk.Style = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., - hadjustment: Gtk.Adjustment = ..., + hadjustment: Optional[Gtk.Adjustment] = ..., hscroll_policy: Gtk.ScrollablePolicy = ..., - vadjustment: Gtk.Adjustment = ..., + vadjustment: Optional[Gtk.Adjustment] = ..., vscroll_policy: Gtk.ScrollablePolicy = ..., ): ... def copy_clipboard(self) -> None: ... @@ -322,6 +599,7 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def get_enable_sixel(self) -> bool: ... def get_encoding(self) -> Optional[str]: ... def get_font(self) -> Pango.FontDescription: ... + def get_font_options(self) -> Optional[cairo.FontOptions]: ... def get_font_scale(self) -> float: ... def get_geometry_hints(self, min_rows: int, min_columns: int) -> Gdk.Geometry: ... def get_has_selection(self) -> bool: ... @@ -351,7 +629,11 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): is_selected: Optional[Callable[..., bool]] = None, *user_data: Any, ) -> Tuple[Optional[str], list[CharAttributes]]: ... + def get_text_range_format( + self, format: Format, start_row: int, start_col: int, end_row: int, end_col: int + ) -> Tuple[Optional[str], int]: ... def get_text_selected(self, format: Format) -> Optional[str]: ... + def get_text_selected_full(self, format: Format) -> Tuple[Optional[str], int]: ... def get_window_title(self) -> Optional[str]: ... def get_word_char_exceptions(self) -> Optional[str]: ... def hyperlink_check_event(self, event: Gdk.Event) -> Optional[str]: ... @@ -428,6 +710,9 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def set_enable_sixel(self, enabled: bool) -> None: ... def set_encoding(self, codeset: Optional[str] = None) -> bool: ... def set_font(self, font_desc: Optional[Pango.FontDescription] = None) -> None: ... + def set_font_options( + self, font_options: Optional[cairo.FontOptions] = None + ) -> None: ... def set_font_scale(self, scale: float) -> None: ... def set_geometry_hints_for_window(self, window: Gtk.Window) -> None: ... def set_input_enabled(self, enabled: bool) -> None: ... @@ -490,6 +775,14 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): ) -> bool: ... class TerminalClass(GObject.GPointer): + """ + :Constructors: + + :: + + TerminalClass() + """ + parent_class: Gtk.WidgetClass = ... eof: Callable[[Terminal], None] = ... child_exited: Callable[[Terminal, int], None] = ... diff --git a/src/gi-stubs/repository/XApp.pyi b/src/gi-stubs/repository/XApp.pyi index 1206d1dd..459e4035 100644 --- a/src/gi-stubs/repository/XApp.pyi +++ b/src/gi-stubs/repository/XApp.pyi @@ -224,8 +224,8 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -251,7 +251,7 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -270,8 +270,8 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -290,6 +290,8 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -298,13 +300,11 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -390,7 +390,7 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -402,7 +402,7 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -518,7 +518,6 @@ class GtkWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): window: Optional[Gdk.Window] startup_id: str child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Window = ... def __init__( @@ -634,10 +633,10 @@ class IconChooserButton( The default category. Signals from GtkButton: - clicked () activate () pressed () released () + clicked () enter () leave () @@ -678,6 +677,8 @@ class IconChooserButton( Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -686,13 +687,11 @@ class IconChooserButton( realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -778,7 +777,7 @@ class IconChooserButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -790,7 +789,7 @@ class IconChooserButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -889,7 +888,6 @@ class IconChooserButton( related_action: Gtk.Action use_action_appearance: bool child: Gtk.Widget - props: Props = ... def __init__( self, @@ -982,8 +980,8 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): Object XAppIconChooserDialog Signals from XAppIconChooserDialog: - close () select () + close () Properties from XAppIconChooserDialog: icon-size -> XAppIconSize: Icon size @@ -1019,8 +1017,8 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -1046,7 +1044,7 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -1065,8 +1063,8 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -1085,6 +1083,8 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -1093,13 +1093,11 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -1185,7 +1183,7 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -1197,7 +1195,7 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -1316,7 +1314,6 @@ class IconChooserDialog(GtkWindow, Atk.ImplementorIface, Gtk.Buildable): window: Optional[Gdk.Window] startup_id: str child: Gtk.Widget - props: Props = ... def __init__( self, @@ -1441,7 +1438,6 @@ class KbdLayoutController(GObject.Object): class Props: enabled: bool - props: Props = ... parent_object: GObject.Object = ... priv: KbdLayoutControllerPrivate = ... @@ -1604,7 +1600,6 @@ class ObjectManagerClient( name_owner: Optional[str] object_path: str bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusObjectManagerClient = ... priv: ObjectManagerClientPrivate = ... @@ -1715,7 +1710,6 @@ class ObjectProxy(Gio.DBusObjectProxy, Gio.DBusObject, Object): g_connection: Gio.DBusConnection g_object_path: str status_icon_interface: Optional[StatusIconInterface] - props: Props = ... parent_instance: Gio.DBusObjectProxy = ... priv: ObjectProxyPrivate = ... @@ -1774,7 +1768,6 @@ class ObjectSkeleton(Gio.DBusObjectSkeleton, Gio.DBusObject, Object): class Props: g_object_path: str status_icon_interface: Optional[StatusIconInterface] - props: Props = ... parent_instance: Gio.DBusObjectSkeleton = ... priv: ObjectSkeletonPrivate = ... @@ -1840,8 +1833,8 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -1867,7 +1860,7 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -1886,8 +1879,8 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -1906,6 +1899,8 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -1914,13 +1909,11 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -2006,7 +1999,7 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -2018,7 +2011,7 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -2134,7 +2127,6 @@ class PreferencesWindow(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): window: Optional[Gdk.Window] startup_id: str child: Gtk.Widget - props: Props = ... parent_instance: Gtk.Window = ... def __init__( @@ -2258,6 +2250,8 @@ class StackSidebar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): Signals from GtkWidget: composited-changed () event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) destroy () show () hide () @@ -2266,13 +2260,11 @@ class StackSidebar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): realize () unrealize () size-allocate (GdkRectangle) - state-changed (GtkStateType) state-flags-changed (GtkStateFlags) parent-set (GtkWidget) hierarchy-changed (GtkWidget) style-set (GtkStyle) style-updated () - direction-changed (GtkTextDirection) grab-notify (gboolean) child-notify (GParam) draw (CairoContext) -> gboolean @@ -2358,7 +2350,7 @@ class StackSidebar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -2370,7 +2362,7 @@ class StackSidebar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -2454,7 +2446,6 @@ class StackSidebar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): width_request: int window: Optional[Gdk.Window] child: Gtk.Widget - props: Props = ... def __init__( self, @@ -2552,7 +2543,6 @@ class StatusIcon(GObject.Object): name: str primary_menu: Gtk.Widget secondary_menu: Gtk.Widget - props: Props = ... def __init__( self, @@ -2779,7 +2769,6 @@ class StatusIconInterfaceProxy( tooltip_text: str visible: bool g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: StatusIconInterfaceProxyPrivate = ... @@ -2899,7 +2888,6 @@ class StatusIconInterfaceSkeleton( secondary_menu_is_open: bool tooltip_text: str visible: bool - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: StatusIconInterfaceSkeletonPrivate = ... @@ -2987,7 +2975,6 @@ class StyleManager(GObject.Object): class Props: widget: Gtk.Widget - props: Props = ... def __init__(self, widget: Gtk.Widget = ...): ... def get_widget(self) -> Gtk.Widget: ... @@ -3095,7 +3082,6 @@ class SwitcherooControlProxy( has_dual_gpu: bool num_gpus: int g_bus_type: Gio.BusType - props: Props = ... parent_instance: Gio.DBusProxy = ... priv: SwitcherooControlProxyPrivate = ... @@ -3198,7 +3184,6 @@ class SwitcherooControlSkeleton( gpus: GLib.Variant has_dual_gpu: bool num_gpus: int - props: Props = ... parent_instance: Gio.DBusInterfaceSkeleton = ... priv: SwitcherooControlSkeletonPrivate = ... diff --git a/src/gi-stubs/repository/_Gdk3.pyi b/src/gi-stubs/repository/_Gdk3.pyi index 4032af9b..2db448e5 100644 --- a/src/gi-stubs/repository/_Gdk3.pyi +++ b/src/gi-stubs/repository/_Gdk3.pyi @@ -1,8 +1,10 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple +from typing import Type from typing import TypeVar import cairo @@ -2300,7 +2302,7 @@ KEY_zerosuperior: int = 16785520 KEY_zstroke: int = 16777654 MAJOR_VERSION: int = 3 MAX_TIMECOORD_AXES: int = 128 -MICRO_VERSION: int = 34 +MICRO_VERSION: int = 41 MINOR_VERSION: int = 24 PARENT_RELATIVE: int = 1 PRIORITY_REDRAW: int = 120 @@ -2321,6 +2323,7 @@ TARGET_DRAWABLE: Atom = ... TARGET_PIXMAP: Atom = ... TARGET_STRING: Atom = ... _introspection_module = ... # FIXME Constant +_lock = ... # FIXME Constant _namespace: str = "Gdk" _overrides_module = ... # FIXME Constant _version: str = "3.0" @@ -2368,7 +2371,7 @@ def cairo_set_source_window( def cairo_surface_create_from_pixbuf( pixbuf: GdkPixbuf.Pixbuf, scale: int, for_window: Optional[Window] = None ) -> cairo.ImageSurface: ... -def color_parse(*args, **kwargs): ... # FIXME Function +def color_parse(spec: str) -> Optional[Color]: ... # CHECK Wrapped function def disable_multidevice() -> None: ... def drag_abort(context: DragContext, time_: int) -> None: ... def drag_begin(window: Window, targets: list[Atom]) -> DragContext: ... @@ -2416,8 +2419,8 @@ def get_display_arg_name() -> Optional[str]: ... def get_program_class() -> str: ... def get_show_events() -> bool: ... def gl_error_quark() -> int: ... -def init() -> Tuple[int, list[str]]: ... -def init_check() -> Tuple[bool, int, list[str]]: ... +def init() -> list[str]: ... +def init_check() -> Tuple[bool, list[str]]: ... def keyboard_grab(window: Window, owner_events: bool, time_: int) -> GrabStatus: ... def keyboard_ungrab(time_: int) -> None: ... def keyval_convert_case(symbol: int) -> Tuple[int, int]: ... @@ -2437,7 +2440,7 @@ def offscreen_window_set_embedder(window: Window, embedder: Window) -> None: ... def pango_context_get() -> Pango.Context: ... def pango_context_get_for_display(display: Display) -> Pango.Context: ... def pango_context_get_for_screen(screen: Screen) -> Pango.Context: ... -def parse_args() -> Tuple[int, list[str]]: ... +def parse_args() -> list[str]: ... def pixbuf_get_from_surface( surface: cairo.Surface, src_x: int, src_y: int, width: int, height: int ) -> Optional[GdkPixbuf.Pixbuf]: ... @@ -2458,7 +2461,7 @@ def pre_parse_libgtk_only() -> None: ... def property_delete(window: Window, property: Atom) -> None: ... def property_get( window: Window, property: Atom, type: Atom, offset: int, length: int, pdelete: int -) -> Tuple[bool, Atom, int, int, bytes]: ... +) -> Tuple[bool, Atom, int, bytes]: ... def query_depths() -> list[int]: ... def query_visual_types() -> list[VisualType]: ... def rectangle_intersect(self, src2: Rectangle) -> Tuple[bool, Rectangle]: ... @@ -2535,9 +2538,31 @@ def unicode_to_keyval(wc: int) -> int: ... def utf8_to_string_target(str: str) -> Optional[str]: ... class AppLaunchContext(Gio.AppLaunchContext): + """ + :Constructors: + + :: + + AppLaunchContext(**properties) + new() -> Gdk.AppLaunchContext + + Object GdkAppLaunchContext + + Properties from GdkAppLaunchContext: + display -> GdkDisplay: Display + Display + + Signals from GAppLaunchContext: + launch-failed (gchararray) + launch-started (GAppInfo, GVariant) + launched (GAppInfo, GVariant) + + Signals from GObject: + notify (GParam) + """ + class Props: display: Display - props: Props = ... def __init__(self, display: Display = ...): ... @classmethod @@ -2557,6 +2582,14 @@ class Atom(GObject.GPointer): def name(self) -> str: ... class Color(GObject.GBoxed): + """ + :Constructors: + + :: + + Color() + """ + pixel: int = ... red: int = ... green: int = ... @@ -2569,18 +2602,41 @@ class Color(GObject.GBoxed): def copy(self) -> Color: ... def equal(self, colorb: Color) -> bool: ... def free(self) -> None: ... - def from_floats(self, *args, **kwargs): ... # FIXME Method + def from_floats(red, green, blue): ... # FIXME Function def hash(self) -> int: ... @staticmethod def parse(spec: str) -> Tuple[bool, Color]: ... - def to_floats(self, *args, **kwargs): ... # FIXME Method + def to_floats(self): ... # FIXME Function def to_string(self) -> str: ... class Cursor(GObject.Object): + """ + :Constructors: + + :: + + Cursor(**properties) + new(cursor_type:Gdk.CursorType) -> Gdk.Cursor + new_for_display(display:Gdk.Display, cursor_type:Gdk.CursorType) -> Gdk.Cursor or None + new_from_name(display:Gdk.Display, name:str) -> Gdk.Cursor or None + new_from_pixbuf(display:Gdk.Display, pixbuf:GdkPixbuf.Pixbuf, x:int, y:int) -> Gdk.Cursor + new_from_surface(display:Gdk.Display, surface:cairo.Surface, x:float, y:float) -> Gdk.Cursor + + Object GdkCursor + + Properties from GdkCursor: + cursor-type -> GdkCursorType: Cursor type + Standard cursor type + display -> GdkDisplay: Display + Display of this cursor + + Signals from GObject: + notify (GParam) + """ + class Props: cursor_type: CursorType display: Display - props: Props = ... def __init__(self, cursor_type: CursorType = ..., display: Display = ...): ... def get_cursor_type(self) -> CursorType: ... @@ -2607,8 +2663,57 @@ class Cursor(GObject.Object): def unref(self) -> None: ... class Device(GObject.Object): + """ + :Constructors: + + :: + + Device(**properties) + + Object GdkDevice + + Signals from GdkDevice: + changed () + tool-changed (GdkDeviceTool) + + Properties from GdkDevice: + display -> GdkDisplay: Device Display + Display which the device belongs to + device-manager -> GdkDeviceManager: Device manager + Device manager which the device belongs to + name -> gchararray: Device name + Device name + associated-device -> GdkDevice: Associated device + Associated pointer or keyboard with this device + type -> GdkDeviceType: Device type + Device role in the device manager + input-source -> GdkInputSource: Input source + Source type for the device + input-mode -> GdkInputMode: Input mode for the device + Input mode for the device + has-cursor -> gboolean: Whether the device has a cursor + Whether there is a visible cursor following device motion + n-axes -> guint: Number of axes in the device + Number of axes in the device + vendor-id -> gchararray: Vendor ID + Vendor ID + product-id -> gchararray: Product ID + Product ID + seat -> GdkSeat: Seat + Seat + num-touches -> guint: Number of concurrent touches + Number of concurrent touches + axes -> GdkAxisFlags: Axes + Axes + tool -> GdkDeviceTool: Tool + The tool that is currently used with this device + + Signals from GObject: + notify (GParam) + """ + class Props: - associated_device: Device + associated_device: Optional[Device] axes: AxisFlags device_manager: DeviceManager display: Display @@ -2618,12 +2723,11 @@ class Device(GObject.Object): n_axes: int name: str num_touches: int - product_id: str + product_id: Optional[str] seat: Seat tool: DeviceTool type: DeviceType - vendor_id: str - + vendor_id: Optional[str] props: Props = ... def __init__( self, @@ -2683,16 +2787,44 @@ class Device(GObject.Object): def warp(self, screen: Screen, x: int, y: int) -> None: ... class DeviceManager(GObject.Object): - class Props: - display: Display + """ + :Constructors: + + :: + + DeviceManager(**properties) + Object GdkDeviceManager + + Signals from GdkDeviceManager: + device-added (GdkDevice) + device-removed (GdkDevice) + device-changed (GdkDevice) + + Properties from GdkDeviceManager: + display -> GdkDisplay: Display + Display for the device manager + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Optional[Display] props: Props = ... def __init__(self, display: Display = ...): ... def get_client_pointer(self) -> Device: ... def get_display(self) -> Optional[Display]: ... def list_devices(self, type: DeviceType) -> list[Device]: ... -class DevicePad(GObject.Object): +class DevicePad(GObject.GInterface): + """ + Interface GdkDevicePad + + Signals from GObject: + notify (GParam) + """ + def get_feature_group(self, feature: DevicePadFeature, feature_idx: int) -> int: ... def get_group_n_modes(self, group_idx: int) -> int: ... def get_n_features(self, feature: DevicePadFeature) -> int: ... @@ -2701,12 +2833,34 @@ class DevicePad(GObject.Object): class DevicePadInterface(GObject.GPointer): ... class DeviceTool(GObject.Object): + """ + :Constructors: + + :: + + DeviceTool(**properties) + + Object GdkDeviceTool + + Properties from GdkDeviceTool: + serial -> guint64: Serial + Serial number + tool-type -> GdkDeviceToolType: Tool type + Tool type + axes -> GdkAxisFlags: Axes + Tool axes + hardware-id -> guint64: Hardware ID + Hardware ID + + Signals from GObject: + notify (GParam) + """ + class Props: axes: AxisFlags hardware_id: int serial: int tool_type: DeviceToolType - props: Props = ... def __init__( self, @@ -2720,6 +2874,27 @@ class DeviceTool(GObject.Object): def get_tool_type(self) -> DeviceToolType: ... class Display(GObject.Object): + """ + :Constructors: + + :: + + Display(**properties) + + Object GdkDisplay + + Signals from GdkDisplay: + opened () + closed (gboolean) + seat-added (GdkSeat) + seat-removed (GdkSeat) + monitor-added (GdkMonitor) + monitor-removed (GdkMonitor) + + Signals from GObject: + notify (GParam) + """ + def beep(self) -> None: ... def close(self) -> None: ... def device_is_grabbed(self, device: Device) -> bool: ... @@ -2778,9 +2953,28 @@ class Display(GObject.Object): def warp_pointer(self, screen: Screen, x: int, y: int) -> None: ... class DisplayManager(GObject.Object): - class Props: - default_display: Display + """ + :Constructors: + + :: + + DisplayManager(**properties) + + Object GdkDisplayManager + Signals from GdkDisplayManager: + display-opened (GdkDisplay) + + Properties from GdkDisplayManager: + default-display -> GdkDisplay: Default Display + The default display for GDK + + Signals from GObject: + notify (GParam) + """ + + class Props: + default_display: Optional[Display] props: Props = ... def __init__(self, default_display: Display = ...): ... @staticmethod @@ -2791,7 +2985,26 @@ class DisplayManager(GObject.Object): def set_default_display(self, display: Display) -> None: ... class DragContext(GObject.Object): - def finish(self, *args, **kwargs): ... # FIXME Method + """ + :Constructors: + + :: + + DragContext(**properties) + + Object GdkDragContext + + Signals from GdkDragContext: + cancel (GdkDragCancelReason) + drop-performed (gint) + dnd-finished () + action-changed (GdkDragAction) + + Signals from GObject: + notify (GParam) + """ + + def finish(self, success, del_, time): ... # FIXME Function def get_actions(self) -> DragAction: ... def get_dest_window(self) -> Window: ... def get_device(self) -> Device: ... @@ -2806,10 +3019,28 @@ class DragContext(GObject.Object): def set_hotspot(self, hot_x: int, hot_y: int) -> None: ... class DrawingContext(GObject.Object): + """ + :Constructors: + + :: + + DrawingContext(**properties) + + Object GdkDrawingContext + + Properties from GdkDrawingContext: + window -> GdkWindow: Window + The window that created the context + clip -> CairoRegion: Clip + The clip region of the context + + Signals from GObject: + notify (GParam) + """ + class Props: - clip: cairo.Region + clip: Optional[cairo.Region] window: Window - props: Props = ... def __init__(self, clip: cairo.Region = ..., window: Window = ...): ... # override @@ -3162,6 +3393,28 @@ class EventWindowState(Event): new_window_state: WindowState = ... class FrameClock(GObject.Object): + """ + :Constructors: + + :: + + FrameClock(**properties) + + Object GdkFrameClock + + Signals from GdkFrameClock: + flush-events () + before-paint () + update () + layout () + paint () + after-paint () + resume-events () + + Signals from GObject: + notify (GParam) + """ + def begin_updating(self) -> None: ... def end_updating(self) -> None: ... def get_current_timings(self) -> Optional[FrameTimings]: ... @@ -3186,11 +3439,31 @@ class FrameTimings(GObject.GBoxed): def unref(self) -> None: ... class GLContext(GObject.Object): - class Props: - display: Display - shared_context: GLContext - window: Window + """ + :Constructors: + + :: + + GLContext(**properties) + Object GdkGLContext + + Properties from GdkGLContext: + display -> GdkDisplay: Display + The GDK display used to create the GL context + window -> GdkWindow: Window + The GDK window bound to the GL context + shared-context -> GdkGLContext: Shared context + The GL context this context shares data with + + Signals from GObject: + notify (GParam) + """ + + class Props: + display: Optional[Display] + shared_context: Optional[GLContext] + window: Optional[Window] props: Props = ... def __init__( self, @@ -3219,6 +3492,14 @@ class GLContext(GObject.Object): def set_use_es(self, use_es: int) -> None: ... class Geometry(GObject.GPointer): + """ + :Constructors: + + :: + + Geometry() + """ + min_width: int = ... min_height: int = ... max_width: int = ... @@ -3232,6 +3513,24 @@ class Geometry(GObject.GPointer): win_gravity: Gravity = ... class Keymap(GObject.Object): + """ + :Constructors: + + :: + + Keymap(**properties) + + Object GdkKeymap + + Signals from GdkKeymap: + direction-changed () + keys-changed () + state-changed () + + Signals from GObject: + notify (GParam) + """ + def add_virtual_modifiers(self) -> ModifierType: ... def get_caps_lock_state(self) -> bool: ... @staticmethod @@ -3255,23 +3554,68 @@ class Keymap(GObject.Object): ) -> Tuple[bool, int, int, int, ModifierType]: ... class KeymapKey(GObject.GPointer): + """ + :Constructors: + + :: + + KeymapKey() + """ + keycode: int = ... group: int = ... level: int = ... class Monitor(GObject.Object): + """ + :Constructors: + + :: + + Monitor(**properties) + + Object GdkMonitor + + Signals from GdkMonitor: + invalidate () + + Properties from GdkMonitor: + display -> GdkDisplay: Display + The display of the monitor + manufacturer -> gchararray: Manufacturer + The manufacturer name + model -> gchararray: Model + The model name + scale-factor -> gint: Scale factor + The scale factor + geometry -> GdkRectangle: Geometry + The geometry of the monitor + workarea -> GdkRectangle: Workarea + The workarea of the monitor + width-mm -> gint: Physical width + The width of the monitor, in millimeters + height-mm -> gint: Physical height + The height of the monitor, in millimeters + refresh-rate -> gint: Refresh rate + The refresh rate, in millihertz + subpixel-layout -> GdkSubpixelLayout: Subpixel layout + The subpixel layout + + Signals from GObject: + notify (GParam) + """ + class Props: display: Display geometry: Rectangle height_mm: int - manufacturer: str - model: str + manufacturer: Optional[str] + model: Optional[str] refresh_rate: int scale_factor: int subpixel_layout: SubpixelLayout width_mm: int workarea: Rectangle - props: Props = ... def __init__(self, display: Display = ...): ... def get_display(self) -> Display: ... @@ -3289,10 +3633,26 @@ class Monitor(GObject.Object): class MonitorClass(GObject.GPointer): ... class Point(GObject.GPointer): + """ + :Constructors: + + :: + + Point() + """ + x: int = ... y: int = ... class RGBA(GObject.GBoxed): + """ + :Constructors: + + :: + + RGBA() + """ + red: float = ... green: float = ... blue: float = ... @@ -3318,6 +3678,14 @@ class RGBA(GObject.GBoxed): def to_string(self) -> str: ... class Rectangle(GObject.GBoxed): + """ + :Constructors: + + :: + + Rectangle() + """ + x: int = ... y: int = ... width: int = ... @@ -3327,12 +3695,35 @@ class Rectangle(GObject.GBoxed): def union(self, src2: Rectangle) -> Rectangle: ... class Screen(GObject.Object): + """ + :Constructors: + + :: + + Screen(**properties) + + Object GdkScreen + + Signals from GdkScreen: + size-changed () + composited-changed () + monitors-changed () + + Properties from GdkScreen: + font-options -> gpointer: Font options + The default font options for the screen + resolution -> gdouble: Font resolution + The resolution for fonts on the screen + + Signals from GObject: + notify (GParam) + """ + class Props: - font_options: None + font_options: Optional[None] resolution: float - props: Props = ... - def __init__(self, font_options: None = ..., resolution: float = ...): ... + def __init__(self, font_options: Optional[None] = ..., resolution: float = ...): ... def get_active_window(self) -> Optional[Window]: ... @staticmethod def get_default() -> Optional[Screen]: ... @@ -3375,9 +3766,31 @@ class Screen(GObject.Object): def width_mm() -> int: ... class Seat(GObject.Object): + """ + :Constructors: + + :: + + Seat(**properties) + + Object GdkSeat + + Signals from GdkSeat: + device-added (GdkDevice) + device-removed (GdkDevice) + tool-added (GdkDeviceTool) + tool-removed (GdkDeviceTool) + + Properties from GdkSeat: + display -> GdkDisplay: Display + Display + + Signals from GObject: + notify (GParam) + """ + class Props: display: Display - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, display: Display = ...): ... @@ -3399,10 +3812,31 @@ class Seat(GObject.Object): def ungrab(self) -> None: ... class TimeCoord(GObject.GPointer): + """ + :Constructors: + + :: + + TimeCoord() + """ + time: int = ... axes: list[float] = ... class Visual(GObject.Object): + """ + :Constructors: + + :: + + Visual(**properties) + + Object GdkVisual + + Signals from GObject: + notify (GParam) + """ + @staticmethod def get_best() -> Visual: ... @staticmethod @@ -3428,9 +3862,33 @@ class Visual(GObject.Object): def get_visual_type(self) -> VisualType: ... class Window(GObject.Object): - class Props: - cursor: Cursor + """ + :Constructors: + + :: + + Window(**properties) + new(parent:Gdk.Window=None, attributes:Gdk.WindowAttr, attributes_mask:Gdk.WindowAttributesType) -> Gdk.Window + + Object GdkWindow + + Signals from GdkWindow: + pick-embedded-child (gdouble, gdouble) -> GdkWindow + to-embedder (gdouble, gdouble, gpointer, gpointer) + from-embedder (gdouble, gdouble, gpointer, gpointer) + create-surface (gint, gint) -> CairoSurface + moved-to-rect (gpointer, gpointer, gboolean, gboolean) + Properties from GdkWindow: + cursor -> GdkCursor: Cursor + Cursor + + Signals from GObject: + notify (GParam) + """ + + class Props: + cursor: Optional[Cursor] props: Props = ... # override def __init__( @@ -3463,7 +3921,7 @@ class Window(GObject.Object): root_y: int, timestamp: int, ) -> None: ... - def cairo_create(self, *args, **kwargs): ... # FIXME Method + def cairo_create(self): ... # FIXME Function def configure_finished(self) -> None: ... @staticmethod def constrain_size( @@ -3679,6 +4137,14 @@ class Window(GObject.Object): def withdraw(self) -> None: ... class WindowAttr(GObject.GPointer): + """ + :Constructors: + + :: + + WindowAttr() + """ + title: str = ... event_mask: int = ... x: int = ... @@ -3695,6 +4161,14 @@ class WindowAttr(GObject.GPointer): type_hint: WindowTypeHint = ... class WindowClass(GObject.GPointer): + """ + :Constructors: + + :: + + WindowClass() + """ + parent_class: GObject.ObjectClass = ... pick_embedded_child: None = ... to_embedder: Callable[[Window, float, float, float, float], None] = ... diff --git a/src/gi-stubs/repository/_Gdk4.pyi b/src/gi-stubs/repository/_Gdk4.pyi index 735efba7..afca3fab 100644 --- a/src/gi-stubs/repository/_Gdk4.pyi +++ b/src/gi-stubs/repository/_Gdk4.pyi @@ -2358,6 +2358,7 @@ def content_serialize_async( ) -> None: ... def content_serialize_finish(result: Gio.AsyncResult) -> bool: ... def drag_action_is_unique(action: DragAction) -> bool: ... +def drag_surface_size_get_type() -> Type: ... def events_get_angle(event1: Event, event2: Event) -> Tuple[bool, float]: ... def events_get_center(event1: Event, event2: Event) -> Tuple[bool, float, float]: ... def events_get_distance(event1: Event, event2: Event) -> Tuple[bool, float]: ... @@ -2406,7 +2407,6 @@ class AppLaunchContext(Gio.AppLaunchContext): class Props: display: Display - props: Props = ... def __init__(self, display: Display = ...): ... def get_display(self) -> Display: ... @@ -2447,7 +2447,6 @@ class CairoContext(DrawContext): class Props: display: Optional[Display] surface: Optional[Surface] - props: Props = ... def __init__(self, display: Display = ..., surface: Surface = ...): ... def cairo_create(self) -> Optional[cairo.Context]: ... @@ -2480,7 +2479,6 @@ class Clipboard(GObject.Object): display: Display formats: ContentFormats local: bool - props: Props = ... def __init__(self, display: Display = ...): ... def get_content(self) -> Optional[ContentProvider]: ... @@ -2636,7 +2634,6 @@ class ContentProvider(GObject.Object): class Props: formats: ContentFormats storable_formats: ContentFormats - props: Props = ... parent: GObject.Object = ... def content_changed(self) -> None: ... @@ -2766,7 +2763,6 @@ class Cursor(GObject.Object): hotspot_y: int name: Optional[str] texture: Optional[Texture] - props: Props = ... def __init__( self, @@ -2860,7 +2856,6 @@ class Device(GObject.Object): source: InputSource tool: DeviceTool vendor_id: Optional[str] - props: Props = ... def __init__( self, @@ -2931,7 +2926,6 @@ class DeviceTool(GObject.Object): hardware_id: int serial: int tool_type: DeviceToolType - props: Props = ... def __init__( self, @@ -2975,7 +2969,6 @@ class Display(GObject.Object): composited: bool input_shapes: bool rgba: bool - props: Props = ... def beep(self) -> None: ... def close(self) -> None: ... @@ -3032,14 +3025,13 @@ class DisplayManager(GObject.Object): class Props: default_display: Optional[Display] - props: Props = ... def __init__(self, default_display: Display = ...): ... @staticmethod def get() -> DisplayManager: ... def get_default_display(self) -> Optional[Display]: ... def list_displays(self) -> list[Display]: ... - def open_display(self, name: str) -> Optional[Display]: ... + def open_display(self, name: Optional[str] = None) -> Optional[Display]: ... def set_default_display(self, display: Display) -> None: ... class Drag(GObject.Object): @@ -3078,7 +3070,6 @@ class Drag(GObject.Object): formats: ContentFormats selected_action: DragAction surface: Surface - props: Props = ... def __init__( self, @@ -3121,6 +3112,9 @@ class DragSurface(GObject.GInterface): class DragSurfaceInterface(GObject.GPointer): ... +class DragSurfaceSize(GObject.GPointer): + def set_size(self, width: int, height: int) -> None: ... + class DrawContext(GObject.Object): """ :Constructors: @@ -3142,7 +3136,6 @@ class DrawContext(GObject.Object): class Props: display: Optional[Display] surface: Optional[Surface] - props: Props = ... def __init__(self, display: Display = ..., surface: Surface = ...): ... def begin_frame(self, region: cairo.Region) -> None: ... @@ -3181,7 +3174,6 @@ class Drop(GObject.Object): drag: Optional[Drag] formats: ContentFormats surface: Surface - props: Props = ... def __init__( self, @@ -3352,7 +3344,6 @@ class GLContext(DrawContext): shared_context: Optional[GLContext] display: Optional[Display] surface: Optional[Surface] - props: Props = ... def __init__( self, @@ -3415,7 +3406,6 @@ class GLTexture(Texture, Paintable, Gio.Icon, Gio.LoadableIcon): class Props: height: int width: int - props: Props = ... def __init__(self, height: int = ..., width: int = ...): ... @classmethod @@ -3430,6 +3420,80 @@ class GLTexture(Texture, Paintable, Gio.Icon, Gio.LoadableIcon): ) -> GLTexture: ... def release(self) -> None: ... +class GLTextureBuilder(GObject.Object): + """ + :Constructors: + + :: + + GLTextureBuilder(**properties) + new() -> Gdk.GLTextureBuilder + + Object GdkGLTextureBuilder + + Properties from GdkGLTextureBuilder: + context -> GdkGLContext: context + format -> GdkMemoryFormat: format + has-mipmap -> gboolean: has-mipmap + height -> gint: height + id -> guint: id + sync -> gpointer: sync + update-region -> CairoRegion: update-region + update-texture -> GdkTexture: update-texture + width -> gint: width + + Signals from GObject: + notify (GParam) + """ + + class Props: + context: Optional[GLContext] + format: MemoryFormat + has_mipmap: bool + height: int + id: int + sync: Optional[None] + update_region: Optional[cairo.Region] + update_texture: Optional[Texture] + width: int + props: Props = ... + def __init__( + self, + context: Optional[GLContext] = ..., + format: MemoryFormat = ..., + has_mipmap: bool = ..., + height: int = ..., + id: int = ..., + sync: Optional[None] = ..., + update_region: Optional[cairo.Region] = ..., + update_texture: Optional[Texture] = ..., + width: int = ..., + ): ... + def build( + self, destroy: Optional[Callable[[None], None]], data: None + ) -> Texture: ... + def get_context(self) -> Optional[GLContext]: ... + def get_format(self) -> MemoryFormat: ... + def get_has_mipmap(self) -> bool: ... + def get_height(self) -> int: ... + def get_id(self) -> int: ... + def get_sync(self) -> None: ... + def get_update_region(self) -> Optional[cairo.Region]: ... + def get_update_texture(self) -> Optional[Texture]: ... + def get_width(self) -> int: ... + @classmethod + def new(cls) -> GLTextureBuilder: ... + def set_context(self, context: Optional[GLContext] = None) -> None: ... + def set_format(self, format: MemoryFormat) -> None: ... + def set_has_mipmap(self, has_mipmap: bool) -> None: ... + def set_height(self, height: int) -> None: ... + def set_id(self, id: int) -> None: ... + def set_sync(self, sync: None) -> None: ... + def set_update_region(self, region: Optional[cairo.Region] = None) -> None: ... + def set_update_texture(self, texture: Optional[Texture] = None) -> None: ... + def set_width(self, width: int) -> None: ... + +class GLTextureBuilderClass(GObject.GPointer): ... class GLTextureClass(GObject.GPointer): ... class GrabBrokenEvent(Event): @@ -3505,7 +3569,6 @@ class MemoryTexture(Texture, Paintable, Gio.Icon, Gio.LoadableIcon): class Props: height: int width: int - props: Props = ... def __init__(self, height: int = ..., width: int = ...): ... @classmethod @@ -3564,7 +3627,6 @@ class Monitor(GObject.Object): subpixel_layout: SubpixelLayout valid: bool width_mm: int - props: Props = ... def __init__(self, display: Display = ...): ... def get_connector(self) -> Optional[str]: ... @@ -3770,7 +3832,6 @@ class Seat(GObject.Object): class Props: display: Display - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, display: Display = ...): ... @@ -3811,6 +3872,7 @@ class Surface(GObject.Object): width -> gint: width height -> gint: height scale-factor -> gint: scale-factor + scale -> gdouble: scale Signals from GObject: notify (GParam) @@ -3822,9 +3884,9 @@ class Surface(GObject.Object): frame_clock: FrameClock height: int mapped: bool + scale: float scale_factor: int width: int - props: Props = ... def __init__( self, @@ -3849,6 +3911,7 @@ class Surface(GObject.Object): def get_frame_clock(self) -> FrameClock: ... def get_height(self) -> int: ... def get_mapped(self) -> bool: ... + def get_scale(self) -> float: ... def get_scale_factor(self) -> int: ... def get_width(self) -> int: ... def hide(self) -> None: ... @@ -3897,7 +3960,6 @@ class Texture(GObject.Object, Paintable, Gio.Icon, Gio.LoadableIcon): class Props: height: int width: int - props: Props = ... def __init__(self, height: int = ..., width: int = ...): ... def download(self, data: Sequence[int], stride: int) -> None: ... @@ -4077,7 +4139,6 @@ class VulkanContext(DrawContext, Gio.Initable): class Props: display: Optional[Display] surface: Optional[Surface] - props: Props = ... def __init__(self, display: Display = ..., surface: Surface = ...): ... @@ -4146,7 +4207,7 @@ class PaintableFlags(GObject.GFlags): SIZE = 1 class SeatCapabilities(GObject.GFlags): - ALL = 15 + ALL = 31 ALL_POINTING = 7 KEYBOARD = 8 NONE = 0 @@ -4169,6 +4230,7 @@ class ToplevelState(GObject.GFlags): RIGHT_RESIZABLE = 2048 RIGHT_TILED = 1024 STICKY = 4 + SUSPENDED = 65536 TILED = 128 TOP_RESIZABLE = 512 TOP_TILED = 256 @@ -4291,13 +4353,23 @@ class KeyMatch(GObject.GEnum): PARTIAL = 1 class MemoryFormat(GObject.GEnum): + A16 = 25 + A16_FLOAT = 26 + A32_FLOAT = 27 + A8 = 24 A8B8G8R8 = 6 A8R8G8B8 = 4 A8R8G8B8_PREMULTIPLIED = 1 B8G8R8 = 8 B8G8R8A8 = 3 B8G8R8A8_PREMULTIPLIED = 0 - N_FORMATS = 18 + G16 = 23 + G16A16 = 22 + G16A16_PREMULTIPLIED = 21 + G8 = 20 + G8A8 = 19 + G8A8_PREMULTIPLIED = 18 + N_FORMATS = 28 R16G16B16 = 9 R16G16B16A16 = 11 R16G16B16A16_FLOAT = 14 diff --git a/src/gi-stubs/repository/_Gtk3.pyi b/src/gi-stubs/repository/_Gtk3.pyi index aa7b02bc..e2c2cd98 100644 --- a/src/gi-stubs/repository/_Gtk3.pyi +++ b/src/gi-stubs/repository/_Gtk3.pyi @@ -1,14 +1,11 @@ from typing import Any from typing import Callable -from typing import Iterator from typing import Literal from typing import Optional -from typing import overload from typing import Sequence from typing import Tuple from typing import Type from typing import TypeVar -from typing import Union import cairo from gi.repository import Atk @@ -20,18 +17,8 @@ from gi.repository import GObject from gi.repository import Pango _SomeSurface = TypeVar("_SomeSurface", bound=cairo.Surface) -CellRendererT = TypeVar( - "CellRendererT", - CellRendererCombo, - CellRendererPixbuf, - CellRendererProgress, - CellRendererSpin, - CellRendererSpinner, - CellRendererText, - CellRendererToggle, -) - -BINARY_AGE: int = 2438 + +BINARY_AGE: int = 2441 INPUT_ERROR: int = -1 INTERFACE_AGE: int = 32 LEVEL_BAR_OFFSET_FULL: str = "full" @@ -39,7 +26,7 @@ LEVEL_BAR_OFFSET_HIGH: str = "high" LEVEL_BAR_OFFSET_LOW: str = "low" MAJOR_VERSION: int = 3 MAX_COMPOSE_LEN: int = 7 -MICRO_VERSION: int = 38 +MICRO_VERSION: int = 41 MINOR_VERSION: int = 24 PAPER_NAME_A3: str = "iso_a3" PAPER_NAME_A4: str = "iso_a4" @@ -984,8 +971,8 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): The URL for the link to the website of the program website-label -> gchararray: Website label The label for the link to the website of the program - license -> gchararray: License - The license of the program + license -> gchararray: Licence + The licence of the program authors -> GStrv: Authors List of authors of the program documenters -> GStrv: Documenters @@ -998,10 +985,10 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): A logo for the about box. If this is not set, it defaults to gtk_window_get_default_icon_list() logo-icon-name -> gchararray: Logo Icon Name A named icon to use as the logo for the about box. - wrap-license -> gboolean: Wrap license - Whether to wrap the license text. - license-type -> GtkLicense: License Type - The license type of the program + wrap-license -> gboolean: Wrap licence + Whether to wrap the licence text. + license-type -> GtkLicense: Licence Type + The licence type of the program Signals from GtkDialog: response (gint) @@ -1037,8 +1024,8 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -1064,7 +1051,7 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -1083,8 +1070,8 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -1203,7 +1190,7 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -1215,7 +1202,7 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -1347,7 +1334,6 @@ class AboutDialog(Dialog, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... parent_instance: Dialog = ... priv: AboutDialogPrivate = ... @@ -1521,7 +1507,6 @@ class AccelGroup(GObject.Object): class Props: is_locked: bool modifier_mask: Gdk.ModifierType - props: Props = ... parent: GObject.Object = ... priv: AccelGroupPrivate = ... @@ -1638,7 +1623,7 @@ class AccelLabel(Label, Atk.ImplementorIface, Buildable): use-underline -> gboolean: Use underline If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key justify -> GtkJustification: Justification - The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See GtkLabel:xalign for that + The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See GtkLabel::xalign for that pattern -> gchararray: Pattern A string with _ characters in positions correspond to characters in the text to underline wrap -> gboolean: Line wrap @@ -1655,8 +1640,8 @@ class AccelLabel(Label, Atk.ImplementorIface, Buildable): The current position of the insertion cursor in chars selection-bound -> gint: Selection Bound The position of the opposite end of the selection from the cursor in chars - ellipsize -> PangoEllipsizeMode: Ellipsize - The preferred place to ellipsize the string, if the label does not have enough room to display the entire string + ellipsize -> PangoEllipsizeMode: Ellipsis location + The preferred place to place an ellipsis in the string, if the label does not have enough room to display the entire string width-chars -> gint: Width In Characters The desired width of the label, in characters single-line-mode -> gboolean: Single Line Mode @@ -1668,7 +1653,7 @@ class AccelLabel(Label, Atk.ImplementorIface, Buildable): track-visited-links -> gboolean: Track visited links Whether visited links should be tracked lines -> gint: Number of lines - The desired number of lines, when ellipsizing a wrapping label + The desired number of lines, when ellipsising a wrapping label xalign -> gfloat: X align The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts. yalign -> gfloat: Y align @@ -1787,7 +1772,7 @@ class AccelLabel(Label, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -1799,7 +1784,7 @@ class AccelLabel(Label, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -1905,7 +1890,6 @@ class AccelLabel(Label, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] pattern: str - props: Props = ... label: Label = ... priv: AccelLabelPrivate = ... @@ -2143,7 +2127,6 @@ class Accessible(Atk.Object): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: Atk.Object = ... priv: AccessiblePrivate = ... @@ -2257,7 +2240,6 @@ class Action(GObject.Object, Buildable): visible_horizontal: bool visible_overflown: bool visible_vertical: bool - props: Props = ... object: GObject.Object = ... private_data: ActionPrivate = ... @@ -2464,7 +2446,7 @@ class ActionBar(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -2476,7 +2458,7 @@ class ActionBar(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -2559,7 +2541,6 @@ class ActionBar(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... bin: Bin = ... def __init__( @@ -2703,7 +2684,6 @@ class ActionGroup(GObject.Object, Buildable): name: str sensitive: bool visible: bool - props: Props = ... parent: GObject.Object = ... priv: ActionGroupPrivate = ... @@ -2858,7 +2838,6 @@ class Adjustment(GObject.InitiallyUnowned): step_increment: float upper: float value: float - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... priv: AdjustmentPrivate = ... @@ -3074,7 +3053,7 @@ class Alignment(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -3086,7 +3065,7 @@ class Alignment(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -3177,7 +3156,6 @@ class Alignment(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... bin: Bin = ... priv: AlignmentPrivate = ... @@ -3298,7 +3276,7 @@ class AppChooserButton( show-default-item -> gboolean: Show default item Whether the combobox should show the default application on top heading -> gchararray: Heading - The text to show at the top of the dialog + The text to show at the top of the dialogue Signals from GtkCellEditable: editing-done () @@ -3466,7 +3444,7 @@ class AppChooserButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -3478,7 +3456,7 @@ class AppChooserButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -3582,7 +3560,6 @@ class AppChooserButton( content_type: str editing_canceled: bool child: Widget - props: Props = ... parent: ComboBox = ... priv: AppChooserButtonPrivate = ... @@ -3690,9 +3667,9 @@ class AppChooserDialog(Dialog, Atk.ImplementorIface, AppChooser, Buildable): Properties from GtkAppChooserDialog: gfile -> GFile: GFile - The GFile used by the app chooser dialog + The GFile used by the app chooser dialogue heading -> gchararray: Heading - The text to show at the top of the dialog + The text to show at the top of the dialogue Signals from GtkDialog: response (gint) @@ -3728,8 +3705,8 @@ class AppChooserDialog(Dialog, Atk.ImplementorIface, AppChooser, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -3755,7 +3732,7 @@ class AppChooserDialog(Dialog, Atk.ImplementorIface, AppChooser, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -3774,8 +3751,8 @@ class AppChooserDialog(Dialog, Atk.ImplementorIface, AppChooser, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -3894,7 +3871,7 @@ class AppChooserDialog(Dialog, Atk.ImplementorIface, AppChooser, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -3906,7 +3883,7 @@ class AppChooserDialog(Dialog, Atk.ImplementorIface, AppChooser, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -4026,7 +4003,6 @@ class AppChooserDialog(Dialog, Atk.ImplementorIface, AppChooser, Buildable): content_type: str startup_id: str child: Widget - props: Props = ... parent: Dialog = ... priv: AppChooserDialogPrivate = ... @@ -4286,7 +4262,7 @@ class AppChooserWidget(Box, Atk.ImplementorIface, AppChooser, Buildable, Orienta composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -4298,7 +4274,7 @@ class AppChooserWidget(Box, Atk.ImplementorIface, AppChooser, Buildable, Orienta tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -4392,7 +4368,6 @@ class AppChooserWidget(Box, Atk.ImplementorIface, AppChooser, Buildable, Orienta content_type: str orientation: Orientation child: Widget - props: Props = ... parent: Box = ... priv: AppChooserWidgetPrivate = ... @@ -4569,7 +4544,6 @@ class Application(Gio.Application, Gio.ActionGroup, Gio.ActionMap): is_remote: bool resource_base_path: Optional[str] action_group: Optional[Gio.ActionGroup] - props: Props = ... parent: Gio.Application = ... priv: ApplicationPrivate = ... @@ -4690,8 +4664,8 @@ class ApplicationWindow( The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -4717,7 +4691,7 @@ class ApplicationWindow( gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -4736,8 +4710,8 @@ class ApplicationWindow( Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -4856,7 +4830,7 @@ class ApplicationWindow( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -4868,7 +4842,7 @@ class ApplicationWindow( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -4985,7 +4959,6 @@ class ApplicationWindow( window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... parent_instance: Window = ... priv: ApplicationWindowPrivate = ... @@ -5215,7 +5188,7 @@ class Arrow(Misc, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -5227,7 +5200,7 @@ class Arrow(Misc, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -5313,7 +5286,6 @@ class Arrow(Misc, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... misc: Misc = ... priv: ArrowPrivate = ... @@ -5449,7 +5421,6 @@ class ArrowAccessible(WidgetAccessible, Atk.Component, Atk.Image): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: ArrowAccessiblePrivate = ... @@ -5650,7 +5621,7 @@ class AspectFrame(Frame, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -5662,7 +5633,7 @@ class AspectFrame(Frame, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -5754,7 +5725,6 @@ class AspectFrame(Frame, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... frame: Frame = ... priv: AspectFramePrivate = ... @@ -5887,8 +5857,8 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -5914,7 +5884,7 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -5933,8 +5903,8 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -6053,7 +6023,7 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -6065,7 +6035,7 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -6182,7 +6152,6 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... parent: Window = ... priv: AssistantPrivate = ... @@ -6447,7 +6416,7 @@ class Bin(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -6459,7 +6428,7 @@ class Bin(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -6542,7 +6511,6 @@ class Bin(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Container = ... priv: BinPrivate = ... @@ -6790,7 +6758,6 @@ class BooleanCellAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: RendererCellAccessible = ... priv: BooleanCellAccessiblePrivate = ... @@ -6980,7 +6947,7 @@ class Box(Container, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -6992,7 +6959,7 @@ class Box(Container, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -7079,7 +7046,6 @@ class Box(Container, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... container: Container = ... priv: BoxPrivate = ... @@ -7261,7 +7227,6 @@ class Builder(GObject.Object): class Props: translation_domain: str - props: Props = ... parent_instance: GObject.Object = ... priv: BuilderPrivate = ... @@ -7493,7 +7458,7 @@ class Button(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -7505,7 +7470,7 @@ class Button(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -7601,7 +7566,6 @@ class Button(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): related_action: Action use_action_appearance: bool child: Widget - props: Props = ... bin: Bin = ... priv: ButtonPrivate = ... @@ -7787,7 +7751,6 @@ class ButtonAccessible(ContainerAccessible, Atk.Action, Atk.Component, Atk.Image accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: ButtonAccessiblePrivate = ... @@ -7961,7 +7924,7 @@ class ButtonBox(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -7973,7 +7936,7 @@ class ButtonBox(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -8061,7 +8024,6 @@ class ButtonBox(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... box: Box = ... priv: ButtonBoxPrivate = ... @@ -8308,7 +8270,7 @@ class Calendar(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -8320,7 +8282,7 @@ class Calendar(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -8410,7 +8372,6 @@ class Calendar(Widget, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... widget: Widget = ... priv: CalendarPrivate = ... @@ -8593,7 +8554,6 @@ class CellAccessible(Accessible, Atk.Action, Atk.Component, Atk.TableCell): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: Accessible = ... priv: CellAccessiblePrivate = ... @@ -8718,7 +8678,6 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): edit_widget: CellEditable edited_cell: CellRenderer focus_cell: CellRenderer - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... priv: CellAreaPrivate = ... @@ -8972,7 +8931,6 @@ class CellAreaBox(CellArea, Buildable, CellLayout, Orientable): edited_cell: CellRenderer focus_cell: CellRenderer orientation: Orientation - props: Props = ... parent_instance: CellArea = ... priv: CellAreaBoxPrivate = ... @@ -9122,7 +9080,6 @@ class CellAreaContext(GObject.Object): minimum_width: int natural_height: int natural_width: int - props: Props = ... parent_instance: GObject.Object = ... priv: CellAreaContextPrivate = ... @@ -9280,14 +9237,14 @@ class CellRenderer(GObject.InitiallyUnowned): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -9312,7 +9269,6 @@ class CellRenderer(GObject.InitiallyUnowned): yalign: float ypad: int cell_background: str - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... priv: CellRendererPrivate = ... @@ -9483,18 +9439,18 @@ class CellRendererAccel(CellRendererText): How to align the lines placeholder-text -> gchararray: Placeholder text Text rendered when an editable cell is empty - background -> gchararray: Background color name - Background color as a string - foreground -> gchararray: Foreground color name - Foreground color as a string - background-gdk -> GdkColor: Background color - Background color as a GdkColor - foreground-gdk -> GdkColor: Foreground color - Foreground color as a GdkColor - background-rgba -> GdkRGBA: Background color as RGBA - Background color as a GdkRGBA - foreground-rgba -> GdkRGBA: Foreground color as RGBA - Foreground color as a GdkRGBA + background -> gchararray: Background colour name + Background colour as a string + foreground -> gchararray: Foreground colour name + Foreground colour as a string + background-gdk -> GdkColor: Background colour + Background colour as a GdkColor + foreground-gdk -> GdkColor: Foreground colour + Foreground colour as a GdkColor + background-rgba -> GdkRGBA: Background colour as RGBA + Background colour as a GdkRGBA + foreground-rgba -> GdkRGBA: Foreground colour as RGBA + Foreground colour as a GdkRGBA font -> gchararray: Font Font description as a string, e.g. "Sans Italic 12" font-desc -> PangoFontDescription: Font @@ -9525,14 +9481,14 @@ class CellRendererAccel(CellRendererText): Offset of text above the baseline (below the baseline if rise is negative) language -> gchararray: Language The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If you don't understand this parameter, you probably don't need it - ellipsize -> PangoEllipsizeMode: Ellipsize - The preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string + ellipsize -> PangoEllipsizeMode: Ellipsis location + The preferred place to place an ellipsis in the string, if the cell renderer does not have enough room to display the entire string wrap-mode -> PangoWrapMode: Wrap mode How to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string background-set -> gboolean: Background set - Whether this tag affects the background color + Whether this tag affects the background colour foreground-set -> gboolean: Foreground set - Whether this tag affects the foreground color + Whether this tag affects the foreground colour family-set -> gboolean: Font family set Whether this tag affects the font family style-set -> gboolean: Font style set @@ -9557,8 +9513,8 @@ class CellRendererAccel(CellRendererText): Whether this tag affects the rise language-set -> gboolean: Language set Whether this tag affects the language the text is rendered as - ellipsize-set -> gboolean: Ellipsize set - Whether this tag affects the ellipsize mode + ellipsize-set -> gboolean: Ellipsis placement set + Whether this tag affects the placement of the ellipsis align-set -> gboolean: Align set Whether this tag affects the alignment mode @@ -9589,14 +9545,14 @@ class CellRendererAccel(CellRendererText): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -9673,7 +9629,6 @@ class CellRendererAccel(CellRendererText): foreground: str markup: str cell_background: str - props: Props = ... parent: CellRendererText = ... priv: CellRendererAccelPrivate = ... @@ -9894,18 +9849,18 @@ class CellRendererCombo(CellRendererText): How to align the lines placeholder-text -> gchararray: Placeholder text Text rendered when an editable cell is empty - background -> gchararray: Background color name - Background color as a string - foreground -> gchararray: Foreground color name - Foreground color as a string - background-gdk -> GdkColor: Background color - Background color as a GdkColor - foreground-gdk -> GdkColor: Foreground color - Foreground color as a GdkColor - background-rgba -> GdkRGBA: Background color as RGBA - Background color as a GdkRGBA - foreground-rgba -> GdkRGBA: Foreground color as RGBA - Foreground color as a GdkRGBA + background -> gchararray: Background colour name + Background colour as a string + foreground -> gchararray: Foreground colour name + Foreground colour as a string + background-gdk -> GdkColor: Background colour + Background colour as a GdkColor + foreground-gdk -> GdkColor: Foreground colour + Foreground colour as a GdkColor + background-rgba -> GdkRGBA: Background colour as RGBA + Background colour as a GdkRGBA + foreground-rgba -> GdkRGBA: Foreground colour as RGBA + Foreground colour as a GdkRGBA font -> gchararray: Font Font description as a string, e.g. "Sans Italic 12" font-desc -> PangoFontDescription: Font @@ -9936,14 +9891,14 @@ class CellRendererCombo(CellRendererText): Offset of text above the baseline (below the baseline if rise is negative) language -> gchararray: Language The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If you don't understand this parameter, you probably don't need it - ellipsize -> PangoEllipsizeMode: Ellipsize - The preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string + ellipsize -> PangoEllipsizeMode: Ellipsis location + The preferred place to place an ellipsis in the string, if the cell renderer does not have enough room to display the entire string wrap-mode -> PangoWrapMode: Wrap mode How to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string background-set -> gboolean: Background set - Whether this tag affects the background color + Whether this tag affects the background colour foreground-set -> gboolean: Foreground set - Whether this tag affects the foreground color + Whether this tag affects the foreground colour family-set -> gboolean: Font family set Whether this tag affects the font family style-set -> gboolean: Font style set @@ -9968,8 +9923,8 @@ class CellRendererCombo(CellRendererText): Whether this tag affects the rise language-set -> gboolean: Language set Whether this tag affects the language the text is rendered as - ellipsize-set -> gboolean: Ellipsize set - Whether this tag affects the ellipsize mode + ellipsize-set -> gboolean: Ellipsis placement set + Whether this tag affects the placement of the ellipsis align-set -> gboolean: Align set Whether this tag affects the alignment mode @@ -10000,14 +9955,14 @@ class CellRendererCombo(CellRendererText): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -10083,7 +10038,6 @@ class CellRendererCombo(CellRendererText): foreground: str markup: str cell_background: str - props: Props = ... parent: CellRendererText = ... priv: CellRendererComboPrivate = ... @@ -10203,7 +10157,7 @@ class CellRendererPixbuf(CellRenderer): stock-detail -> gchararray: Detail Render detail to pass to the theme engine follow-state -> gboolean: Follow State - Whether the rendered pixbuf should be colorized according to the state + Whether the rendered pixbuf should be coloured according to the state icon-name -> gchararray: Icon Name The name of the icon from the icon theme gicon -> GIcon: Icon @@ -10236,14 +10190,14 @@ class CellRendererPixbuf(CellRenderer): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -10278,7 +10232,6 @@ class CellRendererPixbuf(CellRenderer): yalign: float ypad: int cell_background: str - props: Props = ... parent: CellRenderer = ... priv: CellRendererPixbufPrivate = ... @@ -10383,14 +10336,14 @@ class CellRendererProgress(CellRenderer, Orientable): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -10422,7 +10375,6 @@ class CellRendererProgress(CellRenderer, Orientable): ypad: int orientation: Orientation cell_background: str - props: Props = ... parent_instance: CellRenderer = ... priv: CellRendererProgressPrivate = ... @@ -10512,18 +10464,18 @@ class CellRendererSpin(CellRendererText): How to align the lines placeholder-text -> gchararray: Placeholder text Text rendered when an editable cell is empty - background -> gchararray: Background color name - Background color as a string - foreground -> gchararray: Foreground color name - Foreground color as a string - background-gdk -> GdkColor: Background color - Background color as a GdkColor - foreground-gdk -> GdkColor: Foreground color - Foreground color as a GdkColor - background-rgba -> GdkRGBA: Background color as RGBA - Background color as a GdkRGBA - foreground-rgba -> GdkRGBA: Foreground color as RGBA - Foreground color as a GdkRGBA + background -> gchararray: Background colour name + Background colour as a string + foreground -> gchararray: Foreground colour name + Foreground colour as a string + background-gdk -> GdkColor: Background colour + Background colour as a GdkColor + foreground-gdk -> GdkColor: Foreground colour + Foreground colour as a GdkColor + background-rgba -> GdkRGBA: Background colour as RGBA + Background colour as a GdkRGBA + foreground-rgba -> GdkRGBA: Foreground colour as RGBA + Foreground colour as a GdkRGBA font -> gchararray: Font Font description as a string, e.g. "Sans Italic 12" font-desc -> PangoFontDescription: Font @@ -10554,14 +10506,14 @@ class CellRendererSpin(CellRendererText): Offset of text above the baseline (below the baseline if rise is negative) language -> gchararray: Language The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If you don't understand this parameter, you probably don't need it - ellipsize -> PangoEllipsizeMode: Ellipsize - The preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string + ellipsize -> PangoEllipsizeMode: Ellipsis location + The preferred place to place an ellipsis in the string, if the cell renderer does not have enough room to display the entire string wrap-mode -> PangoWrapMode: Wrap mode How to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string background-set -> gboolean: Background set - Whether this tag affects the background color + Whether this tag affects the background colour foreground-set -> gboolean: Foreground set - Whether this tag affects the foreground color + Whether this tag affects the foreground colour family-set -> gboolean: Font family set Whether this tag affects the font family style-set -> gboolean: Font style set @@ -10586,8 +10538,8 @@ class CellRendererSpin(CellRendererText): Whether this tag affects the rise language-set -> gboolean: Language set Whether this tag affects the language the text is rendered as - ellipsize-set -> gboolean: Ellipsize set - Whether this tag affects the ellipsize mode + ellipsize-set -> gboolean: Ellipsis placement set + Whether this tag affects the placement of the ellipsis align-set -> gboolean: Align set Whether this tag affects the alignment mode @@ -10618,14 +10570,14 @@ class CellRendererSpin(CellRendererText): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -10701,7 +10653,6 @@ class CellRendererSpin(CellRendererText): foreground: str markup: str cell_background: str - props: Props = ... parent: CellRendererText = ... priv: CellRendererSpinPrivate = ... @@ -10840,14 +10791,14 @@ class CellRendererSpinner(CellRenderer): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -10875,7 +10826,6 @@ class CellRendererSpinner(CellRenderer): yalign: float ypad: int cell_background: str - props: Props = ... parent: CellRenderer = ... priv: CellRendererSpinnerPrivate = ... @@ -10953,18 +10903,18 @@ class CellRendererText(CellRenderer): How to align the lines placeholder-text -> gchararray: Placeholder text Text rendered when an editable cell is empty - background -> gchararray: Background color name - Background color as a string - foreground -> gchararray: Foreground color name - Foreground color as a string - background-gdk -> GdkColor: Background color - Background color as a GdkColor - foreground-gdk -> GdkColor: Foreground color - Foreground color as a GdkColor - background-rgba -> GdkRGBA: Background color as RGBA - Background color as a GdkRGBA - foreground-rgba -> GdkRGBA: Foreground color as RGBA - Foreground color as a GdkRGBA + background -> gchararray: Background colour name + Background colour as a string + foreground -> gchararray: Foreground colour name + Foreground colour as a string + background-gdk -> GdkColor: Background colour + Background colour as a GdkColor + foreground-gdk -> GdkColor: Foreground colour + Foreground colour as a GdkColor + background-rgba -> GdkRGBA: Background colour as RGBA + Background colour as a GdkRGBA + foreground-rgba -> GdkRGBA: Foreground colour as RGBA + Foreground colour as a GdkRGBA font -> gchararray: Font Font description as a string, e.g. "Sans Italic 12" font-desc -> PangoFontDescription: Font @@ -10995,14 +10945,14 @@ class CellRendererText(CellRenderer): Offset of text above the baseline (below the baseline if rise is negative) language -> gchararray: Language The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If you don't understand this parameter, you probably don't need it - ellipsize -> PangoEllipsizeMode: Ellipsize - The preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string + ellipsize -> PangoEllipsizeMode: Ellipsis location + The preferred place to place an ellipsis in the string, if the cell renderer does not have enough room to display the entire string wrap-mode -> PangoWrapMode: Wrap mode How to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string background-set -> gboolean: Background set - Whether this tag affects the background color + Whether this tag affects the background colour foreground-set -> gboolean: Foreground set - Whether this tag affects the foreground color + Whether this tag affects the foreground colour family-set -> gboolean: Font family set Whether this tag affects the font family style-set -> gboolean: Font style set @@ -11027,8 +10977,8 @@ class CellRendererText(CellRenderer): Whether this tag affects the rise language-set -> gboolean: Language set Whether this tag affects the language the text is rendered as - ellipsize-set -> gboolean: Ellipsize set - Whether this tag affects the ellipsize mode + ellipsize-set -> gboolean: Ellipsis placement set + Whether this tag affects the placement of the ellipsis align-set -> gboolean: Align set Whether this tag affects the alignment mode @@ -11059,14 +11009,14 @@ class CellRendererText(CellRenderer): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -11139,7 +11089,6 @@ class CellRendererText(CellRenderer): foreground: str markup: str cell_background: str - props: Props = ... parent: CellRenderer = ... priv: CellRendererTextPrivate = ... @@ -11256,7 +11205,7 @@ class CellRendererToggle(CellRenderer): inconsistent -> gboolean: Inconsistent state The inconsistent state of the button indicator-size -> gint: Indicator size - Size of check or radio indicator + Size of tick or radio indicator Signals from GtkCellRenderer: editing-canceled () @@ -11285,14 +11234,14 @@ class CellRendererToggle(CellRenderer): Row has children is-expanded -> gboolean: Is Expanded Row is an expander row, and is expanded - cell-background -> gchararray: Cell background color name - Cell background color as a string - cell-background-gdk -> GdkColor: Cell background color - Cell background color as a GdkColor - cell-background-rgba -> GdkRGBA: Cell background RGBA color - Cell background color as a GdkRGBA + cell-background -> gchararray: Cell background colour name + Cell background colour as a string + cell-background-gdk -> GdkColor: Cell background colour + Cell background colour as a GdkColor + cell-background-rgba -> GdkRGBA: Cell background RGBA colour + Cell background colour as a GdkRGBA cell-background-set -> gboolean: Cell background set - Whether the cell background color is set + Whether the cell background colour is set editing -> gboolean: Editing Whether the cell renderer is currently in editing mode @@ -11322,7 +11271,6 @@ class CellRendererToggle(CellRenderer): yalign: float ypad: int cell_background: str - props: Props = ... parent: CellRenderer = ... priv: CellRendererTogglePrivate = ... @@ -11393,14 +11341,14 @@ class CellView(Widget, Atk.ImplementorIface, Buildable, CellLayout, Orientable): Object GtkCellView Properties from GtkCellView: - background -> gchararray: Background color name - Background color as a string - background-gdk -> GdkColor: Background color - Background color as a GdkColor - background-rgba -> GdkRGBA: Background RGBA color - Background color as a GdkRGBA + background -> gchararray: Background colour name + Background colour as a string + background-gdk -> GdkColor: Background colour + Background colour as a GdkColor + background-rgba -> GdkRGBA: Background RGBA colour + Background colour as a GdkRGBA background-set -> gboolean: Background set - Whether this tag affects the background color + Whether this tag affects the background colour model -> GtkTreeModel: CellView model The model for cell view cell-area -> GtkCellArea: Cell Area @@ -11515,7 +11463,7 @@ class CellView(Widget, Atk.ImplementorIface, Buildable, CellLayout, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -11527,7 +11475,7 @@ class CellView(Widget, Atk.ImplementorIface, Buildable, CellLayout, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -11617,7 +11565,6 @@ class CellView(Widget, Atk.ImplementorIface, Buildable, CellLayout, Orientable): window: Optional[Gdk.Window] orientation: Orientation background: str - props: Props = ... parent_instance: Widget = ... priv: CellViewPrivate = ... @@ -11880,7 +11827,7 @@ class CheckButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -11892,7 +11839,7 @@ class CheckButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -11991,7 +11938,6 @@ class CheckButton( related_action: Action use_action_appearance: bool child: Widget - props: Props = ... toggle_button: ToggleButton = ... def __init__( @@ -12094,7 +12040,7 @@ class CheckMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui Properties from GtkCheckMenuItem: active -> gboolean: Active - Whether the menu item is checked + Whether the menu item is ticked inconsistent -> gboolean: Inconsistent Whether to display an "inconsistent" state draw-as-radio -> gboolean: Draw as radio menu item @@ -12237,7 +12183,7 @@ class CheckMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -12249,7 +12195,7 @@ class CheckMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -12344,7 +12290,6 @@ class CheckMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui related_action: Action use_action_appearance: bool child: Widget - props: Props = ... menu_item: MenuItem = ... priv: CheckMenuItemPrivate = ... @@ -12515,7 +12460,6 @@ class CheckMenuItemAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: MenuItemAccessible = ... priv: CheckMenuItemAccessiblePrivate = ... @@ -12647,17 +12591,17 @@ class ColorButton( Properties from GtkColorButton: use-alpha -> gboolean: Use alpha - Whether to give the color an alpha value + Whether to give the colour an alpha value title -> gchararray: Title - The title of the color selection dialog - color -> GdkColor: Current Color - The selected color + The title of the colour selection dialogue + color -> GdkColor: Current Colour + The selected colour alpha -> guint: Current Alpha The selected opacity value (0 fully transparent, 65535 fully opaque) - rgba -> GdkRGBA: Current RGBA Color - The selected RGBA color + rgba -> GdkRGBA: Current RGBA Colour + The selected RGBA colour show-editor -> gboolean: Show Editor - Whether to show the color editor right away + Whether to show the colour editor right away Signals from GtkColorChooser: color-activated (GdkRGBA) @@ -12807,7 +12751,7 @@ class ColorButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -12819,7 +12763,7 @@ class ColorButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -12921,7 +12865,6 @@ class ColorButton( related_action: Action use_action_appearance: bool child: Widget - props: Props = ... button: Button = ... priv: ColorButtonPrivate = ... @@ -13091,8 +13034,8 @@ class ColorChooserDialog(Dialog, Atk.ImplementorIface, Buildable, ColorChooser): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -13118,7 +13061,7 @@ class ColorChooserDialog(Dialog, Atk.ImplementorIface, Buildable, ColorChooser): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -13137,8 +13080,8 @@ class ColorChooserDialog(Dialog, Atk.ImplementorIface, Buildable, ColorChooser): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -13257,7 +13200,7 @@ class ColorChooserDialog(Dialog, Atk.ImplementorIface, Buildable, ColorChooser): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -13269,7 +13212,7 @@ class ColorChooserDialog(Dialog, Atk.ImplementorIface, Buildable, ColorChooser): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -13389,7 +13332,6 @@ class ColorChooserDialog(Dialog, Atk.ImplementorIface, Buildable, ColorChooser): use_alpha: bool startup_id: str child: Widget - props: Props = ... parent_instance: Dialog = ... priv: ColorChooserDialogPrivate = ... @@ -13653,7 +13595,7 @@ class ColorChooserWidget( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -13665,7 +13607,7 @@ class ColorChooserWidget( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -13755,7 +13697,6 @@ class ColorChooserWidget( use_alpha: bool orientation: Orientation child: Widget - props: Props = ... parent_instance: Box = ... priv: ColorChooserWidgetPrivate = ... @@ -13850,13 +13791,13 @@ class ColorSelection(Box, Atk.ImplementorIface, Buildable, Orientable): has-palette -> gboolean: Has palette Whether a palette should be used has-opacity-control -> gboolean: Has Opacity Control - Whether the color selector should allow setting opacity - current-color -> GdkColor: Current Color - The current color + Whether the colour selector should allow setting opacity + current-color -> GdkColor: Current Colour + The current colour current-alpha -> guint: Current Alpha The current opacity value (0 fully transparent, 65535 fully opaque) current-rgba -> GdkRGBA: Current RGBA - The current RGBA color + The current RGBA colour Properties from GtkBox: spacing -> gint: Spacing @@ -13983,7 +13924,7 @@ class ColorSelection(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -13995,7 +13936,7 @@ class ColorSelection(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -14087,7 +14028,6 @@ class ColorSelection(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... parent_instance: Box = ... private_data: ColorSelectionPrivate = ... @@ -14195,14 +14135,14 @@ class ColorSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): Object GtkColorSelectionDialog Properties from GtkColorSelectionDialog: - color-selection -> GtkWidget: Color Selection - The color selection embedded in the dialog. + color-selection -> GtkWidget: Colour Selection + The colour selection embedded in the dialogue. ok-button -> GtkWidget: OK Button - The OK button of the dialog. + The OK button of the dialogue. cancel-button -> GtkWidget: Cancel Button - The cancel button of the dialog. + The cancel button of the dialogue. help-button -> GtkWidget: Help Button - The help button of the dialog. + The help button of the dialogue. Signals from GtkDialog: response (gint) @@ -14238,8 +14178,8 @@ class ColorSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -14265,7 +14205,7 @@ class ColorSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -14284,8 +14224,8 @@ class ColorSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -14404,7 +14344,7 @@ class ColorSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -14416,7 +14356,7 @@ class ColorSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -14537,7 +14477,6 @@ class ColorSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... parent_instance: Dialog = ... priv: ColorSelectionDialogPrivate = ... @@ -14813,7 +14752,7 @@ class ComboBox(Bin, Atk.ImplementorIface, Buildable, CellEditable, CellLayout): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -14825,7 +14764,7 @@ class ComboBox(Bin, Atk.ImplementorIface, Buildable, CellEditable, CellLayout): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -14925,7 +14864,6 @@ class ComboBox(Bin, Atk.ImplementorIface, Buildable, CellEditable, CellLayout): window: Optional[Gdk.Window] editing_canceled: bool child: Widget - props: Props = ... parent_instance: Bin = ... priv: ComboBoxPrivate = ... @@ -15125,7 +15063,6 @@ class ComboBoxAccessible(ContainerAccessible, Atk.Action, Atk.Component, Atk.Sel accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: ComboBoxAccessiblePrivate = ... @@ -15355,7 +15292,7 @@ class ComboBoxText(ComboBox, Atk.ImplementorIface, Buildable, CellEditable, Cell composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -15367,7 +15304,7 @@ class ComboBoxText(ComboBox, Atk.ImplementorIface, Buildable, CellEditable, Cell tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -15467,7 +15404,6 @@ class ComboBoxText(ComboBox, Atk.ImplementorIface, Buildable, CellEditable, Cell window: Optional[Gdk.Window] editing_canceled: bool child: Widget - props: Props = ... parent_instance: ComboBox = ... priv: ComboBoxTextPrivate = ... @@ -15687,7 +15623,7 @@ class Container(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -15699,7 +15635,7 @@ class Container(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -15782,7 +15718,6 @@ class Container(Widget, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... widget: Widget = ... priv: ContainerPrivate = ... @@ -15978,7 +15913,6 @@ class ContainerAccessible(WidgetAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: ContainerAccessiblePrivate = ... @@ -16098,7 +16032,6 @@ class ContainerCellAccessible(CellAccessible, Atk.Action, Atk.Component, Atk.Tab accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: CellAccessible = ... priv: ContainerCellAccessiblePrivate = ... @@ -16292,8 +16225,8 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -16319,7 +16252,7 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -16338,8 +16271,8 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -16458,7 +16391,7 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -16470,7 +16403,7 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -16587,7 +16520,6 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... window: Window = ... priv: DialogPrivate = ... @@ -16820,7 +16752,7 @@ class DrawingArea(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -16832,7 +16764,7 @@ class DrawingArea(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -16912,7 +16844,6 @@ class DrawingArea(Widget, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... widget: Widget = ... dummy: None = ... @@ -17063,7 +16994,7 @@ class Entry(Widget, Atk.ImplementorIface, Buildable, CellEditable, Editable): invisible-char -> guint: Invisible character The character to use when masking entry contents (in "password mode") activates-default -> gboolean: Activates default - Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed + Whether to activate the default widget (such as the default button in a dialogue) when Enter is pressed width-chars -> gint: Width in chars Number of characters to leave space for in the entry max-width-chars -> gint: Maximum width in characters @@ -17259,7 +17190,7 @@ class Entry(Widget, Atk.ImplementorIface, Buildable, CellEditable, Editable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -17271,7 +17202,7 @@ class Entry(Widget, Atk.ImplementorIface, Buildable, CellEditable, Editable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -17403,7 +17334,6 @@ class Entry(Widget, Atk.ImplementorIface, Buildable, CellEditable, Editable): width_request: int window: Optional[Gdk.Window] editing_canceled: bool - props: Props = ... parent_instance: Widget = ... priv: EntryPrivate = ... @@ -17706,7 +17636,6 @@ class EntryAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: EntryAccessiblePrivate = ... @@ -17771,7 +17700,6 @@ class EntryBuffer(GObject.Object): length: int max_length: int text: str - props: Props = ... parent_instance: GObject.Object = ... priv: EntryBufferPrivate = ... @@ -17905,7 +17833,6 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): popup_set_width: bool popup_single_match: bool text_column: int - props: Props = ... parent_instance: GObject.Object = ... priv: EntryCompletionPrivate = ... @@ -18052,7 +17979,6 @@ class EntryIconAccessible(Atk.Object, Atk.Action, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... def __init__( self, @@ -18206,7 +18132,7 @@ class EventBox(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -18218,7 +18144,7 @@ class EventBox(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -18303,7 +18229,6 @@ class EventBox(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... bin: Bin = ... priv: EventBoxPrivate = ... @@ -18398,7 +18323,6 @@ class EventController(GObject.Object): class Props: propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, propagation_phase: PropagationPhase = ..., widget: Widget = ... @@ -18443,7 +18367,6 @@ class EventControllerKey(EventController): class Props: propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, propagation_phase: PropagationPhase = ..., widget: Widget = ... @@ -18486,7 +18409,6 @@ class EventControllerMotion(EventController): class Props: propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, propagation_phase: PropagationPhase = ..., widget: Widget = ... @@ -18531,7 +18453,6 @@ class EventControllerScroll(EventController): flags: EventControllerScrollFlags propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -18698,7 +18619,7 @@ class Expander(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -18710,7 +18631,7 @@ class Expander(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -18801,7 +18722,6 @@ class Expander(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... bin: Bin = ... priv: ExpanderPrivate = ... @@ -18963,7 +18883,6 @@ class ExpanderAccessible(ContainerAccessible, Atk.Action, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: ExpanderAccessiblePrivate = ... @@ -19111,10 +19030,10 @@ class FileChooserButton(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien file-set () Properties from GtkFileChooserButton: - dialog -> GtkFileChooser: Dialog - The file chooser dialog to use. + dialog -> GtkFileChooser: Dialogue + The file chooser dialogue to use. title -> gchararray: Title - The title of the file chooser dialog. + The title of the file chooser dialogue. width-chars -> gint: Width In Characters The desired width of the button widget, in characters. @@ -19250,7 +19169,7 @@ class FileChooserButton(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -19262,7 +19181,7 @@ class FileChooserButton(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -19363,7 +19282,6 @@ class FileChooserButton(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien orientation: Orientation dialog: FileChooser child: Widget - props: Props = ... parent: Box = ... priv: FileChooserButtonPrivate = ... @@ -19508,8 +19426,8 @@ class FileChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FileChooser): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -19535,7 +19453,7 @@ class FileChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FileChooser): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -19554,8 +19472,8 @@ class FileChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FileChooser): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -19674,7 +19592,7 @@ class FileChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FileChooser): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -19686,7 +19604,7 @@ class FileChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FileChooser): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -19814,7 +19732,6 @@ class FileChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FileChooser): use_preview_label: bool startup_id: str child: Widget - props: Props = ... parent_instance: Dialog = ... priv: FileChooserDialogPrivate = ... @@ -19947,14 +19864,14 @@ class FileChooserNative(NativeDialog, FileChooser): response (gint) Properties from GtkNativeDialog: - title -> gchararray: Dialog Title - The title of the file chooser dialog + title -> gchararray: Dialogue Title + The title of the file chooser dialogue visible -> gboolean: Visible - Whether the dialog is currently visible + Whether the dialogue is currently visible modal -> gboolean: Modal - If TRUE, the dialog is modal (other windows are not usable while this one is up) + If TRUE, the dialogue is modal (other windows are not usable while this one is up) transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue Signals from GObject: notify (GParam) @@ -19978,7 +19895,6 @@ class FileChooserNative(NativeDialog, FileChooser): select_multiple: bool show_hidden: bool use_preview_label: bool - props: Props = ... def __init__( self, @@ -20192,7 +20108,7 @@ class FileChooserWidget(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -20204,7 +20120,7 @@ class FileChooserWidget(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -20304,7 +20220,6 @@ class FileChooserWidget(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien use_preview_label: bool orientation: Orientation child: Widget - props: Props = ... parent_instance: Box = ... priv: FileChooserWidgetPrivate = ... @@ -20455,7 +20370,6 @@ class FileChooserWidgetAccessible(ContainerAccessible, Atk.Action, Atk.Component accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: FileChooserWidgetAccessiblePrivate = ... @@ -20681,7 +20595,7 @@ class Fixed(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -20693,7 +20607,7 @@ class Fixed(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -20776,7 +20690,6 @@ class Fixed(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Container = ... priv: FixedPrivate = ... @@ -21010,7 +20923,7 @@ class FlowBox(Container, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -21022,7 +20935,7 @@ class FlowBox(Container, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -21113,7 +21026,6 @@ class FlowBox(Container, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... container: Container = ... def __init__( @@ -21304,7 +21216,6 @@ class FlowBoxAccessible(ContainerAccessible, Atk.Component, Atk.Selection): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: FlowBoxAccessiblePrivate = ... @@ -21469,7 +21380,7 @@ class FlowBoxChild(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -21481,7 +21392,7 @@ class FlowBoxChild(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -21564,7 +21475,6 @@ class FlowBoxChild(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent_instance: Bin = ... def __init__( @@ -21702,7 +21612,6 @@ class FlowBoxChildAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... def __init__( @@ -21790,7 +21699,7 @@ class FontButton( Properties from GtkFontButton: title -> gchararray: Title - The title of the font chooser dialog + The title of the font chooser dialogue font-name -> gchararray: Font name The name of the selected font use-font -> gboolean: Use font in label @@ -21950,7 +21859,7 @@ class FontButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -21962,7 +21871,7 @@ class FontButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -22071,7 +21980,6 @@ class FontButton( preview_text: str show_preview_entry: bool child: Widget - props: Props = ... button: Button = ... priv: FontButtonPrivate = ... @@ -22256,8 +22164,8 @@ class FontChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FontChooser): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -22283,7 +22191,7 @@ class FontChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FontChooser): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -22302,8 +22210,8 @@ class FontChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FontChooser): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -22422,7 +22330,7 @@ class FontChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FontChooser): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -22434,7 +22342,7 @@ class FontChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FontChooser): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -22558,7 +22466,6 @@ class FontChooserDialog(Dialog, Atk.ImplementorIface, Buildable, FontChooser): show_preview_entry: bool startup_id: str child: Widget - props: Props = ... parent_instance: Dialog = ... priv: FontChooserDialogPrivate = ... @@ -22824,7 +22731,7 @@ class FontChooserWidget(Box, Atk.ImplementorIface, Buildable, FontChooser, Orien composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -22836,7 +22743,7 @@ class FontChooserWidget(Box, Atk.ImplementorIface, Buildable, FontChooser, Orien tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -22931,7 +22838,6 @@ class FontChooserWidget(Box, Atk.ImplementorIface, Buildable, FontChooser, Orien show_preview_entry: bool orientation: Orientation child: Widget - props: Props = ... parent_instance: Box = ... priv: FontChooserWidgetPrivate = ... @@ -23153,7 +23059,7 @@ class FontSelection(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -23165,7 +23071,7 @@ class FontSelection(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -23254,7 +23160,6 @@ class FontSelection(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... parent_instance: Box = ... priv: FontSelectionPrivate = ... @@ -23381,8 +23286,8 @@ class FontSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -23408,7 +23313,7 @@ class FontSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -23427,8 +23332,8 @@ class FontSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -23547,7 +23452,7 @@ class FontSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -23559,7 +23464,7 @@ class FontSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -23676,7 +23581,6 @@ class FontSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... parent_instance: Dialog = ... priv: FontSelectionDialogPrivate = ... @@ -23920,7 +23824,7 @@ class Frame(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -23932,7 +23836,7 @@ class Frame(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -24020,7 +23924,6 @@ class Frame(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... bin: Bin = ... priv: FramePrivate = ... @@ -24169,7 +24072,6 @@ class FrameAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: FrameAccessiblePrivate = ... @@ -24241,7 +24143,7 @@ class GLArea(Widget, Atk.ImplementorIface, Buildable): context -> GdkGLContext: Context The GL context has-alpha -> gboolean: Has alpha - Whether the color buffer has an alpha component + Whether the colour buffer has an alpha component has-depth-buffer -> gboolean: Has depth buffer Whether a depth buffer is allocated has-stencil-buffer -> gboolean: Has stencil buffer @@ -24354,7 +24256,7 @@ class GLArea(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -24366,7 +24268,7 @@ class GLArea(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -24452,7 +24354,6 @@ class GLArea(Widget, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... parent_instance: Widget = ... def __init__( @@ -24575,7 +24476,6 @@ class Gesture(EventController): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -24669,7 +24569,6 @@ class GestureDrag(GestureSingle): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -24747,7 +24646,6 @@ class GestureLongPress(GestureSingle): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -24820,7 +24718,6 @@ class GestureMultiPress(GestureSingle): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -24902,7 +24799,6 @@ class GesturePan(GestureDrag): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -24964,7 +24860,6 @@ class GestureRotate(Gesture): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -25028,7 +24923,6 @@ class GestureSingle(Gesture): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -25107,7 +25001,6 @@ class GestureStylus(GestureSingle): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -25180,7 +25073,6 @@ class GestureSwipe(GestureSingle): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -25240,7 +25132,6 @@ class GestureZoom(Gesture): window: Optional[Gdk.Window] propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -25418,7 +25309,7 @@ class Grid(Container, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -25430,7 +25321,7 @@ class Grid(Container, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -25519,7 +25410,6 @@ class Grid(Container, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... container: Container = ... priv: GridPrivate = ... @@ -25760,7 +25650,7 @@ class HBox(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -25772,7 +25662,7 @@ class HBox(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -25859,7 +25749,6 @@ class HBox(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... box: Box = ... def __init__( @@ -26062,7 +25951,7 @@ class HButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -26074,7 +25963,7 @@ class HButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -26162,7 +26051,6 @@ class HButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... button_box: ButtonBox = ... def __init__( @@ -26374,7 +26262,7 @@ class HPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -26386,7 +26274,7 @@ class HPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -26475,7 +26363,6 @@ class HPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... paned: Paned = ... def __init__( @@ -26656,7 +26543,7 @@ class HSV(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -26668,7 +26555,7 @@ class HSV(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -26748,7 +26635,6 @@ class HSV(Widget, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... parent_instance: Widget = ... priv: HSVPrivate = ... @@ -26974,7 +26860,7 @@ class HScale(Scale, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -26986,7 +26872,7 @@ class HScale(Scale, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -27079,7 +26965,6 @@ class HScale(Scale, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... scale: Scale = ... def __init__( @@ -27288,7 +27173,7 @@ class HScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -27300,7 +27185,7 @@ class HScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -27389,7 +27274,6 @@ class HScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... scrollbar: Scrollbar = ... def __init__( @@ -27568,7 +27452,7 @@ class HSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -27580,7 +27464,7 @@ class HSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -27661,7 +27545,6 @@ class HSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... separator: Separator = ... def __init__( @@ -27862,7 +27745,7 @@ class HandleBox(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -27874,7 +27757,7 @@ class HandleBox(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -27962,7 +27845,6 @@ class HandleBox(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... bin: Bin = ... priv: HandleBoxPrivate = ... @@ -28189,7 +28071,7 @@ class HeaderBar(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -28201,7 +28083,7 @@ class HeaderBar(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -28292,7 +28174,6 @@ class HeaderBar(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Container = ... def __init__( @@ -28448,7 +28329,6 @@ class HeaderBarAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... def __init__( @@ -28529,7 +28409,6 @@ class IMContext(GObject.Object): class Props: input_hints: InputHints input_purpose: InputPurpose - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -28645,7 +28524,6 @@ class IMContextSimple(IMContext): class Props: input_hints: InputHints input_purpose: InputPurpose - props: Props = ... object: IMContext = ... priv: IMContextSimplePrivate = ... @@ -28701,7 +28579,6 @@ class IMMulticontext(IMContext): class Props: input_hints: InputHints input_purpose: InputPurpose - props: Props = ... object: IMContext = ... priv: IMMulticontextPrivate = ... @@ -29196,7 +29073,7 @@ class IconView(Container, Atk.ImplementorIface, Buildable, CellLayout, Scrollabl composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -29208,7 +29085,7 @@ class IconView(Container, Atk.ImplementorIface, Buildable, CellLayout, Scrollabl tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -29311,7 +29188,6 @@ class IconView(Container, Atk.ImplementorIface, Buildable, CellLayout, Scrollabl vadjustment: Adjustment vscroll_policy: ScrollablePolicy child: Widget - props: Props = ... parent: Container = ... priv: IconViewPrivate = ... @@ -29569,7 +29445,6 @@ class IconViewAccessible(ContainerAccessible, Atk.Component, Atk.Selection): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: IconViewAccessiblePrivate = ... @@ -29789,7 +29664,7 @@ class Image(Misc, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -29801,7 +29676,7 @@ class Image(Misc, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -29898,7 +29773,6 @@ class Image(Misc, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... misc: Misc = ... priv: ImagePrivate = ... @@ -30080,7 +29954,6 @@ class ImageAccessible(WidgetAccessible, Atk.Component, Atk.Image): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: ImageAccessiblePrivate = ... @@ -30207,7 +30080,6 @@ class ImageCellAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: RendererCellAccessible = ... priv: ImageCellAccessiblePrivate = ... @@ -30418,7 +30290,7 @@ class ImageMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -30430,7 +30302,7 @@ class ImageMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -30526,7 +30398,6 @@ class ImageMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui use_action_appearance: bool accel_group: AccelGroup child: Widget - props: Props = ... menu_item: MenuItem = ... priv: ImageMenuItemPrivate = ... @@ -30769,7 +30640,7 @@ class InfoBar(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -30781,7 +30652,7 @@ class InfoBar(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -30871,7 +30742,6 @@ class InfoBar(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... parent: Box = ... priv: InfoBarPrivate = ... @@ -31080,7 +30950,7 @@ class Invisible(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -31092,7 +30962,7 @@ class Invisible(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -31173,7 +31043,6 @@ class Invisible(Widget, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... widget: Widget = ... priv: InvisiblePrivate = ... @@ -31270,7 +31139,7 @@ class Label(Misc, Atk.ImplementorIface, Buildable): use-underline -> gboolean: Use underline If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key justify -> GtkJustification: Justification - The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See GtkLabel:xalign for that + The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See GtkLabel::xalign for that pattern -> gchararray: Pattern A string with _ characters in positions correspond to characters in the text to underline wrap -> gboolean: Line wrap @@ -31287,8 +31156,8 @@ class Label(Misc, Atk.ImplementorIface, Buildable): The current position of the insertion cursor in chars selection-bound -> gint: Selection Bound The position of the opposite end of the selection from the cursor in chars - ellipsize -> PangoEllipsizeMode: Ellipsize - The preferred place to ellipsize the string, if the label does not have enough room to display the entire string + ellipsize -> PangoEllipsizeMode: Ellipsis location + The preferred place to place an ellipsis in the string, if the label does not have enough room to display the entire string width-chars -> gint: Width In Characters The desired width of the label, in characters single-line-mode -> gboolean: Single Line Mode @@ -31300,7 +31169,7 @@ class Label(Misc, Atk.ImplementorIface, Buildable): track-visited-links -> gboolean: Track visited links Whether visited links should be tracked lines -> gint: Number of lines - The desired number of lines, when ellipsizing a wrapping label + The desired number of lines, when ellipsising a wrapping label xalign -> gfloat: X align The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts. yalign -> gfloat: Y align @@ -31419,7 +31288,7 @@ class Label(Misc, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -31431,7 +31300,7 @@ class Label(Misc, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -31535,7 +31404,6 @@ class Label(Misc, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] pattern: str - props: Props = ... misc: Misc = ... priv: LabelPrivate = ... @@ -31752,7 +31620,6 @@ class LabelAccessible(WidgetAccessible, Atk.Component, Atk.Hypertext, Atk.Text): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: LabelAccessiblePrivate = ... @@ -31946,7 +31813,7 @@ class Layout(Container, Atk.ImplementorIface, Buildable, Scrollable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -31958,7 +31825,7 @@ class Layout(Container, Atk.ImplementorIface, Buildable, Scrollable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -32047,7 +31914,6 @@ class Layout(Container, Atk.ImplementorIface, Buildable, Scrollable): vadjustment: Adjustment vscroll_policy: ScrollablePolicy child: Widget - props: Props = ... container: Container = ... priv: LayoutPrivate = ... @@ -32262,7 +32128,7 @@ class LevelBar(Widget, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -32274,7 +32140,7 @@ class LevelBar(Widget, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -32360,7 +32226,6 @@ class LevelBar(Widget, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... parent: Widget = ... priv: LevelBarPrivate = ... @@ -32514,7 +32379,6 @@ class LevelBarAccessible(WidgetAccessible, Atk.Component, Atk.Value): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: LevelBarAccessiblePrivate = ... @@ -32729,7 +32593,7 @@ class LinkButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildabl composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -32741,7 +32605,7 @@ class LinkButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildabl tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -32839,7 +32703,6 @@ class LinkButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildabl related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent_instance: Button = ... priv: LinkButtonPrivate = ... @@ -33001,7 +32864,6 @@ class LinkButtonAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ButtonAccessible = ... priv: LinkButtonAccessiblePrivate = ... @@ -33197,7 +33059,7 @@ class ListBox(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -33209,7 +33071,7 @@ class ListBox(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -33294,7 +33156,6 @@ class ListBox(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent_instance: Container = ... def __init__( @@ -33480,7 +33341,6 @@ class ListBoxAccessible(ContainerAccessible, Atk.Component, Atk.Selection): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: ListBoxAccessiblePrivate = ... @@ -33673,7 +33533,7 @@ class ListBoxRow(Bin, Atk.ImplementorIface, Actionable, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -33685,7 +33545,7 @@ class ListBoxRow(Bin, Atk.ImplementorIface, Actionable, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -33772,7 +33632,6 @@ class ListBoxRow(Bin, Atk.ImplementorIface, Actionable, Buildable): action_name: Optional[str] action_target: GLib.Variant child: Widget - props: Props = ... parent_instance: Bin = ... def __init__( @@ -33920,7 +33779,6 @@ class ListBoxRowAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... def __init__( @@ -34073,8 +33931,8 @@ class LockButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildabl The tooltip to display when prompting the user to lock tooltip-unlock -> gchararray: Unlock Tooltip The tooltip to display when prompting the user to unlock - tooltip-not-authorized -> gchararray: Not Authorized Tooltip - The tooltip to display when prompting the user cannot obtain authorization + tooltip-not-authorized -> gchararray: Not Authorised Tooltip + The tooltip to display when prompting the user cannot obtain authorisation Signals from GtkButton: activate () @@ -34221,7 +34079,7 @@ class LockButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildabl composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -34233,7 +34091,7 @@ class LockButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildabl tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -34335,7 +34193,6 @@ class LockButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildabl related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent: Button = ... priv: LockButtonPrivate = ... @@ -34494,7 +34351,6 @@ class LockButtonAccessible(ButtonAccessible, Atk.Action, Atk.Component, Atk.Imag accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ButtonAccessible = ... priv: LockButtonAccessiblePrivate = ... @@ -34722,7 +34578,7 @@ class Menu(MenuShell, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -34734,7 +34590,7 @@ class Menu(MenuShell, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -34830,7 +34686,6 @@ class Menu(MenuShell, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... menu_shell: MenuShell = ... priv: MenuPrivate = ... @@ -35061,7 +34916,6 @@ class MenuAccessible(MenuShellAccessible, Atk.Component, Atk.Selection): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: MenuShellAccessible = ... priv: MenuAccessiblePrivate = ... @@ -35244,7 +35098,7 @@ class MenuBar(MenuShell, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -35256,7 +35110,7 @@ class MenuBar(MenuShell, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -35342,7 +35196,6 @@ class MenuBar(MenuShell, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... menu_shell: MenuShell = ... priv: MenuBarPrivate = ... @@ -35600,7 +35453,7 @@ class MenuButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -35612,7 +35465,7 @@ class MenuButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -35717,7 +35570,6 @@ class MenuButton( related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent: ToggleButton = ... priv: MenuButtonPrivate = ... @@ -35894,7 +35746,6 @@ class MenuButtonAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ToggleButtonAccessible = ... priv: MenuButtonAccessiblePrivate = ... @@ -36110,7 +35961,7 @@ class MenuItem(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -36122,7 +35973,7 @@ class MenuItem(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -36214,7 +36065,6 @@ class MenuItem(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): related_action: Action use_action_appearance: bool child: Widget - props: Props = ... bin: Bin = ... priv: MenuItemPrivate = ... @@ -36390,7 +36240,6 @@ class MenuItemAccessible(ContainerAccessible, Atk.Action, Atk.Component, Atk.Sel accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: MenuItemAccessiblePrivate = ... @@ -36592,7 +36441,7 @@ class MenuShell(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -36604,7 +36453,7 @@ class MenuShell(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -36688,7 +36537,6 @@ class MenuShell(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Container = ... priv: MenuShellPrivate = ... @@ -36853,7 +36701,6 @@ class MenuShellAccessible(ContainerAccessible, Atk.Component, Atk.Selection): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: MenuShellAccessiblePrivate = ... @@ -37081,7 +36928,7 @@ class MenuToolButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -37093,7 +36940,7 @@ class MenuToolButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -37190,7 +37037,6 @@ class MenuToolButton( related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent: ToolButton = ... priv: MenuToolButtonPrivate = ... @@ -37294,19 +37140,19 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): message-type -> GtkMessageType: Message Type The type of message buttons -> GtkButtonsType: Message Buttons - The buttons shown in the message dialog + The buttons shown in the message dialogue text -> gchararray: Text - The primary text of the message dialog + The primary text of the message dialogue use-markup -> gboolean: Use Markup The primary text of the title includes Pango markup. secondary-text -> gchararray: Secondary Text - The secondary text of the message dialog + The secondary text of the message dialogue secondary-use-markup -> gboolean: Use Markup in secondary The secondary text includes Pango markup. image -> GtkWidget: Image The image message-area -> GtkWidget: Message area - GtkBox that holds the dialog's primary and secondary labels + GtkBox that holds the primary and secondary labels of the dialogue Signals from GtkDialog: response (gint) @@ -37342,8 +37188,8 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -37369,7 +37215,7 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -37388,8 +37234,8 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -37508,7 +37354,7 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -37520,7 +37366,7 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -37645,7 +37491,6 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): buttons: ButtonsType startup_id: str child: Widget - props: Props = ... parent_instance: Dialog = ... priv: MessageDialogPrivate = ... @@ -37877,7 +37722,7 @@ class Misc(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -37889,7 +37734,7 @@ class Misc(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -37973,7 +37818,6 @@ class Misc(Widget, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... widget: Widget = ... priv: MiscPrivate = ... @@ -38068,8 +37912,8 @@ class ModelButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildab The name of the menu to open inverted -> gboolean: Inverted Whether the menu is a parent - centered -> gboolean: Centered - Whether to center the contents + centered -> gboolean: Centred + Whether to centre the contents iconic -> gboolean: Iconic Whether to prefer the icon over text @@ -38218,7 +38062,7 @@ class ModelButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildab composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -38230,7 +38074,7 @@ class ModelButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildab tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -38335,7 +38179,6 @@ class ModelButton(Button, Atk.ImplementorIface, Actionable, Activatable, Buildab related_action: Action use_action_appearance: bool child: Widget - props: Props = ... def __init__( self, @@ -38419,7 +38262,7 @@ class MountOperation(Gio.MountOperation): parent -> GtkWindow: Parent The parent window is-showing -> gboolean: Is Showing - Are we showing a dialog + Are we showing a dialogue screen -> GdkScreen: Screen The screen where this window will be displayed. @@ -38468,7 +38311,6 @@ class MountOperation(Gio.MountOperation): password_save: Gio.PasswordSave pim: int username: Optional[str] - props: Props = ... parent_instance: Gio.MountOperation = ... priv: MountOperationPrivate = ... @@ -38525,14 +38367,14 @@ class NativeDialog(GObject.Object): response (gint) Properties from GtkNativeDialog: - title -> gchararray: Dialog Title - The title of the file chooser dialog + title -> gchararray: Dialogue Title + The title of the file chooser dialogue visible -> gboolean: Visible - Whether the dialog is currently visible + Whether the dialogue is currently visible modal -> gboolean: Modal - If TRUE, the dialog is modal (other windows are not usable while this one is up) + If TRUE, the dialogue is modal (other windows are not usable while this one is up) transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue Signals from GObject: notify (GParam) @@ -38543,7 +38385,6 @@ class NativeDialog(GObject.Object): title: Optional[str] transient_for: Optional[Window] visible: bool - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -38742,7 +38583,7 @@ class Notebook(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -38754,7 +38595,7 @@ class Notebook(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -38844,7 +38685,6 @@ class Notebook(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Container = ... priv: NotebookPrivate = ... @@ -39069,7 +38909,6 @@ class NotebookAccessible(ContainerAccessible, Atk.Component, Atk.Selection): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: NotebookAccessiblePrivate = ... @@ -39209,7 +39048,6 @@ class NotebookPageAccessible(Atk.Object, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: Atk.Object = ... priv: NotebookPageAccessiblePrivate = ... @@ -39285,7 +39123,6 @@ class NumerableIcon(Gio.EmblemedIcon, Gio.Icon): label: Optional[str] style_context: Optional[StyleContext] gicon: Gio.Icon - props: Props = ... parent: Gio.EmblemedIcon = ... priv: NumerableIconPrivate = ... @@ -39366,8 +39203,8 @@ class OffscreenWindow(Window, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -39393,7 +39230,7 @@ class OffscreenWindow(Window, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -39412,8 +39249,8 @@ class OffscreenWindow(Window, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -39532,7 +39369,7 @@ class OffscreenWindow(Window, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -39544,7 +39381,7 @@ class OffscreenWindow(Window, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -39660,7 +39497,6 @@ class OffscreenWindow(Window, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... parent_object: Window = ... def __init__( @@ -39907,7 +39743,7 @@ class Overlay(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -39919,7 +39755,7 @@ class Overlay(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -40002,7 +39838,6 @@ class Overlay(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent: Bin = ... priv: OverlayPrivate = ... @@ -40127,7 +39962,6 @@ class PadController(EventController): pad: Gdk.Device propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -40363,7 +40197,7 @@ class Paned(Container, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -40375,7 +40209,7 @@ class Paned(Container, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -40464,7 +40298,6 @@ class Paned(Container, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... container: Container = ... priv: PanedPrivate = ... @@ -40625,7 +40458,6 @@ class PanedAccessible(ContainerAccessible, Atk.Component, Atk.Value): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: PanedAccessiblePrivate = ... @@ -40768,15 +40600,15 @@ class PlacesSidebar(ScrolledWindow, Atk.ImplementorIface, Buildable): open-flags -> GtkPlacesOpenFlags: Open Flags Modes in which the calling application can open locations selected in the sidebar show-recent -> gboolean: Show recent files - Whether the sidebar includes a builtin shortcut for recent files + Whether the sidebar includes a built-in shortcut for recent files show-desktop -> gboolean: Show 'Desktop' Whether the sidebar includes a builtin shortcut to the Desktop folder show-connect-to-server -> gboolean: Show 'Connect to Server' - Whether the sidebar includes a builtin shortcut to a 'Connect to server' dialog + Whether the sidebar includes a builtin shortcut to a 'Connect to server' dialogue show-enter-location -> gboolean: Show 'Enter Location' Whether the sidebar includes a builtin shortcut to manually enter a location - show-trash -> gboolean: Show 'Trash' - Whether the sidebar includes a builtin shortcut to the Trash location + show-trash -> gboolean: Show 'Wastebasket' + Whether the sidebar includes a built-in shortcut to the Wastebasket location show-starred-location -> gboolean: Show “Starred Location” Whether the sidebar includes an item to show starred files local-only -> gboolean: Local Only @@ -40941,7 +40773,7 @@ class PlacesSidebar(ScrolledWindow, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -40953,7 +40785,7 @@ class PlacesSidebar(ScrolledWindow, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -41062,7 +40894,6 @@ class PlacesSidebar(ScrolledWindow, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... def __init__( self, @@ -41211,8 +41042,8 @@ class Plug(Window, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -41238,7 +41069,7 @@ class Plug(Window, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -41257,8 +41088,8 @@ class Plug(Window, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -41377,7 +41208,7 @@ class Plug(Window, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -41389,7 +41220,7 @@ class Plug(Window, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -41507,7 +41338,6 @@ class Plug(Window, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... window: Window = ... priv: PlugPrivate = ... @@ -41704,7 +41534,6 @@ class PlugAccessible(WindowAccessible, Atk.Component, Atk.Window): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WindowAccessible = ... priv: PlugAccessiblePrivate = ... @@ -41782,7 +41611,7 @@ class Popover(Bin, Atk.ImplementorIface, Buildable): modal -> gboolean: Modal Whether the popover is modal transitions-enabled -> gboolean: Transitions enabled - Whether show/hide transitions are enabled or not + Whether show/hide transitions are enabled constrain-to -> GtkPopoverConstraint: Constraint Constraint for the popover position @@ -41903,7 +41732,7 @@ class Popover(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -41915,7 +41744,7 @@ class Popover(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -42004,7 +41833,6 @@ class Popover(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent_instance: Bin = ... priv: PopoverPrivate = ... @@ -42171,7 +41999,6 @@ class PopoverAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... def __init__( @@ -42243,7 +42070,7 @@ class PopoverMenu(Popover, Atk.ImplementorIface, Buildable): modal -> gboolean: Modal Whether the popover is modal transitions-enabled -> gboolean: Transitions enabled - Whether show/hide transitions are enabled or not + Whether show/hide transitions are enabled constrain-to -> GtkPopoverConstraint: Constraint Constraint for the popover position @@ -42364,7 +42191,7 @@ class PopoverMenu(Popover, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -42376,7 +42203,7 @@ class PopoverMenu(Popover, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -42466,7 +42293,6 @@ class PopoverMenu(Popover, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... def __init__( self, @@ -42591,7 +42417,7 @@ class PrintOperation(GObject.Object, PrintOperationPreview): default-page-setup -> GtkPageSetup: Default Page Setup The GtkPageSetup used by default print-settings -> GtkPrintSettings: Print Settings - The GtkPrintSettings used for initializing the dialog + The GtkPrintSettings used for initialising the dialogue job-name -> gchararray: Job Name A string used for identifying the print job. n-pages -> gint: Number of Pages @@ -42604,8 +42430,8 @@ class PrintOperation(GObject.Object, PrintOperationPreview): TRUE if the print operation will continue to report on the print job status after the print data has been sent to the printer or print server. unit -> GtkUnit: Unit The unit in which distances can be measured in the context - show-progress -> gboolean: Show Dialog - TRUE if a progress dialog is shown while printing. + show-progress -> gboolean: Show Dialogue + TRUE if a progress dialogue is shown while printing. allow-async -> gboolean: Allow Async TRUE if print process may run asynchronous. export-filename -> gchararray: Export filename @@ -42652,7 +42478,6 @@ class PrintOperation(GObject.Object, PrintOperationPreview): track_print_status: bool unit: Unit use_full_page: bool - props: Props = ... parent_instance: GObject.Object = ... priv: PrintOperationPrivate = ... @@ -42787,9 +42612,9 @@ class PrintOperationPreviewIface(GObject.GPointer): g_iface: GObject.TypeInterface = ... ready: Callable[[PrintOperationPreview, PrintContext], None] = ... - got_page_size: Callable[[PrintOperationPreview, PrintContext, PageSetup], None] = ( - ... - ) + got_page_size: Callable[ + [PrintOperationPreview, PrintContext, PageSetup], None + ] = ... render_page: Callable[[PrintOperationPreview, int], None] = ... is_selected: Callable[[PrintOperationPreview, int], bool] = ... end_preview: Callable[[PrintOperationPreview], None] = ... @@ -42931,8 +42756,8 @@ class ProgressBar(Widget, Atk.ImplementorIface, Buildable, Orientable): Text to be displayed in the progress bar show-text -> gboolean: Show text Whether the progress is shown as text. - ellipsize -> PangoEllipsizeMode: Ellipsize - The preferred place to ellipsize the string, if the progress bar does not have enough room to display the entire string, if at all. + ellipsize -> PangoEllipsizeMode: Ellipsis location + The preferred place to place an ellipsis in the string, if the progress bar does not have enough room to display the entire string, if at all. Signals from GtkWidget: composited-changed () @@ -43037,7 +42862,7 @@ class ProgressBar(Widget, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -43049,7 +42874,7 @@ class ProgressBar(Widget, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -43136,7 +42961,6 @@ class ProgressBar(Widget, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... parent: Widget = ... priv: ProgressBarPrivate = ... @@ -43288,7 +43112,6 @@ class ProgressBarAccessible(WidgetAccessible, Atk.Component, Atk.Value): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: ProgressBarAccessiblePrivate = ... @@ -43439,7 +43262,6 @@ class RadioAction(ToggleAction, Buildable): visible_overflown: bool visible_vertical: bool group: Optional[RadioAction] - props: Props = ... parent: ToggleAction = ... private_data: RadioActionPrivate = ... @@ -43698,7 +43520,7 @@ class RadioButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -43710,7 +43532,7 @@ class RadioButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -43810,7 +43632,6 @@ class RadioButton( use_action_appearance: bool group: Optional[RadioButton] child: Widget - props: Props = ... check_button: CheckButton = ... priv: RadioButtonPrivate = ... @@ -43994,7 +43815,6 @@ class RadioButtonAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ToggleButtonAccessible = ... priv: RadioButtonAccessiblePrivate = ... @@ -44076,7 +43896,7 @@ class RadioMenuItem( Properties from GtkCheckMenuItem: active -> gboolean: Active - Whether the menu item is checked + Whether the menu item is ticked inconsistent -> gboolean: Inconsistent Whether to display an "inconsistent" state draw-as-radio -> gboolean: Draw as radio menu item @@ -44219,7 +44039,7 @@ class RadioMenuItem( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -44231,7 +44051,7 @@ class RadioMenuItem( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -44327,7 +44147,6 @@ class RadioMenuItem( use_action_appearance: bool group: Optional[RadioMenuItem] child: Widget - props: Props = ... check_menu_item: CheckMenuItem = ... priv: RadioMenuItemPrivate = ... @@ -44516,7 +44335,6 @@ class RadioMenuItemAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: CheckMenuItemAccessible = ... priv: RadioMenuItemAccessiblePrivate = ... @@ -44741,7 +44559,7 @@ class RadioToolButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -44753,7 +44571,7 @@ class RadioToolButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -44851,7 +44669,6 @@ class RadioToolButton( use_action_appearance: bool group: Optional[RadioToolButton] child: Widget - props: Props = ... parent: ToggleToolButton = ... def __init__( @@ -45080,7 +44897,7 @@ class Range(Widget, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -45092,7 +44909,7 @@ class Range(Widget, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -45181,7 +44998,6 @@ class Range(Widget, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... widget: Widget = ... priv: RangePrivate = ... @@ -45356,7 +45172,6 @@ class RangeAccessible(WidgetAccessible, Atk.Component, Atk.Value): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: RangeAccessiblePrivate = ... @@ -45593,7 +45408,6 @@ class RecentAction(Action, Buildable, RecentChooser): show_tips: bool sort_type: RecentSortType recent_manager: RecentManager - props: Props = ... parent_instance: Action = ... priv: RecentActionPrivate = ... @@ -45752,8 +45566,8 @@ class RecentChooserDialog(Dialog, Atk.ImplementorIface, Buildable, RecentChooser The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -45779,7 +45593,7 @@ class RecentChooserDialog(Dialog, Atk.ImplementorIface, Buildable, RecentChooser gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -45798,8 +45612,8 @@ class RecentChooserDialog(Dialog, Atk.ImplementorIface, Buildable, RecentChooser Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -45918,7 +45732,7 @@ class RecentChooserDialog(Dialog, Atk.ImplementorIface, Buildable, RecentChooser composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -45930,7 +45744,7 @@ class RecentChooserDialog(Dialog, Atk.ImplementorIface, Buildable, RecentChooser tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -46057,7 +45871,6 @@ class RecentChooserDialog(Dialog, Atk.ImplementorIface, Buildable, RecentChooser startup_id: str child: Widget recent_manager: RecentManager - props: Props = ... parent_instance: Dialog = ... priv: RecentChooserDialogPrivate = ... @@ -46369,7 +46182,7 @@ class RecentChooserMenu( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -46381,7 +46194,7 @@ class RecentChooserMenu( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -46490,7 +46303,6 @@ class RecentChooserMenu( sort_type: RecentSortType child: Widget recent_manager: RecentManager - props: Props = ... parent_instance: Menu = ... priv: RecentChooserMenuPrivate = ... @@ -46729,7 +46541,7 @@ class RecentChooserWidget( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -46741,7 +46553,7 @@ class RecentChooserWidget( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -46838,7 +46650,6 @@ class RecentChooserWidget( sort_type: RecentSortType child: Widget recent_manager: RecentManager - props: Props = ... parent_instance: Box = ... priv: RecentChooserWidgetPrivate = ... @@ -47043,7 +46854,6 @@ class RecentManager(GObject.Object): class Props: filename: str size: int - props: Props = ... parent_instance: GObject.Object = ... priv: RecentManagerPrivate = ... @@ -47169,7 +46979,6 @@ class RendererCellAccessible(CellAccessible, Atk.Action, Atk.Component, Atk.Tabl accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: CellAccessible = ... priv: RendererCellAccessiblePrivate = ... @@ -47374,7 +47183,7 @@ class Revealer(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -47386,7 +47195,7 @@ class Revealer(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -47473,7 +47282,6 @@ class Revealer(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent_instance: Bin = ... def __init__( @@ -47694,7 +47502,7 @@ class Scale(Range, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -47706,7 +47514,7 @@ class Scale(Range, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -47799,7 +47607,6 @@ class Scale(Range, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... range: Range = ... priv: ScalePrivate = ... @@ -47973,7 +47780,6 @@ class ScaleAccessible(RangeAccessible, Atk.Component, Atk.Value): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: RangeAccessible = ... priv: ScaleAccessiblePrivate = ... @@ -48180,7 +47986,7 @@ class ScaleButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -48192,7 +47998,7 @@ class ScaleButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -48293,7 +48099,6 @@ class ScaleButton( use_action_appearance: bool orientation: Orientation child: Widget - props: Props = ... parent: Button = ... priv: ScaleButtonPrivate = ... @@ -48470,7 +48275,6 @@ class ScaleButtonAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ButtonAccessible = ... priv: ScaleButtonAccessiblePrivate = ... @@ -48710,7 +48514,7 @@ class Scrollbar(Range, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -48722,7 +48526,7 @@ class Scrollbar(Range, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -48811,7 +48615,6 @@ class Scrollbar(Range, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... range: Range = ... def __init__( @@ -49048,7 +48851,7 @@ class ScrolledWindow(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -49060,7 +48863,7 @@ class ScrolledWindow(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -49158,7 +48961,6 @@ class ScrolledWindow(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Bin = ... priv: ScrolledWindowPrivate = ... @@ -49348,7 +49150,6 @@ class ScrolledWindowAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: ScrolledWindowAccessiblePrivate = ... @@ -49536,7 +49337,7 @@ class SearchBar(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -49548,7 +49349,7 @@ class SearchBar(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -49633,7 +49434,6 @@ class SearchBar(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent: Bin = ... def __init__( @@ -49766,7 +49566,7 @@ class SearchEntry(Entry, Atk.ImplementorIface, Buildable, CellEditable, Editable invisible-char -> guint: Invisible character The character to use when masking entry contents (in "password mode") activates-default -> gboolean: Activates default - Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed + Whether to activate the default widget (such as the default button in a dialogue) when Enter is pressed width-chars -> gint: Width in chars Number of characters to leave space for in the entry max-width-chars -> gint: Maximum width in characters @@ -49962,7 +49762,7 @@ class SearchEntry(Entry, Atk.ImplementorIface, Buildable, CellEditable, Editable composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -49974,7 +49774,7 @@ class SearchEntry(Entry, Atk.ImplementorIface, Buildable, CellEditable, Editable tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -50106,7 +49906,6 @@ class SearchEntry(Entry, Atk.ImplementorIface, Buildable, CellEditable, Editable width_request: int window: Optional[Gdk.Window] editing_canceled: bool - props: Props = ... parent: Entry = ... def __init__( @@ -50354,7 +50153,7 @@ class Separator(Widget, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -50366,7 +50165,7 @@ class Separator(Widget, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -50447,7 +50246,6 @@ class Separator(Widget, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... widget: Widget = ... priv: SeparatorPrivate = ... @@ -50659,7 +50457,7 @@ class SeparatorMenuItem( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -50671,7 +50469,7 @@ class SeparatorMenuItem( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -50763,7 +50561,6 @@ class SeparatorMenuItem( related_action: Action use_action_appearance: bool child: Widget - props: Props = ... menu_item: MenuItem = ... def __init__( @@ -50981,7 +50778,7 @@ class SeparatorToolItem(ToolItem, Atk.ImplementorIface, Activatable, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -50993,7 +50790,7 @@ class SeparatorToolItem(ToolItem, Atk.ImplementorIface, Activatable, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -51082,7 +50879,6 @@ class SeparatorToolItem(ToolItem, Atk.ImplementorIface, Activatable, Buildable): related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent: ToolItem = ... priv: SeparatorToolItemPrivate = ... @@ -51214,7 +51010,7 @@ class Settings(GObject.Object, StyleProvider): gtk-cursor-theme-size -> gint: Cursor theme size Size to use for cursors, or 0 to use the default size gtk-alternative-button-order -> gboolean: Alternative button order - Whether buttons in dialogs should use the alternative button order + Whether buttons in dialogues should use the alternative button order gtk-alternative-sort-arrows -> gboolean: Alternative sort indicator direction Whether the direction of the sort indicators in list and tree views is inverted compared to the default (where down means ascending) gtk-show-input-method-menu -> gboolean: Show the 'Input Methods' menu @@ -51227,8 +51023,8 @@ class Settings(GObject.Object, StyleProvider): Repeat value for timeouts, when button is pressed gtk-timeout-expand -> gint: Expand timeout Expand value for timeouts, when a widget is expanding a new region - gtk-color-scheme -> gchararray: Color scheme - A palette of named colors for use in themes + gtk-color-scheme -> gchararray: Colour scheme + A palette of named colours for use in themes gtk-enable-animations -> gboolean: Enable Animations Whether to enable toolkit-wide animations. gtk-touchscreen-mode -> gboolean: Enable Touchscreen Mode @@ -51245,8 +51041,8 @@ class Settings(GObject.Object, StyleProvider): Whether to wrap around when keyboard-navigating widgets gtk-error-bell -> gboolean: Error Bell When TRUE, keyboard navigation and other errors will cause a beep - color-hash -> GHashTable: Color Hash - A hash table representation of the color scheme. + color-hash -> GHashTable: Colour Hash + A hash table representation of the colour scheme. gtk-file-chooser-backend -> gchararray: Default file chooser backend Name of the GtkFileChooser backend to use by default gtk-print-backends -> gchararray: Default print backend @@ -51306,7 +51102,7 @@ class Settings(GObject.Object, StyleProvider): gtk-label-select-on-focus -> gboolean: Select on focus Whether to select the contents of a selectable label when it is focused gtk-color-palette -> gchararray: Custom palette - Palette to use in the color selector + Palette to use in the colour selector gtk-im-preedit-style -> GtkIMPreeditStyle: IM Preedit style How to draw the input method preedit string gtk-im-status-style -> GtkIMStatusStyle: IM Status style @@ -51325,8 +51121,8 @@ class Settings(GObject.Object, StyleProvider): The action to take on titlebar middle-click gtk-titlebar-right-click -> gchararray: Titlebar right-click action The action to take on titlebar right-click - gtk-dialogs-use-header -> gboolean: Dialogs use header bar - Whether builtin GTK+ dialogs should use a header bar instead of an action area. + gtk-dialogs-use-header -> gboolean: Dialogues use header bar + Whether builtin GTK+ dialogues should use a header bar instead of an action area. gtk-enable-primary-paste -> gboolean: Enable primary paste Whether a middle click on a mouse should paste the 'PRIMARY' clipboard content at the cursor location. gtk-recent-files-enabled -> gboolean: Recent Files Enabled @@ -51431,7 +51227,6 @@ class Settings(GObject.Object, StyleProvider): gtk_xft_hinting: int gtk_xft_hintstyle: str gtk_xft_rgba: str - props: Props = ... parent_instance: GObject.Object = ... priv: SettingsPrivate = ... @@ -51710,7 +51505,7 @@ class ShortcutLabel(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -51722,7 +51517,7 @@ class ShortcutLabel(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -51811,7 +51606,6 @@ class ShortcutLabel(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... def __init__( self, @@ -52017,7 +51811,7 @@ class ShortcutsGroup(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -52029,7 +51823,7 @@ class ShortcutsGroup(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -52121,7 +51915,6 @@ class ShortcutsGroup(Box, Atk.ImplementorIface, Buildable, Orientable): accel_size_group: SizeGroup title_size_group: SizeGroup child: Widget - props: Props = ... def __init__( self, @@ -52324,7 +52117,7 @@ class ShortcutsSection(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -52336,7 +52129,7 @@ class ShortcutsSection(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -52427,7 +52220,6 @@ class ShortcutsSection(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... def __init__( self, @@ -52641,7 +52433,7 @@ class ShortcutsShortcut(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -52653,7 +52445,7 @@ class ShortcutsShortcut(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -52751,7 +52543,6 @@ class ShortcutsShortcut(Box, Atk.ImplementorIface, Buildable, Orientable): accel_size_group: SizeGroup title_size_group: SizeGroup child: Widget - props: Props = ... def __init__( self, @@ -52859,8 +52650,8 @@ class ShortcutsWindow(Window, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -52886,7 +52677,7 @@ class ShortcutsWindow(Window, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -52905,8 +52696,8 @@ class ShortcutsWindow(Window, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -53025,7 +52816,7 @@ class ShortcutsWindow(Window, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -53037,7 +52828,7 @@ class ShortcutsWindow(Window, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -53155,7 +52946,6 @@ class ShortcutsWindow(Window, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... window: Window = ... def __init__( @@ -53271,7 +53061,6 @@ class SizeGroup(GObject.Object, Buildable): class Props: ignore_hidden: bool mode: SizeGroupMode - props: Props = ... parent_instance: GObject.Object = ... priv: SizeGroupPrivate = ... @@ -53435,7 +53224,7 @@ class Socket(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -53447,7 +53236,7 @@ class Socket(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -53530,7 +53319,6 @@ class Socket(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Container = ... priv: SocketPrivate = ... @@ -53670,7 +53458,6 @@ class SocketAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: SocketAccessiblePrivate = ... @@ -53808,7 +53595,7 @@ class SpinButton( invisible-char -> guint: Invisible character The character to use when masking entry contents (in "password mode") activates-default -> gboolean: Activates default - Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed + Whether to activate the default widget (such as the default button in a dialogue) when Enter is pressed width-chars -> gint: Width in chars Number of characters to leave space for in the entry max-width-chars -> gint: Maximum width in characters @@ -54004,7 +53791,7 @@ class SpinButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -54016,7 +53803,7 @@ class SpinButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -54157,7 +53944,6 @@ class SpinButton( window: Optional[Gdk.Window] editing_canceled: bool orientation: Orientation - props: Props = ... entry: Entry = ... priv: SpinButtonPrivate = ... @@ -54398,7 +54184,6 @@ class SpinButtonAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: EntryAccessible = ... priv: SpinButtonAccessiblePrivate = ... @@ -54572,7 +54357,7 @@ class Spinner(Widget, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -54584,7 +54369,7 @@ class Spinner(Widget, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -54665,7 +54450,6 @@ class Spinner(Widget, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... parent: Widget = ... priv: SpinnerPrivate = ... @@ -54797,7 +54581,6 @@ class SpinnerAccessible(WidgetAccessible, Atk.Component, Atk.Image): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: SpinnerAccessiblePrivate = ... @@ -54996,7 +54779,7 @@ class Stack(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -55008,7 +54791,7 @@ class Stack(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -55100,7 +54883,6 @@ class Stack(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent_instance: Container = ... def __init__( @@ -55155,46 +54937,6 @@ class Stack(Container, Atk.ImplementorIface, Buildable): ): ... def add_named(self, child: Widget, name: str) -> None: ... def add_titled(self, child: Widget, name: str, title: str) -> None: ... - # override - @overload - def child_get_property( - self, - widget: Widget, - property_name: Literal["icon-name"], - value: Optional[GObject.Value] = None, - ) -> Optional[str]: ... - # override - @overload - def child_get_property( - self, - widget: Widget, - property_name: Literal["name"], - value: Optional[GObject.Value] = None, - ) -> Optional[str]: ... - # override - @overload - def child_get_property( - self, - widget: Widget, - property_name: Literal["needs-attention"], - value: Optional[GObject.Value] = None, - ) -> bool: ... - # override - @overload - def child_get_property( - self, - widget: Widget, - property_name: Literal["position"], - value: Optional[GObject.Value] = None, - ) -> int: ... - # override - @overload - def child_get_property( - self, - widget: Widget, - property_name: Literal["title"], - value: Optional[GObject.Value] = None, - ) -> Optional[str]: ... def get_child_by_name(self, name: str) -> Optional[Widget]: ... def get_hhomogeneous(self) -> bool: ... def get_homogeneous(self) -> bool: ... @@ -55305,7 +55047,6 @@ class StackAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... def __init__( @@ -55479,7 +55220,7 @@ class StackSidebar(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -55491,7 +55232,7 @@ class StackSidebar(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -55575,7 +55316,6 @@ class StackSidebar(Bin, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent: Bin = ... def __init__( @@ -55785,7 +55525,7 @@ class StackSwitcher(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -55797,7 +55537,7 @@ class StackSwitcher(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -55886,7 +55626,6 @@ class StackSwitcher(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... widget: Box = ... def __init__( @@ -56034,7 +55773,6 @@ class StatusIcon(GObject.Object): tooltip_text: Optional[str] visible: bool file: str - props: Props = ... parent_instance: GObject.Object = ... priv: StatusIconPrivate = ... @@ -56267,7 +56005,7 @@ class Statusbar(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -56279,7 +56017,7 @@ class Statusbar(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -56366,7 +56104,6 @@ class Statusbar(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... parent_widget: Box = ... priv: StatusbarPrivate = ... @@ -56513,7 +56250,6 @@ class StatusbarAccessible(ContainerAccessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: StatusbarAccessiblePrivate = ... @@ -56608,7 +56344,6 @@ class Style(GObject.Object): class Props: context: StyleContext - props: Props = ... parent_instance: GObject.Object = ... fg: list[Gdk.Color] = ... @@ -57277,7 +57012,6 @@ class StyleContext(GObject.Object): paint_clock: Gdk.FrameClock parent: Optional[StyleContext] screen: Gdk.Screen - props: Props = ... parent_object: GObject.Object = ... priv: StyleContextPrivate = ... @@ -57569,7 +57303,7 @@ class Switch(Widget, Atk.ImplementorIface, Actionable, Activatable, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -57581,7 +57315,7 @@ class Switch(Widget, Atk.ImplementorIface, Actionable, Activatable, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -57667,7 +57401,6 @@ class Switch(Widget, Atk.ImplementorIface, Actionable, Activatable, Buildable): action_target: GLib.Variant related_action: Action use_action_appearance: bool - props: Props = ... parent_instance: Widget = ... priv: SwitchPrivate = ... @@ -57808,7 +57541,6 @@ class SwitchAccessible(WidgetAccessible, Atk.Action, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: WidgetAccessible = ... priv: SwitchAccessiblePrivate = ... @@ -58037,7 +57769,7 @@ class Table(Container, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -58049,7 +57781,7 @@ class Table(Container, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -58137,7 +57869,6 @@ class Table(Container, Atk.ImplementorIface, Buildable): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... container: Container = ... priv: TablePrivate = ... @@ -58487,7 +58218,7 @@ class TearoffMenuItem( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -58499,7 +58230,7 @@ class TearoffMenuItem( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -58591,7 +58322,6 @@ class TearoffMenuItem( related_action: Action use_action_appearance: bool child: Widget - props: Props = ... menu_item: MenuItem = ... priv: TearoffMenuItemPrivate = ... @@ -58795,7 +58525,6 @@ class TextBuffer(GObject.Object): paste_target_list: TargetList tag_table: TextTagTable text: str - props: Props = ... parent_instance: GObject.Object = ... priv: TextBufferPrivate = ... @@ -59078,7 +58807,6 @@ class TextCellAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: RendererCellAccessible = ... priv: TextCellAccessiblePrivate = ... @@ -59304,7 +59032,6 @@ class TextMark(GObject.Object): class Props: left_gravity: bool name: Optional[str] - props: Props = ... parent_instance: GObject.Object = ... segment: None = ... @@ -59350,18 +59077,18 @@ class TextTag(GObject.Object): Properties from GtkTextTag: name -> gchararray: Tag name Name used to refer to the text tag. NULL for anonymous tags - background -> gchararray: Background color name - Background color as a string - foreground -> gchararray: Foreground color name - Foreground color as a string - background-gdk -> GdkColor: Background color - Background color as a GdkColor - foreground-gdk -> GdkColor: Foreground color - Foreground color as a GdkColor + background -> gchararray: Background colour name + Background colour as a string + foreground -> gchararray: Foreground colour name + Foreground colour as a string + background-gdk -> GdkColor: Background colour + Background colour as a GdkColor + foreground-gdk -> GdkColor: Foreground colour + Foreground colour as a GdkColor background-rgba -> GdkRGBA: Background RGBA - Background color as a GdkRGBA + Background colour as a GdkRGBA foreground-rgba -> GdkRGBA: Foreground RGBA - Foreground color as a GdkRGBA + Foreground colour as a GdkRGBA font -> gchararray: Font Font description as a string, e.g. "Sans Italic 12" font-desc -> PangoFontDescription: Font @@ -59393,7 +59120,7 @@ class TextTag(GObject.Object): wrap-mode -> GtkWrapMode: Wrap mode Whether to wrap lines never, at word boundaries, or at character boundaries justification -> GtkJustification: Justification - Left, right, or center justification + Left, right, or centre justification direction -> GtkTextDirection: Text direction Text direction, e.g. right-to-left or left-to-right left-margin -> gint: Left margin @@ -59403,27 +59130,27 @@ class TextTag(GObject.Object): strikethrough -> gboolean: Strikethrough Whether to strike through the text strikethrough-rgba -> GdkRGBA: Strikethrough RGBA - Color of strikethrough for this text + Colour of strikethrough for this text right-margin -> gint: Right margin Width of the right margin in pixels underline -> PangoUnderline: Underline Style of underline for this text underline-rgba -> GdkRGBA: Underline RGBA - Color of underline for this text + Colour of underline for this text rise -> gint: Rise Offset of text above the baseline (below the baseline if rise is negative) in Pango units background-full-height -> gboolean: Background full height - Whether the background color fills the entire line height or only the height of the tagged characters + Whether the background colour fills the entire line height or only the height of the tagged characters language -> gchararray: Language The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used. tabs -> PangoTabArray: Tabs Custom tabs for this text invisible -> gboolean: Invisible Whether this text is hidden. - paragraph-background -> gchararray: Paragraph background color name - Paragraph background color as a string - paragraph-background-gdk -> GdkColor: Paragraph background color - Paragraph background color as a GdkColor + paragraph-background -> gchararray: Paragraph background colour name + Paragraph background colour as a string + paragraph-background-gdk -> GdkColor: Paragraph background colour + Paragraph background colour as a GdkColor paragraph-background-rgba -> GdkRGBA: Paragraph background RGBA Paragraph background RGBA as a GdkRGBA fallback -> gboolean: Fallback @@ -59435,9 +59162,9 @@ class TextTag(GObject.Object): accumulative-margin -> gboolean: Margin Accumulates Whether left and right margins accumulate. background-set -> gboolean: Background set - Whether this tag affects the background color + Whether this tag affects the background colour foreground-set -> gboolean: Foreground set - Whether this tag affects the foreground color + Whether this tag affects the foreground colour family-set -> gboolean: Font family set Whether this tag affects the font family style-set -> gboolean: Font style set @@ -59471,13 +59198,13 @@ class TextTag(GObject.Object): strikethrough-set -> gboolean: Strikethrough set Whether this tag affects strikethrough strikethrough-rgba-set -> gboolean: Strikethrough RGBA set - Whether this tag affects strikethrough color + Whether this tag affects strikethrough colour right-margin-set -> gboolean: Right margin set Whether this tag affects the right margin underline-set -> gboolean: Underline set Whether this tag affects underlining underline-rgba-set -> gboolean: Underline RGBA set - Whether this tag affects underlining color + Whether this tag affects underlining colour rise-set -> gboolean: Rise set Whether this tag affects the rise background-full-height-set -> gboolean: Background full height set @@ -59489,7 +59216,7 @@ class TextTag(GObject.Object): invisible-set -> gboolean: Invisible set Whether this tag affects text visibility paragraph-background-set -> gboolean: Paragraph background set - Whether this tag affects the paragraph background color + Whether this tag affects the paragraph background colour fallback-set -> gboolean: Fallback set Whether this tag affects font fallback letter-spacing-set -> gboolean: Letter spacing set @@ -59576,7 +59303,6 @@ class TextTag(GObject.Object): background: str foreground: str paragraph_background: str - props: Props = ... parent_instance: GObject.Object = ... priv: TextTagPrivate = ... @@ -59782,7 +59508,7 @@ class TextView(Container, Atk.ImplementorIface, Buildable, Scrollable): wrap-mode -> GtkWrapMode: Wrap Mode Whether to wrap lines never, at word boundaries, or at character boundaries justification -> GtkJustification: Justification - Left, right, or center justification + Left, right, or centre justification left-margin -> gint: Left Margin Width of the left margin in pixels right-margin -> gint: Right Margin @@ -59931,7 +59657,7 @@ class TextView(Container, Atk.ImplementorIface, Buildable, Scrollable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -59943,7 +59669,7 @@ class TextView(Container, Atk.ImplementorIface, Buildable, Scrollable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -60051,7 +59777,6 @@ class TextView(Container, Atk.ImplementorIface, Buildable, Scrollable): vadjustment: Adjustment vscroll_policy: ScrollablePolicy child: Widget - props: Props = ... parent_instance: Container = ... priv: TextViewPrivate = ... @@ -60343,7 +60068,6 @@ class TextViewAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: TextViewAccessiblePrivate = ... @@ -60433,7 +60157,6 @@ class ThemingEngine(GObject.Object): class Props: name: str - props: Props = ... parent_object: GObject.Object = ... priv: ThemingEnginePrivate = ... @@ -60758,7 +60481,6 @@ class ToggleAction(Action, Buildable): visible_horizontal: bool visible_overflown: bool visible_vertical: bool - props: Props = ... parent: Action = ... private_data: ToggleActionPrivate = ... @@ -61002,7 +60724,7 @@ class ToggleButton(Button, Atk.ImplementorIface, Actionable, Activatable, Builda composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -61014,7 +60736,7 @@ class ToggleButton(Button, Atk.ImplementorIface, Actionable, Activatable, Builda tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -61113,7 +60835,6 @@ class ToggleButton(Button, Atk.ImplementorIface, Actionable, Activatable, Builda related_action: Action use_action_appearance: bool child: Widget - props: Props = ... button: Button = ... priv: ToggleButtonPrivate = ... @@ -61279,7 +61000,6 @@ class ToggleButtonAccessible(ButtonAccessible, Atk.Action, Atk.Component, Atk.Im accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ButtonAccessible = ... priv: ToggleButtonAccessiblePrivate = ... @@ -61498,7 +61218,7 @@ class ToggleToolButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -61510,7 +61230,7 @@ class ToggleToolButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -61607,7 +61327,6 @@ class ToggleToolButton( related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent: ToolButton = ... priv: ToggleToolButtonPrivate = ... @@ -61851,7 +61570,7 @@ class ToolButton(ToolItem, Atk.ImplementorIface, Actionable, Activatable, Builda composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -61863,7 +61582,7 @@ class ToolButton(ToolItem, Atk.ImplementorIface, Actionable, Activatable, Builda tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -61959,7 +61678,6 @@ class ToolButton(ToolItem, Atk.ImplementorIface, Actionable, Activatable, Builda related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent: ToolItem = ... priv: ToolButtonPrivate = ... @@ -62197,7 +61915,7 @@ class ToolItem(Bin, Atk.ImplementorIface, Activatable, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -62209,7 +61927,7 @@ class ToolItem(Bin, Atk.ImplementorIface, Activatable, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -62297,7 +62015,6 @@ class ToolItem(Bin, Atk.ImplementorIface, Activatable, Buildable): related_action: Action use_action_appearance: bool child: Widget - props: Props = ... parent: Bin = ... priv: ToolItemPrivate = ... @@ -62417,8 +62134,8 @@ class ToolItemGroup(Container, Atk.ImplementorIface, Buildable, ToolShell): A widget to display in place of the usual label collapsed -> gboolean: Collapsed Whether the group has been collapsed and items are hidden - ellipsize -> PangoEllipsizeMode: ellipsize - Ellipsize for item group headers + ellipsize -> PangoEllipsizeMode: ellipsise + Ellipsise for item group headers header-relief -> GtkReliefStyle: Header Relief Relief of the group header button @@ -62539,7 +62256,7 @@ class ToolItemGroup(Container, Atk.ImplementorIface, Buildable, ToolShell): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -62551,7 +62268,7 @@ class ToolItemGroup(Container, Atk.ImplementorIface, Buildable, ToolShell): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -62639,7 +62356,6 @@ class ToolItemGroup(Container, Atk.ImplementorIface, Buildable, ToolShell): width_request: int window: Optional[Gdk.Window] child: Widget - props: Props = ... parent_instance: Container = ... priv: ToolItemGroupPrivate = ... @@ -62863,7 +62579,7 @@ class ToolPalette(Container, Atk.ImplementorIface, Buildable, Orientable, Scroll composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -62875,7 +62591,7 @@ class ToolPalette(Container, Atk.ImplementorIface, Buildable, Orientable, Scroll tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -62966,7 +62682,6 @@ class ToolPalette(Container, Atk.ImplementorIface, Buildable, Orientable, Scroll vadjustment: Adjustment vscroll_policy: ScrollablePolicy child: Widget - props: Props = ... parent_instance: Container = ... priv: ToolPalettePrivate = ... @@ -63251,7 +62966,7 @@ class Toolbar(Container, Atk.ImplementorIface, Buildable, Orientable, ToolShell) composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -63263,7 +62978,7 @@ class Toolbar(Container, Atk.ImplementorIface, Buildable, Orientable, ToolShell) tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -63351,7 +63066,6 @@ class Toolbar(Container, Atk.ImplementorIface, Buildable, Orientable, ToolShell) window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... container: Container = ... priv: ToolbarPrivate = ... @@ -63542,7 +63256,6 @@ class ToplevelAccessible(Atk.Object): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: Atk.Object = ... priv: ToplevelAccessiblePrivate = ... @@ -63718,7 +63431,6 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): class Props: child_model: TreeModel virtual_root: TreePath - props: Props = ... parent: GObject.Object = ... priv: TreeModelFilterPrivate = ... @@ -63794,9 +63506,9 @@ class TreeModelIface(GObject.GPointer): get_value: Callable[[TreeModel, TreeIter, int], Any] = ... iter_next: Callable[[TreeModel, TreeIter], bool] = ... iter_previous: Callable[[TreeModel, TreeIter], bool] = ... - iter_children: Callable[[TreeModel, Optional[TreeIter]], Tuple[bool, TreeIter]] = ( - ... - ) + iter_children: Callable[ + [TreeModel, Optional[TreeIter]], Tuple[bool, TreeIter] + ] = ... iter_has_child: Callable[[TreeModel, TreeIter], bool] = ... iter_n_children: Callable[[TreeModel, Optional[TreeIter]], int] = ... iter_nth_child: Callable[ @@ -63858,7 +63570,6 @@ class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable): class Props: model: TreeModel - props: Props = ... parent: GObject.Object = ... priv: TreeModelSortPrivate = ... @@ -63983,7 +63694,6 @@ class TreeSelection(GObject.Object): class Props: mode: SelectionMode - props: Props = ... parent: GObject.Object = ... priv: TreeSelectionPrivate = ... @@ -64454,7 +64164,6 @@ class TreeView(Container, Atk.ImplementorIface, Buildable, Scrollable): vadjustment: Adjustment vscroll_policy: ScrollablePolicy child: Widget - props: Props = ... parent: Container = ... priv: TreeViewPrivate = ... @@ -64815,7 +64524,6 @@ class TreeViewAccessible( accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: TreeViewAccessiblePrivate = ... @@ -64962,7 +64670,6 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): widget: Optional[Widget] width: int x_offset: int - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... priv: TreeViewColumnPrivate = ... @@ -65098,7 +64805,6 @@ class UIManager(GObject.Object, Buildable): class Props: add_tearoffs: bool ui: str - props: Props = ... parent: GObject.Object = ... private_data: UIManagerPrivate = ... @@ -65300,7 +65006,7 @@ class VBox(Box, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -65312,7 +65018,7 @@ class VBox(Box, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -65399,7 +65105,6 @@ class VBox(Box, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... box: Box = ... def __init__( @@ -65602,7 +65307,7 @@ class VButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -65614,7 +65319,7 @@ class VButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -65702,7 +65407,6 @@ class VButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... button_box: ButtonBox = ... def __init__( @@ -65914,7 +65618,7 @@ class VPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -65926,7 +65630,7 @@ class VPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -66015,7 +65719,6 @@ class VPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): window: Optional[Gdk.Window] orientation: Orientation child: Widget - props: Props = ... paned: Paned = ... def __init__( @@ -66230,7 +65933,7 @@ class VScale(Scale, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -66242,7 +65945,7 @@ class VScale(Scale, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -66335,7 +66038,6 @@ class VScale(Scale, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... scale: Scale = ... def __init__( @@ -66544,7 +66246,7 @@ class VScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -66556,7 +66258,7 @@ class VScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -66645,7 +66347,6 @@ class VScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... scrollbar: Scrollbar = ... def __init__( @@ -66824,7 +66525,7 @@ class VSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -66836,7 +66537,7 @@ class VSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -66917,7 +66618,6 @@ class VSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): width_request: int window: Optional[Gdk.Window] orientation: Orientation - props: Props = ... separator: Separator = ... def __init__( @@ -67106,7 +66806,7 @@ class Viewport(Bin, Atk.ImplementorIface, Buildable, Scrollable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -67118,7 +66818,7 @@ class Viewport(Bin, Atk.ImplementorIface, Buildable, Scrollable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -67206,7 +66906,6 @@ class Viewport(Bin, Atk.ImplementorIface, Buildable, Scrollable): vadjustment: Adjustment vscroll_policy: ScrollablePolicy child: Widget - props: Props = ... bin: Bin = ... priv: ViewportPrivate = ... @@ -67466,7 +67165,7 @@ class VolumeButton( composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -67478,7 +67177,7 @@ class VolumeButton( tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -67580,7 +67279,6 @@ class VolumeButton( use_action_appearance: bool orientation: Orientation child: Widget - props: Props = ... parent: ScaleButton = ... def __init__( @@ -67775,7 +67473,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -67787,7 +67485,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -67867,7 +67565,6 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): visible: bool width_request: int window: Optional[Gdk.Window] - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... priv: WidgetPrivate = ... @@ -68488,7 +68185,6 @@ class WidgetAccessible(Accessible, Atk.Component): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: Accessible = ... priv: WidgetAccessiblePrivate = ... @@ -68738,8 +68434,8 @@ class Window(Bin, Atk.ImplementorIface, Buildable): The default height of the window, used when initially showing the window destroy-with-parent -> gboolean: Destroy with Parent If this window should be destroyed when the parent is destroyed - hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximization - If this window's titlebar should be hidden when the window is maximized + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised icon -> GdkPixbuf: Icon Icon for this window icon-name -> gchararray: Icon Name @@ -68765,7 +68461,7 @@ class Window(Bin, Atk.ImplementorIface, Buildable): gravity -> GdkGravity: Gravity The window gravity of the window transient-for -> GtkWindow: Transient for Window - The transient parent of the dialog + The transient parent of the dialogue attached-to -> GtkWidget: Attached to Widget The widget where the window is attached has-resize-grip -> gboolean: Resize grip @@ -68784,8 +68480,8 @@ class Window(Bin, Atk.ImplementorIface, Buildable): Whether mnemonics are currently visible in this window focus-visible -> gboolean: Focus Visible Whether focus rectangles are currently visible in this window - is-maximized -> gboolean: Is maximized - Whether the window is maximized + is-maximized -> gboolean: Is maximised + Whether the window is maximised Signals from GtkContainer: add (GtkWidget) @@ -68904,7 +68600,7 @@ class Window(Bin, Atk.ImplementorIface, Buildable): composite-child -> gboolean: Composite child Whether the widget is part of a composite widget style -> GtkStyle: Style - The style of the widget, which contains information about how it will look (colors etc) + The style of the widget, which contains information about how it will look (colours etc) events -> GdkEventMask: Events The event mask that decides what kind of GdkEvents this widget gets no-show-all -> gboolean: No show all @@ -68916,7 +68612,7 @@ class Window(Bin, Atk.ImplementorIface, Buildable): tooltip-text -> gchararray: Tooltip Text The contents of the tooltip for this widget window -> GdkWindow: Window - The widget's window if it is realized + The widget's window if it is realised opacity -> gdouble: Opacity for Widget The opacity of the widget, from 0 to 1 double-buffered -> gboolean: Double Buffered @@ -69032,7 +68728,6 @@ class Window(Bin, Atk.ImplementorIface, Buildable): window: Optional[Gdk.Window] startup_id: str child: Widget - props: Props = ... bin: Bin = ... priv: WindowPrivate = ... @@ -69353,7 +69048,6 @@ class WindowAccessible(ContainerAccessible, Atk.Component, Atk.Window): accessible_table_row_header: Atk.Object accessible_table_summary: Atk.Object accessible_value: float - props: Props = ... parent: ContainerAccessible = ... priv: WindowAccessiblePrivate = ... @@ -69806,7 +69500,6 @@ class ButtonsType(GObject.GEnum): class CellRendererAccelMode(GObject.GEnum): GTK = 0 - MODIFIER_TAP = 2 OTHER = 1 class CellRendererMode(GObject.GEnum): diff --git a/src/gi-stubs/repository/_Gtk4.pyi b/src/gi-stubs/repository/_Gtk4.pyi index 71f4a151..95cbbce7 100644 --- a/src/gi-stubs/repository/_Gtk4.pyi +++ b/src/gi-stubs/repository/_Gtk4.pyi @@ -20,7 +20,7 @@ from gi.repository import Pango _SomeSurface = TypeVar("_SomeSurface", bound=cairo.Surface) ACCESSIBLE_VALUE_UNDEFINED: int = -1 -BINARY_AGE: int = 1005 +BINARY_AGE: int = 1205 IM_MODULE_EXTENSION_POINT_NAME: str = "gtk-im-module" INPUT_ERROR: int = -1 INTERFACE_AGE: int = 5 @@ -32,7 +32,7 @@ MAJOR_VERSION: int = 4 MAX_COMPOSE_LEN: int = 7 MEDIA_FILE_EXTENSION_POINT_NAME: str = "gtk-media-file" MICRO_VERSION: int = 5 -MINOR_VERSION: int = 10 +MINOR_VERSION: int = 12 PAPER_NAME_A3: str = "iso_a3" PAPER_NAME_A4: str = "iso_a4" PAPER_NAME_A5: str = "iso_a5" @@ -158,7 +158,6 @@ def init() -> None: ... def init_check() -> bool: ... def is_initialized() -> bool: ... def native_get_for_surface(surface: Gdk.Surface) -> Optional[Native]: ... -def ordering_from_cmpfunc(cmpfunc_result: int) -> Ordering: ... def paper_size_get_default() -> str: ... def paper_size_get_paper_sizes(include_custom: bool) -> list[PaperSize]: ... def param_spec_expression( @@ -345,7 +344,6 @@ class ATContext(GObject.Object): accessible: Accessible accessible_role: AccessibleRole display: Gdk.Display - props: Props = ... def __init__( self, @@ -426,6 +424,7 @@ class AboutDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -524,6 +523,7 @@ class AboutDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -563,7 +563,6 @@ class AboutDialog( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... def __init__( self, @@ -850,7 +849,6 @@ class ActionBar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -980,7 +978,6 @@ class Adjustment(GObject.InitiallyUnowned): step_increment: float upper: float value: float - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... def __init__( @@ -1074,7 +1071,6 @@ class AlertDialog(GObject.Object): detail: str message: str modal: bool - props: Props = ... def __init__( self, @@ -1140,7 +1136,6 @@ class AlternativeTrigger(ShortcutTrigger): class Props: first: ShortcutTrigger second: ShortcutTrigger - props: Props = ... def __init__(self, first: ShortcutTrigger = ..., second: ShortcutTrigger = ...): ... def get_first(self) -> ShortcutTrigger: ... @@ -1183,7 +1178,6 @@ class AnyFilter(MultiFilter, Gio.ListModel, Buildable): class Props: item_type: Type n_items: int - props: Props = ... @classmethod def new(cls) -> AnyFilter: ... @@ -1320,7 +1314,6 @@ class AppChooserButton(Widget, Accessible, AppChooser, Buildable, ConstraintTarg width_request: int accessible_role: AccessibleRole content_type: str - props: Props = ... def __init__( self, @@ -1433,6 +1426,7 @@ class AppChooserDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -1518,6 +1512,7 @@ class AppChooserDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -1558,7 +1553,6 @@ class AppChooserDialog( accessible_role: AccessibleRole content_type: str startup_id: str - props: Props = ... def __init__( self, @@ -1753,7 +1747,6 @@ class AppChooserWidget(Widget, Accessible, AppChooser, Buildable, ConstraintTarg width_request: int accessible_role: AccessibleRole content_type: str - props: Props = ... def __init__( self, @@ -1888,7 +1881,6 @@ class Application(Gio.Application, Gio.ActionGroup, Gio.ActionMap): is_remote: bool resource_base_path: Optional[str] action_group: Optional[Gio.ActionGroup] - props: Props = ... parent_instance: Gio.Application = ... def __init__( @@ -2000,6 +1992,7 @@ class ApplicationWindow( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -2083,6 +2076,7 @@ class ApplicationWindow( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -2122,7 +2116,6 @@ class ApplicationWindow( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... parent_instance: Window = ... def __init__( @@ -2318,7 +2311,6 @@ class AspectFrame(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -2424,6 +2416,7 @@ class Assistant( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -2508,6 +2501,7 @@ class Assistant( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -2547,7 +2541,6 @@ class Assistant( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... def __init__( self, @@ -2659,7 +2652,6 @@ class AssistantPage(GObject.Object): complete: bool page_type: AssistantPageType title: str - props: Props = ... def __init__( self, @@ -2799,7 +2791,6 @@ class BookmarkList(GObject.Object, Gio.ListModel): item_type: Type loading: bool n_items: int - props: Props = ... def __init__( self, @@ -2854,7 +2845,6 @@ class BoolFilter(Filter): class Props: expression: Optional[Expression] invert: bool - props: Props = ... def __init__(self, expression: Optional[Expression] = ..., invert: bool = ...): ... def get_expression(self) -> Optional[Expression]: ... @@ -2908,6 +2898,7 @@ class Box(Widget, Accessible, Buildable, ConstraintTarget, Orientable): Properties from GtkBox: spacing -> gint: spacing homogeneous -> gboolean: homogeneous + baseline-child -> gint: baseline-child baseline-position -> GtkBaselinePosition: baseline-position Signals from GtkWidget: @@ -2966,6 +2957,7 @@ class Box(Widget, Accessible, Buildable, ConstraintTarget, Orientable): """ class Props: + baseline_child: int baseline_position: BaselinePosition homogeneous: bool spacing: int @@ -3005,11 +2997,11 @@ class Box(Widget, Accessible, Buildable, ConstraintTarget, Orientable): width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... parent_instance: Widget = ... def __init__( self, + baseline_child: int = ..., baseline_position: BaselinePosition = ..., homogeneous: bool = ..., spacing: int = ..., @@ -3046,6 +3038,7 @@ class Box(Widget, Accessible, Buildable, ConstraintTarget, Orientable): orientation: Orientation = ..., ): ... def append(self, child: Widget) -> None: ... + def get_baseline_child(self) -> int: ... def get_baseline_position(self) -> BaselinePosition: ... def get_homogeneous(self) -> bool: ... def get_spacing(self) -> int: ... @@ -3059,6 +3052,7 @@ class Box(Widget, Accessible, Buildable, ConstraintTarget, Orientable): def reorder_child_after( self, child: Widget, sibling: Optional[Widget] = None ) -> None: ... + def set_baseline_child(self, child: int) -> None: ... def set_baseline_position(self, position: BaselinePosition) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_spacing(self, spacing: int) -> None: ... @@ -3089,6 +3083,7 @@ class BoxLayout(LayoutManager, Orientable): Properties from GtkBoxLayout: homogeneous -> gboolean: homogeneous spacing -> gint: spacing + baseline-child -> gint: baseline-child baseline-position -> GtkBaselinePosition: baseline-position Signals from GObject: @@ -3096,24 +3091,27 @@ class BoxLayout(LayoutManager, Orientable): """ class Props: + baseline_child: int baseline_position: BaselinePosition homogeneous: bool spacing: int orientation: Orientation - props: Props = ... def __init__( self, + baseline_child: int = ..., baseline_position: BaselinePosition = ..., homogeneous: bool = ..., spacing: int = ..., orientation: Orientation = ..., ): ... + def get_baseline_child(self) -> int: ... def get_baseline_position(self) -> BaselinePosition: ... def get_homogeneous(self) -> bool: ... def get_spacing(self) -> int: ... @classmethod def new(cls, orientation: Orientation) -> BoxLayout: ... + def set_baseline_child(self, child: int) -> None: ... def set_baseline_position(self, position: BaselinePosition) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_spacing(self, spacing: int) -> None: ... @@ -3216,7 +3214,6 @@ class Builder(GObject.Object): current_object: Optional[GObject.Object] scope: BuilderScope translation_domain: Optional[str] - props: Props = ... def __init__( self, @@ -3373,7 +3370,6 @@ class BuilderListItemFactory(ListItemFactory): bytes: GLib.Bytes resource: Optional[str] scope: Optional[BuilderScope] - props: Props = ... def __init__( self, bytes: GLib.Bytes = ..., resource: str = ..., scope: BuilderScope = ... @@ -3434,6 +3430,7 @@ class Button(Widget, Accessible, Actionable, Buildable, ConstraintTarget): use-underline -> gboolean: use-underline icon-name -> gchararray: icon-name child -> GtkWidget: child + can-shrink -> gboolean: can-shrink Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -3491,6 +3488,7 @@ class Button(Widget, Accessible, Actionable, Buildable, ConstraintTarget): """ class Props: + can_shrink: bool child: Optional[Widget] has_frame: bool icon_name: Optional[str] @@ -3533,11 +3531,11 @@ class Button(Widget, Accessible, Actionable, Buildable, ConstraintTarget): accessible_role: AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... parent_instance: Widget = ... def __init__( self, + can_shrink: bool = ..., child: Optional[Widget] = ..., has_frame: bool = ..., icon_name: str = ..., @@ -3578,6 +3576,7 @@ class Button(Widget, Accessible, Actionable, Buildable, ConstraintTarget): ): ... def do_activate(self) -> None: ... def do_clicked(self) -> None: ... + def get_can_shrink(self) -> bool: ... def get_child(self) -> Optional[Widget]: ... def get_has_frame(self) -> bool: ... def get_icon_name(self) -> Optional[str]: ... @@ -3591,6 +3590,7 @@ class Button(Widget, Accessible, Actionable, Buildable, ConstraintTarget): def new_with_label(cls, label: str) -> Button: ... @classmethod def new_with_mnemonic(cls, label: str) -> Button: ... + def set_can_shrink(self, can_shrink: bool) -> None: ... def set_child(self, child: Optional[Widget] = None) -> None: ... def set_has_frame(self, has_frame: bool) -> None: ... def set_icon_name(self, icon_name: str) -> None: ... @@ -3760,7 +3760,6 @@ class Calendar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -3867,7 +3866,6 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): edit_widget: Optional[CellEditable] edited_cell: Optional[CellRenderer] focus_cell: Optional[CellRenderer] - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... def __init__(self, focus_cell: Optional[CellRenderer] = ...): ... @@ -4116,7 +4114,6 @@ class CellAreaBox(CellArea, Buildable, CellLayout, Orientable): edited_cell: Optional[CellRenderer] focus_cell: Optional[CellRenderer] orientation: Orientation - props: Props = ... def __init__( self, @@ -4235,7 +4232,6 @@ class CellAreaContext(GObject.Object): minimum_width: int natural_height: int natural_width: int - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, area: CellArea = ...): ... @@ -4400,7 +4396,6 @@ class CellRenderer(GObject.InitiallyUnowned): yalign: float ypad: int cell_background: str - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... priv: CellRendererPrivate = ... @@ -4683,7 +4678,6 @@ class CellRendererAccel(CellRendererText): foreground: str markup: str cell_background: str - props: Props = ... def __init__( self, @@ -4978,7 +4972,6 @@ class CellRendererCombo(CellRendererText): foreground: str markup: str cell_background: str - props: Props = ... def __init__( self, @@ -5117,7 +5110,6 @@ class CellRendererPixbuf(CellRenderer): ypad: int pixbuf: GdkPixbuf.Pixbuf cell_background: str - props: Props = ... def __init__( self, @@ -5215,7 +5207,6 @@ class CellRendererProgress(CellRenderer, Orientable): ypad: int orientation: Orientation cell_background: str - props: Props = ... def __init__( self, @@ -5401,7 +5392,6 @@ class CellRendererSpin(CellRendererText): foreground: str markup: str cell_background: str - props: Props = ... def __init__( self, @@ -5532,7 +5522,6 @@ class CellRendererSpinner(CellRenderer): yalign: float ypad: int cell_background: str - props: Props = ... def __init__( self, @@ -5706,7 +5695,6 @@ class CellRendererText(CellRenderer): foreground: str markup: str cell_background: str - props: Props = ... parent: CellRenderer = ... def __init__( @@ -5855,7 +5843,6 @@ class CellRendererToggle(CellRenderer): yalign: float ypad: int cell_background: str - props: Props = ... def __init__( self, @@ -6006,7 +5993,6 @@ class CellView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Orie width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -6082,6 +6068,7 @@ class CenterBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): center-widget -> GtkWidget: center-widget end-widget -> GtkWidget: end-widget baseline-position -> GtkBaselinePosition: baseline-position + shrink-center-last -> gboolean: shrink-center-last Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -6142,6 +6129,7 @@ class CenterBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): baseline_position: BaselinePosition center_widget: Optional[Widget] end_widget: Optional[Widget] + shrink_center_last: bool start_widget: Optional[Widget] can_focus: bool can_target: bool @@ -6179,13 +6167,13 @@ class CenterBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, baseline_position: BaselinePosition = ..., center_widget: Optional[Widget] = ..., end_widget: Optional[Widget] = ..., + shrink_center_last: bool = ..., start_widget: Optional[Widget] = ..., can_focus: bool = ..., can_target: bool = ..., @@ -6222,12 +6210,14 @@ class CenterBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): def get_baseline_position(self) -> BaselinePosition: ... def get_center_widget(self) -> Optional[Widget]: ... def get_end_widget(self) -> Optional[Widget]: ... + def get_shrink_center_last(self) -> bool: ... def get_start_widget(self) -> Optional[Widget]: ... @classmethod def new(cls) -> CenterBox: ... def set_baseline_position(self, position: BaselinePosition) -> None: ... def set_center_widget(self, child: Optional[Widget] = None) -> None: ... def set_end_widget(self, child: Optional[Widget] = None) -> None: ... + def set_shrink_center_last(self, shrink_center_last: bool) -> None: ... def set_start_widget(self, child: Optional[Widget] = None) -> None: ... class CenterBoxClass(GObject.GPointer): ... @@ -6243,14 +6233,22 @@ class CenterLayout(LayoutManager): Object GtkCenterLayout + Properties from GtkCenterLayout: + shrink-center-last -> gboolean: shrink-center-last + Signals from GObject: notify (GParam) """ + class Props: + shrink_center_last: bool + props: Props = ... + def __init__(self, shrink_center_last: bool = ...): ... def get_baseline_position(self) -> BaselinePosition: ... def get_center_widget(self) -> Optional[Widget]: ... def get_end_widget(self) -> Optional[Widget]: ... def get_orientation(self) -> Orientation: ... + def get_shrink_center_last(self) -> bool: ... def get_start_widget(self) -> Optional[Widget]: ... @classmethod def new(cls) -> CenterLayout: ... @@ -6258,6 +6256,7 @@ class CenterLayout(LayoutManager): def set_center_widget(self, widget: Optional[Widget] = None) -> None: ... def set_end_widget(self, widget: Optional[Widget] = None) -> None: ... def set_orientation(self, orientation: Orientation) -> None: ... + def set_shrink_center_last(self, shrink_center_last: bool) -> None: ... def set_start_widget(self, widget: Optional[Widget] = None) -> None: ... class CenterLayoutClass(GObject.GPointer): @@ -6395,7 +6394,6 @@ class CheckButton(Widget, Accessible, Actionable, Buildable, ConstraintTarget): action_name: Optional[str] action_target: GLib.Variant group: Optional[CheckButton] - props: Props = ... parent_instance: Widget = ... def __init__( @@ -6611,7 +6609,6 @@ class ColorButton(Widget, Accessible, Buildable, ColorChooser, ConstraintTarget) accessible_role: AccessibleRole rgba: Gdk.RGBA use_alpha: bool - props: Props = ... def __init__( self, @@ -6739,6 +6736,7 @@ class ColorChooserDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -6823,6 +6821,7 @@ class ColorChooserDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -6864,7 +6863,6 @@ class ColorChooserDialog( rgba: Gdk.RGBA use_alpha: bool startup_id: str - props: Props = ... def __init__( self, @@ -7060,7 +7058,6 @@ class ColorChooserWidget(Widget, Accessible, Buildable, ColorChooser, Constraint accessible_role: AccessibleRole rgba: Gdk.RGBA use_alpha: bool - props: Props = ... def __init__( self, @@ -7125,7 +7122,6 @@ class ColorDialog(GObject.Object): modal: bool title: str with_alpha: bool - props: Props = ... def __init__(self, modal: bool = ..., title: str = ..., with_alpha: bool = ...): ... def choose_rgba( @@ -7157,6 +7153,9 @@ class ColorDialogButton(Widget, Accessible, Buildable, ConstraintTarget): Object GtkColorDialogButton + Signals from GtkColorDialogButton: + activate () + Properties from GtkColorDialogButton: dialog -> GtkColorDialog: dialog rgba -> GdkRGBA: rgba @@ -7254,7 +7253,6 @@ class ColorDialogButton(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -7336,13 +7334,16 @@ class ColumnView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): Properties from GtkColumnView: columns -> GListModel: columns + enable-rubberband -> gboolean: enable-rubberband + header-factory -> GtkListItemFactory: header-factory model -> GtkSelectionModel: model + reorderable -> gboolean: reorderable + row-factory -> GtkListItemFactory: row-factory show-row-separators -> gboolean: show-row-separators show-column-separators -> gboolean: show-column-separators - sorter -> GtkSorter: sorter single-click-activate -> gboolean: single-click-activate - reorderable -> gboolean: reorderable - enable-rubberband -> gboolean: enable-rubberband + sorter -> GtkSorter: sorter + tab-behavior -> GtkListTabBehavior: tab-behavior Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -7402,12 +7403,15 @@ class ColumnView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): class Props: columns: Gio.ListModel enable_rubberband: bool + header_factory: Optional[ListItemFactory] model: Optional[SelectionModel] reorderable: bool + row_factory: Optional[ListItemFactory] show_column_separators: bool show_row_separators: bool single_click_activate: bool sorter: Optional[Sorter] + tab_behavior: ListTabBehavior can_focus: bool can_target: bool css_classes: list[str] @@ -7447,16 +7451,18 @@ class ColumnView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... def __init__( self, enable_rubberband: bool = ..., + header_factory: Optional[ListItemFactory] = ..., model: Optional[SelectionModel] = ..., reorderable: bool = ..., + row_factory: Optional[ListItemFactory] = ..., show_column_separators: bool = ..., show_row_separators: bool = ..., single_click_activate: bool = ..., + tab_behavior: ListTabBehavior = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., @@ -7495,26 +7501,100 @@ class ColumnView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): def append_column(self, column: ColumnViewColumn) -> None: ... def get_columns(self) -> Gio.ListModel: ... def get_enable_rubberband(self) -> bool: ... + def get_header_factory(self) -> Optional[ListItemFactory]: ... def get_model(self) -> Optional[SelectionModel]: ... def get_reorderable(self) -> bool: ... + def get_row_factory(self) -> Optional[ListItemFactory]: ... def get_show_column_separators(self) -> bool: ... def get_show_row_separators(self) -> bool: ... def get_single_click_activate(self) -> bool: ... def get_sorter(self) -> Optional[Sorter]: ... + def get_tab_behavior(self) -> ListTabBehavior: ... def insert_column(self, position: int, column: ColumnViewColumn) -> None: ... @classmethod def new(cls, model: Optional[SelectionModel] = None) -> ColumnView: ... def remove_column(self, column: ColumnViewColumn) -> None: ... + def scroll_to( + self, + pos: int, + column: Optional[ColumnViewColumn], + flags: ListScrollFlags, + scroll: Optional[ScrollInfo] = None, + ) -> None: ... def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... + def set_header_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... def set_model(self, model: Optional[SelectionModel] = None) -> None: ... def set_reorderable(self, reorderable: bool) -> None: ... + def set_row_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... def set_show_column_separators(self, show_column_separators: bool) -> None: ... def set_show_row_separators(self, show_row_separators: bool) -> None: ... def set_single_click_activate(self, single_click_activate: bool) -> None: ... + def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... def sort_by_column( self, column: Optional[ColumnViewColumn], direction: SortType ) -> None: ... +class ColumnViewCell(ListItem): + """ + :Constructors: + + :: + + ColumnViewCell(**properties) + + Object GtkColumnViewCell + + Properties from GtkColumnViewCell: + child -> GtkWidget: child + focusable -> gboolean: focusable + item -> GObject: item + position -> guint: position + selected -> gboolean: selected + + Properties from GtkListItem: + accessible-description -> gchararray: accessible-description + accessible-label -> gchararray: accessible-label + activatable -> gboolean: activatable + child -> GtkWidget: child + focusable -> gboolean: focusable + item -> GObject: item + position -> guint: position + selectable -> gboolean: selectable + selected -> gboolean: selected + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + focusable: bool + item: Optional[GObject.Object] + position: int + selected: bool + accessible_description: str + accessible_label: str + activatable: bool + selectable: bool + props: Props = ... + def __init__( + self, + child: Optional[Widget] = ..., + focusable: bool = ..., + accessible_description: str = ..., + accessible_label: str = ..., + activatable: bool = ..., + selectable: bool = ..., + ): ... + def get_child(self) -> Optional[Widget]: ... + def get_focusable(self) -> bool: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_position(self) -> int: ... + def get_selected(self) -> bool: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_focusable(self, focusable: bool) -> None: ... + +class ColumnViewCellClass(GObject.GPointer): ... class ColumnViewClass(GObject.GPointer): ... class ColumnViewColumn(GObject.Object): @@ -7555,7 +7635,6 @@ class ColumnViewColumn(GObject.Object): sorter: Optional[Sorter] title: Optional[str] visible: bool - props: Props = ... def __init__( self, @@ -7595,6 +7674,64 @@ class ColumnViewColumn(GObject.Object): class ColumnViewColumnClass(GObject.GPointer): ... +class ColumnViewRow(GObject.Object): + """ + :Constructors: + + :: + + ColumnViewRow(**properties) + + Object GtkColumnViewRow + + Properties from GtkColumnViewRow: + accessible-description -> gchararray: accessible-description + accessible-label -> gchararray: accessible-label + activatable -> gboolean: activatable + focusable -> gboolean: focusable + item -> GObject: item + position -> guint: position + selectable -> gboolean: selectable + selected -> gboolean: selected + + Signals from GObject: + notify (GParam) + """ + + class Props: + accessible_description: str + accessible_label: str + activatable: bool + focusable: bool + item: Optional[GObject.Object] + position: int + selectable: bool + selected: bool + props: Props = ... + def __init__( + self, + accessible_description: str = ..., + accessible_label: str = ..., + activatable: bool = ..., + focusable: bool = ..., + selectable: bool = ..., + ): ... + def get_accessible_description(self) -> str: ... + def get_accessible_label(self) -> str: ... + def get_activatable(self) -> bool: ... + def get_focusable(self) -> bool: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_position(self) -> int: ... + def get_selectable(self) -> bool: ... + def get_selected(self) -> bool: ... + def set_accessible_description(self, description: str) -> None: ... + def set_accessible_label(self, label: str) -> None: ... + def set_activatable(self, activatable: bool) -> None: ... + def set_focusable(self, focusable: bool) -> None: ... + def set_selectable(self, selectable: bool) -> None: ... + +class ColumnViewRowClass(GObject.GPointer): ... + class ColumnViewSorter(Sorter): """ :Constructors: @@ -7619,7 +7756,6 @@ class ColumnViewSorter(Sorter): class Props: primary_sort_column: Optional[ColumnViewColumn] primary_sort_order: SortType - props: Props = ... def get_n_sort_columns(self) -> int: ... def get_nth_sort_column( @@ -7783,7 +7919,6 @@ class ComboBox( width_request: int accessible_role: AccessibleRole editing_canceled: bool - props: Props = ... parent_instance: Widget = ... def __init__( @@ -8028,7 +8163,6 @@ class ComboBoxText( width_request: int accessible_role: AccessibleRole editing_canceled: bool - props: Props = ... def __init__( self, @@ -8137,7 +8271,6 @@ class Constraint(GObject.Object): strength: int target: Optional[ConstraintTarget] target_attribute: ConstraintAttribute - props: Props = ... def __init__( self, @@ -8228,7 +8361,6 @@ class ConstraintGuide(GObject.Object, ConstraintTarget): nat_height: int nat_width: int strength: ConstraintStrength - props: Props = ... def __init__( self, @@ -8318,7 +8450,6 @@ class ConstraintLayoutChild(LayoutChild): class Props: child_widget: Widget layout_manager: LayoutManager - props: Props = ... def __init__( self, child_widget: Widget = ..., layout_manager: LayoutManager = ... @@ -8386,10 +8517,12 @@ class CssProvider(GObject.Object, StyleProvider): """ parent_instance: GObject.Object = ... - def load_from_data(self, data: str, length: int) -> None: ... + def load_from_bytes(self, data: GLib.Bytes) -> None: ... + def load_from_data(self, text, length=-1): ... # FIXME Function def load_from_file(self, file: Gio.File) -> None: ... def load_from_path(self, path: str) -> None: ... def load_from_resource(self, resource_path: str) -> None: ... + def load_from_string(self, string: str) -> None: ... def load_named(self, name: str, variant: Optional[str] = None) -> None: ... @classmethod def new(cls) -> CssProvider: ... @@ -8572,6 +8705,7 @@ class Dialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -8655,6 +8789,7 @@ class Dialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -8694,7 +8829,6 @@ class Dialog( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... parent_instance: Window = ... def __init__( @@ -8820,7 +8954,6 @@ class DirectoryList(GObject.Object, Gio.ListModel): loading: bool monitored: bool n_items: int - props: Props = ... def __init__( self, @@ -8960,7 +9093,6 @@ class DragIcon(Widget, Accessible, Buildable, ConstraintTarget, Native, Root): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -9075,7 +9207,6 @@ class DragSource(GestureSingle): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -9214,7 +9345,6 @@ class DrawingArea(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... widget: Widget = ... def __init__( @@ -9315,7 +9445,6 @@ class DropControllerMotion(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -9348,6 +9477,7 @@ class DropDown(Widget, Accessible, Buildable, ConstraintTarget): Properties from GtkDropDown: factory -> GtkListItemFactory: factory + header-factory -> GtkListItemFactory: header-factory list-factory -> GtkListItemFactory: list-factory model -> GListModel: model selected -> guint: selected @@ -9355,6 +9485,7 @@ class DropDown(Widget, Accessible, Buildable, ConstraintTarget): enable-search -> gboolean: enable-search expression -> GtkExpression: expression show-arrow -> gboolean: show-arrow + search-match-mode -> GtkStringFilterMatchMode: search-match-mode Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -9415,8 +9546,10 @@ class DropDown(Widget, Accessible, Buildable, ConstraintTarget): enable_search: bool expression: Optional[Expression] factory: Optional[ListItemFactory] + header_factory: Optional[ListItemFactory] list_factory: Optional[ListItemFactory] model: Optional[Gio.ListModel] + search_match_mode: StringFilterMatchMode selected: int selected_item: Optional[GObject.Object] show_arrow: bool @@ -9455,15 +9588,16 @@ class DropDown(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, enable_search: bool = ..., expression: Optional[Expression] = ..., factory: Optional[ListItemFactory] = ..., + header_factory: Optional[ListItemFactory] = ..., list_factory: Optional[ListItemFactory] = ..., model: Optional[Gio.ListModel] = ..., + search_match_mode: StringFilterMatchMode = ..., selected: int = ..., show_arrow: bool = ..., can_focus: bool = ..., @@ -9500,8 +9634,10 @@ class DropDown(Widget, Accessible, Buildable, ConstraintTarget): def get_enable_search(self) -> bool: ... def get_expression(self) -> Optional[Expression]: ... def get_factory(self) -> Optional[ListItemFactory]: ... + def get_header_factory(self) -> Optional[ListItemFactory]: ... def get_list_factory(self) -> Optional[ListItemFactory]: ... def get_model(self) -> Optional[Gio.ListModel]: ... + def get_search_match_mode(self) -> StringFilterMatchMode: ... def get_selected(self) -> int: ... def get_selected_item(self) -> Optional[GObject.Object]: ... def get_show_arrow(self) -> bool: ... @@ -9516,8 +9652,12 @@ class DropDown(Widget, Accessible, Buildable, ConstraintTarget): def set_enable_search(self, enable_search: bool) -> None: ... def set_expression(self, expression: Optional[Expression] = None) -> None: ... def set_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_header_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... def set_list_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + def set_search_match_mode( + self, search_match_mode: StringFilterMatchMode + ) -> None: ... def set_selected(self, position: int) -> None: ... def set_show_arrow(self, show_arrow: bool) -> None: ... @@ -9578,7 +9718,6 @@ class DropTarget(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -9642,7 +9781,6 @@ class DropTargetAsync(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -9853,7 +9991,6 @@ class EditableLabel(Widget, Accessible, Buildable, ConstraintTarget, Editable): text: str width_chars: int xalign: float - props: Props = ... def __init__( self, @@ -10041,7 +10178,6 @@ class EmojiChooser( visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -10295,7 +10431,6 @@ class Entry(Widget, Accessible, Buildable, CellEditable, ConstraintTarget, Edita text: str width_chars: int xalign: float - props: Props = ... parent_instance: Widget = ... def __init__( @@ -10486,7 +10621,6 @@ class EntryBuffer(GObject.Object): length: int max_length: int text: str - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, max_length: int = ..., text: str = ...): ... @@ -10590,7 +10724,6 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): popup_set_width: bool popup_single_match: bool text_column: int - props: Props = ... def __init__( self, @@ -10656,7 +10789,6 @@ class EventController(GObject.Object): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -10716,7 +10848,6 @@ class EventControllerFocus(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -10763,7 +10894,6 @@ class EventControllerKey(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -10809,7 +10939,6 @@ class EventControllerLegacy(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -10859,7 +10988,6 @@ class EventControllerMotion(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -10910,7 +11038,6 @@ class EventControllerScroll(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -10958,7 +11085,6 @@ class EveryFilter(MultiFilter, Gio.ListModel, Buildable): class Props: item_type: Type n_items: int - props: Props = ... @classmethod def new(cls) -> EveryFilter: ... @@ -11087,7 +11213,6 @@ class Expander(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -11274,6 +11399,7 @@ class FileChooserDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -11357,6 +11483,7 @@ class FileChooserDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -11402,7 +11529,6 @@ class FileChooserDialog( select_multiple: bool shortcut_folders: Gio.ListModel startup_id: str - props: Props = ... def __init__( self, @@ -11507,7 +11633,6 @@ class FileChooserNative(NativeDialog, FileChooser): filters: Gio.ListModel select_multiple: bool shortcut_folders: Gio.ListModel - props: Props = ... def __init__( self, @@ -11677,7 +11802,6 @@ class FileChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FileCho filters: Gio.ListModel select_multiple: bool shortcut_folders: Gio.ListModel - props: Props = ... def __init__( self, @@ -11754,13 +11878,12 @@ class FileDialog(GObject.Object): initial_name: Optional[str] modal: bool title: str - props: Props = ... def __init__( self, accept_label: Optional[str] = ..., default_filter: Optional[FileFilter] = ..., - filters: Gio.ListModel = ..., + filters: Optional[Gio.ListModel] = ..., initial_file: Optional[Gio.File] = ..., initial_folder: Optional[Gio.File] = ..., initial_name: Optional[str] = ..., @@ -11823,7 +11946,7 @@ class FileDialog(GObject.Object): ) -> Optional[Gio.ListModel]: ... def set_accept_label(self, accept_label: Optional[str] = None) -> None: ... def set_default_filter(self, filter: Optional[FileFilter] = None) -> None: ... - def set_filters(self, filters: Gio.ListModel) -> None: ... + def set_filters(self, filters: Optional[Gio.ListModel] = None) -> None: ... def set_initial_file(self, file: Optional[Gio.File] = None) -> None: ... def set_initial_folder(self, folder: Optional[Gio.File] = None) -> None: ... def set_initial_name(self, name: Optional[str] = None) -> None: ... @@ -11871,7 +11994,6 @@ class FileFilter(Filter, Buildable): mime_types: list[str] patterns: list[str] suffixes: list[str] - props: Props = ... def __init__( self, @@ -11906,16 +12028,18 @@ class FileLauncher(GObject.Object): Properties from GtkFileLauncher: file -> GFile: file + always-ask -> gboolean: always-ask Signals from GObject: notify (GParam) """ class Props: + always_ask: bool file: Optional[Gio.File] - props: Props = ... - def __init__(self, file: Optional[Gio.File] = ...): ... + def __init__(self, always_ask: bool = ..., file: Optional[Gio.File] = ...): ... + def get_always_ask(self) -> bool: ... def get_file(self) -> Optional[Gio.File]: ... def launch( self, @@ -11935,6 +12059,7 @@ class FileLauncher(GObject.Object): *user_data: Any, ) -> None: ... def open_containing_folder_finish(self, result: Gio.AsyncResult) -> bool: ... + def set_always_ask(self, always_ask: bool) -> None: ... def set_file(self, file: Optional[Gio.File] = None) -> None: ... class FileLauncherClass(GObject.GPointer): @@ -11993,7 +12118,7 @@ class FilterClass(GObject.GPointer): _gtk_reserved7: None = ... _gtk_reserved8: None = ... -class FilterListModel(GObject.Object, Gio.ListModel): +class FilterListModel(GObject.Object, Gio.ListModel, SectionModel): """ :Constructors: @@ -12015,6 +12140,9 @@ class FilterListModel(GObject.Object, Gio.ListModel): Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GObject: notify (GParam) """ @@ -12026,7 +12154,6 @@ class FilterListModel(GObject.Object, Gio.ListModel): model: Optional[Gio.ListModel] n_items: int pending: int - props: Props = ... def __init__( self, @@ -12159,7 +12286,6 @@ class Fixed(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... parent_instance: Widget = ... def __init__( @@ -12261,7 +12387,6 @@ class FixedLayoutChild(LayoutChild): transform: Optional[Gsk.Transform] child_widget: Widget layout_manager: LayoutManager - props: Props = ... def __init__( self, @@ -12294,7 +12419,7 @@ class FixedLayoutClass(GObject.GPointer): parent_class: LayoutManagerClass = ... -class FlattenListModel(GObject.Object, Gio.ListModel): +class FlattenListModel(GObject.Object, Gio.ListModel, SectionModel): """ :Constructors: @@ -12313,6 +12438,9 @@ class FlattenListModel(GObject.Object, Gio.ListModel): Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GObject: notify (GParam) """ @@ -12321,7 +12449,6 @@ class FlattenListModel(GObject.Object, Gio.ListModel): item_type: Type model: Optional[Gio.ListModel] n_items: int - props: Props = ... def __init__(self, model: Optional[Gio.ListModel] = ...): ... def get_model(self) -> Optional[Gio.ListModel]: ... @@ -12471,7 +12598,6 @@ class FlowBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -12539,6 +12665,7 @@ class FlowBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): def new(cls) -> FlowBox: ... def prepend(self, child: Widget) -> None: ... def remove(self, widget: Widget) -> None: ... + def remove_all(self) -> None: ... def select_all(self) -> None: ... def select_child(self, child: FlowBoxChild) -> None: ... def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... @@ -12669,7 +12796,6 @@ class FlowBoxChild(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... parent_instance: Widget = ... def __init__( @@ -12855,7 +12981,6 @@ class FontButton(Widget, Accessible, Buildable, ConstraintTarget, FontChooser): level: FontChooserLevel preview_text: str show_preview_entry: bool - props: Props = ... def __init__( self, @@ -13000,6 +13125,7 @@ class FontChooserDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -13083,6 +13209,7 @@ class FontChooserDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -13129,7 +13256,6 @@ class FontChooserDialog( preview_text: str show_preview_entry: bool startup_id: str - props: Props = ... def __init__( self, @@ -13334,7 +13460,6 @@ class FontChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FontCho level: FontChooserLevel preview_text: str show_preview_entry: bool - props: Props = ... def __init__( self, @@ -13406,7 +13531,6 @@ class FontDialog(GObject.Object): language: Optional[Pango.Language] modal: bool title: str - props: Props = ... def __init__( self, @@ -13484,6 +13608,9 @@ class FontDialogButton(Widget, Accessible, Buildable, ConstraintTarget): Object GtkFontDialogButton + Signals from GtkFontDialogButton: + activate () + Properties from GtkFontDialogButton: dialog -> GtkFontDialog: dialog level -> GtkFontLevel: level @@ -13591,7 +13718,6 @@ class FontDialogButton(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -13784,7 +13910,6 @@ class Frame(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... parent_instance: Widget = ... def __init__( @@ -13870,6 +13995,8 @@ class GLArea(Widget, Accessible, Buildable, ConstraintTarget): has-depth-buffer -> gboolean: has-depth-buffer has-stencil-buffer -> gboolean: has-stencil-buffer use-es -> gboolean: use-es + allowed-apis -> GdkGLAPI: allowed-apis + api -> GdkGLAPI: api auto-render -> gboolean: auto-render Signals from GtkWidget: @@ -13928,6 +14055,8 @@ class GLArea(Widget, Accessible, Buildable, ConstraintTarget): """ class Props: + allowed_apis: Gdk.GLAPI + api: Gdk.GLAPI auto_render: bool context: Optional[Gdk.GLContext] has_depth_buffer: bool @@ -13968,11 +14097,11 @@ class GLArea(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... parent_instance: Widget = ... def __init__( self, + allowed_apis: Gdk.GLAPI = ..., auto_render: bool = ..., has_depth_buffer: bool = ..., has_stencil_buffer: bool = ..., @@ -14011,6 +14140,8 @@ class GLArea(Widget, Accessible, Buildable, ConstraintTarget): def attach_buffers(self) -> None: ... def do_render(self, context: Gdk.GLContext) -> bool: ... def do_resize(self, width: int, height: int) -> None: ... + def get_allowed_apis(self) -> Gdk.GLAPI: ... + def get_api(self) -> Gdk.GLAPI: ... def get_auto_render(self) -> bool: ... def get_context(self) -> Optional[Gdk.GLContext]: ... def get_error(self) -> Optional[GLib.Error]: ... @@ -14022,6 +14153,7 @@ class GLArea(Widget, Accessible, Buildable, ConstraintTarget): @classmethod def new(cls) -> GLArea: ... def queue_render(self) -> None: ... + def set_allowed_apis(self, apis: Gdk.GLAPI) -> None: ... def set_auto_render(self, auto_render: bool) -> None: ... def set_error(self, error: Optional[GLib.Error] = None) -> None: ... def set_has_depth_buffer(self, has_depth_buffer: bool) -> None: ... @@ -14080,7 +14212,6 @@ class Gesture(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14168,7 +14299,6 @@ class GestureClick(GestureSingle): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14235,7 +14365,6 @@ class GestureDrag(GestureSingle): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14307,7 +14436,6 @@ class GestureLongPress(GestureSingle): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14384,7 +14512,6 @@ class GesturePan(GestureDrag): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14444,7 +14571,6 @@ class GestureRotate(Gesture): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14503,7 +14629,6 @@ class GestureSingle(Gesture): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14581,7 +14706,6 @@ class GestureStylus(GestureSingle): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14653,7 +14777,6 @@ class GestureSwipe(GestureSingle): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14711,7 +14834,6 @@ class GestureZoom(Gesture): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -14841,7 +14963,6 @@ class Grid(Widget, Accessible, Buildable, ConstraintTarget, Orientable): width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... parent_instance: Widget = ... def __init__( @@ -14957,7 +15078,6 @@ class GridLayout(LayoutManager): column_spacing: int row_homogeneous: bool row_spacing: int - props: Props = ... def __init__( self, @@ -15013,7 +15133,6 @@ class GridLayoutChild(LayoutChild): row_span: int child_widget: Widget layout_manager: LayoutManager - props: Props = ... def __init__( self, @@ -15072,12 +15191,13 @@ class GridView( activate (guint) Properties from GtkGridView: + enable-rubberband -> gboolean: enable-rubberband factory -> GtkListItemFactory: factory max-columns -> guint: max-columns min-columns -> guint: min-columns model -> GtkSelectionModel: model single-click-activate -> gboolean: single-click-activate - enable-rubberband -> gboolean: enable-rubberband + tab-behavior -> GtkListTabBehavior: tab-behavior Properties from GtkListBase: orientation -> GtkOrientation: orientation @@ -15144,6 +15264,7 @@ class GridView( min_columns: int model: Optional[SelectionModel] single_click_activate: bool + tab_behavior: ListTabBehavior orientation: Orientation can_focus: bool can_target: bool @@ -15184,7 +15305,6 @@ class GridView( hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... def __init__( self, @@ -15194,6 +15314,7 @@ class GridView( min_columns: int = ..., model: Optional[SelectionModel] = ..., single_click_activate: bool = ..., + tab_behavior: ListTabBehavior = ..., orientation: Orientation = ..., can_focus: bool = ..., can_target: bool = ..., @@ -15236,18 +15357,23 @@ class GridView( def get_min_columns(self) -> int: ... def get_model(self) -> Optional[SelectionModel]: ... def get_single_click_activate(self) -> bool: ... + def get_tab_behavior(self) -> ListTabBehavior: ... @classmethod def new( cls, model: Optional[SelectionModel] = None, factory: Optional[ListItemFactory] = None, ) -> GridView: ... + def scroll_to( + self, pos: int, flags: ListScrollFlags, scroll: Optional[ScrollInfo] = None + ) -> None: ... def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... def set_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... def set_max_columns(self, max_columns: int) -> None: ... def set_min_columns(self, min_columns: int) -> None: ... def set_model(self, model: Optional[SelectionModel] = None) -> None: ... def set_single_click_activate(self, single_click_activate: bool) -> None: ... + def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... class GridViewClass(GObject.GPointer): ... @@ -15361,7 +15487,6 @@ class HeaderBar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -15440,7 +15565,6 @@ class IMContext(GObject.Object): class Props: input_hints: InputHints input_purpose: InputPurpose - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -15521,9 +15645,9 @@ class IMContextClass(GObject.GPointer): set_use_preedit: Callable[[IMContext, bool], None] = ... set_surrounding: Callable[[IMContext, str, int, int], None] = ... get_surrounding: Callable[[IMContext], Tuple[bool, str, int]] = ... - set_surrounding_with_selection: Callable[[IMContext, str, int, int, int], None] = ( - ... - ) + set_surrounding_with_selection: Callable[ + [IMContext, str, int, int, int], None + ] = ... get_surrounding_with_selection: Callable[ [IMContext], Tuple[bool, str, int, int] ] = ... @@ -15563,7 +15687,6 @@ class IMContextSimple(IMContext): class Props: input_hints: InputHints input_purpose: InputPurpose - props: Props = ... object: IMContext = ... priv: IMContextSimplePrivate = ... @@ -15617,7 +15740,6 @@ class IMMulticontext(IMContext): class Props: input_hints: InputHints input_purpose: InputPurpose - props: Props = ... object: IMContext = ... priv: IMMulticontextPrivate = ... @@ -15674,7 +15796,6 @@ class IconPaintable(GObject.Object, Gdk.Paintable, SymbolicPaintable): file: Optional[Gio.File] icon_name: Optional[str] is_symbolic: bool - props: Props = ... def __init__( self, file: Gio.File = ..., icon_name: str = ..., is_symbolic: bool = ... @@ -15716,7 +15837,6 @@ class IconTheme(GObject.Object): resource_path: Optional[list[str]] search_path: Optional[list[str]] theme_name: str - props: Props = ... def __init__( self, @@ -15914,7 +16034,6 @@ class IconView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Scro hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... def __init__( self, @@ -16190,7 +16309,6 @@ class Image(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -16377,7 +16495,6 @@ class InfoBar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -16558,7 +16675,6 @@ class Inscription(Widget, Accessible, Buildable, ConstraintTarget): width_request: int accessible_role: AccessibleRole markup: Optional[str] - props: Props = ... def __init__( self, @@ -16661,7 +16777,6 @@ class KeyvalTrigger(ShortcutTrigger): class Props: keyval: int modifiers: Gdk.ModifierType - props: Props = ... def __init__(self, keyval: int = ..., modifiers: Gdk.ModifierType = ...): ... def get_keyval(self) -> int: ... @@ -16822,7 +16937,6 @@ class Label(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -16951,7 +17065,6 @@ class LayoutChild(GObject.Object): class Props: child_widget: Widget layout_manager: LayoutManager - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -17151,7 +17264,6 @@ class LevelBar( width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -17239,6 +17351,7 @@ class LinkButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): use-underline -> gboolean: use-underline icon-name -> gchararray: icon-name child -> GtkWidget: child + can-shrink -> gboolean: can-shrink Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -17298,6 +17411,7 @@ class LinkButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): class Props: uri: str visited: bool + can_shrink: bool child: Optional[Widget] has_frame: bool icon_name: Optional[str] @@ -17340,12 +17454,12 @@ class LinkButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): accessible_role: AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, uri: str = ..., visited: bool = ..., + can_shrink: bool = ..., child: Optional[Widget] = ..., has_frame: bool = ..., icon_name: str = ..., @@ -17502,7 +17616,6 @@ class ListBase(Widget, Accessible, Buildable, ConstraintTarget, Orientable, Scro hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... def __init__( self, @@ -17667,7 +17780,6 @@ class ListBox(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -17731,6 +17843,7 @@ class ListBox(Widget, Accessible, Buildable, ConstraintTarget): def new(cls) -> ListBox: ... def prepend(self, child: Widget) -> None: ... def remove(self, child: Widget) -> None: ... + def remove_all(self) -> None: ... def select_all(self) -> None: ... def select_row(self, row: Optional[ListBoxRow] = None) -> None: ... def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... @@ -17866,7 +17979,6 @@ class ListBoxRow(Widget, Accessible, Actionable, Buildable, ConstraintTarget): accessible_role: AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... parent_instance: Widget = ... def __init__( @@ -17935,6 +18047,44 @@ class ListBoxRowClass(GObject.GPointer): activate: Callable[[ListBoxRow], None] = ... padding: list[None] = ... +class ListHeader(GObject.Object): + """ + :Constructors: + + :: + + ListHeader(**properties) + + Object GtkListHeader + + Properties from GtkListHeader: + child -> GtkWidget: child + end -> guint: end + item -> GObject: item + n-items -> guint: n-items + start -> guint: start + + Signals from GObject: + notify (GParam) + """ + + class Props: + child: Optional[Widget] + end: int + item: Optional[GObject.Object] + n_items: int + start: int + props: Props = ... + def __init__(self, child: Optional[Widget] = ...): ... + def get_child(self) -> Optional[Widget]: ... + def get_end(self) -> int: ... + def get_item(self) -> Optional[GObject.Object]: ... + def get_n_items(self) -> int: ... + def get_start(self) -> int: ... + def set_child(self, child: Optional[Widget] = None) -> None: ... + +class ListHeaderClass(GObject.GPointer): ... + class ListItem(GObject.Object): """ :Constructors: @@ -17946,8 +18096,11 @@ class ListItem(GObject.Object): Object GtkListItem Properties from GtkListItem: + accessible-description -> gchararray: accessible-description + accessible-label -> gchararray: accessible-label activatable -> gboolean: activatable child -> GtkWidget: child + focusable -> gboolean: focusable item -> GObject: item position -> guint: position selectable -> gboolean: selectable @@ -17958,28 +18111,39 @@ class ListItem(GObject.Object): """ class Props: + accessible_description: str + accessible_label: str activatable: bool child: Optional[Widget] + focusable: bool item: Optional[GObject.Object] position: int selectable: bool selected: bool - props: Props = ... def __init__( self, + accessible_description: str = ..., + accessible_label: str = ..., activatable: bool = ..., child: Optional[Widget] = ..., + focusable: bool = ..., selectable: bool = ..., ): ... + def get_accessible_description(self) -> str: ... + def get_accessible_label(self) -> str: ... def get_activatable(self) -> bool: ... def get_child(self) -> Optional[Widget]: ... + def get_focusable(self) -> bool: ... def get_item(self) -> Optional[GObject.Object]: ... def get_position(self) -> int: ... def get_selectable(self) -> bool: ... def get_selected(self) -> bool: ... + def set_accessible_description(self, description: str) -> None: ... + def set_accessible_label(self, label: str) -> None: ... def set_activatable(self, activatable: bool) -> None: ... def set_child(self, child: Optional[Widget] = None) -> None: ... + def set_focusable(self, focusable: bool) -> None: ... def set_selectable(self, selectable: bool) -> None: ... class ListItemClass(GObject.GPointer): ... @@ -18074,11 +18238,13 @@ class ListView( activate (guint) Properties from GtkListView: + enable-rubberband -> gboolean: enable-rubberband factory -> GtkListItemFactory: factory + header-factory -> GtkListItemFactory: header-factory model -> GtkSelectionModel: model show-separators -> gboolean: show-separators single-click-activate -> gboolean: single-click-activate - enable-rubberband -> gboolean: enable-rubberband + tab-behavior -> GtkListTabBehavior: tab-behavior Properties from GtkListBase: orientation -> GtkOrientation: orientation @@ -18141,9 +18307,11 @@ class ListView( class Props: enable_rubberband: bool factory: Optional[ListItemFactory] + header_factory: Optional[ListItemFactory] model: Optional[SelectionModel] show_separators: bool single_click_activate: bool + tab_behavior: ListTabBehavior orientation: Orientation can_focus: bool can_target: bool @@ -18184,15 +18352,16 @@ class ListView( hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... def __init__( self, enable_rubberband: bool = ..., factory: Optional[ListItemFactory] = ..., + header_factory: Optional[ListItemFactory] = ..., model: Optional[SelectionModel] = ..., show_separators: bool = ..., single_click_activate: bool = ..., + tab_behavior: ListTabBehavior = ..., orientation: Orientation = ..., can_focus: bool = ..., can_target: bool = ..., @@ -18231,20 +18400,27 @@ class ListView( ): ... def get_enable_rubberband(self) -> bool: ... def get_factory(self) -> Optional[ListItemFactory]: ... + def get_header_factory(self) -> Optional[ListItemFactory]: ... def get_model(self) -> Optional[SelectionModel]: ... def get_show_separators(self) -> bool: ... def get_single_click_activate(self) -> bool: ... + def get_tab_behavior(self) -> ListTabBehavior: ... @classmethod def new( cls, model: Optional[SelectionModel] = None, factory: Optional[ListItemFactory] = None, ) -> ListView: ... + def scroll_to( + self, pos: int, flags: ListScrollFlags, scroll: Optional[ScrollInfo] = None + ) -> None: ... def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... def set_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... + def set_header_factory(self, factory: Optional[ListItemFactory] = None) -> None: ... def set_model(self, model: Optional[SelectionModel] = None) -> None: ... def set_show_separators(self, show_separators: bool) -> None: ... def set_single_click_activate(self, single_click_activate: bool) -> None: ... + def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... class ListViewClass(GObject.GPointer): ... @@ -18277,6 +18453,7 @@ class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): use-underline -> gboolean: use-underline icon-name -> gchararray: icon-name child -> GtkWidget: child + can-shrink -> gboolean: can-shrink Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -18340,6 +18517,7 @@ class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): tooltip_lock: str tooltip_not_authorized: str tooltip_unlock: str + can_shrink: bool child: Optional[Widget] has_frame: bool icon_name: Optional[str] @@ -18382,7 +18560,6 @@ class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): accessible_role: AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, @@ -18392,6 +18569,7 @@ class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): tooltip_lock: str = ..., tooltip_not_authorized: str = ..., tooltip_unlock: str = ..., + can_shrink: bool = ..., child: Optional[Widget] = ..., has_frame: bool = ..., icon_name: str = ..., @@ -18435,7 +18613,7 @@ class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): def new(cls, permission: Optional[Gio.Permission] = None) -> LockButton: ... def set_permission(self, permission: Optional[Gio.Permission] = None) -> None: ... -class MapListModel(GObject.Object, Gio.ListModel): +class MapListModel(GObject.Object, Gio.ListModel, SectionModel): """ :Constructors: @@ -18455,6 +18633,9 @@ class MapListModel(GObject.Object, Gio.ListModel): Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GObject: notify (GParam) """ @@ -18464,7 +18645,6 @@ class MapListModel(GObject.Object, Gio.ListModel): item_type: Type model: Optional[Gio.ListModel] n_items: int - props: Props = ... def __init__(self, model: Gio.ListModel = ...): ... def get_model(self) -> Optional[Gio.ListModel]: ... @@ -18598,7 +18778,6 @@ class MediaControls(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -18712,7 +18891,6 @@ class MediaFile(MediaStream, Gdk.Paintable): seeking: bool timestamp: int volume: float - props: Props = ... parent_instance: MediaStream = ... def __init__( @@ -18809,7 +18987,6 @@ class MediaStream(GObject.Object, Gdk.Paintable): seeking: bool timestamp: int volume: float - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -18909,6 +19086,7 @@ class MenuButton(Widget, Accessible, Buildable, ConstraintTarget): primary -> gboolean: primary child -> GtkWidget: child active -> gboolean: active + can-shrink -> gboolean: can-shrink Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -18968,6 +19146,7 @@ class MenuButton(Widget, Accessible, Buildable, ConstraintTarget): class Props: active: bool always_show_arrow: bool + can_shrink: bool child: Optional[Widget] direction: ArrowType has_frame: bool @@ -19012,12 +19191,12 @@ class MenuButton(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, active: bool = ..., always_show_arrow: bool = ..., + can_shrink: bool = ..., child: Optional[Widget] = ..., direction: ArrowType = ..., has_frame: bool = ..., @@ -19060,6 +19239,7 @@ class MenuButton(Widget, Accessible, Buildable, ConstraintTarget): ): ... def get_active(self) -> bool: ... def get_always_show_arrow(self) -> bool: ... + def get_can_shrink(self) -> bool: ... def get_child(self) -> Optional[Widget]: ... def get_direction(self) -> ArrowType: ... def get_has_frame(self) -> bool: ... @@ -19075,6 +19255,7 @@ class MenuButton(Widget, Accessible, Buildable, ConstraintTarget): def popup(self) -> None: ... def set_active(self, active: bool) -> None: ... def set_always_show_arrow(self, always_show_arrow: bool) -> None: ... + def set_can_shrink(self, can_shrink: bool) -> None: ... def set_child(self, child: Optional[Widget] = None) -> None: ... def set_create_popup_func( self, func: Optional[Callable[..., None]] = None, *user_data: Any @@ -19143,6 +19324,7 @@ class MessageDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -19232,6 +19414,7 @@ class MessageDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -19272,7 +19455,6 @@ class MessageDialog( accessible_role: AccessibleRole buttons: ButtonsType startup_id: str - props: Props = ... parent_instance: Dialog = ... def __init__( @@ -19382,7 +19564,6 @@ class MnemonicTrigger(ShortcutTrigger): class Props: keyval: int - props: Props = ... def __init__(self, keyval: int = ...): ... def get_keyval(self) -> int: ... @@ -19452,7 +19633,6 @@ class MountOperation(Gio.MountOperation): password_save: Gio.PasswordSave pim: int username: Optional[str] - props: Props = ... parent_instance: Gio.MountOperation = ... priv: MountOperationPrivate = ... @@ -19522,14 +19702,13 @@ class MultiFilter(Filter, Gio.ListModel, Buildable): class Props: item_type: Type n_items: int - props: Props = ... def append(self, filter: Filter) -> None: ... def remove(self, position: int) -> None: ... class MultiFilterClass(GObject.GPointer): ... -class MultiSelection(GObject.Object, Gio.ListModel, SelectionModel): +class MultiSelection(GObject.Object, Gio.ListModel, SectionModel, SelectionModel): """ :Constructors: @@ -19548,6 +19727,9 @@ class MultiSelection(GObject.Object, Gio.ListModel, SelectionModel): Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GtkSelectionModel: selection-changed (guint, guint) @@ -19559,7 +19741,6 @@ class MultiSelection(GObject.Object, Gio.ListModel, SelectionModel): item_type: Type model: Optional[Gio.ListModel] n_items: int - props: Props = ... def __init__(self, model: Optional[Gio.ListModel] = ...): ... def get_model(self) -> Optional[Gio.ListModel]: ... @@ -19606,7 +19787,6 @@ class MultiSorter(Sorter, Gio.ListModel, Buildable): class Props: item_type: Type n_items: int - props: Props = ... def append(self, sorter: Sorter) -> None: ... @classmethod @@ -19644,7 +19824,6 @@ class NamedAction(ShortcutAction): class Props: action_name: str - props: Props = ... def __init__(self, action_name: str = ...): ... def get_action_name(self) -> str: ... @@ -19697,7 +19876,6 @@ class NativeDialog(GObject.Object): title: Optional[str] transient_for: Optional[Window] visible: bool - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -19760,7 +19938,7 @@ class NeverTrigger(ShortcutTrigger): class NeverTriggerClass(GObject.GPointer): ... -class NoSelection(GObject.Object, Gio.ListModel, SelectionModel): +class NoSelection(GObject.Object, Gio.ListModel, SectionModel, SelectionModel): """ :Constructors: @@ -19779,6 +19957,9 @@ class NoSelection(GObject.Object, Gio.ListModel, SelectionModel): Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GtkSelectionModel: selection-changed (guint, guint) @@ -19790,7 +19971,6 @@ class NoSelection(GObject.Object, Gio.ListModel, SelectionModel): item_type: Type model: Optional[Gio.ListModel] n_items: int - props: Props = ... def __init__(self, model: Optional[Gio.ListModel] = ...): ... def get_model(self) -> Optional[Gio.ListModel]: ... @@ -19941,7 +20121,6 @@ class Notebook(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -20091,7 +20270,6 @@ class NotebookPage(GObject.Object): tab_expand: bool tab_fill: bool tab_label: str - props: Props = ... def __init__( self, @@ -20152,7 +20330,6 @@ class NumericSorter(Sorter): class Props: expression: Optional[Expression] sort_order: SortType - props: Props = ... def __init__( self, expression: Optional[Expression] = ..., sort_order: SortType = ... @@ -20320,7 +20497,6 @@ class Overlay(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -20412,7 +20588,6 @@ class OverlayLayoutChild(LayoutChild): measure: bool child_widget: Widget layout_manager: LayoutManager - props: Props = ... def __init__( self, @@ -20495,7 +20670,6 @@ class PadController(EventController): propagation_limit: PropagationLimit propagation_phase: PropagationPhase widget: Widget - props: Props = ... def __init__( self, @@ -20631,6 +20805,7 @@ class PageSetupUnixDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -20714,6 +20889,7 @@ class PageSetupUnixDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -20753,7 +20929,6 @@ class PageSetupUnixDialog( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... def __init__( self, @@ -20960,7 +21135,6 @@ class Paned( width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -21217,7 +21391,6 @@ class PasswordEntry(Widget, Accessible, Buildable, ConstraintTarget, Editable): text: str width_chars: int xalign: float - props: Props = ... def __init__( self, @@ -21297,7 +21470,6 @@ class PasswordEntryBuffer(EntryBuffer): length: int max_length: int text: str - props: Props = ... def __init__(self, max_length: int = ..., text: str = ...): ... @classmethod @@ -21437,7 +21609,6 @@ class Picture(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -21643,7 +21814,6 @@ class Popover(Widget, Accessible, Buildable, ConstraintTarget, Native, ShortcutM visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... parent: Widget = ... def __init__( @@ -21859,7 +22029,6 @@ class PopoverMenu( visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -22021,7 +22190,6 @@ class PopoverMenuBar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -22127,7 +22295,6 @@ class PrintJob(GObject.Object): settings: PrintSettings title: str track_print_status: bool - props: Props = ... def __init__( self, @@ -22247,7 +22414,6 @@ class PrintOperation(GObject.Object, PrintOperationPreview): track_print_status: bool unit: Unit use_full_page: bool - props: Props = ... parent_instance: GObject.Object = ... priv: PrintOperationPrivate = ... @@ -22375,9 +22541,9 @@ class PrintOperationPreviewIface(GObject.GPointer): g_iface: GObject.TypeInterface = ... ready: Callable[[PrintOperationPreview, PrintContext], None] = ... - got_page_size: Callable[[PrintOperationPreview, PrintContext, PageSetup], None] = ( - ... - ) + got_page_size: Callable[ + [PrintOperationPreview, PrintContext, PageSetup], None + ] = ... render_page: Callable[[PrintOperationPreview, int], None] = ... is_selected: Callable[[PrintOperationPreview, int], bool] = ... end_preview: Callable[[PrintOperationPreview], None] = ... @@ -22554,6 +22720,7 @@ class PrintUnixDialog( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -22645,6 +22812,7 @@ class PrintUnixDialog( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -22684,7 +22852,6 @@ class PrintUnixDialog( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... def __init__( self, @@ -22814,7 +22981,6 @@ class Printer(GObject.Object): name: str paused: bool state_message: str - props: Props = ... def __init__( self, @@ -22969,7 +23135,6 @@ class ProgressBar( width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -23179,7 +23344,6 @@ class Range( width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... parent_instance: Widget = ... def __init__( @@ -23339,7 +23503,6 @@ class RecentManager(GObject.Object): class Props: filename: str size: int - props: Props = ... parent_instance: GObject.Object = ... priv: RecentManagerPrivate = ... @@ -23520,7 +23683,6 @@ class Revealer(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -23721,7 +23883,6 @@ class Scale( width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... parent_instance: Range = ... def __init__( @@ -23915,7 +24076,6 @@ class ScaleButton( width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... parent_instance: Widget = ... def __init__( @@ -23996,6 +24156,24 @@ class ScaleClass(GObject.GPointer): get_layout_offsets: Callable[[Scale], Tuple[int, int]] = ... padding: list[None] = ... +class ScrollInfo(GObject.GBoxed): + """ + :Constructors: + + :: + + new() -> Gtk.ScrollInfo + """ + + def get_enable_horizontal(self) -> bool: ... + def get_enable_vertical(self) -> bool: ... + @classmethod + def new(cls) -> ScrollInfo: ... + def ref(self) -> ScrollInfo: ... + def set_enable_horizontal(self, horizontal: bool) -> None: ... + def set_enable_vertical(self, vertical: bool) -> None: ... + def unref(self) -> None: ... + class Scrollable(GObject.GInterface): """ Interface GtkScrollable @@ -24133,7 +24311,6 @@ class Scrollbar(Widget, Accessible, Buildable, ConstraintTarget, Orientable): width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -24317,7 +24494,6 @@ class ScrolledWindow(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -24515,7 +24691,6 @@ class SearchBar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -24697,7 +24872,6 @@ class SearchEntry(Widget, Accessible, Buildable, ConstraintTarget, Editable): text: str width_chars: int xalign: float - props: Props = ... def __init__( self, @@ -24750,6 +24924,29 @@ class SearchEntry(Widget, Accessible, Buildable, ConstraintTarget, Editable): def set_placeholder_text(self, text: Optional[str] = None) -> None: ... def set_search_delay(self, delay: int) -> None: ... +class SectionModel(GObject.GInterface): + """ + Interface GtkSectionModel + + Signals from GObject: + notify (GParam) + """ + + def get_section(self, position: int) -> Tuple[int, int]: ... + def sections_changed(self, position: int, n_items: int) -> None: ... + +class SectionModelInterface(GObject.GPointer): + """ + :Constructors: + + :: + + SectionModelInterface() + """ + + g_iface: GObject.TypeInterface = ... + get_section: Callable[[SectionModel, int], Tuple[int, int]] = ... + class SelectionFilterModel(GObject.Object, Gio.ListModel): """ :Constructors: @@ -24777,7 +24974,6 @@ class SelectionFilterModel(GObject.Object, Gio.ListModel): item_type: Type model: Optional[SelectionModel] n_items: int - props: Props = ... def __init__(self, model: Optional[SelectionModel] = ...): ... def get_model(self) -> Optional[SelectionModel]: ... @@ -24941,7 +25137,6 @@ class Separator(Widget, Accessible, Buildable, ConstraintTarget, Orientable): width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -25100,7 +25295,6 @@ class Settings(GObject.Object, StyleProvider): gtk_xft_hinting: int gtk_xft_hintstyle: str gtk_xft_rgba: str - props: Props = ... def __init__( self, @@ -25185,7 +25379,6 @@ class Shortcut(GObject.Object): action: Optional[ShortcutAction] arguments: Optional[GLib.Variant] trigger: Optional[ShortcutTrigger] - props: Props = ... def __init__( self, @@ -25287,7 +25480,6 @@ class ShortcutController(EventController, Gio.ListModel, Buildable): propagation_phase: PropagationPhase widget: Widget model: Gio.ListModel - props: Props = ... def __init__( self, @@ -25419,7 +25611,6 @@ class ShortcutLabel(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -25527,6 +25718,7 @@ class ShortcutsGroup(Box, Accessible, Buildable, ConstraintTarget, Orientable): Properties from GtkBox: spacing -> gint: spacing homogeneous -> gboolean: homogeneous + baseline-child -> gint: baseline-child baseline-position -> GtkBaselinePosition: baseline-position Signals from GtkWidget: @@ -25588,6 +25780,7 @@ class ShortcutsGroup(Box, Accessible, Buildable, ConstraintTarget, Orientable): height: int title: str view: str + baseline_child: int baseline_position: BaselinePosition homogeneous: bool spacing: int @@ -25629,7 +25822,6 @@ class ShortcutsGroup(Box, Accessible, Buildable, ConstraintTarget, Orientable): orientation: Orientation accel_size_group: SizeGroup title_size_group: SizeGroup - props: Props = ... def __init__( self, @@ -25637,6 +25829,7 @@ class ShortcutsGroup(Box, Accessible, Buildable, ConstraintTarget, Orientable): title: str = ..., title_size_group: SizeGroup = ..., view: str = ..., + baseline_child: int = ..., baseline_position: BaselinePosition = ..., homogeneous: bool = ..., spacing: int = ..., @@ -25697,6 +25890,7 @@ class ShortcutsSection(Box, Accessible, Buildable, ConstraintTarget, Orientable) Properties from GtkBox: spacing -> gint: spacing homogeneous -> gboolean: homogeneous + baseline-child -> gint: baseline-child baseline-position -> GtkBaselinePosition: baseline-position Signals from GtkWidget: @@ -25759,6 +25953,7 @@ class ShortcutsSection(Box, Accessible, Buildable, ConstraintTarget, Orientable) section_name: str title: str view_name: str + baseline_child: int baseline_position: BaselinePosition homogeneous: bool spacing: int @@ -25798,7 +25993,6 @@ class ShortcutsSection(Box, Accessible, Buildable, ConstraintTarget, Orientable) width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -25806,6 +26000,7 @@ class ShortcutsSection(Box, Accessible, Buildable, ConstraintTarget, Orientable) section_name: str = ..., title: str = ..., view_name: str = ..., + baseline_child: int = ..., baseline_position: BaselinePosition = ..., homogeneous: bool = ..., spacing: int = ..., @@ -25969,7 +26164,6 @@ class ShortcutsShortcut(Widget, Accessible, Buildable, ConstraintTarget): accessible_role: AccessibleRole accel_size_group: SizeGroup title_size_group: SizeGroup - props: Props = ... def __init__( self, @@ -26065,6 +26259,7 @@ class ShortcutsWindow( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -26149,6 +26344,7 @@ class ShortcutsWindow( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -26188,7 +26384,6 @@ class ShortcutsWindow( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... def __init__( self, @@ -26269,7 +26464,6 @@ class SignalAction(ShortcutAction): class Props: signal_name: str - props: Props = ... def __init__(self, signal_name: str = ...): ... def get_signal_name(self) -> str: ... @@ -26304,7 +26498,7 @@ class SignalListItemFactory(ListItemFactory): class SignalListItemFactoryClass(GObject.GPointer): ... -class SingleSelection(GObject.Object, Gio.ListModel, SelectionModel): +class SingleSelection(GObject.Object, Gio.ListModel, SectionModel, SelectionModel): """ :Constructors: @@ -26327,6 +26521,9 @@ class SingleSelection(GObject.Object, Gio.ListModel, SelectionModel): Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GtkSelectionModel: selection-changed (guint, guint) @@ -26342,7 +26539,6 @@ class SingleSelection(GObject.Object, Gio.ListModel, SelectionModel): n_items: int selected: int selected_item: Optional[GObject.Object] - props: Props = ... def __init__( self, @@ -26394,7 +26590,6 @@ class SizeGroup(GObject.Object, Buildable): class Props: mode: SizeGroupMode - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, mode: SizeGroupMode = ...): ... @@ -26406,7 +26601,7 @@ class SizeGroup(GObject.Object, Buildable): def remove_widget(self, widget: Widget) -> None: ... def set_mode(self, mode: SizeGroupMode) -> None: ... -class SliceListModel(GObject.Object, Gio.ListModel): +class SliceListModel(GObject.Object, Gio.ListModel, SectionModel): """ :Constructors: @@ -26427,6 +26622,9 @@ class SliceListModel(GObject.Object, Gio.ListModel): Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GObject: notify (GParam) """ @@ -26437,7 +26635,6 @@ class SliceListModel(GObject.Object, Gio.ListModel): n_items: int offset: int size: int - props: Props = ... def __init__( self, model: Optional[Gio.ListModel] = ..., offset: int = ..., size: int = ... @@ -26612,7 +26809,7 @@ class Snapshot(Gdk.Snapshot): class SnapshotClass(GObject.GPointer): ... -class SortListModel(GObject.Object, Gio.ListModel): +class SortListModel(GObject.Object, Gio.ListModel, SectionModel): """ :Constructors: @@ -26629,11 +26826,15 @@ class SortListModel(GObject.Object, Gio.ListModel): model -> GListModel: model n-items -> guint: n-items pending -> guint: pending + section-sorter -> GtkSorter: section-sorter sorter -> GtkSorter: sorter Signals from GListModel: items-changed (guint, guint, guint) + Signals from GtkSectionModel: + sections-changed (guint, guint) + Signals from GObject: notify (GParam) """ @@ -26644,18 +26845,20 @@ class SortListModel(GObject.Object, Gio.ListModel): model: Optional[Gio.ListModel] n_items: int pending: int + section_sorter: Optional[Sorter] sorter: Optional[Sorter] - props: Props = ... def __init__( self, incremental: bool = ..., model: Optional[Gio.ListModel] = ..., + section_sorter: Optional[Sorter] = ..., sorter: Optional[Sorter] = ..., ): ... def get_incremental(self) -> bool: ... def get_model(self) -> Optional[Gio.ListModel]: ... def get_pending(self) -> int: ... + def get_section_sorter(self) -> Optional[Sorter]: ... def get_sorter(self) -> Optional[Sorter]: ... @classmethod def new( @@ -26663,6 +26866,7 @@ class SortListModel(GObject.Object, Gio.ListModel): ) -> SortListModel: ... def set_incremental(self, incremental: bool) -> None: ... def set_model(self, model: Optional[Gio.ListModel] = None) -> None: ... + def set_section_sorter(self, sorter: Optional[Sorter] = None) -> None: ... def set_sorter(self, sorter: Optional[Sorter] = None) -> None: ... class SortListModelClass(GObject.GPointer): @@ -26883,7 +27087,6 @@ class SpinButton( width_chars: int xalign: float orientation: Orientation - props: Props = ... def __init__( self, @@ -27073,7 +27276,6 @@ class Spinner(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -27238,7 +27440,6 @@ class Stack(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -27342,7 +27543,6 @@ class StackPage(GObject.Object, Accessible): use_underline: bool visible: bool accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -27475,7 +27675,6 @@ class StackSidebar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -27623,7 +27822,6 @@ class StackSwitcher(Widget, Accessible, Buildable, ConstraintTarget, Orientable) width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... def __init__( self, @@ -27771,7 +27969,6 @@ class Statusbar(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -27843,7 +28040,6 @@ class StringFilter(Filter): ignore_case: bool match_mode: StringFilterMatchMode search: Optional[str] - props: Props = ... def __init__( self, @@ -27897,7 +28093,6 @@ class StringList(GObject.Object, Gio.ListModel, Buildable): class Props: strings: list[str] - props: Props = ... def __init__(self, strings: Sequence[str] = ...): ... def append(self, string: str) -> None: ... @@ -27941,7 +28136,6 @@ class StringObject(GObject.Object): class Props: string: str - props: Props = ... def get_string(self) -> str: ... @classmethod @@ -27985,7 +28179,6 @@ class StringSorter(Sorter): collation: Collation expression: Optional[Expression] ignore_case: bool - props: Props = ... def __init__( self, @@ -28032,7 +28225,6 @@ class StyleContext(GObject.Object): class Props: display: Gdk.Display - props: Props = ... parent_object: GObject.Object = ... def __init__(self, display: Gdk.Display = ...): ... @@ -28197,7 +28389,6 @@ class Switch(Widget, Accessible, Actionable, Buildable, ConstraintTarget): accessible_role: AccessibleRole action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, @@ -28459,7 +28650,6 @@ class Text(Widget, Accessible, Buildable, ConstraintTarget, Editable): text: str width_chars: int xalign: float - props: Props = ... parent_instance: Widget = ... def __init__( @@ -28608,7 +28798,6 @@ class TextBuffer(GObject.Object): has_selection: bool tag_table: TextTagTable text: str - props: Props = ... parent_instance: GObject.Object = ... priv: TextBufferPrivate = ... @@ -28961,7 +29150,6 @@ class TextMark(GObject.Object): class Props: left_gravity: bool name: Optional[str] - props: Props = ... parent_instance: GObject.Object = ... segment: None = ... @@ -29183,7 +29371,6 @@ class TextTag(GObject.Object): background: str foreground: str paragraph_background: str - props: Props = ... parent_instance: GObject.Object = ... priv: TextTagPrivate = ... @@ -29495,7 +29682,6 @@ class TextView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... parent_instance: Widget = ... priv: TextViewPrivate = ... @@ -29734,6 +29920,7 @@ class ToggleButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): use-underline -> gboolean: use-underline icon-name -> gchararray: icon-name child -> GtkWidget: child + can-shrink -> gboolean: can-shrink Signals from GtkWidget: direction-changed (GtkTextDirection) @@ -29792,6 +29979,7 @@ class ToggleButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): class Props: active: bool + can_shrink: bool child: Optional[Widget] has_frame: bool icon_name: Optional[str] @@ -29835,13 +30023,13 @@ class ToggleButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): action_name: Optional[str] action_target: GLib.Variant group: Optional[ToggleButton] - props: Props = ... button: Button = ... def __init__( self, active: bool = ..., group: Optional[ToggleButton] = ..., + can_shrink: bool = ..., child: Optional[Widget] = ..., has_frame: bool = ..., icon_name: str = ..., @@ -30089,7 +30277,6 @@ class TreeExpander(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -30201,7 +30388,6 @@ class TreeListModel(GObject.Object, Gio.ListModel): model: Gio.ListModel n_items: int passthrough: bool - props: Props = ... def __init__(self, autoexpand: bool = ..., passthrough: bool = ...): ... def get_autoexpand(self) -> bool: ... @@ -30258,7 +30444,6 @@ class TreeListRow(GObject.Object): expandable: bool expanded: bool item: Optional[GObject.Object] - props: Props = ... def __init__(self, expanded: bool = ...): ... def get_child_row(self, position: int) -> Optional[TreeListRow]: ... @@ -30305,7 +30490,6 @@ class TreeListRowSorter(Sorter): class Props: sorter: Optional[Sorter] - props: Props = ... def __init__(self, sorter: Optional[Sorter] = ...): ... def get_sorter(self) -> Optional[Sorter]: ... @@ -30397,7 +30581,6 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): class Props: child_model: TreeModel virtual_root: TreePath - props: Props = ... parent: GObject.Object = ... priv: TreeModelFilterPrivate = ... @@ -30465,9 +30648,9 @@ class TreeModelIface(GObject.GPointer): get_value: Callable[[TreeModel, TreeIter, int], Any] = ... iter_next: Callable[[TreeModel, TreeIter], bool] = ... iter_previous: Callable[[TreeModel, TreeIter], bool] = ... - iter_children: Callable[[TreeModel, Optional[TreeIter]], Tuple[bool, TreeIter]] = ( - ... - ) + iter_children: Callable[ + [TreeModel, Optional[TreeIter]], Tuple[bool, TreeIter] + ] = ... iter_has_child: Callable[[TreeModel, TreeIter], bool] = ... iter_n_children: Callable[[TreeModel, Optional[TreeIter]], int] = ... iter_nth_child: Callable[ @@ -30520,7 +30703,6 @@ class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable): class Props: model: TreeModel - props: Props = ... parent: GObject.Object = ... priv: TreeModelSortPrivate = ... @@ -30641,7 +30823,6 @@ class TreeSelection(GObject.Object): class Props: mode: SelectionMode - props: Props = ... def __init__(self, mode: SelectionMode = ...): ... def count_selected_rows(self) -> int: ... @@ -30934,7 +31115,6 @@ class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... parent_instance: Widget = ... def __init__( @@ -31255,7 +31435,6 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): widget: Optional[Widget] width: int x_offset: int - props: Props = ... def __init__( self, @@ -31364,7 +31543,6 @@ class UriLauncher(GObject.Object): class Props: uri: Optional[str] - props: Props = ... def __init__(self, uri: Optional[str] = ...): ... def get_uri(self) -> Optional[str]: ... @@ -31507,7 +31685,6 @@ class Video(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -31690,7 +31867,6 @@ class Viewport(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): hscroll_policy: ScrollablePolicy vadjustment: Optional[Adjustment] vscroll_policy: ScrollablePolicy - props: Props = ... def __init__( self, @@ -31739,6 +31915,9 @@ class Viewport(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): hadjustment: Optional[Adjustment] = None, vadjustment: Optional[Adjustment] = None, ) -> Viewport: ... + def scroll_to( + self, descendant: Widget, scroll: Optional[ScrollInfo] = None + ) -> None: ... def set_child(self, child: Optional[Widget] = None) -> None: ... def set_scroll_to_focus(self, scroll_to_focus: bool) -> None: ... @@ -31866,7 +32045,6 @@ class VolumeButton( width_request: int accessible_role: AccessibleRole orientation: Orientation - props: Props = ... parent: ScaleButton = ... def __init__( @@ -32011,7 +32189,6 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... parent_instance: GObject.InitiallyUnowned = ... priv: WidgetPrivate = ... @@ -32124,6 +32301,7 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def get_allocated_width(self) -> int: ... def get_allocation(self) -> Gdk.Rectangle: ... def get_ancestor(self, widget_type: Type) -> Optional[Widget]: ... + def get_baseline(self) -> int: ... def get_can_focus(self) -> bool: ... def get_can_target(self) -> bool: ... def get_child_visible(self) -> bool: ... @@ -32388,7 +32566,6 @@ class WidgetPaintable(GObject.Object, Gdk.Paintable): class Props: widget: Optional[Widget] - props: Props = ... def __init__(self, widget: Optional[Widget] = ...): ... def get_widget(self) -> Optional[Widget]: ... @@ -32449,6 +32626,7 @@ class Window( titlebar -> GtkWidget: titlebar handle-menubar-accel -> gboolean: handle-menubar-accel is-active -> gboolean: is-active + suspended -> gboolean: suspended startup-id -> gchararray: startup-id mnemonics-visible -> gboolean: mnemonics-visible focus-visible -> gboolean: focus-visible @@ -32531,6 +32709,7 @@ class Window( mnemonics_visible: bool modal: bool resizable: bool + suspended: bool title: Optional[str] titlebar: Optional[Widget] transient_for: Optional[Window] @@ -32570,7 +32749,6 @@ class Window( width_request: int accessible_role: AccessibleRole startup_id: str - props: Props = ... parent_instance: Widget = ... def __init__( @@ -32665,6 +32843,7 @@ class Window( def is_active(self) -> bool: ... def is_fullscreen(self) -> bool: ... def is_maximized(self) -> bool: ... + def is_suspended(self) -> bool: ... @staticmethod def list_toplevels() -> list[Widget]: ... def maximize(self) -> None: ... @@ -32830,7 +33009,6 @@ class WindowControls(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -33032,7 +33210,6 @@ class WindowHandle(Widget, Accessible, Buildable, ConstraintTarget): visible: bool width_request: int accessible_role: AccessibleRole - props: Props = ... def __init__( self, @@ -33121,7 +33298,6 @@ class DebugFlags(GObject.GFlags): SIZE_REQUEST = 256 SNAPSHOT = 16384 TEXT = 1 - TOUCHSCREEN = 2048 TREE = 2 class DialogFlags(GObject.GFlags): @@ -33164,6 +33340,11 @@ class InputHints(GObject.GFlags): VERTICAL_WRITING = 256 WORD_COMPLETION = 4 +class ListScrollFlags(GObject.GFlags): + FOCUS = 1 + NONE = 0 + SELECT = 2 + class PickFlags(GObject.GFlags): DEFAULT = 0 INSENSITIVE = 1 @@ -33285,6 +33466,7 @@ class AccessibleRelation(GObject.GEnum): class AccessibleRole(GObject.GEnum): ALERT = 0 ALERT_DIALOG = 1 + APPLICATION = 79 BANNER = 2 BUTTON = 3 CAPTION = 4 @@ -33378,6 +33560,7 @@ class AccessibleState(GObject.GEnum): INVALID = 5 PRESSED = 6 SELECTED = 7 + VISITED = 8 @staticmethod def init_value(state: AccessibleState, value: Any) -> None: ... @@ -33388,6 +33571,8 @@ class AccessibleTristate(GObject.GEnum): class Align(GObject.GEnum): BASELINE = 4 + BASELINE_CENTER = 5 + BASELINE_FILL = 4 CENTER = 3 END = 2 FILL = 0 @@ -33673,6 +33858,11 @@ class License(GObject.GEnum): MPL_2_0 = 17 UNKNOWN = 0 +class ListTabBehavior(GObject.GEnum): + ALL = 0 + CELL = 2 + ITEM = 1 + class MessageType(GObject.GEnum): ERROR = 3 INFO = 0 @@ -33715,8 +33905,6 @@ class Ordering(GObject.GEnum): EQUAL = 0 LARGER = 1 SMALLER = -1 - @staticmethod - def from_cmpfunc(cmpfunc_result: int) -> Ordering: ... class Orientation(GObject.GEnum): HORIZONTAL = 0 diff --git a/src/gi-stubs/repository/_GtkSource4.pyi b/src/gi-stubs/repository/_GtkSource4.pyi index a5f06336..39c2f7c0 100644 --- a/src/gi-stubs/repository/_GtkSource4.pyi +++ b/src/gi-stubs/repository/_GtkSource4.pyi @@ -7,7 +7,6 @@ from typing import Tuple from typing import Type from typing import TypeVar -import cairo from gi.repository import Atk from gi.repository import Gdk from gi.repository import GdkPixbuf @@ -17,8 +16,7 @@ from gi.repository import GObject from gi.repository import Gtk from gi.repository import Pango -_SomeSurface = TypeVar("_SomeSurface", bound=cairo.Surface) - +_lock = ... # FIXME Constant _namespace: str = "GtkSource" _version: str = "4" @@ -36,23 +34,93 @@ def utils_escape_search_text(text: str) -> str: ... def utils_unescape_search_text(text: str) -> str: ... class Buffer(Gtk.TextBuffer): + """ + :Constructors: + + :: + + Buffer(**properties) + new(table:Gtk.TextTagTable=None) -> GtkSource.Buffer + new_with_language(language:GtkSource.Language) -> GtkSource.Buffer + + Object GtkSourceBuffer + + Signals from GtkSourceBuffer: + highlight-updated (GtkTextIter, GtkTextIter) + source-mark-updated (GtkTextMark) + undo () + redo () + bracket-matched (GtkTextIter, GtkSourceBracketMatchType) + + Properties from GtkSourceBuffer: + can-undo -> gboolean: Can undo + Whether Undo operation is possible + can-redo -> gboolean: Can redo + Whether Redo operation is possible + highlight-syntax -> gboolean: Highlight Syntax + Whether to highlight syntax in the buffer + highlight-matching-brackets -> gboolean: Highlight Matching Brackets + Whether to highlight matching brackets + max-undo-levels -> gint: Maximum Undo Levels + Number of undo levels for the buffer + language -> GtkSourceLanguage: Language + Language object to get highlighting patterns from + style-scheme -> GtkSourceStyleScheme: Style scheme + Style scheme + undo-manager -> GtkSourceUndoManager: Undo manager + The buffer undo manager + implicit-trailing-newline -> gboolean: Implicit trailing newline + + + Signals from GtkTextBuffer: + changed () + insert-text (GtkTextIter, gchararray, gint) + insert-pixbuf (GtkTextIter, GdkPixbuf) + insert-child-anchor (GtkTextIter, GtkTextChildAnchor) + delete-range (GtkTextIter, GtkTextIter) + modified-changed () + mark-set (GtkTextIter, GtkTextMark) + mark-deleted (GtkTextMark) + apply-tag (GtkTextTag, GtkTextIter, GtkTextIter) + remove-tag (GtkTextTag, GtkTextIter, GtkTextIter) + begin-user-action () + end-user-action () + paste-done (GtkClipboard) + + Properties from GtkTextBuffer: + tag-table -> GtkTextTagTable: Tag Table + Text Tag Table + text -> gchararray: Text + Current text of the buffer + has-selection -> gboolean: Has selection + Whether the buffer has some text currently selected + cursor-position -> gint: Cursor position + The position of the insert mark (as offset from the beginning of the buffer) + copy-target-list -> GtkTargetList: Copy target list + The list of targets this buffer supports for clipboard copying and DND source + paste-target-list -> GtkTargetList: Paste target list + The list of targets this buffer supports for clipboard pasting and DND destination + + Signals from GObject: + notify (GParam) + """ + class Props: can_redo: bool can_undo: bool highlight_matching_brackets: bool highlight_syntax: bool implicit_trailing_newline: bool - language: Language + language: Optional[Language] max_undo_levels: int - style_scheme: StyleScheme - undo_manager: UndoManager + style_scheme: Optional[StyleScheme] + undo_manager: Optional[UndoManager] copy_target_list: Gtk.TargetList cursor_position: int has_selection: bool paste_target_list: Gtk.TargetList tag_table: Gtk.TextTagTable text: str - props: Props = ... parent_instance: Gtk.TextBuffer = ... priv: BufferPrivate = ... @@ -61,10 +129,10 @@ class Buffer(Gtk.TextBuffer): highlight_matching_brackets: bool = ..., highlight_syntax: bool = ..., implicit_trailing_newline: bool = ..., - language: Language = ..., + language: Optional[Language] = ..., max_undo_levels: int = ..., - style_scheme: StyleScheme = ..., - undo_manager: UndoManager = ..., + style_scheme: Optional[StyleScheme] = ..., + undo_manager: Optional[UndoManager] = ..., tag_table: Gtk.TextTagTable = ..., text: str = ..., ): ... @@ -137,6 +205,14 @@ class Buffer(Gtk.TextBuffer): def undo(self) -> None: ... class BufferClass(GObject.GPointer): + """ + :Constructors: + + :: + + BufferClass() + """ + parent_class: Gtk.TextBufferClass = ... undo: Callable[[Buffer], None] = ... redo: Callable[[Buffer], None] = ... @@ -146,6 +222,47 @@ class BufferClass(GObject.GPointer): class BufferPrivate(GObject.GPointer): ... class Completion(GObject.Object, Gtk.Buildable): + """ + :Constructors: + + :: + + Completion(**properties) + + Object GtkSourceCompletion + + Signals from GtkSourceCompletion: + show () + hide () + populate-context (GtkSourceCompletionContext) + move-cursor (GtkScrollStep, gint) + move-page (GtkScrollStep, gint) + activate-proposal () + + Properties from GtkSourceCompletion: + view -> GtkSourceView: View + The GtkSourceView bound to the completion + remember-info-visibility -> gboolean: Remember Info Visibility + Remember the last info window visibility state + select-on-show -> gboolean: Select on Show + Select first proposal when completion is shown + show-headers -> gboolean: Show Headers + Show provider headers when proposals from multiple providers are available + show-icons -> gboolean: Show Icons + Show provider and proposal icons in the completion popup + accelerators -> guint: Accelerators + Number of proposal accelerators to show + auto-complete-delay -> guint: Auto Complete Delay + Completion popup delay for interactive completion + provider-page-size -> guint: Provider Page Size + Provider scrolling page size + proposal-page-size -> guint: Proposal Page Size + Proposal scrolling page size + + Signals from GObject: + notify (GParam) + """ + class Props: accelerators: int auto_complete_delay: int @@ -155,8 +272,7 @@ class Completion(GObject.Object, Gtk.Buildable): select_on_show: bool show_headers: bool show_icons: bool - view: View - + view: Optional[View] props: Props = ... parent_instance: GObject.Object = ... priv: CompletionPrivate = ... @@ -197,6 +313,14 @@ class Completion(GObject.Object, Gtk.Buildable): def unblock_interactive(self) -> None: ... class CompletionClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionClass() + """ + parent_class: GObject.ObjectClass = ... proposal_activated: Callable[ [Completion, CompletionProvider, CompletionProposal], bool @@ -210,11 +334,34 @@ class CompletionClass(GObject.GPointer): padding: list[None] = ... class CompletionContext(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + CompletionContext(**properties) + + Object GtkSourceCompletionContext + + Signals from GtkSourceCompletionContext: + cancelled () + + Properties from GtkSourceCompletionContext: + completion -> GtkSourceCompletion: Completion + The completion object to which the context belongs + iter -> GtkTextIter: Iterator + The GtkTextIter at which the completion was invoked + activation -> GtkSourceCompletionActivation: Activation + The type of activation + + Signals from GObject: + notify (GParam) + """ + class Props: activation: CompletionActivation completion: Completion iter: Gtk.TextIter - props: Props = ... parent: GObject.InitiallyUnowned = ... priv: CompletionContextPrivate = ... @@ -235,6 +382,14 @@ class CompletionContext(GObject.InitiallyUnowned): def get_iter(self) -> Tuple[bool, Gtk.TextIter]: ... class CompletionContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionContextClass() + """ + parent_class: GObject.InitiallyUnownedClass = ... cancelled: Callable[[CompletionContext], None] = ... padding: list[None] = ... @@ -242,10 +397,264 @@ class CompletionContextClass(GObject.GPointer): class CompletionContextPrivate(GObject.GPointer): ... class CompletionInfo(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): + """ + :Constructors: + + :: + + CompletionInfo(**properties) + new() -> GtkSource.CompletionInfo + + Object GtkSourceCompletionInfo + + Signals from GtkWindow: + keys-changed () + set-focus (GtkWidget) + activate-focus () + activate-default () + enable-debugging (gboolean) -> gboolean + + Properties from GtkWindow: + type -> GtkWindowType: Window Type + The type of the window + title -> gchararray: Window Title + The title of the window + role -> gchararray: Window Role + Unique identifier for the window to be used when restoring a session + resizable -> gboolean: Resizable + If TRUE, users can resize the window + modal -> gboolean: Modal + If TRUE, the window is modal (other windows are not usable while this one is up) + window-position -> GtkWindowPosition: Window Position + The initial position of the window + default-width -> gint: Default Width + The default width of the window, used when initially showing the window + default-height -> gint: Default Height + The default height of the window, used when initially showing the window + destroy-with-parent -> gboolean: Destroy with Parent + If this window should be destroyed when the parent is destroyed + hide-titlebar-when-maximized -> gboolean: Hide the titlebar during maximisation + If this window's titlebar should be hidden when the window is maximised + icon -> GdkPixbuf: Icon + Icon for this window + icon-name -> gchararray: Icon Name + Name of the themed icon for this window + screen -> GdkScreen: Screen + The screen where this window will be displayed + type-hint -> GdkWindowTypeHint: Type hint + Hint to help the desktop environment understand what kind of window this is and how to treat it. + skip-taskbar-hint -> gboolean: Skip taskbar + TRUE if the window should not be in the task bar. + skip-pager-hint -> gboolean: Skip pager + TRUE if the window should not be in the pager. + urgency-hint -> gboolean: Urgent + TRUE if the window should be brought to the user's attention. + accept-focus -> gboolean: Accept focus + TRUE if the window should receive the input focus. + focus-on-map -> gboolean: Focus on map + TRUE if the window should receive the input focus when mapped. + decorated -> gboolean: Decorated + Whether the window should be decorated by the window manager + deletable -> gboolean: Deletable + Whether the window frame should have a close button + gravity -> GdkGravity: Gravity + The window gravity of the window + transient-for -> GtkWindow: Transient for Window + The transient parent of the dialogue + attached-to -> GtkWidget: Attached to Widget + The widget where the window is attached + has-resize-grip -> gboolean: Resize grip + Specifies whether the window should have a resize grip + resize-grip-visible -> gboolean: Resize grip is visible + Specifies whether the window's resize grip is visible. + application -> GtkApplication: GtkApplication + The GtkApplication for the window + is-active -> gboolean: Is Active + Whether the toplevel is the current active window + has-toplevel-focus -> gboolean: Focus in Toplevel + Whether the input focus is within this GtkWindow + startup-id -> gchararray: Startup ID + Unique startup identifier for the window used by startup-notification + mnemonics-visible -> gboolean: Mnemonics Visible + Whether mnemonics are currently visible in this window + focus-visible -> gboolean: Focus Visible + Whether focus rectangles are currently visible in this window + is-maximized -> gboolean: Is maximised + Whether the window is maximised + + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + class Props: accept_focus: bool - application: Gtk.Application - attached_to: Gtk.Widget + application: Optional[Gtk.Application] + attached_to: Optional[Gtk.Widget] decorated: bool default_height: int default_width: int @@ -257,27 +666,25 @@ class CompletionInfo(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): has_resize_grip: bool has_toplevel_focus: bool hide_titlebar_when_maximized: bool - icon: GdkPixbuf.Pixbuf - icon_name: str + icon: Optional[GdkPixbuf.Pixbuf] + icon_name: Optional[str] is_active: bool is_maximized: bool mnemonics_visible: bool modal: bool resizable: bool resize_grip_visible: bool - role: str + role: Optional[str] screen: Gdk.Screen skip_pager_hint: bool skip_taskbar_hint: bool - startup_id: str - title: str - transient_for: Gtk.Window + title: Optional[str] + transient_for: Optional[Gtk.Window] type: Gtk.WindowType type_hint: Gdk.WindowTypeHint urgency_hint: bool window_position: Gtk.WindowPosition border_width: int - child: Gtk.Widget resize_mode: Gtk.ResizeMode app_paintable: bool can_default: bool @@ -305,28 +712,29 @@ class CompletionInfo(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): name: str no_show_all: bool opacity: float - parent: Gtk.Container + parent: Optional[Gtk.Container] receives_default: bool scale_factor: int sensitive: bool style: Gtk.Style - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int - window: Gdk.Window - + window: Optional[Gdk.Window] + startup_id: str + child: Gtk.Widget props: Props = ... parent: Gtk.Window = ... priv: CompletionInfoPrivate = ... def __init__( self, accept_focus: bool = ..., - application: Gtk.Application = ..., - attached_to: Gtk.Widget = ..., + application: Optional[Gtk.Application] = ..., + attached_to: Optional[Gtk.Widget] = ..., decorated: bool = ..., default_height: int = ..., default_width: int = ..., @@ -337,8 +745,8 @@ class CompletionInfo(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): gravity: Gdk.Gravity = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., - icon: GdkPixbuf.Pixbuf = ..., - icon_name: str = ..., + icon: Optional[GdkPixbuf.Pixbuf] = ..., + icon_name: Optional[str] = ..., mnemonics_visible: bool = ..., modal: bool = ..., resizable: bool = ..., @@ -348,7 +756,7 @@ class CompletionInfo(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): skip_taskbar_hint: bool = ..., startup_id: str = ..., title: str = ..., - transient_for: Gtk.Window = ..., + transient_for: Optional[Gtk.Window] = ..., type: Gtk.WindowType = ..., type_hint: Gdk.WindowTypeHint = ..., urgency_hint: bool = ..., @@ -384,9 +792,9 @@ class CompletionInfo(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): parent: Gtk.Container = ..., receives_default: bool = ..., sensitive: bool = ..., - style: Gtk.Style = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -400,33 +808,73 @@ class CompletionInfo(Gtk.Window, Atk.ImplementorIface, Gtk.Buildable): def new(cls) -> CompletionInfo: ... class CompletionInfoClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionInfoClass() + """ + parent_class: Gtk.WindowClass = ... padding: list[None] = ... class CompletionInfoPrivate(GObject.GPointer): ... class CompletionItem(GObject.Object, CompletionProposal): - class Props: - gicon: Gio.Icon - icon: GdkPixbuf.Pixbuf - icon_name: str - info: str - label: str - markup: str - text: str + """ + :Constructors: + + :: + + CompletionItem(**properties) + new() -> GtkSource.CompletionItem + + Object GtkSourceCompletionItem + + Properties from GtkSourceCompletionItem: + label -> gchararray: Label + + markup -> gchararray: Markup + + text -> gchararray: Text + + icon -> GdkPixbuf: Icon + + icon-name -> gchararray: Icon Name + + gicon -> GIcon: GIcon + info -> gchararray: Info + + + Signals from GtkSourceCompletionProposal: + changed () + + Signals from GObject: + notify (GParam) + """ + + class Props: + gicon: Optional[Gio.Icon] + icon: Optional[GdkPixbuf.Pixbuf] + icon_name: Optional[str] + info: Optional[str] + label: Optional[str] + markup: Optional[str] + text: Optional[str] props: Props = ... parent: GObject.Object = ... priv: CompletionItemPrivate = ... def __init__( self, - gicon: Gio.Icon = ..., - icon: GdkPixbuf.Pixbuf = ..., - icon_name: str = ..., - info: str = ..., - label: str = ..., - markup: str = ..., - text: str = ..., + gicon: Optional[Gio.Icon] = ..., + icon: Optional[GdkPixbuf.Pixbuf] = ..., + icon_name: Optional[str] = ..., + info: Optional[str] = ..., + label: Optional[str] = ..., + markup: Optional[str] = ..., + text: Optional[str] = ..., ): ... @classmethod def new(cls) -> CompletionItem: ... @@ -439,6 +887,14 @@ class CompletionItem(GObject.Object, CompletionProposal): def set_text(self, text: Optional[str] = None) -> None: ... class CompletionItemClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionItemClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... @@ -446,6 +902,13 @@ class CompletionItemPrivate(GObject.GPointer): ... class CompletionPrivate(GObject.GPointer): ... class CompletionProposal(GObject.GInterface): + """ + Interface GtkSourceCompletionProposal + + Signals from GObject: + notify (GParam) + """ + def changed(self) -> None: ... def equal(self, other: CompletionProposal) -> bool: ... def get_gicon(self) -> Optional[Gio.Icon]: ... @@ -458,6 +921,14 @@ class CompletionProposal(GObject.GInterface): def hash(self) -> int: ... class CompletionProposalIface(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionProposalIface() + """ + parent: GObject.TypeInterface = ... get_label: Callable[[CompletionProposal], str] = ... get_markup: Callable[[CompletionProposal], str] = ... @@ -471,6 +942,13 @@ class CompletionProposalIface(GObject.GPointer): changed: Callable[[CompletionProposal], None] = ... class CompletionProvider(GObject.GInterface): + """ + Interface GtkSourceCompletionProvider + + Signals from GObject: + notify (GParam) + """ + def activate_proposal( self, proposal: CompletionProposal, iter: Gtk.TextIter ) -> bool: ... @@ -492,6 +970,14 @@ class CompletionProvider(GObject.GInterface): ) -> None: ... class CompletionProviderIface(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionProviderIface() + """ + g_iface: GObject.TypeInterface = ... get_name: Callable[[CompletionProvider], str] = ... get_icon: Callable[[CompletionProvider], Optional[GdkPixbuf.Pixbuf]] = ... @@ -517,6 +1003,38 @@ class CompletionProviderIface(GObject.GPointer): get_priority: Callable[[CompletionProvider], int] = ... class CompletionWords(GObject.Object, CompletionProvider): + """ + :Constructors: + + :: + + CompletionWords(**properties) + new(name:str=None, icon:GdkPixbuf.Pixbuf=None) -> GtkSource.CompletionWords + + Object GtkSourceCompletionWords + + Properties from GtkSourceCompletionWords: + name -> gchararray: Name + The provider name + icon -> GdkPixbuf: Icon + The provider icon + proposals-batch-size -> guint: Proposals Batch Size + Number of proposals added in one batch + scan-batch-size -> guint: Scan Batch Size + Number of lines scanned in one batch + minimum-word-size -> guint: Minimum Word Size + The minimum word size to complete + interactive-delay -> gint: Interactive Delay + The delay before initiating interactive completion + priority -> gint: Priority + Provider priority + activation -> GtkSourceCompletionActivation: Activation + The type of activation + + Signals from GObject: + notify (GParam) + """ + class Props: activation: CompletionActivation icon: GdkPixbuf.Pixbuf @@ -526,7 +1044,6 @@ class CompletionWords(GObject.Object, CompletionProvider): priority: int proposals_batch_size: int scan_batch_size: int - props: Props = ... parent: GObject.Object = ... priv: CompletionWordsPrivate = ... @@ -549,6 +1066,14 @@ class CompletionWords(GObject.Object, CompletionProvider): def unregister(self, buffer: Gtk.TextBuffer) -> None: ... class CompletionWordsClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionWordsClass() + """ + parent_class: GObject.ObjectClass = ... class CompletionWordsPrivate(GObject.GPointer): ... @@ -571,17 +1096,42 @@ class Encoding(GObject.GBoxed): def to_string(self) -> str: ... class File(GObject.Object): + """ + :Constructors: + + :: + + File(**properties) + new() -> GtkSource.File + + Object GtkSourceFile + + Properties from GtkSourceFile: + location -> GFile: Location + + encoding -> GtkSourceEncoding: Encoding + + newline-type -> GtkSourceNewlineType: Newline type + + compression-type -> GtkSourceCompressionType: Compression type + + read-only -> gboolean: Read Only + + + Signals from GObject: + notify (GParam) + """ + class Props: compression_type: CompressionType encoding: Encoding location: Gio.File newline_type: NewlineType read_only: bool - props: Props = ... parent: GObject.Object = ... priv: FilePrivate = ... - def __init__(self, location: Gio.File = ...): ... + def __init__(self, location: Optional[Gio.File] = ...): ... def check_file_on_disk(self) -> None: ... def get_compression_type(self) -> CompressionType: ... def get_encoding(self) -> Encoding: ... @@ -596,16 +1146,48 @@ class File(GObject.Object): def set_location(self, location: Optional[Gio.File] = None) -> None: ... class FileClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class FileLoader(GObject.Object): + """ + :Constructors: + + :: + + FileLoader(**properties) + new(buffer:GtkSource.Buffer, file:GtkSource.File) -> GtkSource.FileLoader + new_from_stream(buffer:GtkSource.Buffer, file:GtkSource.File, stream:Gio.InputStream) -> GtkSource.FileLoader + + Object GtkSourceFileLoader + + Properties from GtkSourceFileLoader: + buffer -> GtkSourceBuffer: GtkSourceBuffer + + file -> GtkSourceFile: GtkSourceFile + + location -> GFile: Location + + input-stream -> GInputStream: Input stream + + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Buffer file: File - input_stream: Gio.InputStream - location: Gio.File - + input_stream: Optional[Gio.InputStream] + location: Optional[Gio.File] props: Props = ... parent: GObject.Object = ... priv: FileLoaderPrivate = ... @@ -641,6 +1223,14 @@ class FileLoader(GObject.Object): def set_candidate_encodings(self, candidate_encodings: list[Encoding]) -> None: ... class FileLoaderClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileLoaderClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... @@ -648,6 +1238,37 @@ class FileLoaderPrivate(GObject.GPointer): ... class FilePrivate(GObject.GPointer): ... class FileSaver(GObject.Object): + """ + :Constructors: + + :: + + FileSaver(**properties) + new(buffer:GtkSource.Buffer, file:GtkSource.File) -> GtkSource.FileSaver + new_with_target(buffer:GtkSource.Buffer, file:GtkSource.File, target_location:Gio.File) -> GtkSource.FileSaver + + Object GtkSourceFileSaver + + Properties from GtkSourceFileSaver: + buffer -> GtkSourceBuffer: GtkSourceBuffer + + file -> GtkSourceFile: GtkSourceFile + + location -> GFile: Location + + encoding -> GtkSourceEncoding: Encoding + + newline-type -> GtkSourceNewlineType: Newline type + + compression-type -> GtkSourceCompressionType: Compression type + + flags -> GtkSourceFileSaverFlags: Flags + + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Buffer compression_type: CompressionType @@ -656,7 +1277,6 @@ class FileSaver(GObject.Object): flags: FileSaverFlags location: Gio.File newline_type: NewlineType - props: Props = ... object: GObject.Object = ... priv: FileSaverPrivate = ... @@ -664,7 +1284,7 @@ class FileSaver(GObject.Object): self, buffer: Buffer = ..., compression_type: CompressionType = ..., - encoding: Encoding = ..., + encoding: Optional[Encoding] = ..., file: File = ..., flags: FileSaverFlags = ..., location: Gio.File = ..., @@ -698,16 +1318,42 @@ class FileSaver(GObject.Object): def set_newline_type(self, newline_type: NewlineType) -> None: ... class FileSaverClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileSaverClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class FileSaverPrivate(GObject.GPointer): ... class Gutter(GObject.Object): + """ + :Constructors: + + :: + + Gutter(**properties) + + Object GtkSourceGutter + + Properties from GtkSourceGutter: + view -> GtkSourceView: View + + window-type -> GtkTextWindowType: Window Type + The gutters' text window type + + Signals from GObject: + notify (GParam) + """ + class Props: view: View window_type: Gtk.TextWindowType - props: Props = ... parent: GObject.Object = ... priv: GutterPrivate = ... @@ -721,12 +1367,64 @@ class Gutter(GObject.Object): def reorder(self, renderer: GutterRenderer, position: int) -> None: ... class GutterClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class GutterPrivate(GObject.GPointer): ... class GutterRenderer(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + GutterRenderer(**properties) + + Object GtkSourceGutterRenderer + + Signals from GtkSourceGutterRenderer: + query-tooltip (GtkTextIter, GdkRectangle, gint, gint, GtkTooltip) -> gboolean + activate (GtkTextIter, GdkRectangle, GdkEvent) + queue-draw () + query-data (GtkTextIter, GtkTextIter, GtkSourceGutterRendererState) + query-activatable (GtkTextIter, GdkRectangle, GdkEvent) -> gboolean + + Properties from GtkSourceGutterRenderer: + visible -> gboolean: Visible + Visible + xpad -> gint: X Padding + The x-padding + ypad -> gint: Y Padding + The y-padding + xalign -> gfloat: X Alignment + The x-alignment + yalign -> gfloat: Y Alignment + The y-alignment + view -> GtkTextView: The View + The view + alignment-mode -> GtkSourceGutterRendererAlignmentMode: Alignment Mode + The alignment mode + window-type -> GtkTextWindowType: Window Type + The window type + size -> gint: Size + The size + background-rgba -> GdkRGBA: Background Color + The background color + background-set -> gboolean: Background Set + Whether the background color is set + + Signals from GObject: + notify (GParam) + """ + class Props: alignment_mode: GutterRendererAlignmentMode background_rgba: Gdk.RGBA @@ -739,7 +1437,6 @@ class GutterRenderer(GObject.InitiallyUnowned): xpad: int yalign: float ypad: int - props: Props = ... parent: GObject.InitiallyUnowned = ... priv: GutterRendererPrivate = ... @@ -845,6 +1542,14 @@ class GutterRenderer(GObject.InitiallyUnowned): def set_visible(self, visible: bool) -> None: ... class GutterRendererClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterRendererClass() + """ + parent_class: GObject.InitiallyUnownedClass = ... begin: Callable[ [ @@ -888,6 +1593,59 @@ class GutterRendererClass(GObject.GPointer): padding: list[None] = ... class GutterRendererPixbuf(GutterRenderer): + """ + :Constructors: + + :: + + GutterRendererPixbuf(**properties) + new() -> GtkSource.GutterRenderer + + Object GtkSourceGutterRendererPixbuf + + Properties from GtkSourceGutterRendererPixbuf: + pixbuf -> GdkPixbuf: Pixbuf + The pixbuf + icon-name -> gchararray: Icon Name + The icon name + gicon -> GIcon: GIcon + The gicon + + Signals from GtkSourceGutterRenderer: + query-tooltip (GtkTextIter, GdkRectangle, gint, gint, GtkTooltip) -> gboolean + activate (GtkTextIter, GdkRectangle, GdkEvent) + queue-draw () + query-data (GtkTextIter, GtkTextIter, GtkSourceGutterRendererState) + query-activatable (GtkTextIter, GdkRectangle, GdkEvent) -> gboolean + + Properties from GtkSourceGutterRenderer: + visible -> gboolean: Visible + Visible + xpad -> gint: X Padding + The x-padding + ypad -> gint: Y Padding + The y-padding + xalign -> gfloat: X Alignment + The x-alignment + yalign -> gfloat: Y Alignment + The y-alignment + view -> GtkTextView: The View + The view + alignment-mode -> GtkSourceGutterRendererAlignmentMode: Alignment Mode + The alignment mode + window-type -> GtkTextWindowType: Window Type + The window type + size -> gint: Size + The size + background-rgba -> GdkRGBA: Background Color + The background color + background-set -> gboolean: Background Set + Whether the background color is set + + Signals from GObject: + notify (GParam) + """ + class Props: gicon: Gio.Icon icon_name: str @@ -903,15 +1661,14 @@ class GutterRendererPixbuf(GutterRenderer): xpad: int yalign: float ypad: int - props: Props = ... parent: GutterRenderer = ... priv: GutterRendererPixbufPrivate = ... def __init__( self, - gicon: Gio.Icon = ..., - icon_name: str = ..., - pixbuf: GdkPixbuf.Pixbuf = ..., + gicon: Optional[Gio.Icon] = ..., + icon_name: Optional[str] = ..., + pixbuf: Optional[GdkPixbuf.Pixbuf] = ..., alignment_mode: GutterRendererAlignmentMode = ..., background_rgba: Gdk.RGBA = ..., background_set: bool = ..., @@ -932,6 +1689,14 @@ class GutterRendererPixbuf(GutterRenderer): def set_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... class GutterRendererPixbufClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterRendererPixbufClass() + """ + parent_class: GutterRendererClass = ... padding: list[None] = ... @@ -939,6 +1704,57 @@ class GutterRendererPixbufPrivate(GObject.GPointer): ... class GutterRendererPrivate(GObject.GPointer): ... class GutterRendererText(GutterRenderer): + """ + :Constructors: + + :: + + GutterRendererText(**properties) + new() -> GtkSource.GutterRenderer + + Object GtkSourceGutterRendererText + + Properties from GtkSourceGutterRendererText: + markup -> gchararray: Markup + The markup + text -> gchararray: Text + The text + + Signals from GtkSourceGutterRenderer: + query-tooltip (GtkTextIter, GdkRectangle, gint, gint, GtkTooltip) -> gboolean + activate (GtkTextIter, GdkRectangle, GdkEvent) + queue-draw () + query-data (GtkTextIter, GtkTextIter, GtkSourceGutterRendererState) + query-activatable (GtkTextIter, GdkRectangle, GdkEvent) -> gboolean + + Properties from GtkSourceGutterRenderer: + visible -> gboolean: Visible + Visible + xpad -> gint: X Padding + The x-padding + ypad -> gint: Y Padding + The y-padding + xalign -> gfloat: X Alignment + The x-alignment + yalign -> gfloat: Y Alignment + The y-alignment + view -> GtkTextView: The View + The view + alignment-mode -> GtkSourceGutterRendererAlignmentMode: Alignment Mode + The alignment mode + window-type -> GtkTextWindowType: Window Type + The window type + size -> gint: Size + The size + background-rgba -> GdkRGBA: Background Color + The background color + background-set -> gboolean: Background Set + Whether the background color is set + + Signals from GObject: + notify (GParam) + """ + class Props: markup: str text: str @@ -953,7 +1769,6 @@ class GutterRendererText(GutterRenderer): xpad: int yalign: float ypad: int - props: Props = ... parent: GutterRenderer = ... priv: GutterRendererTextPrivate = ... @@ -979,18 +1794,48 @@ class GutterRendererText(GutterRenderer): def set_text(self, text: str, length: int) -> None: ... class GutterRendererTextClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterRendererTextClass() + """ + parent_class: GutterRendererClass = ... padding: list[None] = ... class GutterRendererTextPrivate(GObject.GPointer): ... class Language(GObject.Object): + """ + :Constructors: + + :: + + Language(**properties) + + Object GtkSourceLanguage + + Properties from GtkSourceLanguage: + id -> gchararray: Language id + Language id + name -> gchararray: Language name + Language name + section -> gchararray: Language section + Language section + hidden -> gboolean: Hidden + Whether the language should be hidden from the user + + Signals from GObject: + notify (GParam) + """ + class Props: hidden: bool id: str name: str section: str - props: Props = ... parent_instance: GObject.Object = ... priv: LanguagePrivate = ... @@ -1006,18 +1851,45 @@ class Language(GObject.Object): def get_style_name(self, style_id: str) -> Optional[str]: ... class LanguageClass(GObject.GPointer): + """ + :Constructors: + + :: + + LanguageClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class LanguageManager(GObject.Object): + """ + :Constructors: + + :: + + LanguageManager(**properties) + new() -> GtkSource.LanguageManager + + Object GtkSourceLanguageManager + + Properties from GtkSourceLanguageManager: + search-path -> GStrv: Language specification directories + List of directories where the language specification files (.lang) are located + language-ids -> GStrv: Language ids + List of the ids of the available languages + + Signals from GObject: + notify (GParam) + """ + class Props: - language_ids: list[str] + language_ids: Optional[list[str]] search_path: list[str] - props: Props = ... parent_instance: GObject.Object = ... priv: LanguageManagerPrivate = ... - def __init__(self, search_path: Sequence[str] = ...): ... + def __init__(self, search_path: Optional[Sequence[str]] = ...): ... @staticmethod def get_default() -> LanguageManager: ... def get_language(self, id: str) -> Optional[Language]: ... @@ -1031,6 +1903,14 @@ class LanguageManager(GObject.Object): def set_search_path(self, dirs: Optional[Sequence[str]] = None) -> None: ... class LanguageManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + LanguageManagerClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... @@ -1038,9 +1918,301 @@ class LanguageManagerPrivate(GObject.GPointer): ... class LanguagePrivate(GObject.GPointer): ... class Map(View, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): + """ + :Constructors: + + :: + + Map(**properties) + new() -> Gtk.Widget + + Object GtkSourceMap + + Properties from GtkSourceMap: + view -> GtkSourceView: View + The view this widget is mapping. + font-desc -> PangoFontDescription: Font Description + The Pango font description to use. + + Signals from GtkSourceView: + undo () + redo () + smart-home-end (GtkTextIter, gint) + show-completion () + line-mark-activated (GtkTextIter, GdkEvent) + move-lines (gboolean) + move-words (gint) + move-to-matching-bracket (gboolean) + change-number (gint) + change-case (GtkSourceChangeCaseType) + join-lines () + + Properties from GtkSourceView: + completion -> GtkSourceCompletion: Completion + The completion object associated with the view + show-line-numbers -> gboolean: Show Line Numbers + Whether to display line numbers + show-line-marks -> gboolean: Show Line Marks + Whether to display line mark pixbufs + tab-width -> guint: Tab Width + Width of a tab character expressed in spaces + indent-width -> gint: Indent Width + Number of spaces to use for each step of indent + auto-indent -> gboolean: Auto Indentation + Whether to enable auto indentation + insert-spaces-instead-of-tabs -> gboolean: Insert Spaces Instead of Tabs + Whether to insert spaces instead of tabs + show-right-margin -> gboolean: Show Right Margin + Whether to display the right margin + right-margin-position -> guint: Right Margin Position + Position of the right margin + smart-home-end -> GtkSourceSmartHomeEndType: Smart Home/End + HOME and END keys move to first/last non whitespace characters on line before going to the start/end of the line + highlight-current-line -> gboolean: Highlight current line + Whether to highlight the current line + indent-on-tab -> gboolean: Indent on tab + Whether to indent the selected text when the tab key is pressed + background-pattern -> GtkSourceBackgroundPatternType: Background pattern + Draw a specific background pattern on the view + smart-backspace -> gboolean: Smart Backspace + + space-drawer -> GtkSourceSpaceDrawer: Space Drawer + + + Signals from GtkTextView: + move-cursor (GtkMovementStep, gint, gboolean) + move-viewport (GtkScrollStep, gint) + set-anchor () + insert-at-cursor (gchararray) + delete-from-cursor (GtkDeleteType, gint) + backspace () + cut-clipboard () + copy-clipboard () + paste-clipboard () + toggle-overwrite () + populate-popup (GtkWidget) + select-all (gboolean) + toggle-cursor-visible () + preedit-changed (gchararray) + extend-selection (GtkTextExtendSelection, GtkTextIter, GtkTextIter, GtkTextIter) -> gboolean + insert-emoji () + + Properties from GtkTextView: + pixels-above-lines -> gint: Pixels Above Lines + Pixels of blank space above paragraphs + pixels-below-lines -> gint: Pixels Below Lines + Pixels of blank space below paragraphs + pixels-inside-wrap -> gint: Pixels Inside Wrap + Pixels of blank space between wrapped lines in a paragraph + editable -> gboolean: Editable + Whether the text can be modified by the user + wrap-mode -> GtkWrapMode: Wrap Mode + Whether to wrap lines never, at word boundaries, or at character boundaries + justification -> GtkJustification: Justification + Left, right, or centre justification + left-margin -> gint: Left Margin + Width of the left margin in pixels + right-margin -> gint: Right Margin + Width of the right margin in pixels + top-margin -> gint: Top Margin + Height of the top margin in pixels + bottom-margin -> gint: Bottom Margin + Height of the bottom margin in pixels + indent -> gint: Indent + Amount to indent the paragraph, in pixels + tabs -> PangoTabArray: Tabs + Custom tabs for this text + cursor-visible -> gboolean: Cursor Visible + If the insertion cursor is shown + buffer -> GtkTextBuffer: Buffer + The buffer which is displayed + overwrite -> gboolean: Overwrite mode + Whether entered text overwrites existing contents + accepts-tab -> gboolean: Accepts tab + Whether Tab will result in a tab character being entered + im-module -> gchararray: IM module + Which IM module should be used + input-purpose -> GtkInputPurpose: Purpose + Purpose of the text field + input-hints -> GtkInputHints: hints + Hints for the text field behaviour + populate-all -> gboolean: Populate all + Whether to emit ::populate-popup for touch popups + monospace -> gboolean: Monospace + Whether to use a monospace font + + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + class Props: font_desc: Pango.FontDescription - view: View + view: Optional[View] auto_indent: bool background_pattern: BackgroundPatternType completion: Completion @@ -1074,11 +2246,10 @@ class Map(View, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): pixels_inside_wrap: int populate_all: bool right_margin: int - tabs: Pango.TabArray + tabs: Optional[Pango.TabArray] top_margin: int wrap_mode: Gtk.WrapMode border_width: int - child: Gtk.Widget resize_mode: Gtk.ResizeMode app_paintable: bool can_default: bool @@ -1106,24 +2277,24 @@ class Map(View, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): name: str no_show_all: bool opacity: float - parent: Gtk.Container + parent: Optional[Gtk.Container] receives_default: bool scale_factor: int sensitive: bool style: Gtk.Style - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int - window: Gdk.Window + window: Optional[Gdk.Window] hadjustment: Gtk.Adjustment hscroll_policy: Gtk.ScrollablePolicy vadjustment: Gtk.Adjustment vscroll_policy: Gtk.ScrollablePolicy - + child: Gtk.Widget props: Props = ... parent_instance: View = ... def __init__( @@ -1145,7 +2316,7 @@ class Map(View, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): tab_width: int = ..., accepts_tab: bool = ..., bottom_margin: int = ..., - buffer: Gtk.TextBuffer = ..., + buffer: Optional[Gtk.TextBuffer] = ..., cursor_visible: bool = ..., editable: bool = ..., im_module: str = ..., @@ -1195,17 +2366,17 @@ class Map(View, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): parent: Gtk.Container = ..., receives_default: bool = ..., sensitive: bool = ..., - style: Gtk.Style = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., - hadjustment: Gtk.Adjustment = ..., + hadjustment: Optional[Gtk.Adjustment] = ..., hscroll_policy: Gtk.ScrollablePolicy = ..., - vadjustment: Gtk.Adjustment = ..., + vadjustment: Optional[Gtk.Adjustment] = ..., vscroll_policy: Gtk.ScrollablePolicy = ..., ): ... def get_view(self) -> Optional[View]: ... @@ -1214,15 +2385,46 @@ class Map(View, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def set_view(self, view: View) -> None: ... class MapClass(GObject.GPointer): + """ + :Constructors: + + :: + + MapClass() + """ + parent_class: ViewClass = ... padding: list[None] = ... class Mark(Gtk.TextMark): + """ + :Constructors: + + :: + + Mark(**properties) + new(name:str=None, category:str) -> GtkSource.Mark + + Object GtkSourceMark + + Properties from GtkSourceMark: + category -> gchararray: Category + The mark category + + Properties from GtkTextMark: + name -> gchararray: Name + Mark name + left-gravity -> gboolean: Left gravity + Whether the mark has left gravity + + Signals from GObject: + notify (GParam) + """ + class Props: category: str left_gravity: bool - name: str - + name: Optional[str] props: Props = ... parent_instance: Gtk.TextMark = ... priv: MarkPrivate = ... @@ -1236,12 +2438,39 @@ class Mark(Gtk.TextMark): def prev(self, category: str) -> Optional[Mark]: ... class MarkAttributes(GObject.Object): + """ + :Constructors: + + :: + + MarkAttributes(**properties) + new() -> GtkSource.MarkAttributes + + Object GtkSourceMarkAttributes + + Signals from GtkSourceMarkAttributes: + query-tooltip-text (GtkSourceMark) -> gchararray + query-tooltip-markup (GtkSourceMark) -> gchararray + + Properties from GtkSourceMarkAttributes: + background -> GdkRGBA: Background + The background + pixbuf -> GdkPixbuf: Pixbuf + The pixbuf + icon-name -> gchararray: Icon Name + The icon name + gicon -> GIcon: GIcon + The GIcon + + Signals from GObject: + notify (GParam) + """ + class Props: background: Gdk.RGBA gicon: Gio.Icon icon_name: str pixbuf: GdkPixbuf.Pixbuf - props: Props = ... parent: GObject.Object = ... priv: MarkAttributesPrivate = ... @@ -1267,18 +2496,75 @@ class MarkAttributes(GObject.Object): def set_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ... class MarkAttributesClass(GObject.GPointer): + """ + :Constructors: + + :: + + MarkAttributesClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class MarkAttributesPrivate(GObject.GPointer): ... class MarkClass(GObject.GPointer): + """ + :Constructors: + + :: + + MarkClass() + """ + parent_class: Gtk.TextMarkClass = ... padding: list[None] = ... class MarkPrivate(GObject.GPointer): ... class PrintCompositor(GObject.Object): + """ + :Constructors: + + :: + + PrintCompositor(**properties) + new(buffer:GtkSource.Buffer) -> GtkSource.PrintCompositor + new_from_view(view:GtkSource.View) -> GtkSource.PrintCompositor + + Object GtkSourcePrintCompositor + + Properties from GtkSourcePrintCompositor: + buffer -> GtkSourceBuffer: Source Buffer + The GtkSourceBuffer object to print + tab-width -> guint: Tab Width + Width of a tab character expressed in spaces + wrap-mode -> GtkWrapMode: Wrap Mode + + highlight-syntax -> gboolean: Highlight Syntax + + print-line-numbers -> guint: Print Line Numbers + + print-header -> gboolean: Print Header + + print-footer -> gboolean: Print Footer + + body-font-name -> gchararray: Body Font Name + + line-numbers-font-name -> gchararray: Line Numbers Font Name + + header-font-name -> gchararray: Header Font Name + + footer-font-name -> gchararray: Footer Font Name + + n-pages -> gint: Number of pages + + + Signals from GObject: + notify (GParam) + """ + class Props: body_font_name: str buffer: Buffer @@ -1292,7 +2578,6 @@ class PrintCompositor(GObject.Object): print_line_numbers: int tab_width: int wrap_mode: Gtk.WrapMode - props: Props = ... parent_instance: GObject.Object = ... priv: PrintCompositorPrivate = ... @@ -1300,10 +2585,10 @@ class PrintCompositor(GObject.Object): self, body_font_name: str = ..., buffer: Buffer = ..., - footer_font_name: str = ..., - header_font_name: str = ..., + footer_font_name: Optional[str] = ..., + header_font_name: Optional[str] = ..., highlight_syntax: bool = ..., - line_numbers_font_name: str = ..., + line_numbers_font_name: Optional[str] = ..., print_footer: bool = ..., print_header: bool = ..., print_line_numbers: int = ..., @@ -1363,15 +2648,40 @@ class PrintCompositor(GObject.Object): def set_wrap_mode(self, wrap_mode: Gtk.WrapMode) -> None: ... class PrintCompositorClass(GObject.GPointer): + """ + :Constructors: + + :: + + PrintCompositorClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class PrintCompositorPrivate(GObject.GPointer): ... class Region(GObject.Object): - class Props: - buffer: Gtk.TextBuffer + """ + :Constructors: + + :: + + Region(**properties) + new(buffer:Gtk.TextBuffer) -> GtkSource.Region + Object GtkSourceRegion + + Properties from GtkSourceRegion: + buffer -> GtkTextBuffer: Buffer + + + Signals from GObject: + notify (GParam) + """ + + class Props: + buffer: Optional[Gtk.TextBuffer] props: Props = ... parent_instance: GObject.Object = ... def __init__(self, buffer: Gtk.TextBuffer = ...): ... @@ -1394,10 +2704,26 @@ class Region(GObject.Object): def to_string(self) -> Optional[str]: ... class RegionClass(GObject.GPointer): + """ + :Constructors: + + :: + + RegionClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class RegionIter(GObject.GPointer): + """ + :Constructors: + + :: + + RegionIter() + """ + dummy1: None = ... dummy2: int = ... dummy3: None = ... @@ -1406,14 +2732,41 @@ class RegionIter(GObject.GPointer): def next(self) -> bool: ... class SearchContext(GObject.Object): + """ + :Constructors: + + :: + + SearchContext(**properties) + new(buffer:GtkSource.Buffer, settings:GtkSource.SearchSettings=None) -> GtkSource.SearchContext + + Object GtkSourceSearchContext + + Properties from GtkSourceSearchContext: + buffer -> GtkSourceBuffer: Buffer + The associated GtkSourceBuffer + settings -> GtkSourceSearchSettings: Settings + The associated GtkSourceSearchSettings + highlight -> gboolean: Highlight + Highlight search occurrences + match-style -> GtkSourceStyle: Match style + The text style for matches + occurrences-count -> gint: Occurrences count + Total number of search occurrences + regex-error -> gpointer: Regex error + Regular expression error + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Buffer highlight: bool match_style: Style occurrences_count: int - regex_error: None + regex_error: Optional[None] settings: SearchSettings - props: Props = ... parent: GObject.Object = ... priv: SearchContextPrivate = ... @@ -1421,7 +2774,7 @@ class SearchContext(GObject.Object): self, buffer: Buffer = ..., highlight: bool = ..., - match_style: Style = ..., + match_style: Optional[Style] = ..., settings: SearchSettings = ..., ): ... def backward( @@ -1475,19 +2828,52 @@ class SearchContext(GObject.Object): def set_match_style(self, match_style: Optional[Style] = None) -> None: ... class SearchContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + SearchContextClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class SearchContextPrivate(GObject.GPointer): ... class SearchSettings(GObject.Object): + """ + :Constructors: + + :: + + SearchSettings(**properties) + new() -> GtkSource.SearchSettings + + Object GtkSourceSearchSettings + + Properties from GtkSourceSearchSettings: + search-text -> gchararray: Search text + The text to search + case-sensitive -> gboolean: Case sensitive + Case sensitive + at-word-boundaries -> gboolean: At word boundaries + Search at word boundaries + wrap-around -> gboolean: Wrap around + Wrap around + regex-enabled -> gboolean: Regex enabled + Whether to search by regular expression + + Signals from GObject: + notify (GParam) + """ + class Props: at_word_boundaries: bool case_sensitive: bool regex_enabled: bool - search_text: str + search_text: Optional[str] wrap_around: bool - props: Props = ... parent: GObject.Object = ... priv: SearchSettingsPrivate = ... @@ -1496,7 +2882,7 @@ class SearchSettings(GObject.Object): at_word_boundaries: bool = ..., case_sensitive: bool = ..., regex_enabled: bool = ..., - search_text: str = ..., + search_text: Optional[str] = ..., wrap_around: bool = ..., ): ... def get_at_word_boundaries(self) -> bool: ... @@ -1513,20 +2899,49 @@ class SearchSettings(GObject.Object): def set_wrap_around(self, wrap_around: bool) -> None: ... class SearchSettingsClass(GObject.GPointer): + """ + :Constructors: + + :: + + SearchSettingsClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class SearchSettingsPrivate(GObject.GPointer): ... class SpaceDrawer(GObject.Object): + """ + :Constructors: + + :: + + SpaceDrawer(**properties) + new() -> GtkSource.SpaceDrawer + + Object GtkSourceSpaceDrawer + + Properties from GtkSourceSpaceDrawer: + enable-matrix -> gboolean: Enable Matrix + + matrix -> GVariant: Matrix + + + Signals from GObject: + notify (GParam) + """ + class Props: enable_matrix: bool matrix: GLib.Variant - props: Props = ... parent: GObject.Object = ... priv: SpaceDrawerPrivate = ... - def __init__(self, enable_matrix: bool = ..., matrix: GLib.Variant = ...): ... + def __init__( + self, enable_matrix: bool = ..., matrix: Optional[GLib.Variant] = ... + ): ... def bind_matrix_setting( self, settings: Gio.Settings, key: str, flags: Gio.SettingsBindFlags ) -> None: ... @@ -1544,12 +2959,71 @@ class SpaceDrawer(GObject.Object): ) -> None: ... class SpaceDrawerClass(GObject.GPointer): + """ + :Constructors: + + :: + + SpaceDrawerClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... class SpaceDrawerPrivate(GObject.GPointer): ... class Style(GObject.Object): + """ + :Constructors: + + :: + + Style(**properties) + + Object GtkSourceStyle + + Properties from GtkSourceStyle: + line-background -> gchararray: Line background + Line background color + line-background-set -> gboolean: Line background set + Whether line background color is set + background -> gchararray: Background + Background color + background-set -> gboolean: Background set + Whether background color is set + foreground -> gchararray: Foreground + Foreground color + foreground-set -> gboolean: Foreground set + Whether foreground color is set + bold -> gboolean: Bold + Bold + bold-set -> gboolean: Bold set + Whether bold attribute is set + italic -> gboolean: Italic + Italic + italic-set -> gboolean: Italic set + Whether italic attribute is set + pango-underline -> PangoUnderline: Pango Underline + Pango Underline + underline-set -> gboolean: Underline set + Whether underline attribute is set + strikethrough -> gboolean: Strikethrough + Strikethrough + strikethrough-set -> gboolean: Strikethrough set + Whether strikethrough attribute is set + scale -> gchararray: Scale + Text scale factor + scale-set -> gboolean: Scale set + Whether scale attribute is set + underline-color -> gchararray: Underline Color + Underline color + underline-color-set -> gboolean: Underline color set + Whether underline color attribute is set + + Signals from GObject: + notify (GParam) + """ + class Props: background: str background_set: bool @@ -1569,7 +3043,6 @@ class Style(GObject.Object): underline_color: str underline_color_set: bool underline_set: bool - props: Props = ... def __init__( self, @@ -1598,12 +3071,34 @@ class Style(GObject.Object): class StyleClass(GObject.GPointer): ... class StyleScheme(GObject.Object): + """ + :Constructors: + + :: + + StyleScheme(**properties) + + Object GtkSourceStyleScheme + + Properties from GtkSourceStyleScheme: + id -> gchararray: Style scheme id + Style scheme id + name -> gchararray: Style scheme name + Style scheme name + description -> gchararray: Style scheme description + Style scheme description + filename -> gchararray: Style scheme filename + Style scheme filename + + Signals from GObject: + notify (GParam) + """ + class Props: - description: str - filename: str + description: Optional[str] + filename: Optional[str] id: str name: str - props: Props = ... base: GObject.Object = ... priv: StyleSchemePrivate = ... @@ -1616,6 +3111,13 @@ class StyleScheme(GObject.Object): def get_style(self, style_id: str) -> Optional[Style]: ... class StyleSchemeChooser(GObject.GInterface): + """ + Interface GtkSourceStyleSchemeChooser + + Signals from GObject: + notify (GParam) + """ + def get_style_scheme(self) -> StyleScheme: ... def set_style_scheme(self, scheme: StyleScheme) -> None: ... @@ -1627,9 +3129,216 @@ class StyleSchemeChooserButton( Gtk.Buildable, StyleSchemeChooser, ): + """ + :Constructors: + + :: + + StyleSchemeChooserButton(**properties) + new() -> Gtk.Widget + + Object GtkSourceStyleSchemeChooserButton + + Signals from GtkButton: + activate () + pressed () + released () + clicked () + enter () + leave () + + Properties from GtkButton: + label -> gchararray: Label + Text of the label widget inside the button, if the button contains a label widget + image -> GtkWidget: Image widget + Child widget to appear next to the button text + relief -> GtkReliefStyle: Border relief + The border relief style + use-underline -> gboolean: Use underline + If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key + use-stock -> gboolean: Use stock + If set, the label is used to pick a stock item instead of being displayed + xalign -> gfloat: Horizontal alignment for child + Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned + yalign -> gfloat: Vertical alignment for child + Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned + image-position -> GtkPositionType: Image position + The position of the image relative to the text + always-show-image -> gboolean: Always show image + Whether the image will always be shown + + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + class Props: always_show_image: bool - image: Gtk.Widget + image: Optional[Gtk.Widget] image_position: Gtk.PositionType label: str relief: Gtk.ReliefStyle @@ -1638,7 +3347,6 @@ class StyleSchemeChooserButton( xalign: float yalign: float border_width: int - child: Gtk.Widget resize_mode: Gtk.ResizeMode app_paintable: bool can_default: bool @@ -1666,31 +3374,31 @@ class StyleSchemeChooserButton( name: str no_show_all: bool opacity: float - parent: Gtk.Container + parent: Optional[Gtk.Container] receives_default: bool scale_factor: int sensitive: bool style: Gtk.Style - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int - window: Gdk.Window - action_name: str + window: Optional[Gdk.Window] + action_name: Optional[str] action_target: GLib.Variant related_action: Gtk.Action use_action_appearance: bool style_scheme: StyleScheme - + child: Gtk.Widget props: Props = ... parent: Gtk.Button = ... def __init__( self, always_show_image: bool = ..., - image: Gtk.Widget = ..., + image: Optional[Gtk.Widget] = ..., image_position: Gtk.PositionType = ..., label: str = ..., relief: Gtk.ReliefStyle = ..., @@ -1729,15 +3437,15 @@ class StyleSchemeChooserButton( parent: Gtk.Container = ..., receives_default: bool = ..., sensitive: bool = ..., - style: Gtk.Style = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., - action_name: str = ..., + action_name: Optional[str] = ..., action_target: GLib.Variant = ..., related_action: Gtk.Action = ..., use_action_appearance: bool = ..., @@ -1747,10 +3455,26 @@ class StyleSchemeChooserButton( def new(cls) -> StyleSchemeChooserButton: ... class StyleSchemeChooserButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeChooserButtonClass() + """ + parent: Gtk.ButtonClass = ... padding: list[None] = ... class StyleSchemeChooserInterface(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeChooserInterface() + """ + base_interface: GObject.TypeInterface = ... get_style_scheme: Callable[[StyleSchemeChooser], StyleScheme] = ... set_style_scheme: Callable[[StyleSchemeChooser, StyleScheme], None] = ... @@ -1759,9 +3483,187 @@ class StyleSchemeChooserInterface(GObject.GPointer): class StyleSchemeChooserWidget( Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable, StyleSchemeChooser ): + """ + :Constructors: + + :: + + StyleSchemeChooserWidget(**properties) + new() -> Gtk.Widget + + Object GtkSourceStyleSchemeChooserWidget + + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + class Props: border_width: int - child: Gtk.Widget resize_mode: Gtk.ResizeMode app_paintable: bool can_default: bool @@ -1789,21 +3691,21 @@ class StyleSchemeChooserWidget( name: str no_show_all: bool opacity: float - parent: Gtk.Container + parent: Optional[Gtk.Container] receives_default: bool scale_factor: int sensitive: bool style: Gtk.Style - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int - window: Gdk.Window + window: Optional[Gdk.Window] style_scheme: StyleScheme - + child: Gtk.Widget props: Props = ... parent: Gtk.Bin = ... def __init__( @@ -1839,9 +3741,9 @@ class StyleSchemeChooserWidget( parent: Gtk.Container = ..., receives_default: bool = ..., sensitive: bool = ..., - style: Gtk.Style = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -1853,22 +3755,57 @@ class StyleSchemeChooserWidget( def new(cls) -> StyleSchemeChooserWidget: ... class StyleSchemeChooserWidgetClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeChooserWidgetClass() + """ + parent: Gtk.BinClass = ... padding: list[None] = ... class StyleSchemeClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeClass() + """ + base_class: GObject.ObjectClass = ... padding: list[None] = ... class StyleSchemeManager(GObject.Object): + """ + :Constructors: + + :: + + StyleSchemeManager(**properties) + new() -> GtkSource.StyleSchemeManager + + Object GtkSourceStyleSchemeManager + + Properties from GtkSourceStyleSchemeManager: + search-path -> GStrv: Style scheme search path + List of directories and files where the style schemes are located + scheme-ids -> GStrv: Scheme ids + List of the ids of the available style schemes + + Signals from GObject: + notify (GParam) + """ + class Props: - scheme_ids: list[str] + scheme_ids: Optional[list[str]] search_path: list[str] - props: Props = ... parent: GObject.Object = ... priv: StyleSchemeManagerPrivate = ... - def __init__(self, search_path: Sequence[str] = ...): ... + def __init__(self, search_path: Optional[Sequence[str]] = ...): ... def append_search_path(self, path: str) -> None: ... def force_rescan(self) -> None: ... @staticmethod @@ -1882,6 +3819,14 @@ class StyleSchemeManager(GObject.Object): def set_search_path(self, path: Optional[Sequence[str]] = None) -> None: ... class StyleSchemeManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeManagerClass() + """ + parent_class: GObject.ObjectClass = ... padding: list[None] = ... @@ -1889,11 +3834,183 @@ class StyleSchemeManagerPrivate(GObject.GPointer): ... class StyleSchemePrivate(GObject.GPointer): ... class Tag(Gtk.TextTag): + """ + :Constructors: + + :: + + Tag(**properties) + new(name:str=None) -> Gtk.TextTag + + Object GtkSourceTag + + Properties from GtkSourceTag: + draw-spaces -> gboolean: Draw Spaces + + draw-spaces-set -> gboolean: Draw Spaces Set + + + Signals from GtkTextTag: + event (GObject, GdkEvent, GtkTextIter) -> gboolean + + Properties from GtkTextTag: + name -> gchararray: Tag name + Name used to refer to the text tag. NULL for anonymous tags + background -> gchararray: Background colour name + Background colour as a string + foreground -> gchararray: Foreground colour name + Foreground colour as a string + background-gdk -> GdkColor: Background colour + Background colour as a GdkColor + foreground-gdk -> GdkColor: Foreground colour + Foreground colour as a GdkColor + background-rgba -> GdkRGBA: Background RGBA + Background colour as a GdkRGBA + foreground-rgba -> GdkRGBA: Foreground RGBA + Foreground colour as a GdkRGBA + font -> gchararray: Font + Font description as a string, e.g. "Sans Italic 12" + font-desc -> PangoFontDescription: Font + Font description as a PangoFontDescription struct + family -> gchararray: Font family + Name of the font family, e.g. Sans, Helvetica, Times, Monospace + style -> PangoStyle: Font style + Font style as a PangoStyle, e.g. PANGO_STYLE_ITALIC + variant -> PangoVariant: Font variant + Font variant as a PangoVariant, e.g. PANGO_VARIANT_SMALL_CAPS + weight -> gint: Font weight + Font weight as an integer, see predefined values in PangoWeight; for example, PANGO_WEIGHT_BOLD + stretch -> PangoStretch: Font stretch + Font stretch as a PangoStretch, e.g. PANGO_STRETCH_CONDENSED + size -> gint: Font size + Font size in Pango units + size-points -> gdouble: Font points + Font size in points + scale -> gdouble: Font scale + Font size as a scale factor relative to the default font size. This properly adapts to theme changes etc. so is recommended. Pango predefines some scales such as PANGO_SCALE_X_LARGE + pixels-above-lines -> gint: Pixels above lines + Pixels of blank space above paragraphs + pixels-below-lines -> gint: Pixels below lines + Pixels of blank space below paragraphs + pixels-inside-wrap -> gint: Pixels inside wrap + Pixels of blank space between wrapped lines in a paragraph + editable -> gboolean: Editable + Whether the text can be modified by the user + wrap-mode -> GtkWrapMode: Wrap mode + Whether to wrap lines never, at word boundaries, or at character boundaries + justification -> GtkJustification: Justification + Left, right, or centre justification + direction -> GtkTextDirection: Text direction + Text direction, e.g. right-to-left or left-to-right + left-margin -> gint: Left margin + Width of the left margin in pixels + indent -> gint: Indent + Amount to indent the paragraph, in pixels + strikethrough -> gboolean: Strikethrough + Whether to strike through the text + strikethrough-rgba -> GdkRGBA: Strikethrough RGBA + Colour of strikethrough for this text + right-margin -> gint: Right margin + Width of the right margin in pixels + underline -> PangoUnderline: Underline + Style of underline for this text + underline-rgba -> GdkRGBA: Underline RGBA + Colour of underline for this text + rise -> gint: Rise + Offset of text above the baseline (below the baseline if rise is negative) in Pango units + background-full-height -> gboolean: Background full height + Whether the background colour fills the entire line height or only the height of the tagged characters + language -> gchararray: Language + The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used. + tabs -> PangoTabArray: Tabs + Custom tabs for this text + invisible -> gboolean: Invisible + Whether this text is hidden. + paragraph-background -> gchararray: Paragraph background colour name + Paragraph background colour as a string + paragraph-background-gdk -> GdkColor: Paragraph background colour + Paragraph background colour as a GdkColor + paragraph-background-rgba -> GdkRGBA: Paragraph background RGBA + Paragraph background RGBA as a GdkRGBA + fallback -> gboolean: Fallback + Whether font fallback is enabled. + letter-spacing -> gint: Letter Spacing + Extra spacing between graphemes + font-features -> gchararray: Font Features + OpenType Font Features to use + accumulative-margin -> gboolean: Margin Accumulates + Whether left and right margins accumulate. + background-set -> gboolean: Background set + Whether this tag affects the background colour + foreground-set -> gboolean: Foreground set + Whether this tag affects the foreground colour + family-set -> gboolean: Font family set + Whether this tag affects the font family + style-set -> gboolean: Font style set + Whether this tag affects the font style + variant-set -> gboolean: Font variant set + Whether this tag affects the font variant + weight-set -> gboolean: Font weight set + Whether this tag affects the font weight + stretch-set -> gboolean: Font stretch set + Whether this tag affects the font stretch + size-set -> gboolean: Font size set + Whether this tag affects the font size + scale-set -> gboolean: Font scale set + Whether this tag scales the font size by a factor + pixels-above-lines-set -> gboolean: Pixels above lines set + Whether this tag affects the number of pixels above lines + pixels-below-lines-set -> gboolean: Pixels below lines set + Whether this tag affects the number of pixels above lines + pixels-inside-wrap-set -> gboolean: Pixels inside wrap set + Whether this tag affects the number of pixels between wrapped lines + editable-set -> gboolean: Editability set + Whether this tag affects text editability + wrap-mode-set -> gboolean: Wrap mode set + Whether this tag affects line wrap mode + justification-set -> gboolean: Justification set + Whether this tag affects paragraph justification + left-margin-set -> gboolean: Left margin set + Whether this tag affects the left margin + indent-set -> gboolean: Indent set + Whether this tag affects indentation + strikethrough-set -> gboolean: Strikethrough set + Whether this tag affects strikethrough + strikethrough-rgba-set -> gboolean: Strikethrough RGBA set + Whether this tag affects strikethrough colour + right-margin-set -> gboolean: Right margin set + Whether this tag affects the right margin + underline-set -> gboolean: Underline set + Whether this tag affects underlining + underline-rgba-set -> gboolean: Underline RGBA set + Whether this tag affects underlining colour + rise-set -> gboolean: Rise set + Whether this tag affects the rise + background-full-height-set -> gboolean: Background full height set + Whether this tag affects background height + language-set -> gboolean: Language set + Whether this tag affects the language the text is rendered as + tabs-set -> gboolean: Tabs set + Whether this tag affects tabs + invisible-set -> gboolean: Invisible set + Whether this tag affects text visibility + paragraph-background-set -> gboolean: Paragraph background set + Whether this tag affects the paragraph background colour + fallback-set -> gboolean: Fallback set + Whether this tag affects font fallback + letter-spacing-set -> gboolean: Letter spacing set + Whether this tag affects letter spacing + font-features-set -> gboolean: Font features set + Whether this tag affects font features + + Signals from GObject: + notify (GParam) + """ + class Props: draw_spaces: bool draw_spaces_set: bool accumulative_margin: bool - background: str background_full_height: bool background_full_height_set: bool background_gdk: Gdk.Color @@ -1910,7 +4027,6 @@ class Tag(Gtk.TextTag): font_desc: Pango.FontDescription font_features: str font_features_set: bool - foreground: str foreground_gdk: Gdk.Color foreground_rgba: Gdk.RGBA foreground_set: bool @@ -1927,7 +4043,6 @@ class Tag(Gtk.TextTag): letter_spacing: int letter_spacing_set: bool name: str - paragraph_background: str paragraph_background_gdk: Gdk.Color paragraph_background_rgba: Gdk.RGBA paragraph_background_set: bool @@ -1966,7 +4081,9 @@ class Tag(Gtk.TextTag): weight_set: bool wrap_mode: Gtk.WrapMode wrap_mode_set: bool - + background: str + foreground: str + paragraph_background: str props: Props = ... parent_instance: Gtk.TextTag = ... def __init__( @@ -2052,10 +4169,25 @@ class Tag(Gtk.TextTag): def new(cls, name: Optional[str] = None) -> Tag: ... class TagClass(GObject.GPointer): + """ + :Constructors: + + :: + + TagClass() + """ + parent_class: Gtk.TextTagClass = ... padding: list[None] = ... class UndoManager(GObject.GInterface): + """ + Interface GtkSourceUndoManager + + Signals from GObject: + notify (GParam) + """ + def begin_not_undoable_action(self) -> None: ... def can_redo(self) -> bool: ... def can_redo_changed(self) -> None: ... @@ -2066,6 +4198,14 @@ class UndoManager(GObject.GInterface): def undo(self) -> None: ... class UndoManagerIface(GObject.GPointer): + """ + :Constructors: + + :: + + UndoManagerIface() + """ + parent: GObject.TypeInterface = ... can_undo: Callable[[UndoManager], bool] = ... can_redo: Callable[[UndoManager], bool] = ... @@ -2077,6 +4217,293 @@ class UndoManagerIface(GObject.GPointer): can_redo_changed: Callable[[UndoManager], None] = ... class View(Gtk.TextView, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): + """ + :Constructors: + + :: + + View(**properties) + new() -> Gtk.Widget + new_with_buffer(buffer:GtkSource.Buffer) -> Gtk.Widget + + Object GtkSourceView + + Signals from GtkSourceView: + undo () + redo () + smart-home-end (GtkTextIter, gint) + show-completion () + line-mark-activated (GtkTextIter, GdkEvent) + move-lines (gboolean) + move-words (gint) + move-to-matching-bracket (gboolean) + change-number (gint) + change-case (GtkSourceChangeCaseType) + join-lines () + + Properties from GtkSourceView: + completion -> GtkSourceCompletion: Completion + The completion object associated with the view + show-line-numbers -> gboolean: Show Line Numbers + Whether to display line numbers + show-line-marks -> gboolean: Show Line Marks + Whether to display line mark pixbufs + tab-width -> guint: Tab Width + Width of a tab character expressed in spaces + indent-width -> gint: Indent Width + Number of spaces to use for each step of indent + auto-indent -> gboolean: Auto Indentation + Whether to enable auto indentation + insert-spaces-instead-of-tabs -> gboolean: Insert Spaces Instead of Tabs + Whether to insert spaces instead of tabs + show-right-margin -> gboolean: Show Right Margin + Whether to display the right margin + right-margin-position -> guint: Right Margin Position + Position of the right margin + smart-home-end -> GtkSourceSmartHomeEndType: Smart Home/End + HOME and END keys move to first/last non whitespace characters on line before going to the start/end of the line + highlight-current-line -> gboolean: Highlight current line + Whether to highlight the current line + indent-on-tab -> gboolean: Indent on tab + Whether to indent the selected text when the tab key is pressed + background-pattern -> GtkSourceBackgroundPatternType: Background pattern + Draw a specific background pattern on the view + smart-backspace -> gboolean: Smart Backspace + + space-drawer -> GtkSourceSpaceDrawer: Space Drawer + + + Signals from GtkTextView: + move-cursor (GtkMovementStep, gint, gboolean) + move-viewport (GtkScrollStep, gint) + set-anchor () + insert-at-cursor (gchararray) + delete-from-cursor (GtkDeleteType, gint) + backspace () + cut-clipboard () + copy-clipboard () + paste-clipboard () + toggle-overwrite () + populate-popup (GtkWidget) + select-all (gboolean) + toggle-cursor-visible () + preedit-changed (gchararray) + extend-selection (GtkTextExtendSelection, GtkTextIter, GtkTextIter, GtkTextIter) -> gboolean + insert-emoji () + + Properties from GtkTextView: + pixels-above-lines -> gint: Pixels Above Lines + Pixels of blank space above paragraphs + pixels-below-lines -> gint: Pixels Below Lines + Pixels of blank space below paragraphs + pixels-inside-wrap -> gint: Pixels Inside Wrap + Pixels of blank space between wrapped lines in a paragraph + editable -> gboolean: Editable + Whether the text can be modified by the user + wrap-mode -> GtkWrapMode: Wrap Mode + Whether to wrap lines never, at word boundaries, or at character boundaries + justification -> GtkJustification: Justification + Left, right, or centre justification + left-margin -> gint: Left Margin + Width of the left margin in pixels + right-margin -> gint: Right Margin + Width of the right margin in pixels + top-margin -> gint: Top Margin + Height of the top margin in pixels + bottom-margin -> gint: Bottom Margin + Height of the bottom margin in pixels + indent -> gint: Indent + Amount to indent the paragraph, in pixels + tabs -> PangoTabArray: Tabs + Custom tabs for this text + cursor-visible -> gboolean: Cursor Visible + If the insertion cursor is shown + buffer -> GtkTextBuffer: Buffer + The buffer which is displayed + overwrite -> gboolean: Overwrite mode + Whether entered text overwrites existing contents + accepts-tab -> gboolean: Accepts tab + Whether Tab will result in a tab character being entered + im-module -> gchararray: IM module + Which IM module should be used + input-purpose -> GtkInputPurpose: Purpose + Purpose of the text field + input-hints -> GtkInputHints: hints + Hints for the text field behaviour + populate-all -> gboolean: Populate all + Whether to emit ::populate-popup for touch popups + monospace -> gboolean: Monospace + Whether to use a monospace font + + Signals from GtkContainer: + add (GtkWidget) + remove (GtkWidget) + check-resize () + set-focus-child (GtkWidget) + + Properties from GtkContainer: + border-width -> guint: Border width + The width of the empty border outside the containers children + resize-mode -> GtkResizeMode: Resize mode + Specify how resize events are handled + child -> GtkWidget: Child + Can be used to add a new child to the container + + Signals from GtkWidget: + composited-changed () + event (GdkEvent) -> gboolean + direction-changed (GtkTextDirection) + state-changed (GtkStateType) + destroy () + show () + hide () + map () + unmap () + realize () + unrealize () + size-allocate (GdkRectangle) + state-flags-changed (GtkStateFlags) + parent-set (GtkWidget) + hierarchy-changed (GtkWidget) + style-set (GtkStyle) + style-updated () + grab-notify (gboolean) + child-notify (GParam) + draw (CairoContext) -> gboolean + mnemonic-activate (gboolean) -> gboolean + grab-focus () + focus (GtkDirectionType) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + event-after (GdkEvent) + button-press-event (GdkEvent) -> gboolean + button-release-event (GdkEvent) -> gboolean + touch-event (GdkEvent) -> gboolean + scroll-event (GdkEvent) -> gboolean + motion-notify-event (GdkEvent) -> gboolean + delete-event (GdkEvent) -> gboolean + destroy-event (GdkEvent) -> gboolean + key-press-event (GdkEvent) -> gboolean + key-release-event (GdkEvent) -> gboolean + enter-notify-event (GdkEvent) -> gboolean + leave-notify-event (GdkEvent) -> gboolean + configure-event (GdkEvent) -> gboolean + focus-in-event (GdkEvent) -> gboolean + focus-out-event (GdkEvent) -> gboolean + map-event (GdkEvent) -> gboolean + unmap-event (GdkEvent) -> gboolean + property-notify-event (GdkEvent) -> gboolean + selection-clear-event (GdkEvent) -> gboolean + selection-request-event (GdkEvent) -> gboolean + selection-notify-event (GdkEvent) -> gboolean + selection-received (GtkSelectionData, guint) + selection-get (GtkSelectionData, guint, guint) + proximity-in-event (GdkEvent) -> gboolean + proximity-out-event (GdkEvent) -> gboolean + drag-leave (GdkDragContext, guint) + drag-begin (GdkDragContext) + drag-end (GdkDragContext) + drag-data-delete (GdkDragContext) + drag-failed (GdkDragContext, GtkDragResult) -> gboolean + drag-motion (GdkDragContext, gint, gint, guint) -> gboolean + drag-drop (GdkDragContext, gint, gint, guint) -> gboolean + drag-data-get (GdkDragContext, GtkSelectionData, guint, guint) + drag-data-received (GdkDragContext, gint, gint, GtkSelectionData, guint, guint) + visibility-notify-event (GdkEvent) -> gboolean + window-state-event (GdkEvent) -> gboolean + damage-event (GdkEvent) -> gboolean + grab-broken-event (GdkEvent) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + popup-menu () -> gboolean + show-help (GtkWidgetHelpType) -> gboolean + accel-closures-changed () + screen-changed (GdkScreen) + can-activate-accel (guint) -> gboolean + + Properties from GtkWidget: + name -> gchararray: Widget name + The name of the widget + parent -> GtkContainer: Parent widget + The parent widget of this widget. Must be a Container widget + width-request -> gint: Width request + Override for width request of the widget, or -1 if natural request should be used + height-request -> gint: Height request + Override for height request of the widget, or -1 if natural request should be used + visible -> gboolean: Visible + Whether the widget is visible + sensitive -> gboolean: Sensitive + Whether the widget responds to input + app-paintable -> gboolean: Application paintable + Whether the application will paint directly on the widget + can-focus -> gboolean: Can focus + Whether the widget can accept the input focus + has-focus -> gboolean: Has focus + Whether the widget has the input focus + is-focus -> gboolean: Is focus + Whether the widget is the focus widget within the toplevel + focus-on-click -> gboolean: Focus on click + Whether the widget should grab focus when it is clicked with the mouse + can-default -> gboolean: Can default + Whether the widget can be the default widget + has-default -> gboolean: Has default + Whether the widget is the default widget + receives-default -> gboolean: Receives default + If TRUE, the widget will receive the default action when it is focused + composite-child -> gboolean: Composite child + Whether the widget is part of a composite widget + style -> GtkStyle: Style + The style of the widget, which contains information about how it will look (colours etc) + events -> GdkEventMask: Events + The event mask that decides what kind of GdkEvents this widget gets + no-show-all -> gboolean: No show all + Whether gtk_widget_show_all() should not affect this widget + has-tooltip -> gboolean: Has tooltip + Whether this widget has a tooltip + tooltip-markup -> gchararray: Tooltip markup + The contents of the tooltip for this widget + tooltip-text -> gchararray: Tooltip Text + The contents of the tooltip for this widget + window -> GdkWindow: Window + The widget's window if it is realised + opacity -> gdouble: Opacity for Widget + The opacity of the widget, from 0 to 1 + double-buffered -> gboolean: Double Buffered + Whether the widget is double buffered + halign -> GtkAlign: Horizontal Alignment + How to position in extra horizontal space + valign -> GtkAlign: Vertical Alignment + How to position in extra vertical space + margin-left -> gint: Margin on Left + Pixels of extra space on the left side + margin-right -> gint: Margin on Right + Pixels of extra space on the right side + margin-start -> gint: Margin on Start + Pixels of extra space on the start + margin-end -> gint: Margin on End + Pixels of extra space on the end + margin-top -> gint: Margin on Top + Pixels of extra space on the top side + margin-bottom -> gint: Margin on Bottom + Pixels of extra space on the bottom side + margin -> gint: All Margins + Pixels of extra space on all four sides + hexpand -> gboolean: Horizontal Expand + Whether widget wants more horizontal space + vexpand -> gboolean: Vertical Expand + Whether widget wants more vertical space + hexpand-set -> gboolean: Horizontal Expand Set + Whether to use the hexpand property + vexpand-set -> gboolean: Vertical Expand Set + Whether to use the vexpand property + expand -> gboolean: Expand Both + Whether widget wants to expand in both directions + scale-factor -> gint: Scale factor + The scaling factor of the window + + Signals from GObject: + notify (GParam) + """ + class Props: auto_indent: bool background_pattern: BackgroundPatternType @@ -2111,11 +4538,10 @@ class View(Gtk.TextView, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): pixels_inside_wrap: int populate_all: bool right_margin: int - tabs: Pango.TabArray + tabs: Optional[Pango.TabArray] top_margin: int wrap_mode: Gtk.WrapMode border_width: int - child: Gtk.Widget resize_mode: Gtk.ResizeMode app_paintable: bool can_default: bool @@ -2143,24 +4569,24 @@ class View(Gtk.TextView, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): name: str no_show_all: bool opacity: float - parent: Gtk.Container + parent: Optional[Gtk.Container] receives_default: bool scale_factor: int sensitive: bool style: Gtk.Style - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int - window: Gdk.Window + window: Optional[Gdk.Window] hadjustment: Gtk.Adjustment hscroll_policy: Gtk.ScrollablePolicy vadjustment: Gtk.Adjustment vscroll_policy: Gtk.ScrollablePolicy - + child: Gtk.Widget props: Props = ... parent: Gtk.TextView = ... priv: ViewPrivate = ... @@ -2181,7 +4607,7 @@ class View(Gtk.TextView, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): tab_width: int = ..., accepts_tab: bool = ..., bottom_margin: int = ..., - buffer: Gtk.TextBuffer = ..., + buffer: Optional[Gtk.TextBuffer] = ..., cursor_visible: bool = ..., editable: bool = ..., im_module: str = ..., @@ -2231,17 +4657,17 @@ class View(Gtk.TextView, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): parent: Gtk.Container = ..., receives_default: bool = ..., sensitive: bool = ..., - style: Gtk.Style = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + style: Optional[Gtk.Style] = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., - hadjustment: Gtk.Adjustment = ..., + hadjustment: Optional[Gtk.Adjustment] = ..., hscroll_policy: Gtk.ScrollablePolicy = ..., - vadjustment: Gtk.Adjustment = ..., + vadjustment: Optional[Gtk.Adjustment] = ..., vscroll_policy: Gtk.ScrollablePolicy = ..., ): ... def do_line_mark_activated(self, iter: Gtk.TextIter, event: Gdk.Event) -> None: ... @@ -2252,8 +4678,6 @@ class View(Gtk.TextView, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def do_undo(self) -> None: ... def get_auto_indent(self) -> bool: ... def get_background_pattern(self) -> BackgroundPatternType: ... - # override - def get_buffer(self) -> Buffer: ... def get_completion(self) -> Completion: ... def get_gutter(self, window_type: Gtk.TextWindowType) -> Gutter: ... def get_highlight_current_line(self) -> bool: ... @@ -2296,6 +4720,14 @@ class View(Gtk.TextView, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def unindent_lines(self, start: Gtk.TextIter, end: Gtk.TextIter) -> None: ... class ViewClass(GObject.GPointer): + """ + :Constructors: + + :: + + ViewClass() + """ + parent_class: Gtk.TextViewClass = ... undo: Callable[[View], None] = ... redo: Callable[[View], None] = ... diff --git a/src/gi-stubs/repository/_GtkSource5.pyi b/src/gi-stubs/repository/_GtkSource5.pyi index 7f7e8156..fff8d2fb 100644 --- a/src/gi-stubs/repository/_GtkSource5.pyi +++ b/src/gi-stubs/repository/_GtkSource5.pyi @@ -5,6 +5,7 @@ from typing import Optional from typing import Sequence from typing import Tuple from typing import Type +from typing import TypeVar from gi.repository import Gdk from gi.repository import GdkPixbuf @@ -14,9 +15,14 @@ from gi.repository import GObject from gi.repository import Gtk from gi.repository import Pango +MAJOR_VERSION: int = 5 +MICRO_VERSION: int = 0 +MINOR_VERSION: int = 10 +_lock = ... # FIXME Constant _namespace: str = "GtkSource" _version: str = "5" +def check_version(major: int, minor: int, micro: int) -> bool: ... def encoding_get_all() -> list[Encoding]: ... def encoding_get_current() -> Encoding: ... def encoding_get_default_candidates() -> list[Encoding]: ... @@ -25,6 +31,9 @@ def encoding_get_utf8() -> Encoding: ... def file_loader_error_quark() -> int: ... def file_saver_error_quark() -> int: ... def finalize() -> None: ... +def get_major_version() -> int: ... +def get_micro_version() -> int: ... +def get_minor_version() -> int: ... def init() -> None: ... def scheduler_add(callback: Callable[..., bool], *user_data: Any) -> int: ... def scheduler_add_full(callback: Callable[..., bool], *user_data: Any) -> int: ... @@ -33,12 +42,74 @@ def utils_escape_search_text(text: str) -> str: ... def utils_unescape_search_text(text: str) -> str: ... class Buffer(Gtk.TextBuffer): + """ + :Constructors: + + :: + + Buffer(**properties) + new(table:Gtk.TextTagTable=None) -> GtkSource.Buffer + new_with_language(language:GtkSource.Language) -> GtkSource.Buffer + + Object GtkSourceBuffer + + Signals from GtkSourceBuffer: + cursor-moved () + highlight-updated (GtkTextIter, GtkTextIter) + source-mark-updated (GtkTextMark) + bracket-matched (GtkTextIter, GtkSourceBracketMatchType) + + Properties from GtkSourceBuffer: + highlight-matching-brackets -> gboolean: Highlight Matching Brackets + Whether to highlight matching brackets + highlight-syntax -> gboolean: Highlight Syntax + Whether to highlight syntax in the buffer + implicit-trailing-newline -> gboolean: Implicit trailing newline + + language -> GtkSourceLanguage: Language + Language object to get highlighting patterns from + loading -> gboolean: Loading + If a GtkSourceFileLoader is loading the buffer + style-scheme -> GtkSourceStyleScheme: Style scheme + Style scheme + + Signals from GtkTextBuffer: + changed () + insert-text (GtkTextIter, gchararray, gint) + insert-paintable (GtkTextIter, GdkPaintable) + insert-child-anchor (GtkTextIter, GtkTextChildAnchor) + delete-range (GtkTextIter, GtkTextIter) + modified-changed () + mark-set (GtkTextIter, GtkTextMark) + mark-deleted (GtkTextMark) + apply-tag (GtkTextTag, GtkTextIter, GtkTextIter) + remove-tag (GtkTextTag, GtkTextIter, GtkTextIter) + begin-user-action () + end-user-action () + paste-done (GdkClipboard) + redo () + undo () + + Properties from GtkTextBuffer: + tag-table -> GtkTextTagTable: tag-table + text -> gchararray: text + has-selection -> gboolean: has-selection + cursor-position -> gint: cursor-position + can-undo -> gboolean: can-undo + can-redo -> gboolean: can-redo + enable-undo -> gboolean: enable-undo + + Signals from GObject: + notify (GParam) + """ + class Props: highlight_matching_brackets: bool highlight_syntax: bool implicit_trailing_newline: bool - language: Language - style_scheme: StyleScheme + language: Optional[Language] + loading: bool + style_scheme: Optional[StyleScheme] can_redo: bool can_undo: bool cursor_position: int @@ -46,7 +117,6 @@ class Buffer(Gtk.TextBuffer): has_selection: bool tag_table: Gtk.TextTagTable text: str - props: Props = ... parent_instance: Gtk.TextBuffer = ... def __init__( @@ -54,8 +124,8 @@ class Buffer(Gtk.TextBuffer): highlight_matching_brackets: bool = ..., highlight_syntax: bool = ..., implicit_trailing_newline: bool = ..., - language: Language = ..., - style_scheme: StyleScheme = ..., + language: Optional[Language] = ..., + style_scheme: Optional[StyleScheme] = ..., enable_undo: bool = ..., tag_table: Gtk.TextTagTable = ..., text: str = ..., @@ -81,6 +151,7 @@ class Buffer(Gtk.TextBuffer): def get_highlight_syntax(self) -> bool: ... def get_implicit_trailing_newline(self) -> bool: ... def get_language(self) -> Optional[Language]: ... + def get_loading(self) -> bool: ... def get_source_marks_at_iter( self, iter: Gtk.TextIter, category: Optional[str] = None ) -> list[Mark]: ... @@ -117,11 +188,52 @@ class Buffer(Gtk.TextBuffer): ) -> None: ... class BufferClass(GObject.GPointer): + """ + :Constructors: + + :: + + BufferClass() + """ + parent_class: Gtk.TextBufferClass = ... bracket_matched: Callable[[Buffer, Gtk.TextIter, BracketMatchType], None] = ... _reserved: list[None] = ... class Completion(GObject.Object): + """ + :Constructors: + + :: + + Completion(**properties) + + Object GtkSourceCompletion + + Signals from GtkSourceCompletion: + provider-added (GtkSourceCompletionProvider) + provider-removed (GtkSourceCompletionProvider) + hide () + show () + + Properties from GtkSourceCompletion: + buffer -> GtkTextView: Buffer + The buffer for the view + page-size -> guint: Number of Rows + Number of rows to display to the user + remember-info-visibility -> gboolean: Remember Info Visibility + Remember Info Visibility + select-on-show -> gboolean: Select on Show + Select on Show + show-icons -> gboolean: Show Icons + If icons should be shown in the completion results + view -> GtkSourceView: View + The text view for which to provide completion + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Gtk.TextView page_size: int @@ -129,7 +241,6 @@ class Completion(GObject.Object): select_on_show: bool show_icons: bool view: View - props: Props = ... def __init__( self, @@ -159,17 +270,93 @@ class Completion(GObject.Object): def unblock_interactive(self) -> None: ... class CompletionCell(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + """ + :Constructors: + + :: + + CompletionCell(**properties) + + Object GtkSourceCompletionCell + + Properties from GtkSourceCompletionCell: + column -> GtkSourceCompletionColumn: Column + Column + markup -> gchararray: Markup + Markup + paintable -> GdkPaintable: Paintable + Paintable + text -> gchararray: Text + Text + widget -> GtkWidget: Widget + Widget + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: column: CompletionColumn markup: str paintable: Gdk.Paintable - text: str - widget: Gtk.Widget + text: Optional[str] + widget: Optional[Gtk.Widget] can_focus: bool can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -179,7 +366,7 @@ class CompletionCell(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -187,33 +374,32 @@ class CompletionCell(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, column: CompletionColumn = ..., markup: str = ..., paintable: Gdk.Paintable = ..., - text: str = ..., + text: Optional[str] = ..., widget: Gtk.Widget = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -221,7 +407,7 @@ class CompletionCell(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -231,8 +417,8 @@ class CompletionCell(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -251,17 +437,59 @@ class CompletionCell(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa def set_widget(self, child: Gtk.Widget) -> None: ... class CompletionCellClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionCellClass() + """ + parent_class: Gtk.WidgetClass = ... class CompletionClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionClass() + """ + parent_class: GObject.ObjectClass = ... class CompletionContext(GObject.Object, Gio.ListModel): + """ + :Constructors: + + :: + + CompletionContext(**properties) + + Object GtkSourceCompletionContext + + Signals from GtkSourceCompletionContext: + provider-model-changed (GtkSourceCompletionProvider, GListModel) + + Properties from GtkSourceCompletionContext: + busy -> gboolean: Busy + Is the completion context busy populating + completion -> GtkSourceCompletion: Completion + Completion + empty -> gboolean: Empty + If the context has no results + + Signals from GListModel: + items-changed (guint, guint, guint) + + Signals from GObject: + notify (GParam) + """ + class Props: busy: bool - completion: Completion + completion: Optional[Completion] empty: bool - props: Props = ... def __init__(self, completion: Completion = ...): ... def get_activation(self) -> CompletionActivation: ... @@ -282,16 +510,46 @@ class CompletionContext(GObject.Object, Gio.ListModel): ) -> None: ... class CompletionContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionContextClass() + """ + parent_class: GObject.ObjectClass = ... class CompletionProposal(GObject.GInterface): + """ + Interface GtkSourceCompletionProposal + + Signals from GObject: + notify (GParam) + """ + def get_typed_text(self) -> Optional[str]: ... class CompletionProposalInterface(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionProposalInterface() + """ + parent_iface: GObject.TypeInterface = ... get_typed_text: Callable[[CompletionProposal], Optional[str]] = ... class CompletionProvider(GObject.GInterface): + """ + Interface GtkSourceCompletionProvider + + Signals from GObject: + notify (GParam) + """ + def activate( self, context: CompletionContext, proposal: CompletionProposal ) -> None: ... @@ -325,6 +583,14 @@ class CompletionProvider(GObject.GInterface): def refilter(self, context: CompletionContext, model: Gio.ListModel) -> None: ... class CompletionProviderInterface(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionProviderInterface() + """ + parent_iface: GObject.TypeInterface = ... get_title: Callable[[CompletionProvider], Optional[str]] = ... get_priority: Callable[[CompletionProvider, CompletionContext], int] = ... @@ -341,12 +607,12 @@ class CompletionProviderInterface(GObject.GPointer): ] = ... populate: None = ... populate_async: Callable[..., None] = ... - populate_finish: Callable[[CompletionProvider, Gio.AsyncResult], Gio.ListModel] = ( - ... - ) - refilter: Callable[[CompletionProvider, CompletionContext, Gio.ListModel], None] = ( - ... - ) + populate_finish: Callable[ + [CompletionProvider, Gio.AsyncResult], Gio.ListModel + ] = ... + refilter: Callable[ + [CompletionProvider, CompletionContext, Gio.ListModel], None + ] = ... display: Callable[ [CompletionProvider, CompletionContext, CompletionProposal, CompletionCell], None, @@ -360,10 +626,29 @@ class CompletionProviderInterface(GObject.GPointer): ] = ... class CompletionSnippets(GObject.Object, CompletionProvider): + """ + :Constructors: + + :: + + CompletionSnippets(**properties) + new() -> GtkSource.CompletionSnippets + + Object GtkSourceCompletionSnippets + + Properties from GtkSourceCompletionSnippets: + title -> gchararray: Title + The provider title + priority -> gint: Priority + Provider priority + + Signals from GObject: + notify (GParam) + """ + class Props: priority: int title: str - props: Props = ... parent_instance: GObject.Object = ... def __init__(self, priority: int = ..., title: str = ...): ... @@ -371,17 +656,50 @@ class CompletionSnippets(GObject.Object, CompletionProvider): def new(cls) -> CompletionSnippets: ... class CompletionSnippetsClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionSnippetsClass() + """ + parent_class: GObject.ObjectClass = ... _reserved: list[None] = ... class CompletionWords(GObject.Object, CompletionProvider): + """ + :Constructors: + + :: + + CompletionWords(**properties) + new(title:str=None) -> GtkSource.CompletionWords + + Object GtkSourceCompletionWords + + Properties from GtkSourceCompletionWords: + title -> gchararray: Title + The provider title + proposals-batch-size -> guint: Proposals Batch Size + Number of proposals added in one batch + scan-batch-size -> guint: Scan Batch Size + Number of lines scanned in one batch + minimum-word-size -> guint: Minimum Word Size + The minimum word size to complete + priority -> gint: Priority + Provider priority + + Signals from GObject: + notify (GParam) + """ + class Props: minimum_word_size: int priority: int proposals_batch_size: int scan_batch_size: int title: str - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -398,6 +716,14 @@ class CompletionWords(GObject.Object, CompletionProvider): def unregister(self, buffer: Gtk.TextBuffer) -> None: ... class CompletionWordsClass(GObject.GPointer): + """ + :Constructors: + + :: + + CompletionWordsClass() + """ + parent_class: GObject.ObjectClass = ... _reserved: list[None] = ... @@ -419,16 +745,41 @@ class Encoding(GObject.GBoxed): def to_string(self) -> str: ... class File(GObject.Object): + """ + :Constructors: + + :: + + File(**properties) + new() -> GtkSource.File + + Object GtkSourceFile + + Properties from GtkSourceFile: + location -> GFile: Location + + encoding -> GtkSourceEncoding: Encoding + + newline-type -> GtkSourceNewlineType: Newline type + + compression-type -> GtkSourceCompressionType: Compression type + + read-only -> gboolean: Read Only + + + Signals from GObject: + notify (GParam) + """ + class Props: compression_type: CompressionType encoding: Encoding location: Gio.File newline_type: NewlineType read_only: bool - props: Props = ... parent_instance: GObject.Object = ... - def __init__(self, location: Gio.File = ...): ... + def __init__(self, location: Optional[Gio.File] = ...): ... def check_file_on_disk(self) -> None: ... def get_compression_type(self) -> CompressionType: ... def get_encoding(self) -> Encoding: ... @@ -443,16 +794,48 @@ class File(GObject.Object): def set_location(self, location: Optional[Gio.File] = None) -> None: ... class FileClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileClass() + """ + parent_class: GObject.ObjectClass = ... _reserved: list[None] = ... class FileLoader(GObject.Object): + """ + :Constructors: + + :: + + FileLoader(**properties) + new(buffer:GtkSource.Buffer, file:GtkSource.File) -> GtkSource.FileLoader + new_from_stream(buffer:GtkSource.Buffer, file:GtkSource.File, stream:Gio.InputStream) -> GtkSource.FileLoader + + Object GtkSourceFileLoader + + Properties from GtkSourceFileLoader: + buffer -> GtkSourceBuffer: GtkSourceBuffer + + file -> GtkSourceFile: GtkSourceFile + + location -> GFile: Location + + input-stream -> GInputStream: Input stream + + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Buffer file: File - input_stream: Gio.InputStream - location: Gio.File - + input_stream: Optional[Gio.InputStream] + location: Optional[Gio.File] props: Props = ... def __init__( self, @@ -486,9 +869,48 @@ class FileLoader(GObject.Object): def set_candidate_encodings(self, candidate_encodings: list[Encoding]) -> None: ... class FileLoaderClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileLoaderClass() + """ + parent_class: GObject.ObjectClass = ... class FileSaver(GObject.Object): + """ + :Constructors: + + :: + + FileSaver(**properties) + new(buffer:GtkSource.Buffer, file:GtkSource.File) -> GtkSource.FileSaver + new_with_target(buffer:GtkSource.Buffer, file:GtkSource.File, target_location:Gio.File) -> GtkSource.FileSaver + + Object GtkSourceFileSaver + + Properties from GtkSourceFileSaver: + buffer -> GtkSourceBuffer: GtkSourceBuffer + + file -> GtkSourceFile: GtkSourceFile + + location -> GFile: Location + + encoding -> GtkSourceEncoding: Encoding + + newline-type -> GtkSourceNewlineType: Newline type + + compression-type -> GtkSourceCompressionType: Compression type + + flags -> GtkSourceFileSaverFlags: Flags + + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Buffer compression_type: CompressionType @@ -497,13 +919,12 @@ class FileSaver(GObject.Object): flags: FileSaverFlags location: Gio.File newline_type: NewlineType - props: Props = ... def __init__( self, buffer: Buffer = ..., compression_type: CompressionType = ..., - encoding: Encoding = ..., + encoding: Optional[Encoding] = ..., file: File = ..., flags: FileSaverFlags = ..., location: Gio.File = ..., @@ -537,9 +958,87 @@ class FileSaver(GObject.Object): def set_newline_type(self, newline_type: NewlineType) -> None: ... class FileSaverClass(GObject.GPointer): + """ + :Constructors: + + :: + + FileSaverClass() + """ + parent_class: GObject.ObjectClass = ... class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + """ + :Constructors: + + :: + + Gutter(**properties) + + Object GtkSourceGutter + + Properties from GtkSourceGutter: + view -> GtkSourceView: View + + window-type -> GtkTextWindowType: Window Type + The gutters' text window type + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: view: View window_type: Gtk.TextWindowType @@ -547,7 +1046,7 @@ class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -557,7 +1056,7 @@ class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -565,20 +1064,19 @@ class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -588,7 +1086,7 @@ class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -596,7 +1094,7 @@ class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -606,8 +1104,8 @@ class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -621,9 +1119,30 @@ class Gutter(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): def reorder(self, renderer: GutterRenderer, position: int) -> None: ... class GutterClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterClass() + """ + parent_class: Gtk.WidgetClass = ... class GutterLines(GObject.Object): + """ + :Constructors: + + :: + + GutterLines(**properties) + + Object GtkSourceGutterLines + + Signals from GObject: + notify (GParam) + """ + def add_class(self, line: int, name: str) -> None: ... def add_qclass(self, line: int, qname: int) -> None: ... def get_buffer(self) -> Gtk.TextBuffer: ... @@ -644,9 +1163,102 @@ class GutterLines(GObject.Object): def remove_qclass(self, line: int, qname: int) -> None: ... class GutterLinesClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterLinesClass() + """ + parent_class: GObject.ObjectClass = ... class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + """ + :Constructors: + + :: + + GutterRenderer(**properties) + + Object GtkSourceGutterRenderer + + Signals from GtkSourceGutterRenderer: + activate (GtkTextIter, GdkRectangle, guint, GdkModifierType, gint) + query-activatable (GtkTextIter, GdkRectangle) -> gboolean + query-data (GObject, guint) + + Properties from GtkSourceGutterRenderer: + alignment-mode -> GtkSourceGutterRendererAlignmentMode: Alignment Mode + The alignment mode + lines -> GtkSourceGutterLines: Lines + Information about the lines to render + view -> GtkTextView: The View + The view + xalign -> gfloat: X Alignment + The x-alignment + xpad -> gint: X Padding + The x-padding + yalign -> gfloat: Y Alignment + The y-alignment + ypad -> gint: Y Padding + The y-padding + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: alignment_mode: GutterRendererAlignmentMode lines: GutterLines @@ -659,7 +1271,7 @@ class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -669,7 +1281,7 @@ class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -677,20 +1289,19 @@ class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -704,7 +1315,7 @@ class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -712,7 +1323,7 @@ class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -722,8 +1333,8 @@ class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -774,18 +1385,26 @@ class GutterRenderer(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa def set_ypad(self, ypad: int) -> None: ... class GutterRendererClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterRendererClass() + """ + parent_class: Gtk.WidgetClass = ... query_data: Callable[[GutterRenderer, GutterLines, int], None] = ... begin: Callable[[GutterRenderer, GutterLines], None] = ... - snapshot_line: Callable[[GutterRenderer, Gtk.Snapshot, GutterLines, int], None] = ( - ... - ) + snapshot_line: Callable[ + [GutterRenderer, Gtk.Snapshot, GutterLines, int], None + ] = ... end: Callable[[GutterRenderer], None] = ... change_view: Callable[[GutterRenderer, Optional[View]], None] = ... change_buffer: Callable[[GutterRenderer, Optional[Buffer]], None] = ... - query_activatable: Callable[[GutterRenderer, Gtk.TextIter, Gdk.Rectangle], bool] = ( - ... - ) + query_activatable: Callable[ + [GutterRenderer, Gtk.TextIter, Gdk.Rectangle], bool + ] = ... activate: Callable[ [GutterRenderer, Gtk.TextIter, Gdk.Rectangle, int, Gdk.ModifierType, int], None ] = ... @@ -794,10 +1413,106 @@ class GutterRendererClass(GObject.GPointer): class GutterRendererPixbuf( GutterRenderer, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget ): + """ + :Constructors: + + :: + + GutterRendererPixbuf(**properties) + new() -> GtkSource.GutterRenderer + + Object GtkSourceGutterRendererPixbuf + + Properties from GtkSourceGutterRendererPixbuf: + pixbuf -> GdkPixbuf: Pixbuf + The pixbuf + icon-name -> gchararray: Icon Name + The icon name + gicon -> GIcon: GIcon + The gicon + paintable -> GdkPaintable: Paintable + The paintable + + Signals from GtkSourceGutterRenderer: + activate (GtkTextIter, GdkRectangle, guint, GdkModifierType, gint) + query-activatable (GtkTextIter, GdkRectangle) -> gboolean + query-data (GObject, guint) + + Properties from GtkSourceGutterRenderer: + alignment-mode -> GtkSourceGutterRendererAlignmentMode: Alignment Mode + The alignment mode + lines -> GtkSourceGutterLines: Lines + Information about the lines to render + view -> GtkTextView: The View + The view + xalign -> gfloat: X Alignment + The x-alignment + xpad -> gint: X Padding + The x-padding + yalign -> gfloat: Y Alignment + The y-alignment + ypad -> gint: Y Padding + The y-padding + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: gicon: Gio.Icon icon_name: str - paintable: Gdk.Paintable + paintable: Optional[Gdk.Paintable] pixbuf: GdkPixbuf.Pixbuf alignment_mode: GutterRendererAlignmentMode lines: GutterLines @@ -810,7 +1525,7 @@ class GutterRendererPixbuf( can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -820,7 +1535,7 @@ class GutterRendererPixbuf( height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -828,28 +1543,27 @@ class GutterRendererPixbuf( name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: GutterRenderer = ... def __init__( self, - gicon: Gio.Icon = ..., - icon_name: str = ..., - paintable: Gdk.Paintable = ..., - pixbuf: GdkPixbuf.Pixbuf = ..., + gicon: Optional[Gio.Icon] = ..., + icon_name: Optional[str] = ..., + paintable: Optional[Gdk.Paintable] = ..., + pixbuf: Optional[GdkPixbuf.Pixbuf] = ..., alignment_mode: GutterRendererAlignmentMode = ..., xalign: float = ..., xpad: int = ..., @@ -859,7 +1573,7 @@ class GutterRendererPixbuf( can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -867,7 +1581,7 @@ class GutterRendererPixbuf( height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -877,8 +1591,8 @@ class GutterRendererPixbuf( overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -899,12 +1613,112 @@ class GutterRendererPixbuf( def set_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... class GutterRendererPixbufClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterRendererPixbufClass() + """ + parent_class: GutterRendererClass = ... _reserved: list[None] = ... class GutterRendererText( GutterRenderer, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget ): + """ + :Constructors: + + :: + + GutterRendererText(**properties) + new() -> GtkSource.GutterRenderer + + Object GtkSourceGutterRendererText + + Properties from GtkSourceGutterRendererText: + markup -> gchararray: Markup + The markup + text -> gchararray: Text + The text + + Signals from GtkSourceGutterRenderer: + activate (GtkTextIter, GdkRectangle, guint, GdkModifierType, gint) + query-activatable (GtkTextIter, GdkRectangle) -> gboolean + query-data (GObject, guint) + + Properties from GtkSourceGutterRenderer: + alignment-mode -> GtkSourceGutterRendererAlignmentMode: Alignment Mode + The alignment mode + lines -> GtkSourceGutterLines: Lines + Information about the lines to render + view -> GtkTextView: The View + The view + xalign -> gfloat: X Alignment + The x-alignment + xpad -> gint: X Padding + The x-padding + yalign -> gfloat: Y Alignment + The y-alignment + ypad -> gint: Y Padding + The y-padding + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: markup: str text: str @@ -919,7 +1733,7 @@ class GutterRendererText( can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -929,7 +1743,7 @@ class GutterRendererText( height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -937,20 +1751,19 @@ class GutterRendererText( name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: GutterRenderer = ... def __init__( @@ -966,7 +1779,7 @@ class GutterRendererText( can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -974,7 +1787,7 @@ class GutterRendererText( height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -984,8 +1797,8 @@ class GutterRendererText( overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -1001,37 +1814,154 @@ class GutterRendererText( def set_text(self, text: str, length: int) -> None: ... class GutterRendererTextClass(GObject.GPointer): + """ + :Constructors: + + :: + + GutterRendererTextClass() + """ + parent_class: GutterRendererClass = ... _reserved: list[None] = ... class Hover(GObject.Object): + """ + :Constructors: + + :: + + Hover(**properties) + + Object GtkSourceHover + + Properties from GtkSourceHover: + hover-delay -> guint: Hover Delay + Number of milliseconds to delay before showing assistant + + Signals from GObject: + notify (GParam) + """ + class Props: hover_delay: int - props: Props = ... def __init__(self, hover_delay: int = ...): ... def add_provider(self, provider: HoverProvider) -> None: ... def remove_provider(self, provider: HoverProvider) -> None: ... class HoverClass(GObject.GPointer): + """ + :Constructors: + + :: + + HoverClass() + """ + parent_class: GObject.ObjectClass = ... class HoverContext(GObject.Object): + """ + :Constructors: + + :: + + HoverContext(**properties) + + Object GtkSourceHoverContext + + Signals from GObject: + notify (GParam) + """ + def get_bounds(self) -> Tuple[bool, Gtk.TextIter, Gtk.TextIter]: ... def get_buffer(self) -> Buffer: ... def get_iter(self, iter: Gtk.TextIter) -> bool: ... def get_view(self) -> View: ... class HoverContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + HoverContextClass() + """ + parent_class: GObject.ObjectClass = ... class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): + """ + :Constructors: + + :: + + HoverDisplay(**properties) + + Object GtkSourceHoverDisplay + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: can_focus: bool can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -1041,7 +1971,7 @@ class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -1049,20 +1979,19 @@ class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... def __init__( self, @@ -1070,7 +1999,7 @@ class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -1078,7 +2007,7 @@ class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -1088,8 +2017,8 @@ class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -1103,9 +2032,24 @@ class HoverDisplay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg def remove(self, child: Gtk.Widget) -> None: ... class HoverDisplayClass(GObject.GPointer): + """ + :Constructors: + + :: + + HoverDisplayClass() + """ + parent_class: Gtk.WidgetClass = ... class HoverProvider(GObject.GInterface): + """ + Interface GtkSourceHoverProvider + + Signals from GObject: + notify (GParam) + """ + def populate_async( self, context: HoverContext, @@ -1117,18 +2061,41 @@ class HoverProvider(GObject.GInterface): def populate_finish(self, result: Gio.AsyncResult) -> bool: ... class HoverProviderInterface(GObject.GPointer): + """ + :Constructors: + + :: + + HoverProviderInterface() + """ + parent_iface: GObject.TypeInterface = ... populate: Callable[[HoverProvider, HoverContext, HoverDisplay], bool] = ... populate_async: Callable[..., None] = ... populate_finish: Callable[[HoverProvider, Gio.AsyncResult], bool] = ... class Indenter(GObject.GInterface): + """ + Interface GtkSourceIndenter + + Signals from GObject: + notify (GParam) + """ + def indent(self, view: View) -> Gtk.TextIter: ... def is_trigger( self, view: View, location: Gtk.TextIter, state: Gdk.ModifierType, keyval: int ) -> bool: ... class IndenterInterface(GObject.GPointer): + """ + :Constructors: + + :: + + IndenterInterface() + """ + parent_iface: GObject.TypeInterface = ... is_trigger: Callable[ [Indenter, View, Gtk.TextIter, Gdk.ModifierType, int], bool @@ -1136,12 +2103,34 @@ class IndenterInterface(GObject.GPointer): indent: Callable[[Indenter, View], Gtk.TextIter] = ... class Language(GObject.Object): + """ + :Constructors: + + :: + + Language(**properties) + + Object GtkSourceLanguage + + Properties from GtkSourceLanguage: + id -> gchararray: Language id + Language id + name -> gchararray: Language name + Language name + section -> gchararray: Language section + Language section + hidden -> gboolean: Hidden + Whether the language should be hidden from the user + + Signals from GObject: + notify (GParam) + """ + class Props: hidden: bool id: str name: str section: str - props: Props = ... def get_globs(self) -> Optional[list[str]]: ... def get_hidden(self) -> bool: ... @@ -1155,15 +2144,42 @@ class Language(GObject.Object): def get_style_name(self, style_id: str) -> Optional[str]: ... class LanguageClass(GObject.GPointer): + """ + :Constructors: + + :: + + LanguageClass() + """ + parent_class: GObject.ObjectClass = ... class LanguageManager(GObject.Object): + """ + :Constructors: + + :: + + LanguageManager(**properties) + new() -> GtkSource.LanguageManager + + Object GtkSourceLanguageManager + + Properties from GtkSourceLanguageManager: + search-path -> GStrv: Language specification directories + List of directories where the language specification files (.lang) are located + language-ids -> GStrv: Language ids + List of the ids of the available languages + + Signals from GObject: + notify (GParam) + """ + class Props: - language_ids: list[str] + language_ids: Optional[list[str]] search_path: list[str] - props: Props = ... - def __init__(self, search_path: Sequence[str] = ...): ... + def __init__(self, search_path: Optional[Sequence[str]] = ...): ... def append_search_path(self, path: str) -> None: ... @staticmethod def get_default() -> LanguageManager: ... @@ -1179,12 +2195,179 @@ class LanguageManager(GObject.Object): def set_search_path(self, dirs: Optional[Sequence[str]] = None) -> None: ... class LanguageManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + LanguageManagerClass() + """ + parent_class: GObject.ObjectClass = ... class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable): + """ + :Constructors: + + :: + + Map(**properties) + new() -> Gtk.Widget + + Object GtkSourceMap + + Properties from GtkSourceMap: + view -> GtkSourceView: View + The view this widget is mapping. + font-desc -> PangoFontDescription: Font Description + The Pango font description to use. + + Signals from GtkSourceView: + smart-home-end (GtkTextIter, gint) + show-completion () + line-mark-activated (GtkTextIter, guint, GdkModifierType, gint) + move-lines (gboolean) + move-words (gint) + push-snippet (GtkSourceSnippet, GtkTextIter) + move-to-matching-bracket (gboolean) + change-number (gint) + change-case (GtkSourceChangeCaseType) + join-lines () + + Properties from GtkSourceView: + auto-indent -> gboolean: Auto Indentation + Whether to enable auto indentation + background-pattern -> GtkSourceBackgroundPatternType: Background pattern + Draw a specific background pattern on the view + completion -> GtkSourceCompletion: Completion + The completion object associated with the view + enable-snippets -> gboolean: Enable Snippets + Whether to enable snippet expansion + highlight-current-line -> gboolean: Highlight current line + Whether to highlight the current line + indent-on-tab -> gboolean: Indent on tab + Whether to indent the selected text when the tab key is pressed + indent-width -> gint: Indent Width + Number of spaces to use for each step of indent + indenter -> GtkSourceIndenter: Indenter + A indenter to use to indent typed text + insert-spaces-instead-of-tabs -> gboolean: Insert Spaces Instead of Tabs + Whether to insert spaces instead of tabs + right-margin-position -> guint: Right Margin Position + Position of the right margin + show-line-marks -> gboolean: Show Line Marks + Whether to display line mark pixbufs + show-line-numbers -> gboolean: Show Line Numbers + Whether to display line numbers + show-right-margin -> gboolean: Show Right Margin + Whether to display the right margin + smart-backspace -> gboolean: Smart Backspace + + smart-home-end -> GtkSourceSmartHomeEndType: Smart Home/End + HOME and END keys move to first/last non whitespace characters on line before going to the start/end of the line + space-drawer -> GtkSourceSpaceDrawer: Space Drawer + + tab-width -> guint: Tab Width + Width of a tab character expressed in spaces + + Signals from GtkTextView: + move-cursor (GtkMovementStep, gint, gboolean) + move-viewport (GtkScrollStep, gint) + set-anchor () + insert-at-cursor (gchararray) + delete-from-cursor (GtkDeleteType, gint) + backspace () + cut-clipboard () + copy-clipboard () + paste-clipboard () + toggle-overwrite () + select-all (gboolean) + toggle-cursor-visible () + preedit-changed (gchararray) + extend-selection (GtkTextExtendSelection, GtkTextIter, GtkTextIter, GtkTextIter) -> gboolean + insert-emoji () + + Properties from GtkTextView: + pixels-above-lines -> gint: pixels-above-lines + pixels-below-lines -> gint: pixels-below-lines + pixels-inside-wrap -> gint: pixels-inside-wrap + editable -> gboolean: editable + wrap-mode -> GtkWrapMode: wrap-mode + justification -> GtkJustification: justification + left-margin -> gint: left-margin + right-margin -> gint: right-margin + top-margin -> gint: top-margin + bottom-margin -> gint: bottom-margin + indent -> gint: indent + tabs -> PangoTabArray: tabs + cursor-visible -> gboolean: cursor-visible + buffer -> GtkTextBuffer: buffer + overwrite -> gboolean: overwrite + accepts-tab -> gboolean: accepts-tab + im-module -> gchararray: im-module + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + monospace -> gboolean: monospace + extra-menu -> GMenuModel: extra-menu + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: font_desc: Pango.FontDescription - view: View + view: Optional[View] auto_indent: bool background_pattern: BackgroundPatternType completion: Completion @@ -1192,7 +2375,7 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla highlight_current_line: bool indent_on_tab: bool indent_width: int - indenter: Indenter + indenter: Optional[Indenter] insert_spaces_instead_of_tabs: bool right_margin_position: int show_line_marks: bool @@ -1220,14 +2403,14 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla pixels_below_lines: int pixels_inside_wrap: int right_margin: int - tabs: Pango.TabArray + tabs: Optional[Pango.TabArray] top_margin: int wrap_mode: Gtk.WrapMode can_focus: bool can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -1237,7 +2420,7 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -1245,24 +2428,23 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - hadjustment: Gtk.Adjustment + hadjustment: Optional[Gtk.Adjustment] hscroll_policy: Gtk.ScrollablePolicy - vadjustment: Gtk.Adjustment + vadjustment: Optional[Gtk.Adjustment] vscroll_policy: Gtk.ScrollablePolicy - props: Props = ... parent_instance: View = ... def __init__( @@ -1275,7 +2457,7 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla highlight_current_line: bool = ..., indent_on_tab: bool = ..., indent_width: int = ..., - indenter: Indenter = ..., + indenter: Optional[Indenter] = ..., insert_spaces_instead_of_tabs: bool = ..., right_margin_position: int = ..., show_line_marks: bool = ..., @@ -1286,10 +2468,10 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla tab_width: int = ..., accepts_tab: bool = ..., bottom_margin: int = ..., - buffer: Gtk.TextBuffer = ..., + buffer: Optional[Gtk.TextBuffer] = ..., cursor_visible: bool = ..., editable: bool = ..., - extra_menu: Gio.MenuModel = ..., + extra_menu: Optional[Gio.MenuModel] = ..., im_module: str = ..., indent: int = ..., input_hints: Gtk.InputHints = ..., @@ -1309,7 +2491,7 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -1317,7 +2499,7 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -1327,17 +2509,17 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., accessible_role: Gtk.AccessibleRole = ..., - hadjustment: Gtk.Adjustment = ..., + hadjustment: Optional[Gtk.Adjustment] = ..., hscroll_policy: Gtk.ScrollablePolicy = ..., - vadjustment: Gtk.Adjustment = ..., + vadjustment: Optional[Gtk.Adjustment] = ..., vscroll_policy: Gtk.ScrollablePolicy = ..., ): ... def get_view(self) -> Optional[View]: ... @@ -1346,15 +2528,44 @@ class Map(View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrolla def set_view(self, view: View) -> None: ... class MapClass(GObject.GPointer): + """ + :Constructors: + + :: + + MapClass() + """ + parent_class: ViewClass = ... _reserved: list[None] = ... class Mark(Gtk.TextMark): + """ + :Constructors: + + :: + + Mark(**properties) + new(name:str=None, category:str) -> GtkSource.Mark + + Object GtkSourceMark + + Properties from GtkSourceMark: + category -> gchararray: Category + The mark category + + Properties from GtkTextMark: + name -> gchararray: name + left-gravity -> gboolean: left-gravity + + Signals from GObject: + notify (GParam) + """ + class Props: category: str left_gravity: bool - name: str - + name: Optional[str] props: Props = ... parent_instance: Gtk.TextMark = ... def __init__( @@ -1364,15 +2575,42 @@ class Mark(Gtk.TextMark): @classmethod def new(cls, name: Optional[str], category: str) -> Mark: ... def next(self, category: Optional[str] = None) -> Optional[Mark]: ... - def prev(self, category: str) -> Optional[Mark]: ... + def prev(self, category: Optional[str] = None) -> Optional[Mark]: ... class MarkAttributes(GObject.Object): + """ + :Constructors: + + :: + + MarkAttributes(**properties) + new() -> GtkSource.MarkAttributes + + Object GtkSourceMarkAttributes + + Signals from GtkSourceMarkAttributes: + query-tooltip-text (GtkSourceMark) -> gchararray + query-tooltip-markup (GtkSourceMark) -> gchararray + + Properties from GtkSourceMarkAttributes: + background -> GdkRGBA: Background + The background + pixbuf -> GdkPixbuf: Pixbuf + The pixbuf + icon-name -> gchararray: Icon Name + The icon name + gicon -> GIcon: GIcon + The GIcon + + Signals from GObject: + notify (GParam) + """ + class Props: background: Gdk.RGBA gicon: Gio.Icon icon_name: str pixbuf: GdkPixbuf.Pixbuf - props: Props = ... def __init__( self, @@ -1396,13 +2634,70 @@ class MarkAttributes(GObject.Object): def set_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ... class MarkAttributesClass(GObject.GPointer): + """ + :Constructors: + + :: + + MarkAttributesClass() + """ + parent_class: GObject.ObjectClass = ... class MarkClass(GObject.GPointer): + """ + :Constructors: + + :: + + MarkClass() + """ + parent_class: Gtk.TextMarkClass = ... _reserved: list[None] = ... class PrintCompositor(GObject.Object): + """ + :Constructors: + + :: + + PrintCompositor(**properties) + new(buffer:GtkSource.Buffer) -> GtkSource.PrintCompositor + new_from_view(view:GtkSource.View) -> GtkSource.PrintCompositor + + Object GtkSourcePrintCompositor + + Properties from GtkSourcePrintCompositor: + buffer -> GtkSourceBuffer: Source Buffer + The GtkSourceBuffer object to print + tab-width -> guint: Tab Width + Width of a tab character expressed in spaces + wrap-mode -> GtkWrapMode: Wrap Mode + + highlight-syntax -> gboolean: Highlight Syntax + + print-line-numbers -> guint: Print Line Numbers + + print-header -> gboolean: Print Header + + print-footer -> gboolean: Print Footer + + body-font-name -> gchararray: Body Font Name + + line-numbers-font-name -> gchararray: Line Numbers Font Name + + header-font-name -> gchararray: Header Font Name + + footer-font-name -> gchararray: Footer Font Name + + n-pages -> gint: Number of pages + + + Signals from GObject: + notify (GParam) + """ + class Props: body_font_name: str buffer: Buffer @@ -1416,17 +2711,16 @@ class PrintCompositor(GObject.Object): print_line_numbers: int tab_width: int wrap_mode: Gtk.WrapMode - props: Props = ... parent_instance: GObject.Object = ... def __init__( self, body_font_name: str = ..., buffer: Buffer = ..., - footer_font_name: str = ..., - header_font_name: str = ..., + footer_font_name: Optional[str] = ..., + header_font_name: Optional[str] = ..., highlight_syntax: bool = ..., - line_numbers_font_name: str = ..., + line_numbers_font_name: Optional[str] = ..., print_footer: bool = ..., print_header: bool = ..., print_line_numbers: int = ..., @@ -1487,13 +2781,38 @@ class PrintCompositor(GObject.Object): def set_wrap_mode(self, wrap_mode: Gtk.WrapMode) -> None: ... class PrintCompositorClass(GObject.GPointer): + """ + :Constructors: + + :: + + PrintCompositorClass() + """ + parent_class: GObject.ObjectClass = ... _reserved: list[None] = ... class Region(GObject.Object): - class Props: - buffer: Gtk.TextBuffer + """ + :Constructors: + + :: + + Region(**properties) + new(buffer:Gtk.TextBuffer) -> GtkSource.Region + + Object GtkSourceRegion + + Properties from GtkSourceRegion: + buffer -> GtkTextBuffer: Buffer + + + Signals from GObject: + notify (GParam) + """ + class Props: + buffer: Optional[Gtk.TextBuffer] props: Props = ... parent_instance: GObject.Object = ... def __init__(self, buffer: Gtk.TextBuffer = ...): ... @@ -1516,10 +2835,26 @@ class Region(GObject.Object): def to_string(self) -> Optional[str]: ... class RegionClass(GObject.GPointer): + """ + :Constructors: + + :: + + RegionClass() + """ + parent_class: GObject.ObjectClass = ... _reserved: list[None] = ... class RegionIter(GObject.GPointer): + """ + :Constructors: + + :: + + RegionIter() + """ + dummy1: None = ... dummy2: int = ... dummy3: None = ... @@ -1528,20 +2863,47 @@ class RegionIter(GObject.GPointer): def next(self) -> bool: ... class SearchContext(GObject.Object): + """ + :Constructors: + + :: + + SearchContext(**properties) + new(buffer:GtkSource.Buffer, settings:GtkSource.SearchSettings=None) -> GtkSource.SearchContext + + Object GtkSourceSearchContext + + Properties from GtkSourceSearchContext: + buffer -> GtkSourceBuffer: Buffer + The associated GtkSourceBuffer + settings -> GtkSourceSearchSettings: Settings + The associated GtkSourceSearchSettings + highlight -> gboolean: Highlight + Highlight search occurrences + match-style -> GtkSourceStyle: Match style + The text style for matches + occurrences-count -> gint: Occurrences count + Total number of search occurrences + regex-error -> GError: Regex error + Regular expression error + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Buffer highlight: bool match_style: Style occurrences_count: int - regex_error: GLib.Error + regex_error: Optional[GLib.Error] settings: SearchSettings - props: Props = ... def __init__( self, buffer: Buffer = ..., highlight: bool = ..., - match_style: Style = ..., + match_style: Optional[Style] = ..., settings: SearchSettings = ..., ): ... def backward( @@ -1595,16 +2957,49 @@ class SearchContext(GObject.Object): def set_match_style(self, match_style: Optional[Style] = None) -> None: ... class SearchContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + SearchContextClass() + """ + parent_class: GObject.ObjectClass = ... class SearchSettings(GObject.Object): + """ + :Constructors: + + :: + + SearchSettings(**properties) + new() -> GtkSource.SearchSettings + + Object GtkSourceSearchSettings + + Properties from GtkSourceSearchSettings: + search-text -> gchararray: Search text + The text to search + case-sensitive -> gboolean: Case sensitive + Case sensitive + at-word-boundaries -> gboolean: At word boundaries + Search at word boundaries + wrap-around -> gboolean: Wrap around + Wrap around + regex-enabled -> gboolean: Regex enabled + Whether to search by regular expression + + Signals from GObject: + notify (GParam) + """ + class Props: at_word_boundaries: bool case_sensitive: bool regex_enabled: bool - search_text: str + search_text: Optional[str] wrap_around: bool - props: Props = ... parent_instance: GObject.Object = ... def __init__( @@ -1612,7 +3007,7 @@ class SearchSettings(GObject.Object): at_word_boundaries: bool = ..., case_sensitive: bool = ..., regex_enabled: bool = ..., - search_text: str = ..., + search_text: Optional[str] = ..., wrap_around: bool = ..., ): ... def get_at_word_boundaries(self) -> bool: ... @@ -1629,18 +3024,54 @@ class SearchSettings(GObject.Object): def set_wrap_around(self, wrap_around: bool) -> None: ... class SearchSettingsClass(GObject.GPointer): + """ + :Constructors: + + :: + + SearchSettingsClass() + """ + parent_class: GObject.ObjectClass = ... _reserved: list[None] = ... class Snippet(GObject.Object): + """ + :Constructors: + + :: + + Snippet(**properties) + new(trigger:str=None, language_id:str=None) -> GtkSource.Snippet + new_parsed(text:str) -> GtkSource.Snippet + + Object GtkSourceSnippet + + Properties from GtkSourceSnippet: + buffer -> GtkTextBuffer: Buffer + The GtkTextBuffer for the snippet + description -> gchararray: Description + The description for the snippet + focus-position -> gint: Focus Position + The currently focused chunk + language-id -> gchararray: Language Id + The language-id for the snippet + name -> gchararray: Name + The name for the snippet + trigger -> gchararray: Trigger + The trigger for the snippet + + Signals from GObject: + notify (GParam) + """ + class Props: buffer: Gtk.TextBuffer description: str focus_position: int language_id: str name: str - trigger: str - + trigger: Optional[str] props: Props = ... def __init__( self, @@ -1671,14 +3102,41 @@ class Snippet(GObject.Object): def set_trigger(self, trigger: str) -> None: ... class SnippetChunk(GObject.InitiallyUnowned): + """ + :Constructors: + + :: + + SnippetChunk(**properties) + new() -> GtkSource.SnippetChunk + + Object GtkSourceSnippetChunk + + Properties from GtkSourceSnippetChunk: + context -> GtkSourceSnippetContext: Context + The snippet context. + spec -> gchararray: Spec + The specification to expand using the context. + focus-position -> gint: Focus Position + The focus position for the chunk. + text -> gchararray: Text + The text for the chunk. + text-set -> gboolean: If text property is set + If the text property has been manually set. + tooltip-text -> gchararray: Tooltip Text + The tooltip text for the chunk. + + Signals from GObject: + notify (GParam) + """ + class Props: context: SnippetContext focus_position: int - spec: str + spec: Optional[str] text: str text_set: bool tooltip_text: str - props: Props = ... def __init__( self, @@ -1706,12 +3164,45 @@ class SnippetChunk(GObject.InitiallyUnowned): def set_tooltip_text(self, tooltip_text: str) -> None: ... class SnippetChunkClass(GObject.GPointer): + """ + :Constructors: + + :: + + SnippetChunkClass() + """ + parent_class: GObject.InitiallyUnownedClass = ... class SnippetClass(GObject.GPointer): + """ + :Constructors: + + :: + + SnippetClass() + """ + parent_class: GObject.ObjectClass = ... class SnippetContext(GObject.Object): + """ + :Constructors: + + :: + + SnippetContext(**properties) + new() -> GtkSource.SnippetContext + + Object GtkSourceSnippetContext + + Signals from GtkSourceSnippetContext: + changed () + + Signals from GObject: + notify (GParam) + """ + def clear_variables(self) -> None: ... def expand(self, input: str) -> str: ... def get_variable(self, key: str) -> Optional[str]: ... @@ -1724,14 +3215,38 @@ class SnippetContext(GObject.Object): def set_variable(self, key: str, value: str) -> None: ... class SnippetContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + SnippetContextClass() + """ + parent_class: GObject.ObjectClass = ... class SnippetManager(GObject.Object): + """ + :Constructors: + + :: + + SnippetManager(**properties) + + Object GtkSourceSnippetManager + + Properties from GtkSourceSnippetManager: + search-path -> GStrv: Snippet directories + List of directories with snippet definitions (*.snippets) + + Signals from GObject: + notify (GParam) + """ + class Props: search_path: list[str] - props: Props = ... - def __init__(self, search_path: Sequence[str] = ...): ... + def __init__(self, search_path: Optional[Sequence[str]] = ...): ... @staticmethod def get_default() -> SnippetManager: ... def get_search_path(self) -> list[str]: ... @@ -1749,15 +3264,44 @@ class SnippetManager(GObject.Object): def set_search_path(self, dirs: Optional[Sequence[str]] = None) -> None: ... class SnippetManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + SnippetManagerClass() + """ + parent_class: GObject.ObjectClass = ... class SpaceDrawer(GObject.Object): + """ + :Constructors: + + :: + + SpaceDrawer(**properties) + new() -> GtkSource.SpaceDrawer + + Object GtkSourceSpaceDrawer + + Properties from GtkSourceSpaceDrawer: + enable-matrix -> gboolean: Enable Matrix + + matrix -> GVariant: Matrix + + + Signals from GObject: + notify (GParam) + """ + class Props: enable_matrix: bool matrix: GLib.Variant - props: Props = ... - def __init__(self, enable_matrix: bool = ..., matrix: GLib.Variant = ...): ... + def __init__( + self, enable_matrix: bool = ..., matrix: Optional[GLib.Variant] = ... + ): ... def bind_matrix_setting( self, settings: Gio.Settings, key: str, flags: Gio.SettingsBindFlags ) -> None: ... @@ -1775,9 +3319,72 @@ class SpaceDrawer(GObject.Object): ) -> None: ... class SpaceDrawerClass(GObject.GPointer): + """ + :Constructors: + + :: + + SpaceDrawerClass() + """ + parent_class: GObject.ObjectClass = ... class Style(GObject.Object): + """ + :Constructors: + + :: + + Style(**properties) + + Object GtkSourceStyle + + Properties from GtkSourceStyle: + line-background -> gchararray: Line background + Line background color + line-background-set -> gboolean: Line background set + Whether line background color is set + background -> gchararray: Background + Background color + background-set -> gboolean: Background set + Whether background color is set + foreground -> gchararray: Foreground + Foreground color + foreground-set -> gboolean: Foreground set + Whether foreground color is set + bold -> gboolean: Bold + Bold + bold-set -> gboolean: Bold set + Whether bold attribute is set + italic -> gboolean: Italic + Italic + italic-set -> gboolean: Italic set + Whether italic attribute is set + pango-underline -> PangoUnderline: Pango Underline + Pango Underline + underline-set -> gboolean: Underline set + Whether underline attribute is set + strikethrough -> gboolean: Strikethrough + Strikethrough + strikethrough-set -> gboolean: Strikethrough set + Whether strikethrough attribute is set + scale -> gchararray: Scale + Text scale factor + scale-set -> gboolean: Scale set + Whether scale attribute is set + underline-color -> gchararray: Underline Color + Underline color + underline-color-set -> gboolean: Underline color set + Whether underline color attribute is set + weight -> PangoWeight: Weight + Text weight + weight-set -> gboolean: Weight set + Whether weight attribute is set + + Signals from GObject: + notify (GParam) + """ + class Props: background: str background_set: bool @@ -1799,7 +3406,6 @@ class Style(GObject.Object): underline_set: bool weight: Pango.Weight weight_set: bool - props: Props = ... def __init__( self, @@ -1828,15 +3434,45 @@ class Style(GObject.Object): def copy(self) -> Style: ... class StyleClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleClass() + """ + parent_class: GObject.ObjectClass = ... class StyleScheme(GObject.Object): + """ + :Constructors: + + :: + + StyleScheme(**properties) + + Object GtkSourceStyleScheme + + Properties from GtkSourceStyleScheme: + id -> gchararray: Style scheme id + Style scheme id + name -> gchararray: Style scheme name + Style scheme name + description -> gchararray: Style scheme description + Style scheme description + filename -> gchararray: Style scheme filename + Style scheme filename + + Signals from GObject: + notify (GParam) + """ + class Props: - description: str - filename: str + description: Optional[str] + filename: Optional[str] id: str name: str - props: Props = ... def __init__(self, id: str = ...): ... def get_authors(self) -> Optional[list[str]]: ... @@ -1848,6 +3484,13 @@ class StyleScheme(GObject.Object): def get_style(self, style_id: str) -> Optional[Style]: ... class StyleSchemeChooser(GObject.GInterface): + """ + Interface GtkSourceStyleSchemeChooser + + Signals from GObject: + notify (GParam) + """ + def get_style_scheme(self) -> StyleScheme: ... def set_style_scheme(self, scheme: StyleScheme) -> None: ... @@ -1859,17 +3502,95 @@ class StyleSchemeChooserButton( Gtk.ConstraintTarget, StyleSchemeChooser, ): + """ + :Constructors: + + :: + + StyleSchemeChooserButton(**properties) + new() -> Gtk.Widget + + Object GtkSourceStyleSchemeChooserButton + + Signals from GtkButton: + activate () + clicked () + + Properties from GtkButton: + label -> gchararray: label + has-frame -> gboolean: has-frame + use-underline -> gboolean: use-underline + icon-name -> gchararray: icon-name + child -> GtkWidget: child + can-shrink -> gboolean: can-shrink + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: - child: Gtk.Widget + can_shrink: bool + child: Optional[Gtk.Widget] has_frame: bool - icon_name: str - label: str + icon_name: Optional[str] + label: Optional[str] use_underline: bool can_focus: bool can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -1879,7 +3600,7 @@ class StyleSchemeChooserButton( height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -1887,28 +3608,28 @@ class StyleSchemeChooserButton( name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - action_name: str + action_name: Optional[str] action_target: GLib.Variant style_scheme: StyleScheme - props: Props = ... parent_instance: Gtk.Button = ... def __init__( self, - child: Gtk.Widget = ..., + can_shrink: bool = ..., + child: Optional[Gtk.Widget] = ..., has_frame: bool = ..., icon_name: str = ..., label: str = ..., @@ -1917,7 +3638,7 @@ class StyleSchemeChooserButton( can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -1925,7 +3646,7 @@ class StyleSchemeChooserButton( height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -1935,15 +3656,15 @@ class StyleSchemeChooserButton( overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., accessible_role: Gtk.AccessibleRole = ..., - action_name: str = ..., + action_name: Optional[str] = ..., action_target: GLib.Variant = ..., style_scheme: StyleScheme = ..., ): ... @@ -1951,10 +3672,26 @@ class StyleSchemeChooserButton( def new(cls) -> StyleSchemeChooserButton: ... class StyleSchemeChooserButtonClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeChooserButtonClass() + """ + parent: Gtk.ButtonClass = ... _reserved: list[None] = ... class StyleSchemeChooserInterface(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeChooserInterface() + """ + base_interface: GObject.TypeInterface = ... get_style_scheme: Callable[[StyleSchemeChooser], StyleScheme] = ... set_style_scheme: Callable[[StyleSchemeChooser, StyleScheme], None] = ... @@ -1963,12 +3700,77 @@ class StyleSchemeChooserInterface(GObject.GPointer): class StyleSchemeChooserWidget( Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, StyleSchemeChooser ): + """ + :Constructors: + + :: + + StyleSchemeChooserWidget(**properties) + new() -> Gtk.Widget + + Object GtkSourceStyleSchemeChooserWidget + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: can_focus: bool can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -1978,7 +3780,7 @@ class StyleSchemeChooserWidget( height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -1986,13 +3788,13 @@ class StyleSchemeChooserWidget( name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool @@ -2000,7 +3802,6 @@ class StyleSchemeChooserWidget( width_request: int accessible_role: Gtk.AccessibleRole style_scheme: StyleScheme - props: Props = ... parent_instance: Gtk.Widget = ... def __init__( @@ -2009,7 +3810,7 @@ class StyleSchemeChooserWidget( can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -2017,7 +3818,7 @@ class StyleSchemeChooserWidget( height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -2027,8 +3828,8 @@ class StyleSchemeChooserWidget( overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., @@ -2041,19 +3842,54 @@ class StyleSchemeChooserWidget( def new(cls) -> StyleSchemeChooserWidget: ... class StyleSchemeChooserWidgetClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeChooserWidgetClass() + """ + parent: Gtk.WidgetClass = ... _reserved: list[None] = ... class StyleSchemeClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeClass() + """ + parent_class: GObject.ObjectClass = ... class StyleSchemeManager(GObject.Object): + """ + :Constructors: + + :: + + StyleSchemeManager(**properties) + new() -> GtkSource.StyleSchemeManager + + Object GtkSourceStyleSchemeManager + + Properties from GtkSourceStyleSchemeManager: + search-path -> GStrv: Style scheme search path + List of directories and files where the style schemes are located + scheme-ids -> GStrv: Scheme ids + List of the ids of the available style schemes + + Signals from GObject: + notify (GParam) + """ + class Props: - scheme_ids: list[str] + scheme_ids: Optional[list[str]] search_path: list[str] - props: Props = ... - def __init__(self, search_path: Sequence[str] = ...): ... + def __init__(self, search_path: Optional[Sequence[str]] = ...): ... def append_search_path(self, path: str) -> None: ... def force_rescan(self) -> None: ... @staticmethod @@ -2067,11 +3903,93 @@ class StyleSchemeManager(GObject.Object): def set_search_path(self, path: Optional[Sequence[str]] = None) -> None: ... class StyleSchemeManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemeManagerClass() + """ + parent_class: GObject.ObjectClass = ... class StyleSchemePreview( Gtk.Widget, Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget ): + """ + :Constructors: + + :: + + StyleSchemePreview(**properties) + new(scheme:GtkSource.StyleScheme) -> Gtk.Widget + + Object GtkSourceStyleSchemePreview + + Signals from GtkSourceStyleSchemePreview: + activate () + + Properties from GtkSourceStyleSchemePreview: + scheme -> GtkSourceStyleScheme: Scheme + The style scheme to preview + selected -> gboolean: Selected + If the preview should have the selected state + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: scheme: StyleScheme selected: bool @@ -2079,7 +3997,7 @@ class StyleSchemePreview( can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -2089,7 +4007,7 @@ class StyleSchemePreview( height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -2097,22 +4015,21 @@ class StyleSchemePreview( name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - action_name: str + action_name: Optional[str] action_target: GLib.Variant - props: Props = ... def __init__( self, @@ -2122,7 +4039,7 @@ class StyleSchemePreview( can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -2130,7 +4047,7 @@ class StyleSchemePreview( height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -2140,15 +4057,15 @@ class StyleSchemePreview( overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., accessible_role: Gtk.AccessibleRole = ..., - action_name: str = ..., + action_name: Optional[str] = ..., action_target: GLib.Variant = ..., ): ... def get_scheme(self) -> StyleScheme: ... @@ -2158,16 +4075,134 @@ class StyleSchemePreview( def set_selected(self, selected: bool) -> None: ... class StyleSchemePreviewClass(GObject.GPointer): + """ + :Constructors: + + :: + + StyleSchemePreviewClass() + """ + parent_class: Gtk.WidgetClass = ... class Tag(Gtk.TextTag): + """ + :Constructors: + + :: + + Tag(**properties) + new(name:str=None) -> Gtk.TextTag + + Object GtkSourceTag + + Properties from GtkSourceTag: + draw-spaces -> gboolean: Draw Spaces + + draw-spaces-set -> gboolean: Draw Spaces Set + + + Properties from GtkTextTag: + name -> gchararray: name + background -> gchararray: background + foreground -> gchararray: foreground + background-rgba -> GdkRGBA: background-rgba + foreground-rgba -> GdkRGBA: foreground-rgba + font -> gchararray: font + font-desc -> PangoFontDescription: font-desc + family -> gchararray: family + style -> PangoStyle: style + variant -> PangoVariant: variant + weight -> gint: weight + stretch -> PangoStretch: stretch + size -> gint: size + size-points -> gdouble: size-points + scale -> gdouble: scale + pixels-above-lines -> gint: pixels-above-lines + pixels-below-lines -> gint: pixels-below-lines + pixels-inside-wrap -> gint: pixels-inside-wrap + line-height -> gfloat: line-height + editable -> gboolean: editable + wrap-mode -> GtkWrapMode: wrap-mode + justification -> GtkJustification: justification + direction -> GtkTextDirection: direction + left-margin -> gint: left-margin + indent -> gint: indent + strikethrough -> gboolean: strikethrough + strikethrough-rgba -> GdkRGBA: strikethrough-rgba + right-margin -> gint: right-margin + underline -> PangoUnderline: underline + underline-rgba -> GdkRGBA: underline-rgba + overline -> PangoOverline: overline + overline-rgba -> GdkRGBA: overline-rgba + rise -> gint: rise + background-full-height -> gboolean: background-full-height + language -> gchararray: language + tabs -> PangoTabArray: tabs + invisible -> gboolean: invisible + paragraph-background -> gchararray: paragraph-background + paragraph-background-rgba -> GdkRGBA: paragraph-background-rgba + fallback -> gboolean: fallback + letter-spacing -> gint: letter-spacing + font-features -> gchararray: font-features + allow-breaks -> gboolean: allow-breaks + show-spaces -> PangoShowFlags: show-spaces + insert-hyphens -> gboolean: insert-hyphens + text-transform -> PangoTextTransform: text-transform + word -> gboolean: word + sentence -> gboolean: sentence + accumulative-margin -> gboolean: accumulative-margin + background-set -> gboolean: background-set + foreground-set -> gboolean: foreground-set + family-set -> gboolean: family-set + style-set -> gboolean: style-set + variant-set -> gboolean: variant-set + weight-set -> gboolean: weight-set + stretch-set -> gboolean: stretch-set + size-set -> gboolean: size-set + scale-set -> gboolean: scale-set + pixels-above-lines-set -> gboolean: pixels-above-lines-set + pixels-below-lines-set -> gboolean: pixels-below-lines-set + pixels-inside-wrap-set -> gboolean: pixels-inside-wrap-set + line-height-set -> gboolean: line-height-set + editable-set -> gboolean: editable-set + wrap-mode-set -> gboolean: wrap-mode-set + justification-set -> gboolean: justification-set + left-margin-set -> gboolean: left-margin-set + indent-set -> gboolean: indent-set + strikethrough-set -> gboolean: strikethrough-set + strikethrough-rgba-set -> gboolean: strikethrough-rgba-set + right-margin-set -> gboolean: right-margin-set + underline-set -> gboolean: underline-set + underline-rgba-set -> gboolean: underline-rgba-set + overline-set -> gboolean: overline-set + overline-rgba-set -> gboolean: overline-rgba-set + rise-set -> gboolean: rise-set + background-full-height-set -> gboolean: background-full-height-set + language-set -> gboolean: language-set + tabs-set -> gboolean: tabs-set + invisible-set -> gboolean: invisible-set + paragraph-background-set -> gboolean: paragraph-background-set + fallback-set -> gboolean: fallback-set + letter-spacing-set -> gboolean: letter-spacing-set + font-features-set -> gboolean: font-features-set + allow-breaks-set -> gboolean: allow-breaks-set + show-spaces-set -> gboolean: show-spaces-set + insert-hyphens-set -> gboolean: insert-hyphens-set + text-transform-set -> gboolean: text-transform-set + sentence-set -> gboolean: sentence-set + word-set -> gboolean: word-set + + Signals from GObject: + notify (GParam) + """ + class Props: draw_spaces: bool draw_spaces_set: bool accumulative_margin: bool allow_breaks: bool allow_breaks_set: bool - background: str background_full_height: bool background_full_height_set: bool background_rgba: Gdk.RGBA @@ -2183,7 +4218,6 @@ class Tag(Gtk.TextTag): font_desc: Pango.FontDescription font_features: str font_features_set: bool - foreground: str foreground_rgba: Gdk.RGBA foreground_set: bool indent: int @@ -2207,7 +4241,6 @@ class Tag(Gtk.TextTag): overline_rgba: Gdk.RGBA overline_rgba_set: bool overline_set: bool - paragraph_background: str paragraph_background_rgba: Gdk.RGBA paragraph_background_set: bool pixels_above_lines: int @@ -2253,7 +4286,9 @@ class Tag(Gtk.TextTag): word_set: bool wrap_mode: Gtk.WrapMode wrap_mode_set: bool - + background: str + foreground: str + paragraph_background: str props: Props = ... parent_instance: Gtk.TextTag = ... def __init__( @@ -2354,12 +4389,174 @@ class Tag(Gtk.TextTag): def new(cls, name: Optional[str] = None) -> Tag: ... class TagClass(GObject.GPointer): + """ + :Constructors: + + :: + + TagClass() + """ + parent_class: Gtk.TextTagClass = ... _reserved: list[None] = ... class View( Gtk.TextView, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable ): + """ + :Constructors: + + :: + + View(**properties) + new() -> Gtk.Widget + new_with_buffer(buffer:GtkSource.Buffer) -> Gtk.Widget + + Object GtkSourceView + + Signals from GtkSourceView: + smart-home-end (GtkTextIter, gint) + show-completion () + line-mark-activated (GtkTextIter, guint, GdkModifierType, gint) + move-lines (gboolean) + move-words (gint) + push-snippet (GtkSourceSnippet, GtkTextIter) + move-to-matching-bracket (gboolean) + change-number (gint) + change-case (GtkSourceChangeCaseType) + join-lines () + + Properties from GtkSourceView: + auto-indent -> gboolean: Auto Indentation + Whether to enable auto indentation + background-pattern -> GtkSourceBackgroundPatternType: Background pattern + Draw a specific background pattern on the view + completion -> GtkSourceCompletion: Completion + The completion object associated with the view + enable-snippets -> gboolean: Enable Snippets + Whether to enable snippet expansion + highlight-current-line -> gboolean: Highlight current line + Whether to highlight the current line + indent-on-tab -> gboolean: Indent on tab + Whether to indent the selected text when the tab key is pressed + indent-width -> gint: Indent Width + Number of spaces to use for each step of indent + indenter -> GtkSourceIndenter: Indenter + A indenter to use to indent typed text + insert-spaces-instead-of-tabs -> gboolean: Insert Spaces Instead of Tabs + Whether to insert spaces instead of tabs + right-margin-position -> guint: Right Margin Position + Position of the right margin + show-line-marks -> gboolean: Show Line Marks + Whether to display line mark pixbufs + show-line-numbers -> gboolean: Show Line Numbers + Whether to display line numbers + show-right-margin -> gboolean: Show Right Margin + Whether to display the right margin + smart-backspace -> gboolean: Smart Backspace + + smart-home-end -> GtkSourceSmartHomeEndType: Smart Home/End + HOME and END keys move to first/last non whitespace characters on line before going to the start/end of the line + space-drawer -> GtkSourceSpaceDrawer: Space Drawer + + tab-width -> guint: Tab Width + Width of a tab character expressed in spaces + + Signals from GtkTextView: + move-cursor (GtkMovementStep, gint, gboolean) + move-viewport (GtkScrollStep, gint) + set-anchor () + insert-at-cursor (gchararray) + delete-from-cursor (GtkDeleteType, gint) + backspace () + cut-clipboard () + copy-clipboard () + paste-clipboard () + toggle-overwrite () + select-all (gboolean) + toggle-cursor-visible () + preedit-changed (gchararray) + extend-selection (GtkTextExtendSelection, GtkTextIter, GtkTextIter, GtkTextIter) -> gboolean + insert-emoji () + + Properties from GtkTextView: + pixels-above-lines -> gint: pixels-above-lines + pixels-below-lines -> gint: pixels-below-lines + pixels-inside-wrap -> gint: pixels-inside-wrap + editable -> gboolean: editable + wrap-mode -> GtkWrapMode: wrap-mode + justification -> GtkJustification: justification + left-margin -> gint: left-margin + right-margin -> gint: right-margin + top-margin -> gint: top-margin + bottom-margin -> gint: bottom-margin + indent -> gint: indent + tabs -> PangoTabArray: tabs + cursor-visible -> gboolean: cursor-visible + buffer -> GtkTextBuffer: buffer + overwrite -> gboolean: overwrite + accepts-tab -> gboolean: accepts-tab + im-module -> gchararray: im-module + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + monospace -> gboolean: monospace + extra-menu -> GMenuModel: extra-menu + + Signals from GtkWidget: + direction-changed (GtkTextDirection) + hide () + show () + destroy () + map () + unmap () + realize () + unrealize () + state-flags-changed (GtkStateFlags) + mnemonic-activate (gboolean) -> gboolean + move-focus (GtkDirectionType) + keynav-failed (GtkDirectionType) -> gboolean + query-tooltip (gint, gint, gboolean, GtkTooltip) -> gboolean + + Properties from GtkWidget: + name -> gchararray: name + parent -> GtkWidget: parent + root -> GtkRoot: root + width-request -> gint: width-request + height-request -> gint: height-request + visible -> gboolean: visible + sensitive -> gboolean: sensitive + can-focus -> gboolean: can-focus + has-focus -> gboolean: has-focus + can-target -> gboolean: can-target + focus-on-click -> gboolean: focus-on-click + focusable -> gboolean: focusable + has-default -> gboolean: has-default + receives-default -> gboolean: receives-default + cursor -> GdkCursor: cursor + has-tooltip -> gboolean: has-tooltip + tooltip-markup -> gchararray: tooltip-markup + tooltip-text -> gchararray: tooltip-text + opacity -> gdouble: opacity + overflow -> GtkOverflow: overflow + halign -> GtkAlign: halign + valign -> GtkAlign: valign + margin-start -> gint: margin-start + margin-end -> gint: margin-end + margin-top -> gint: margin-top + margin-bottom -> gint: margin-bottom + hexpand -> gboolean: hexpand + vexpand -> gboolean: vexpand + hexpand-set -> gboolean: hexpand-set + vexpand-set -> gboolean: vexpand-set + scale-factor -> gint: scale-factor + css-name -> gchararray: css-name + css-classes -> GStrv: css-classes + layout-manager -> GtkLayoutManager: layout-manager + + Signals from GObject: + notify (GParam) + """ + class Props: auto_indent: bool background_pattern: BackgroundPatternType @@ -2368,7 +4565,7 @@ class View( highlight_current_line: bool indent_on_tab: bool indent_width: int - indenter: Indenter + indenter: Optional[Indenter] insert_spaces_instead_of_tabs: bool right_margin_position: int show_line_marks: bool @@ -2396,14 +4593,14 @@ class View( pixels_below_lines: int pixels_inside_wrap: int right_margin: int - tabs: Pango.TabArray + tabs: Optional[Pango.TabArray] top_margin: int wrap_mode: Gtk.WrapMode can_focus: bool can_target: bool css_classes: list[str] css_name: str - cursor: Gdk.Cursor + cursor: Optional[Gdk.Cursor] focus_on_click: bool focusable: bool halign: Gtk.Align @@ -2413,7 +4610,7 @@ class View( height_request: int hexpand: bool hexpand_set: bool - layout_manager: Gtk.LayoutManager + layout_manager: Optional[Gtk.LayoutManager] margin_bottom: int margin_end: int margin_start: int @@ -2421,24 +4618,23 @@ class View( name: str opacity: float overflow: Gtk.Overflow - parent: Gtk.Widget + parent: Optional[Gtk.Widget] receives_default: bool - root: Gtk.Root + root: Optional[Gtk.Root] scale_factor: int sensitive: bool - tooltip_markup: str - tooltip_text: str + tooltip_markup: Optional[str] + tooltip_text: Optional[str] valign: Gtk.Align vexpand: bool vexpand_set: bool visible: bool width_request: int accessible_role: Gtk.AccessibleRole - hadjustment: Gtk.Adjustment + hadjustment: Optional[Gtk.Adjustment] hscroll_policy: Gtk.ScrollablePolicy - vadjustment: Gtk.Adjustment + vadjustment: Optional[Gtk.Adjustment] vscroll_policy: Gtk.ScrollablePolicy - props: Props = ... parent_instance: Gtk.TextView = ... def __init__( @@ -2449,7 +4645,7 @@ class View( highlight_current_line: bool = ..., indent_on_tab: bool = ..., indent_width: int = ..., - indenter: Indenter = ..., + indenter: Optional[Indenter] = ..., insert_spaces_instead_of_tabs: bool = ..., right_margin_position: int = ..., show_line_marks: bool = ..., @@ -2460,10 +4656,10 @@ class View( tab_width: int = ..., accepts_tab: bool = ..., bottom_margin: int = ..., - buffer: Gtk.TextBuffer = ..., + buffer: Optional[Gtk.TextBuffer] = ..., cursor_visible: bool = ..., editable: bool = ..., - extra_menu: Gio.MenuModel = ..., + extra_menu: Optional[Gio.MenuModel] = ..., im_module: str = ..., indent: int = ..., input_hints: Gtk.InputHints = ..., @@ -2483,7 +4679,7 @@ class View( can_target: bool = ..., css_classes: Sequence[str] = ..., css_name: str = ..., - cursor: Gdk.Cursor = ..., + cursor: Optional[Gdk.Cursor] = ..., focus_on_click: bool = ..., focusable: bool = ..., halign: Gtk.Align = ..., @@ -2491,7 +4687,7 @@ class View( height_request: int = ..., hexpand: bool = ..., hexpand_set: bool = ..., - layout_manager: Gtk.LayoutManager = ..., + layout_manager: Optional[Gtk.LayoutManager] = ..., margin_bottom: int = ..., margin_end: int = ..., margin_start: int = ..., @@ -2501,17 +4697,17 @@ class View( overflow: Gtk.Overflow = ..., receives_default: bool = ..., sensitive: bool = ..., - tooltip_markup: str = ..., - tooltip_text: str = ..., + tooltip_markup: Optional[str] = ..., + tooltip_text: Optional[str] = ..., valign: Gtk.Align = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., accessible_role: Gtk.AccessibleRole = ..., - hadjustment: Gtk.Adjustment = ..., + hadjustment: Optional[Gtk.Adjustment] = ..., hscroll_policy: Gtk.ScrollablePolicy = ..., - vadjustment: Gtk.Adjustment = ..., + vadjustment: Optional[Gtk.Adjustment] = ..., vscroll_policy: Gtk.ScrollablePolicy = ..., ): ... def do_line_mark_activated( @@ -2525,8 +4721,6 @@ class View( def do_show_completion(self) -> None: ... def get_auto_indent(self) -> bool: ... def get_background_pattern(self) -> BackgroundPatternType: ... - # override - def get_buffer(self) -> Buffer: ... def get_completion(self) -> Completion: ... def get_enable_snippets(self) -> bool: ... def get_gutter(self, window_type: Gtk.TextWindowType) -> Gutter: ... @@ -2577,6 +4771,14 @@ class View( def unindent_lines(self, start: Gtk.TextIter, end: Gtk.TextIter) -> None: ... class ViewClass(GObject.GPointer): + """ + :Constructors: + + :: + + ViewClass() + """ + parent_class: Gtk.TextViewClass = ... line_mark_activated: Callable[ [View, Gtk.TextIter, int, Gdk.ModifierType, int], None @@ -2588,12 +4790,49 @@ class ViewClass(GObject.GPointer): _reserved: list[None] = ... class VimIMContext(Gtk.IMContext): + """ + :Constructors: + + :: + + VimIMContext(**properties) + new() -> Gtk.IMContext + + Object GtkSourceVimIMContext + + Signals from GtkSourceVimIMContext: + execute-command (gchararray) -> gboolean + format-text (GtkTextIter, GtkTextIter) + write (GtkSourceView, gchararray) + edit (GtkSourceView, gchararray) + + Properties from GtkSourceVimIMContext: + command-bar-text -> gchararray: Command Bar Text + The text for the command bar + command-text -> gchararray: Command Text + The text for the current command + + Signals from GtkIMContext: + preedit-changed () + preedit-start () + preedit-end () + commit (gchararray) + retrieve-surrounding () -> gboolean + delete-surrounding (gint, gint) -> gboolean + + Properties from GtkIMContext: + input-purpose -> GtkInputPurpose: input-purpose + input-hints -> GtkInputHints: input-hints + + Signals from GObject: + notify (GParam) + """ + class Props: command_bar_text: str command_text: str input_hints: Gtk.InputHints input_purpose: Gtk.InputPurpose - props: Props = ... def __init__( self, input_hints: Gtk.InputHints = ..., input_purpose: Gtk.InputPurpose = ... @@ -2605,6 +4844,14 @@ class VimIMContext(Gtk.IMContext): def new(cls) -> VimIMContext: ... class VimIMContextClass(GObject.GPointer): + """ + :Constructors: + + :: + + VimIMContextClass() + """ + parent_class: Gtk.IMContextClass = ... class FileSaverFlags(GObject.GFlags): diff --git a/src/gi-stubs/repository/_JavaScriptCore6.pyi b/src/gi-stubs/repository/_JavaScriptCore6.pyi index eac42f08..61942a3a 100644 --- a/src/gi-stubs/repository/_JavaScriptCore6.pyi +++ b/src/gi-stubs/repository/_JavaScriptCore6.pyi @@ -11,7 +11,7 @@ from gi.repository import GLib from gi.repository import GObject MAJOR_VERSION: int = 2 -MICRO_VERSION: int = 3 +MICRO_VERSION: int = 5 MINOR_VERSION: int = 42 OPTIONS_USE_DFG: str = "useDFGJIT" OPTIONS_USE_FTL: str = "useFTLJIT" @@ -64,7 +64,6 @@ class Class(GObject.Object): name: str parent: Class context: Context - props: Props = ... def __init__( self, context: Context = ..., name: str = ..., parent: Class = ... @@ -165,7 +164,6 @@ class Context(GObject.Object): class Props: virtual_machine: VirtualMachine - props: Props = ... def __init__(self, virtual_machine: VirtualMachine = ...): ... def check_syntax( @@ -295,7 +293,6 @@ class Value(GObject.Object): class Props: context: Context - props: Props = ... def __init__(self, context: Context = ...): ... def array_buffer_get_data(self, size: Optional[int] = None) -> None: ... @@ -479,7 +476,6 @@ class WeakValue(GObject.Object): class Props: value: Value - props: Props = ... def __init__(self, value: Value = ...): ... def get_value(self) -> Value: ... diff --git a/src/gi-stubs/repository/_Soup2.pyi b/src/gi-stubs/repository/_Soup2.pyi index 005fa9dc..4ac7a9c1 100644 --- a/src/gi-stubs/repository/_Soup2.pyi +++ b/src/gi-stubs/repository/_Soup2.pyi @@ -1,1259 +1,3768 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional -from typing import overload +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TypeVar from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject -SessionCallbackU = Callable[[Session, Message, Any], None] -SessionCallback = Callable[[Session, Message], None] - -ADDRESS_ANY_PORT = ... -ADDRESS_FAMILY: str = ... -ADDRESS_NAME: str = ... -ADDRESS_PHYSICAL: str = ... -ADDRESS_PORT: str = ... -ADDRESS_PROTOCOL: str = ... -ADDRESS_SOCKADDR: str = ... -AUTH_DOMAIN_ADD_PATH: str = ... -AUTH_DOMAIN_BASIC_AUTH_CALLBACK: str = ... -AUTH_DOMAIN_BASIC_AUTH_DATA: str = ... -AUTH_DOMAIN_DIGEST_AUTH_CALLBACK: str = ... -AUTH_DOMAIN_DIGEST_AUTH_DATA: str = ... -AUTH_DOMAIN_FILTER: str = ... -AUTH_DOMAIN_FILTER_DATA: str = ... -AUTH_DOMAIN_GENERIC_AUTH_CALLBACK: str = ... -AUTH_DOMAIN_GENERIC_AUTH_DATA: str = ... -AUTH_DOMAIN_PROXY: str = ... -AUTH_DOMAIN_REALM: str = ... -AUTH_DOMAIN_REMOVE_PATH: str = ... -AUTH_HOST: str = ... -AUTH_IS_AUTHENTICATED: str = ... -AUTH_IS_FOR_PROXY: str = ... -AUTH_REALM: str = ... -AUTH_SCHEME_NAME: str = ... -CHAR_HTTP_CTL: int = ... -CHAR_HTTP_SEPARATOR: int = ... -CHAR_URI_GEN_DELIMS: int = ... -CHAR_URI_PERCENT_ENCODED: int = ... -CHAR_URI_SUB_DELIMS: int = ... -COOKIE_JAR_ACCEPT_POLICY: str = ... -COOKIE_JAR_DB_FILENAME: str = ... -COOKIE_JAR_READ_ONLY: str = ... -COOKIE_JAR_TEXT_FILENAME: str = ... -COOKIE_MAX_AGE_ONE_DAY = ... -COOKIE_MAX_AGE_ONE_HOUR: int = ... -COOKIE_MAX_AGE_ONE_WEEK = ... -COOKIE_MAX_AGE_ONE_YEAR = ... -FORM_MIME_TYPE_MULTIPART: str = ... -FORM_MIME_TYPE_URLENCODED: str = ... -HSTS_ENFORCER_DB_FILENAME: str = ... -HSTS_POLICY_MAX_AGE_PAST = ... -LOGGER_LEVEL: str = ... -LOGGER_MAX_BODY_SIZE: str = ... -MAJOR_VERSION: int = ... -MESSAGE_FIRST_PARTY: str = ... -MESSAGE_FLAGS: str = ... -MESSAGE_HTTP_VERSION: str = ... -MESSAGE_IS_TOP_LEVEL_NAVIGATION: str = ... -MESSAGE_METHOD: str = ... -MESSAGE_PRIORITY: str = ... -MESSAGE_REASON_PHRASE: str = ... -MESSAGE_REQUEST_BODY: str = ... -MESSAGE_REQUEST_BODY_DATA: str = ... -MESSAGE_REQUEST_HEADERS: str = ... -MESSAGE_RESPONSE_BODY: str = ... -MESSAGE_RESPONSE_BODY_DATA: str = ... -MESSAGE_RESPONSE_HEADERS: str = ... -MESSAGE_SERVER_SIDE: str = ... -MESSAGE_SITE_FOR_COOKIES: str = ... -MESSAGE_STATUS_CODE: str = ... -MESSAGE_TLS_CERTIFICATE: str = ... -MESSAGE_TLS_ERRORS: str = ... -MESSAGE_URI: str = ... -MICRO_VERSION = ... -MINOR_VERSION: int = ... -REQUEST_SESSION: str = ... -REQUEST_URI: str = ... -SERVER_ASYNC_CONTEXT: str = ... -SERVER_HTTPS_ALIASES: str = ... -SERVER_HTTP_ALIASES: str = ... -SERVER_INTERFACE: str = ... -SERVER_PORT: str = ... -SERVER_RAW_PATHS: str = ... -SERVER_SERVER_HEADER: str = ... -SERVER_SSL_CERT_FILE: str = ... -SERVER_SSL_KEY_FILE: str = ... -SERVER_TLS_CERTIFICATE: str = ... -SESSION_ACCEPT_LANGUAGE: str = ... -SESSION_ACCEPT_LANGUAGE_AUTO: str = ... -SESSION_ASYNC_CONTEXT: str = ... -SESSION_HTTPS_ALIASES: str = ... -SESSION_HTTP_ALIASES: str = ... -SESSION_IDLE_TIMEOUT: str = ... -SESSION_LOCAL_ADDRESS: str = ... -SESSION_MAX_CONNS: str = ... -SESSION_MAX_CONNS_PER_HOST: str = ... -SESSION_PROXY_RESOLVER: str = ... -SESSION_PROXY_URI: str = ... -SESSION_SSL_CA_FILE: str = ... -SESSION_SSL_STRICT: str = ... -SESSION_SSL_USE_SYSTEM_CA_FILE: str = ... -SESSION_TIMEOUT: str = ... -SESSION_TLS_DATABASE: str = ... -SESSION_TLS_INTERACTION: str = ... -SESSION_USER_AGENT: str = ... -SESSION_USE_NTLM: str = ... -SESSION_USE_THREAD_CONTEXT: str = ... -SOCKET_ASYNC_CONTEXT: str = ... -SOCKET_FLAG_NONBLOCKING: str = ... -SOCKET_IS_SERVER: str = ... -SOCKET_LOCAL_ADDRESS: str = ... -SOCKET_REMOTE_ADDRESS: str = ... -SOCKET_SSL_CREDENTIALS: str = ... -SOCKET_SSL_FALLBACK: str = ... -SOCKET_SSL_STRICT: str = ... -SOCKET_TIMEOUT: str = ... -SOCKET_TLS_CERTIFICATE: str = ... -SOCKET_TLS_ERRORS: str = ... -SOCKET_TRUSTED_CERTIFICATE: str = ... -SOCKET_USE_THREAD_CONTEXT: str = ... -VERSION_MIN_REQUIRED: int = ... -_namespace: str = ... -_version: str = ... - -def check_version(*args, **kwargs): ... -def cookie_parse(*args, **kwargs): ... -def cookies_from_request(*args, **kwargs): ... -def cookies_from_response(*args, **kwargs): ... -def cookies_to_cookie_header(*args, **kwargs): ... -def cookies_to_request(*args, **kwargs): ... -def cookies_to_response(*args, **kwargs): ... -def form_decode(*args, **kwargs): ... -def form_decode_multipart(*args, **kwargs): ... -def form_encode_datalist(*args, **kwargs): ... -def form_encode_hash(*args, **kwargs): ... -def form_request_new_from_datalist(*args, **kwargs): ... -def form_request_new_from_hash(*args, **kwargs): ... -def form_request_new_from_multipart(*args, **kwargs): ... -def get_major_version(*args, **kwargs): ... -def get_micro_version(*args, **kwargs): ... -def get_minor_version(*args, **kwargs): ... -def get_resource(*args, **kwargs): ... -def header_contains(*args, **kwargs): ... -def header_free_param_list(*args, **kwargs): ... -def header_g_string_append_param(*args, **kwargs): ... -def header_g_string_append_param_quoted(*args, **kwargs): ... -def header_parse_list(*args, **kwargs): ... -def header_parse_param_list(*args, **kwargs): ... -def header_parse_param_list_strict(*args, **kwargs): ... -def header_parse_quality_list(*args, **kwargs): ... -def header_parse_semi_param_list(*args, **kwargs): ... -def header_parse_semi_param_list_strict(*args, **kwargs): ... -def headers_parse(*args, **kwargs): ... -def headers_parse_request(*args, **kwargs): ... -def headers_parse_response(*args, **kwargs): ... -def headers_parse_status_line(*args, **kwargs): ... -def http_error_quark(*args, **kwargs): ... -def message_headers_iter_init(*args, **kwargs): ... -def request_error_quark(*args, **kwargs): ... -def requester_error_quark(*args, **kwargs): ... +ADDRESS_ANY_PORT: int = 0 +ADDRESS_FAMILY: str = "family" +ADDRESS_NAME: str = "name" +ADDRESS_PHYSICAL: str = "physical" +ADDRESS_PORT: str = "port" +ADDRESS_PROTOCOL: str = "protocol" +ADDRESS_SOCKADDR: str = "sockaddr" +AUTH_DOMAIN_ADD_PATH: str = "add-path" +AUTH_DOMAIN_BASIC_AUTH_CALLBACK: str = "auth-callback" +AUTH_DOMAIN_BASIC_AUTH_DATA: str = "auth-data" +AUTH_DOMAIN_DIGEST_AUTH_CALLBACK: str = "auth-callback" +AUTH_DOMAIN_DIGEST_AUTH_DATA: str = "auth-data" +AUTH_DOMAIN_FILTER: str = "filter" +AUTH_DOMAIN_FILTER_DATA: str = "filter-data" +AUTH_DOMAIN_GENERIC_AUTH_CALLBACK: str = "generic-auth-callback" +AUTH_DOMAIN_GENERIC_AUTH_DATA: str = "generic-auth-data" +AUTH_DOMAIN_PROXY: str = "proxy" +AUTH_DOMAIN_REALM: str = "realm" +AUTH_DOMAIN_REMOVE_PATH: str = "remove-path" +AUTH_HOST: str = "host" +AUTH_IS_AUTHENTICATED: str = "is-authenticated" +AUTH_IS_FOR_PROXY: str = "is-for-proxy" +AUTH_REALM: str = "realm" +AUTH_SCHEME_NAME: str = "scheme-name" +CHAR_HTTP_CTL: int = 16 +CHAR_HTTP_SEPARATOR: int = 8 +CHAR_URI_GEN_DELIMS: int = 2 +CHAR_URI_PERCENT_ENCODED: int = 1 +CHAR_URI_SUB_DELIMS: int = 4 +COOKIE_JAR_ACCEPT_POLICY: str = "accept-policy" +COOKIE_JAR_DB_FILENAME: str = "filename" +COOKIE_JAR_READ_ONLY: str = "read-only" +COOKIE_JAR_TEXT_FILENAME: str = "filename" +COOKIE_MAX_AGE_ONE_DAY: int = 0 +COOKIE_MAX_AGE_ONE_HOUR: int = 3600 +COOKIE_MAX_AGE_ONE_WEEK: int = 0 +COOKIE_MAX_AGE_ONE_YEAR: int = 0 +FORM_MIME_TYPE_MULTIPART: str = "multipart/form-data" +FORM_MIME_TYPE_URLENCODED: str = "application/x-www-form-urlencoded" +HSTS_ENFORCER_DB_FILENAME: str = "filename" +HSTS_POLICY_MAX_AGE_PAST: int = 0 +LOGGER_LEVEL: str = "level" +LOGGER_MAX_BODY_SIZE: str = "max-body-size" +MAJOR_VERSION: int = 2 +MESSAGE_FIRST_PARTY: str = "first-party" +MESSAGE_FLAGS: str = "flags" +MESSAGE_HTTP_VERSION: str = "http-version" +MESSAGE_IS_TOP_LEVEL_NAVIGATION: str = "is-top-level-navigation" +MESSAGE_METHOD: str = "method" +MESSAGE_PRIORITY: str = "priority" +MESSAGE_REASON_PHRASE: str = "reason-phrase" +MESSAGE_REQUEST_BODY: str = "request-body" +MESSAGE_REQUEST_BODY_DATA: str = "request-body-data" +MESSAGE_REQUEST_HEADERS: str = "request-headers" +MESSAGE_RESPONSE_BODY: str = "response-body" +MESSAGE_RESPONSE_BODY_DATA: str = "response-body-data" +MESSAGE_RESPONSE_HEADERS: str = "response-headers" +MESSAGE_SERVER_SIDE: str = "server-side" +MESSAGE_SITE_FOR_COOKIES: str = "site-for-cookies" +MESSAGE_STATUS_CODE: str = "status-code" +MESSAGE_TLS_CERTIFICATE: str = "tls-certificate" +MESSAGE_TLS_ERRORS: str = "tls-errors" +MESSAGE_URI: str = "uri" +MICRO_VERSION: int = 3 +MINOR_VERSION: int = 74 +REQUEST_SESSION: str = "session" +REQUEST_URI: str = "uri" +SERVER_ASYNC_CONTEXT: str = "async-context" +SERVER_HTTPS_ALIASES: str = "https-aliases" +SERVER_HTTP_ALIASES: str = "http-aliases" +SERVER_INTERFACE: str = "interface" +SERVER_PORT: str = "port" +SERVER_RAW_PATHS: str = "raw-paths" +SERVER_SERVER_HEADER: str = "server-header" +SERVER_SSL_CERT_FILE: str = "ssl-cert-file" +SERVER_SSL_KEY_FILE: str = "ssl-key-file" +SERVER_TLS_CERTIFICATE: str = "tls-certificate" +SESSION_ACCEPT_LANGUAGE: str = "accept-language" +SESSION_ACCEPT_LANGUAGE_AUTO: str = "accept-language-auto" +SESSION_ASYNC_CONTEXT: str = "async-context" +SESSION_HTTPS_ALIASES: str = "https-aliases" +SESSION_HTTP_ALIASES: str = "http-aliases" +SESSION_IDLE_TIMEOUT: str = "idle-timeout" +SESSION_LOCAL_ADDRESS: str = "local-address" +SESSION_MAX_CONNS: str = "max-conns" +SESSION_MAX_CONNS_PER_HOST: str = "max-conns-per-host" +SESSION_PROXY_RESOLVER: str = "proxy-resolver" +SESSION_PROXY_URI: str = "proxy-uri" +SESSION_SSL_CA_FILE: str = "ssl-ca-file" +SESSION_SSL_STRICT: str = "ssl-strict" +SESSION_SSL_USE_SYSTEM_CA_FILE: str = "ssl-use-system-ca-file" +SESSION_TIMEOUT: str = "timeout" +SESSION_TLS_DATABASE: str = "tls-database" +SESSION_TLS_INTERACTION: str = "tls-interaction" +SESSION_USER_AGENT: str = "user-agent" +SESSION_USE_NTLM: str = "use-ntlm" +SESSION_USE_THREAD_CONTEXT: str = "use-thread-context" +SOCKET_ASYNC_CONTEXT: str = "async-context" +SOCKET_FLAG_NONBLOCKING: str = "non-blocking" +SOCKET_IS_SERVER: str = "is-server" +SOCKET_LOCAL_ADDRESS: str = "local-address" +SOCKET_REMOTE_ADDRESS: str = "remote-address" +SOCKET_SSL_CREDENTIALS: str = "ssl-creds" +SOCKET_SSL_FALLBACK: str = "ssl-fallback" +SOCKET_SSL_STRICT: str = "ssl-strict" +SOCKET_TIMEOUT: str = "timeout" +SOCKET_TLS_CERTIFICATE: str = "tls-certificate" +SOCKET_TLS_ERRORS: str = "tls-errors" +SOCKET_TRUSTED_CERTIFICATE: str = "trusted-certificate" +SOCKET_USE_THREAD_CONTEXT: str = "use-thread-context" +VERSION_MIN_REQUIRED: int = 2 +_lock = ... # FIXME Constant +_namespace: str = "Soup" +_version: str = "2.4" + +def check_version(major: int, minor: int, micro: int) -> bool: ... +def cookie_parse(header: str, origin: URI) -> Optional[Cookie]: ... +def cookies_from_request(msg: Message) -> list[Cookie]: ... +def cookies_from_response(msg: Message) -> list[Cookie]: ... +def cookies_to_cookie_header(cookies: list[Cookie]) -> str: ... +def cookies_to_request(cookies: list[Cookie], msg: Message) -> None: ... +def cookies_to_response(cookies: list[Cookie], msg: Message) -> None: ... +def form_decode(encoded_form: str) -> dict[str, str]: ... +def form_decode_multipart( + msg: Message, file_control_name: Optional[str] = None +) -> Tuple[Optional[dict[str, str]], str, str, Buffer]: ... +def form_encode_datalist(form_data_set: GLib.Data) -> str: ... +def form_encode_hash(form_data_set: dict[str, str]) -> str: ... +def form_request_new_from_datalist( + method: str, uri: str, form_data_set: GLib.Data +) -> Message: ... +def form_request_new_from_hash( + method: str, uri: str, form_data_set: dict[str, str] +) -> Message: ... +def form_request_new_from_multipart(uri: str, multipart: Multipart) -> Message: ... +def get_major_version() -> int: ... +def get_micro_version() -> int: ... +def get_minor_version() -> int: ... +def get_resource() -> Gio.Resource: ... +def header_contains(header: str, token: str) -> bool: ... +def header_free_param_list(param_list: dict[str, str]) -> None: ... +def header_g_string_append_param( + string: GLib.String, name: str, value: str +) -> None: ... +def header_g_string_append_param_quoted( + string: GLib.String, name: str, value: str +) -> None: ... +def header_parse_list(header: str) -> list[str]: ... +def header_parse_param_list(header: str) -> dict[str, str]: ... +def header_parse_param_list_strict(header: str) -> Optional[dict[str, str]]: ... +def header_parse_quality_list(header: str) -> Tuple[list[str], list[str]]: ... +def header_parse_semi_param_list(header: str) -> dict[str, str]: ... +def header_parse_semi_param_list_strict(header: str) -> Optional[dict[str, str]]: ... +def headers_parse(str: str, len: int, dest: MessageHeaders) -> bool: ... +def headers_parse_request( + str: str, len: int, req_headers: MessageHeaders +) -> Tuple[int, str, str, HTTPVersion]: ... +def headers_parse_response( + str: str, len: int, headers: MessageHeaders +) -> Tuple[bool, HTTPVersion, int, str]: ... +def headers_parse_status_line( + status_line: str, +) -> Tuple[bool, HTTPVersion, int, str]: ... +def http_error_quark() -> int: ... +def message_headers_iter_init(hdrs: MessageHeaders) -> MessageHeadersIter: ... +def request_error_quark() -> int: ... +def requester_error_quark() -> int: ... def status_get_phrase(status_code: int) -> str: ... def status_proxify(status_code: int) -> int: ... -def str_case_equal(*args, **kwargs): ... -def str_case_hash(*args, **kwargs): ... -def tld_domain_is_public_suffix(*args, **kwargs): ... -def tld_error_quark(*args, **kwargs): ... -def tld_get_base_domain(*args, **kwargs): ... -def uri_decode(*args, **kwargs): ... -def uri_encode(*args, **kwargs): ... -def uri_normalize(*args, **kwargs): ... -def value_array_new(*args, **kwargs): ... -def value_hash_insert_value(*args, **kwargs): ... -def value_hash_new(*args, **kwargs): ... -def websocket_client_prepare_handshake(*args, **kwargs): ... -def websocket_client_prepare_handshake_with_extensions(*args, **kwargs): ... -def websocket_client_verify_handshake(*args, **kwargs): ... -def websocket_client_verify_handshake_with_extensions(*args, **kwargs): ... -def websocket_error_get_quark(*args, **kwargs): ... -def websocket_server_check_handshake(*args, **kwargs): ... -def websocket_server_check_handshake_with_extensions(*args, **kwargs): ... -def websocket_server_process_handshake(*args, **kwargs): ... -def websocket_server_process_handshake_with_extensions(*args, **kwargs): ... -def xmlrpc_build_method_call(*args, **kwargs): ... -def xmlrpc_build_method_response(*args, **kwargs): ... -def xmlrpc_build_request(*args, **kwargs): ... -def xmlrpc_build_response(*args, **kwargs): ... -def xmlrpc_error_quark(*args, **kwargs): ... -def xmlrpc_fault_quark(*args, **kwargs): ... -def xmlrpc_message_new(*args, **kwargs): ... -def xmlrpc_message_set_response(*args, **kwargs): ... -def xmlrpc_parse_method_call(*args, **kwargs): ... -def xmlrpc_parse_method_response(*args, **kwargs): ... -def xmlrpc_parse_request(*args, **kwargs): ... -def xmlrpc_parse_response(*args, **kwargs): ... -def xmlrpc_variant_get_datetime(*args, **kwargs): ... -def xmlrpc_variant_new_datetime(*args, **kwargs): ... - -class Address: - parent = ... - - def equal_by_ip(*args, **kwargs): ... - def equal_by_name(*args, **kwargs): ... - def get_gsockaddr(*args, **kwargs): ... - def get_name(*args, **kwargs): ... - def get_physical(*args, **kwargs): ... - def get_port(*args, **kwargs): ... - def get_sockaddr(*args, **kwargs): ... - def hash_by_ip(*args, **kwargs): ... - def hash_by_name(*args, **kwargs): ... - def is_resolved(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_any(*args, **kwargs): ... - def new_from_sockaddr(*args, **kwargs): ... - def resolve_async(*args, **kwargs): ... - def resolve_sync(*args, **kwargs): ... - -class Auth: - parent = ... - realm = ... - - def authenticate(*args, **kwargs): ... - def can_authenticate(*args, **kwargs): ... - def get_authorization(*args, **kwargs): ... - def get_host(*args, **kwargs): ... - def get_info(*args, **kwargs): ... - def get_protection_space(*args, **kwargs): ... - def get_realm(*args, **kwargs): ... - def get_saved_password(*args, **kwargs): ... - def get_saved_users(*args, **kwargs): ... - def get_scheme_name(*args, **kwargs): ... - def has_saved_password(*args, **kwargs): ... - def is_authenticated(*args, **kwargs): ... - def is_for_proxy(*args, **kwargs): ... - def is_ready(*args, **kwargs): ... - def new(*args, **kwargs): ... - def save_password(*args, **kwargs): ... - def update(*args, **kwargs): ... - def do_authenticate(self, *args, **kwargs): ... - def do_can_authenticate(self, *args, **kwargs): ... - def do_get_authorization(self, *args, **kwargs): ... - def do_get_protection_space(self, *args, **kwargs): ... - def do_is_authenticated(self, *args, **kwargs): ... - def do_is_ready(self, *args, **kwargs): ... - def do_update(self, *args, **kwargs): ... - -class AuthBasic: ... -class AuthDigest: ... - -class AuthDomain: - parent = ... - - def accepts(*args, **kwargs): ... - def add_path(*args, **kwargs): ... - def challenge(*args, **kwargs): ... - def check_password(*args, **kwargs): ... - def covers(*args, **kwargs): ... - def get_realm(*args, **kwargs): ... - def remove_path(*args, **kwargs): ... - def set_filter(*args, **kwargs): ... - def set_generic_auth_callback(*args, **kwargs): ... - def try_generic_auth_callback(*args, **kwargs): ... - def do_accepts(self, *args, **kwargs): ... - def do_challenge(self, *args, **kwargs): ... - def do_check_password(self, *args, **kwargs): ... - -class AuthDomainBasic: - def set_auth_callback(*args, **kwargs): ... - -class AuthDomainDigest: - def encode_password(*args, **kwargs): ... - def set_auth_callback(*args, **kwargs): ... - -class AuthManager: - parent = ... - priv = ... - - def clear_cached_credentials(*args, **kwargs): ... - def use_auth(*args, **kwargs): ... - def do_authenticate(self, *args, **kwargs): ... - -class AuthNTLM: ... - -class AuthNegotiate: - def supported(*args, **kwargs): ... - -class Buffer: - data = ... - length = ... - - def free(*args, **kwargs): ... - def get_as_bytes(*args, **kwargs): ... +def str_case_equal(v1: None, v2: None) -> bool: ... +def str_case_hash(key: None) -> int: ... +def tld_domain_is_public_suffix(domain: str) -> bool: ... +def tld_error_quark() -> int: ... +def tld_get_base_domain(hostname: str) -> str: ... +def uri_decode(part: str) -> str: ... +def uri_encode(part: str, escape_extra: Optional[str] = None) -> str: ... +def uri_normalize(part: str, unescape_extra: Optional[str] = None) -> str: ... +def value_array_new() -> GObject.ValueArray: ... +def value_hash_insert_value(hash: dict[str, Any], key: str, value: Any) -> None: ... +def value_hash_new() -> dict[str, Any]: ... +def websocket_client_prepare_handshake( + msg: Message, + origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, +) -> None: ... +def websocket_client_prepare_handshake_with_extensions( + msg: Message, + origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, + supported_extensions: Optional[Sequence[GObject.TypeClass]] = None, +) -> None: ... +def websocket_client_verify_handshake(msg: Message) -> bool: ... +def websocket_client_verify_handshake_with_extensions( + msg: Message, supported_extensions: Optional[Sequence[GObject.TypeClass]] = None +) -> Tuple[bool, list[WebsocketExtension]]: ... +def websocket_error_get_quark() -> int: ... +def websocket_server_check_handshake( + msg: Message, + origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, +) -> bool: ... +def websocket_server_check_handshake_with_extensions( + msg: Message, + origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, + supported_extensions: Optional[Sequence[GObject.TypeClass]] = None, +) -> bool: ... +def websocket_server_process_handshake( + msg: Message, + expected_origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, +) -> bool: ... +def websocket_server_process_handshake_with_extensions( + msg: Message, + expected_origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, + supported_extensions: Optional[Sequence[GObject.TypeClass]] = None, +) -> Tuple[bool, list[WebsocketExtension]]: ... +def xmlrpc_build_method_call( + method_name: str, params: Sequence[Any] +) -> Optional[str]: ... +def xmlrpc_build_method_response(value: Any) -> Optional[str]: ... +def xmlrpc_build_request(method_name: str, params: GLib.Variant) -> str: ... +def xmlrpc_build_response(value: GLib.Variant) -> str: ... +def xmlrpc_error_quark() -> int: ... +def xmlrpc_fault_quark() -> int: ... +def xmlrpc_message_new(uri: str, method_name: str, params: GLib.Variant) -> Message: ... +def xmlrpc_message_set_response(msg: Message, value: GLib.Variant) -> bool: ... +def xmlrpc_parse_method_call( + method_call: str, length: int +) -> Tuple[bool, str, GObject.ValueArray]: ... +def xmlrpc_parse_method_response( + method_response: str, length: int +) -> Tuple[bool, Any]: ... +def xmlrpc_parse_request(method_call: str, length: int) -> Tuple[str, XMLRPCParams]: ... +def xmlrpc_parse_response( + method_response: str, length: int, signature: Optional[str] = None +) -> GLib.Variant: ... +def xmlrpc_variant_get_datetime(variant: GLib.Variant) -> Date: ... +def xmlrpc_variant_new_datetime(date: Date) -> GLib.Variant: ... + +class Address(GObject.Object, Gio.SocketConnectable): + """ + :Constructors: + + :: + + Address(**properties) + new(name:str, port:int) -> Soup.Address + new_any(family:Soup.AddressFamily, port:int) -> Soup.Address or None + new_from_sockaddr(sa=None, len:int) -> Soup.Address or None + + Object SoupAddress + + Properties from SoupAddress: + name -> gchararray: Name + Hostname for this address + family -> SoupAddressFamily: Family + Address family for this address + port -> gint: Port + Port for this address + protocol -> gchararray: Protocol + URI scheme for this address + physical -> gchararray: Physical address + IP address for this address + sockaddr -> gpointer: sockaddr + struct sockaddr for this address + + Signals from GObject: + notify (GParam) + """ + + class Props: + family: AddressFamily + name: Optional[str] + physical: Optional[str] + port: int + protocol: str + sockaddr: Optional[None] + props: Props = ... + parent: GObject.Object = ... + def __init__( + self, + family: AddressFamily = ..., + name: str = ..., + port: int = ..., + protocol: str = ..., + sockaddr: None = ..., + ): ... + def equal_by_ip(self, addr2: Address) -> bool: ... + def equal_by_name(self, addr2: Address) -> bool: ... + def get_gsockaddr(self) -> Gio.SocketAddress: ... + def get_name(self) -> Optional[str]: ... + def get_physical(self) -> Optional[str]: ... + def get_port(self) -> int: ... + def get_sockaddr(self) -> int: ... + def hash_by_ip(self) -> int: ... + def hash_by_name(self) -> int: ... + def is_resolved(self) -> bool: ... + @classmethod + def new(cls, name: str, port: int) -> Address: ... + @classmethod + def new_any(cls, family: AddressFamily, port: int) -> Optional[Address]: ... + @classmethod + def new_from_sockaddr(cls, sa: None, len: int) -> Optional[Address]: ... + def resolve_async( + self, + async_context: Optional[GLib.MainContext], + cancellable: Optional[Gio.Cancellable], + callback: Callable[..., None], + *user_data: Any, + ) -> None: ... + def resolve_sync(self, cancellable: Optional[Gio.Cancellable] = None) -> int: ... + +class AddressClass(GObject.GPointer): + """ + :Constructors: + + :: + + AddressClass() + """ + + parent_class: GObject.ObjectClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class Auth(GObject.Object): + """ + :Constructors: + + :: + + Auth(**properties) + new(type:GType, msg:Soup.Message, auth_header:str) -> Soup.Auth or None + + Object SoupAuth + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + host -> gchararray: Host + Authentication host + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + + Signals from GObject: + notify (GParam) + """ + + class Props: + host: str + is_authenticated: bool + is_for_proxy: bool + realm: str + scheme_name: str + props: Props = ... + parent: GObject.Object = ... + realm: str = ... + def __init__(self, host: str = ..., is_for_proxy: bool = ..., realm: str = ...): ... + def authenticate(self, username: str, password: str) -> None: ... + def can_authenticate(self) -> bool: ... + def do_authenticate(self, username: str, password: str) -> None: ... + def do_can_authenticate(self) -> bool: ... + def do_get_authorization(self, msg: Message) -> str: ... + def do_get_protection_space(self, source_uri: URI) -> list[str]: ... + def do_is_authenticated(self) -> bool: ... + def do_is_ready(self, msg: Message) -> bool: ... + def do_update(self, msg: Message, auth_header: dict[None, None]) -> bool: ... + def get_authorization(self, msg: Message) -> str: ... + def get_host(self) -> str: ... + def get_info(self) -> str: ... + def get_protection_space(self, source_uri: URI) -> list[str]: ... + def get_realm(self) -> str: ... + def get_saved_password(self, user: str) -> str: ... + def get_saved_users(self) -> list[str]: ... + def get_scheme_name(self) -> str: ... + def has_saved_password(self, username: str, password: str) -> None: ... + def is_authenticated(self) -> bool: ... + def is_for_proxy(self) -> bool: ... + def is_ready(self, msg: Message) -> bool: ... + @classmethod + def new(cls, type: Type, msg: Message, auth_header: str) -> Optional[Auth]: ... + def save_password(self, username: str, password: str) -> None: ... + def update(self, msg: Message, auth_header: str) -> bool: ... + +class AuthBasic(Auth): + """ + :Constructors: + + :: + + AuthBasic(**properties) + + Object SoupAuthBasic + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + host -> gchararray: Host + Authentication host + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + + Signals from GObject: + notify (GParam) + """ + + class Props: + host: str + is_authenticated: bool + is_for_proxy: bool + realm: str + scheme_name: str + props: Props = ... + def __init__(self, host: str = ..., is_for_proxy: bool = ..., realm: str = ...): ... + +class AuthClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthClass() + """ + + parent_class: GObject.ObjectClass = ... + scheme_name: str = ... + strength: int = ... + update: Callable[[Auth, Message, dict[None, None]], bool] = ... + get_protection_space: Callable[[Auth, URI], list[str]] = ... + authenticate: Callable[[Auth, str, str], None] = ... + is_authenticated: Callable[[Auth], bool] = ... + get_authorization: Callable[[Auth, Message], str] = ... + is_ready: Callable[[Auth, Message], bool] = ... + can_authenticate: Callable[[Auth], bool] = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class AuthDigest(Auth): + """ + :Constructors: + + :: + + AuthDigest(**properties) + + Object SoupAuthDigest + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + host -> gchararray: Host + Authentication host + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + + Signals from GObject: + notify (GParam) + """ + + class Props: + host: str + is_authenticated: bool + is_for_proxy: bool + realm: str + scheme_name: str + props: Props = ... + def __init__(self, host: str = ..., is_for_proxy: bool = ..., realm: str = ...): ... + +class AuthDomain(GObject.Object): + """ + :Constructors: + + :: + + AuthDomain(**properties) + + Object SoupAuthDomain + + Properties from SoupAuthDomain: + realm -> gchararray: Realm + The realm of this auth domain + proxy -> gboolean: Proxy + Whether or not this is a proxy auth domain + add-path -> gchararray: Add a path + Add a path covered by this auth domain + remove-path -> gchararray: Remove a path + Remove a path covered by this auth domain + filter -> gpointer: Filter + A filter for deciding whether or not to require authentication + filter-data -> gpointer: Filter data + Data to pass to filter + generic-auth-callback -> gpointer: Generic authentication callback + An authentication callback that can be used with any SoupAuthDomain subclass + generic-auth-data -> gpointer: Authentication callback data + Data to pass to auth callback + + Signals from GObject: + notify (GParam) + """ + + class Props: + filter: AuthDomainFilter + filter_data: None + generic_auth_callback: AuthDomainGenericAuthCallback + generic_auth_data: None + proxy: bool + realm: str + add_path: str + remove_path: str + props: Props = ... + parent: GObject.Object = ... + def __init__( + self, + add_path: str = ..., + filter: AuthDomainFilter = ..., + filter_data: None = ..., + generic_auth_callback: AuthDomainGenericAuthCallback = ..., + generic_auth_data: None = ..., + proxy: bool = ..., + realm: str = ..., + remove_path: str = ..., + ): ... + def accepts(self, msg: Message) -> Optional[str]: ... + def add_path(self, path: str) -> None: ... + def challenge(self, msg: Message) -> None: ... + def check_password(self, msg: Message, username: str, password: str) -> bool: ... + def covers(self, msg: Message) -> bool: ... + def do_accepts(self, msg: Message, header: str) -> str: ... + def do_challenge(self, msg: Message) -> str: ... + def do_check_password(self, msg: Message, username: str, password: str) -> bool: ... + def get_realm(self) -> str: ... + def remove_path(self, path: str) -> None: ... + def set_filter(self, filter: Callable[..., bool], *filter_data: Any) -> None: ... + def set_generic_auth_callback( + self, auth_callback: Callable[..., bool], *auth_data: Any + ) -> None: ... + def try_generic_auth_callback(self, msg: Message, username: str) -> bool: ... + +class AuthDomainBasic(AuthDomain): + """ + :Constructors: + + :: + + AuthDomainBasic(**properties) + + Object SoupAuthDomainBasic + + Properties from SoupAuthDomainBasic: + auth-callback -> gpointer: Authentication callback + Password-checking callback + auth-data -> gpointer: Authentication callback data + Data to pass to authentication callback + + Properties from SoupAuthDomain: + realm -> gchararray: Realm + The realm of this auth domain + proxy -> gboolean: Proxy + Whether or not this is a proxy auth domain + add-path -> gchararray: Add a path + Add a path covered by this auth domain + remove-path -> gchararray: Remove a path + Remove a path covered by this auth domain + filter -> gpointer: Filter + A filter for deciding whether or not to require authentication + filter-data -> gpointer: Filter data + Data to pass to filter + generic-auth-callback -> gpointer: Generic authentication callback + An authentication callback that can be used with any SoupAuthDomain subclass + generic-auth-data -> gpointer: Authentication callback data + Data to pass to auth callback + + Signals from GObject: + notify (GParam) + """ + + class Props: + auth_callback: AuthDomainBasicAuthCallback + auth_data: None + filter: AuthDomainFilter + filter_data: None + generic_auth_callback: AuthDomainGenericAuthCallback + generic_auth_data: None + proxy: bool + realm: str + add_path: str + remove_path: str + props: Props = ... + parent: AuthDomain = ... + def __init__( + self, + auth_callback: AuthDomainBasicAuthCallback = ..., + auth_data: None = ..., + add_path: str = ..., + filter: AuthDomainFilter = ..., + filter_data: None = ..., + generic_auth_callback: AuthDomainGenericAuthCallback = ..., + generic_auth_data: None = ..., + proxy: bool = ..., + realm: str = ..., + remove_path: str = ..., + ): ... + def set_auth_callback( + self, callback: Callable[..., bool], *user_data: Any + ) -> None: ... + +class AuthDomainBasicClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthDomainBasicClass() + """ + + parent_class: AuthDomainClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class AuthDomainClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthDomainClass() + """ + + parent_class: GObject.ObjectClass = ... + accepts: Callable[[AuthDomain, Message, str], str] = ... + challenge: Callable[[AuthDomain, Message], str] = ... + check_password: Callable[[AuthDomain, Message, str, str], bool] = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class AuthDomainDigest(AuthDomain): + """ + :Constructors: + + :: + + AuthDomainDigest(**properties) + + Object SoupAuthDomainDigest + + Properties from SoupAuthDomainDigest: + auth-callback -> gpointer: Authentication callback + Password-finding callback + auth-data -> gpointer: Authentication callback data + Data to pass to authentication callback + + Properties from SoupAuthDomain: + realm -> gchararray: Realm + The realm of this auth domain + proxy -> gboolean: Proxy + Whether or not this is a proxy auth domain + add-path -> gchararray: Add a path + Add a path covered by this auth domain + remove-path -> gchararray: Remove a path + Remove a path covered by this auth domain + filter -> gpointer: Filter + A filter for deciding whether or not to require authentication + filter-data -> gpointer: Filter data + Data to pass to filter + generic-auth-callback -> gpointer: Generic authentication callback + An authentication callback that can be used with any SoupAuthDomain subclass + generic-auth-data -> gpointer: Authentication callback data + Data to pass to auth callback + + Signals from GObject: + notify (GParam) + """ + + class Props: + auth_callback: AuthDomainDigestAuthCallback + auth_data: None + filter: AuthDomainFilter + filter_data: None + generic_auth_callback: AuthDomainGenericAuthCallback + generic_auth_data: None + proxy: bool + realm: str + add_path: str + remove_path: str + props: Props = ... + parent: AuthDomain = ... + def __init__( + self, + auth_callback: AuthDomainDigestAuthCallback = ..., + auth_data: None = ..., + add_path: str = ..., + filter: AuthDomainFilter = ..., + filter_data: None = ..., + generic_auth_callback: AuthDomainGenericAuthCallback = ..., + generic_auth_data: None = ..., + proxy: bool = ..., + realm: str = ..., + remove_path: str = ..., + ): ... + @staticmethod + def encode_password(username: str, realm: str, password: str) -> str: ... + def set_auth_callback( + self, callback: Callable[..., Optional[str]], *user_data: Any + ) -> None: ... + +class AuthDomainDigestClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthDomainDigestClass() + """ + + parent_class: AuthDomainClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class AuthManager(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + AuthManager(**properties) + + Object SoupAuthManager + + Signals from SoupAuthManager: + authenticate (SoupMessage, SoupAuth, gboolean) + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: AuthManagerPrivate = ... + def clear_cached_credentials(self) -> None: ... + def do_authenticate(self, msg: Message, auth: Auth, retrying: bool) -> None: ... + def use_auth(self, uri: URI, auth: Auth) -> None: ... + +class AuthManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + authenticate: Callable[[AuthManager, Message, Auth, bool], None] = ... + +class AuthManagerPrivate(GObject.GPointer): ... + +class AuthNTLM(Auth): + """ + :Constructors: + + :: + + AuthNTLM(**properties) + + Object SoupAuthNTLM + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + host -> gchararray: Host + Authentication host + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + + Signals from GObject: + notify (GParam) + """ + + class Props: + host: str + is_authenticated: bool + is_for_proxy: bool + realm: str + scheme_name: str + props: Props = ... + def __init__(self, host: str = ..., is_for_proxy: bool = ..., realm: str = ...): ... + +class AuthNegotiate(Auth): + """ + :Constructors: + + :: + + AuthNegotiate(**properties) + + Object SoupAuthNegotiate + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + host -> gchararray: Host + Authentication host + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + + Signals from GObject: + notify (GParam) + """ + + class Props: + host: str + is_authenticated: bool + is_for_proxy: bool + realm: str + scheme_name: str + props: Props = ... + def __init__(self, host: str = ..., is_for_proxy: bool = ..., realm: str = ...): ... + @staticmethod + def supported() -> bool: ... + +class Buffer(GObject.GBoxed): + """ + :Constructors: + + :: + + Buffer() + new(data:list) -> Soup.Buffer + new_with_owner(data:list, owner=None, owner_dnotify:GLib.DestroyNotify=None) -> Soup.Buffer + """ + + data: None = ... + length: int = ... + def copy(self) -> Buffer: ... + def free(self) -> None: ... + def get_as_bytes(self) -> GLib.Bytes: ... def get_data(self) -> bytes: ... - def get_owner(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_subbuffer(*args, **kwargs): ... - def new_with_owner(*args, **kwargs): ... - -class ByteArray: ... - -class Cache: - parent_instance = ... - priv = ... - - def clear(*args, **kwargs): ... - def dump(*args, **kwargs): ... - def flush(*args, **kwargs): ... - def get_max_size(*args, **kwargs): ... - def load(*args, **kwargs): ... - def new(*args, **kwargs): ... - def set_max_size(*args, **kwargs): ... - def do_get_cacheability(self, *args, **kwargs): ... - -class ClientContext: - def get_address(*args, **kwargs): ... - def get_auth_domain(*args, **kwargs): ... - def get_auth_user(*args, **kwargs): ... - def get_gsocket(*args, **kwargs): ... - def get_host(*args, **kwargs): ... - def get_local_address(*args, **kwargs): ... - def get_remote_address(*args, **kwargs): ... - def get_socket(*args, **kwargs): ... - def steal_connection(*args, **kwargs): ... - -class Connection: ... - -class ContentDecoder: - parent = ... - priv = ... + def get_owner(self) -> None: ... + @classmethod + def new(cls, data: Sequence[int]) -> Buffer: ... + def new_subbuffer(self, offset: int, length: int) -> Buffer: ... + @classmethod + def new_with_owner( + cls, + data: Sequence[int], + owner: None, + owner_dnotify: Optional[Callable[[None], None]] = None, + ) -> Buffer: ... + +class ByteArray(GObject.GBoxed): ... + +class Cache(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + Cache(**properties) + new(cache_dir:str=None, cache_type:Soup.CacheType) -> Soup.Cache + + Object SoupCache + + Properties from SoupCache: + cache-dir -> gchararray: Cache directory + The directory to store the cache files + cache-type -> SoupCacheType: Cache type + Whether the cache is private or shared + + Signals from GObject: + notify (GParam) + """ + + class Props: + cache_dir: str + cache_type: CacheType + props: Props = ... + parent_instance: GObject.Object = ... + priv: CachePrivate = ... + def __init__(self, cache_dir: str = ..., cache_type: CacheType = ...): ... + def clear(self) -> None: ... + def do_get_cacheability(self, msg: Message) -> Cacheability: ... + def dump(self) -> None: ... + def flush(self) -> None: ... + def get_max_size(self) -> int: ... + def load(self) -> None: ... + @classmethod + def new(cls, cache_dir: Optional[str], cache_type: CacheType) -> Cache: ... + def set_max_size(self, max_size: int) -> None: ... + +class CacheClass(GObject.GPointer): + """ + :Constructors: + + :: + + CacheClass() + """ + + parent_class: GObject.ObjectClass = ... + get_cacheability: Callable[[Cache, Message], Cacheability] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + +class CachePrivate(GObject.GPointer): ... + +class ClientContext(GObject.GBoxed): + def get_address(self) -> Optional[Address]: ... + def get_auth_domain(self) -> Optional[AuthDomain]: ... + def get_auth_user(self) -> Optional[str]: ... + def get_gsocket(self) -> Optional[Gio.Socket]: ... + def get_host(self) -> Optional[str]: ... + def get_local_address(self) -> Optional[Gio.SocketAddress]: ... + def get_remote_address(self) -> Optional[Gio.SocketAddress]: ... + def get_socket(self) -> Socket: ... + def steal_connection(self) -> Gio.IOStream: ... + +class Connection(GObject.GPointer): ... + +class ContentDecoder(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + ContentDecoder(**properties) + + Object SoupContentDecoder + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: ContentDecoderPrivate = ... + +class ContentDecoderClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContentDecoderClass() + """ + + parent_class: GObject.ObjectClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + _libsoup_reserved5: None = ... + +class ContentDecoderPrivate(GObject.GPointer): ... class ContentSniffer(GObject.Object, SessionFeature): - parent = ... - priv = ... - - def get_buffer_size(*args, **kwargs): ... - def new(*args, **kwargs): ... - def sniff(*args, **kwargs): ... - def do_get_buffer_size(self, *args, **kwargs): ... - def do_sniff(self, *args, **kwargs): ... - -class Cookie: - domain = ... - expires = ... - http_only = ... - name = ... - path = ... - secure = ... - value = ... - - def applies_to_uri(*args, **kwargs): ... - def domain_matches(*args, **kwargs): ... - def equal(*args, **kwargs): ... - def free(*args, **kwargs): ... - def get_domain(*args, **kwargs): ... - def get_expires(*args, **kwargs): ... - def get_http_only(*args, **kwargs): ... - def get_name(*args, **kwargs): ... - def get_path(*args, **kwargs): ... - def get_same_site_policy(*args, **kwargs): ... - def get_secure(*args, **kwargs): ... - def get_value(*args, **kwargs): ... - def new(*args, **kwargs): ... - def parse(*args, **kwargs): ... - def set_domain(*args, **kwargs): ... - def set_expires(*args, **kwargs): ... - def set_http_only(*args, **kwargs): ... - def set_max_age(*args, **kwargs): ... - def set_name(*args, **kwargs): ... - def set_path(*args, **kwargs): ... - def set_same_site_policy(*args, **kwargs): ... - def set_secure(*args, **kwargs): ... - def set_value(*args, **kwargs): ... - def to_cookie_header(*args, **kwargs): ... - def to_set_cookie_header(*args, **kwargs): ... - -class CookieJar: - parent = ... - - def add_cookie(*args, **kwargs): ... - def add_cookie_full(*args, **kwargs): ... - def add_cookie_with_first_party(*args, **kwargs): ... - def all_cookies(*args, **kwargs): ... - def delete_cookie(*args, **kwargs): ... - def get_accept_policy(*args, **kwargs): ... - def get_cookie_list(*args, **kwargs): ... - def get_cookie_list_with_same_site_info(*args, **kwargs): ... - def get_cookies(*args, **kwargs): ... - def is_persistent(*args, **kwargs): ... - def new(*args, **kwargs): ... - def save(*args, **kwargs): ... - def set_accept_policy(*args, **kwargs): ... - def set_cookie(*args, **kwargs): ... - def set_cookie_with_first_party(*args, **kwargs): ... - def do_changed(self, *args, **kwargs): ... - def do_is_persistent(self, *args, **kwargs): ... - def do_save(self, *args, **kwargs): ... - -class CookieJarDB: ... -class CookieJarText: ... - -class Date: - day = ... - hour = ... - minute = ... - month = ... - offset = ... - second = ... - utc = ... - year = ... - - def free(*args, **kwargs): ... - def get_day(*args, **kwargs): ... - def get_hour(*args, **kwargs): ... - def get_minute(*args, **kwargs): ... - def get_month(*args, **kwargs): ... - def get_offset(*args, **kwargs): ... - def get_second(*args, **kwargs): ... - def get_utc(*args, **kwargs): ... - def get_year(*args, **kwargs): ... - def is_past(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_from_now(*args, **kwargs): ... - def new_from_string(*args, **kwargs): ... - def new_from_time_t(*args, **kwargs): ... - def to_string(*args, **kwargs): ... - def to_time_t(*args, **kwargs): ... - def to_timeval(*args, **kwargs): ... - -class HSTSEnforcer: - parent = ... - priv = ... - - def get_domains(*args, **kwargs): ... - def get_policies(*args, **kwargs): ... - def has_valid_policy(*args, **kwargs): ... - def is_persistent(*args, **kwargs): ... - def new(*args, **kwargs): ... - def set_policy(*args, **kwargs): ... - def set_session_policy(*args, **kwargs): ... - def do_changed(self, *args, **kwargs): ... - def do_has_valid_policy(self, *args, **kwargs): ... - def do_hsts_enforced(self, *args, **kwargs): ... - def do_is_persistent(self, *args, **kwargs): ... - -class HSTSEnforcerDB: ... - -class HSTSPolicy: - domain = ... - expires = ... - include_subdomains = ... - max_age = ... - - def equal(*args, **kwargs): ... - def free(*args, **kwargs): ... - def get_domain(*args, **kwargs): ... - def includes_subdomains(*args, **kwargs): ... - def is_expired(*args, **kwargs): ... - def is_session_policy(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_from_response(*args, **kwargs): ... - def new_full(*args, **kwargs): ... - def new_session_policy(*args, **kwargs): ... - -class Logger: - parent = ... + """ + :Constructors: + + :: + + ContentSniffer(**properties) + new() -> Soup.ContentSniffer + + Object SoupContentSniffer + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: ContentSnifferPrivate = ... + def do_get_buffer_size(self) -> int: ... + def do_sniff(self, msg: Message, buffer: Buffer) -> Tuple[str, dict[str, str]]: ... + def get_buffer_size(self) -> int: ... + @classmethod + def new(cls) -> ContentSniffer: ... + def sniff(self, msg: Message, buffer: Buffer) -> Tuple[str, dict[str, str]]: ... + +class ContentSnifferClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContentSnifferClass() + """ + + parent_class: GObject.ObjectClass = ... + sniff: Callable[[ContentSniffer, Message, Buffer], Tuple[str, dict[str, str]]] = ... + get_buffer_size: Callable[[ContentSniffer], int] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + _libsoup_reserved5: None = ... + +class ContentSnifferPrivate(GObject.GPointer): ... + +class Cookie(GObject.GBoxed): + """ + :Constructors: + + :: + + Cookie() + new(name:str, value:str, domain:str, path:str, max_age:int) -> Soup.Cookie + """ + + name: str = ... + value: str = ... + domain: str = ... + path: str = ... + expires: Date = ... + secure: bool = ... + http_only: bool = ... + def applies_to_uri(self, uri: URI) -> bool: ... + def copy(self) -> Cookie: ... + def domain_matches(self, host: str) -> bool: ... + def equal(self, cookie2: Cookie) -> bool: ... + def free(self) -> None: ... + def get_domain(self) -> str: ... + def get_expires(self) -> Optional[Date]: ... + def get_http_only(self) -> bool: ... + def get_name(self) -> str: ... + def get_path(self) -> str: ... + def get_same_site_policy(self) -> SameSitePolicy: ... + def get_secure(self) -> bool: ... + def get_value(self) -> str: ... + @classmethod + def new( + cls, name: str, value: str, domain: str, path: str, max_age: int + ) -> Cookie: ... + @staticmethod + def parse(header: str, origin: URI) -> Optional[Cookie]: ... + def set_domain(self, domain: str) -> None: ... + def set_expires(self, expires: Date) -> None: ... + def set_http_only(self, http_only: bool) -> None: ... + def set_max_age(self, max_age: int) -> None: ... + def set_name(self, name: str) -> None: ... + def set_path(self, path: str) -> None: ... + def set_same_site_policy(self, policy: SameSitePolicy) -> None: ... + def set_secure(self, secure: bool) -> None: ... + def set_value(self, value: str) -> None: ... + def to_cookie_header(self) -> str: ... + def to_set_cookie_header(self) -> str: ... + +class CookieJar(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + CookieJar(**properties) + new() -> Soup.CookieJar + + Object SoupCookieJar + + Signals from SoupCookieJar: + changed (SoupCookie, SoupCookie) + + Properties from SoupCookieJar: + read-only -> gboolean: Read-only + Whether or not the cookie jar is read-only + accept-policy -> SoupCookieJarAcceptPolicy: Accept-policy + The policy the jar should follow to accept or reject cookies + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_policy: CookieJarAcceptPolicy + read_only: bool + props: Props = ... + parent: GObject.Object = ... + def __init__( + self, accept_policy: CookieJarAcceptPolicy = ..., read_only: bool = ... + ): ... + def add_cookie(self, cookie: Cookie) -> None: ... + def add_cookie_full( + self, + cookie: Cookie, + uri: Optional[URI] = None, + first_party: Optional[URI] = None, + ) -> None: ... + def add_cookie_with_first_party(self, first_party: URI, cookie: Cookie) -> None: ... + def all_cookies(self) -> list[Cookie]: ... + def delete_cookie(self, cookie: Cookie) -> None: ... + def do_changed(self, old_cookie: Cookie, new_cookie: Cookie) -> None: ... + def do_is_persistent(self) -> bool: ... + def do_save(self) -> None: ... + def get_accept_policy(self) -> CookieJarAcceptPolicy: ... + def get_cookie_list(self, uri: URI, for_http: bool) -> list[Cookie]: ... + def get_cookie_list_with_same_site_info( + self, + uri: URI, + top_level: Optional[URI], + site_for_cookies: Optional[URI], + for_http: bool, + is_safe_method: bool, + is_top_level_navigation: bool, + ) -> list[Cookie]: ... + def get_cookies(self, uri: URI, for_http: bool) -> Optional[str]: ... + def is_persistent(self) -> bool: ... + @classmethod + def new(cls) -> CookieJar: ... + def save(self) -> None: ... + def set_accept_policy(self, policy: CookieJarAcceptPolicy) -> None: ... + def set_cookie(self, uri: URI, cookie: str) -> None: ... + def set_cookie_with_first_party( + self, uri: URI, first_party: URI, cookie: str + ) -> None: ... + +class CookieJarClass(GObject.GPointer): + """ + :Constructors: + + :: + + CookieJarClass() + """ + + parent_class: GObject.ObjectClass = ... + save: Callable[[CookieJar], None] = ... + is_persistent: Callable[[CookieJar], bool] = ... + changed: Callable[[CookieJar, Cookie, Cookie], None] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + +class CookieJarDB(CookieJar, SessionFeature): + """ + :Constructors: + + :: + + CookieJarDB(**properties) + new(filename:str, read_only:bool) -> Soup.CookieJar + + Object SoupCookieJarDB + + Properties from SoupCookieJarDB: + filename -> gchararray: Filename + Cookie-storage filename + + Signals from SoupCookieJar: + changed (SoupCookie, SoupCookie) + + Properties from SoupCookieJar: + read-only -> gboolean: Read-only + Whether or not the cookie jar is read-only + accept-policy -> SoupCookieJarAcceptPolicy: Accept-policy + The policy the jar should follow to accept or reject cookies + + Signals from GObject: + notify (GParam) + """ + + class Props: + filename: str + accept_policy: CookieJarAcceptPolicy + read_only: bool + props: Props = ... + parent: CookieJar = ... + def __init__( + self, + filename: str = ..., + accept_policy: CookieJarAcceptPolicy = ..., + read_only: bool = ..., + ): ... + @classmethod + def new(cls, filename: str, read_only: bool) -> CookieJarDB: ... + +class CookieJarDBClass(GObject.GPointer): + """ + :Constructors: + + :: + + CookieJarDBClass() + """ + + parent_class: CookieJarClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class CookieJarText(CookieJar, SessionFeature): + """ + :Constructors: + + :: + + CookieJarText(**properties) + new(filename:str, read_only:bool) -> Soup.CookieJar + + Object SoupCookieJarText + + Properties from SoupCookieJarText: + filename -> gchararray: Filename + Cookie-storage filename + + Signals from SoupCookieJar: + changed (SoupCookie, SoupCookie) + + Properties from SoupCookieJar: + read-only -> gboolean: Read-only + Whether or not the cookie jar is read-only + accept-policy -> SoupCookieJarAcceptPolicy: Accept-policy + The policy the jar should follow to accept or reject cookies + + Signals from GObject: + notify (GParam) + """ + + class Props: + filename: str + accept_policy: CookieJarAcceptPolicy + read_only: bool + props: Props = ... + parent: CookieJar = ... + def __init__( + self, + filename: str = ..., + accept_policy: CookieJarAcceptPolicy = ..., + read_only: bool = ..., + ): ... + @classmethod + def new(cls, filename: str, read_only: bool) -> CookieJarText: ... + +class CookieJarTextClass(GObject.GPointer): + """ + :Constructors: + + :: + + CookieJarTextClass() + """ + + parent_class: CookieJarClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class Date(GObject.GBoxed): + """ + :Constructors: + + :: + + Date() + new(year:int, month:int, day:int, hour:int, minute:int, second:int) -> Soup.Date + new_from_now(offset_seconds:int) -> Soup.Date + new_from_string(date_string:str) -> Soup.Date or None + new_from_time_t(when:int) -> Soup.Date + """ + + year: int = ... + month: int = ... + day: int = ... + hour: int = ... + minute: int = ... + second: int = ... + utc: bool = ... + offset: int = ... + def copy(self) -> Date: ... + def free(self) -> None: ... + def get_day(self) -> int: ... + def get_hour(self) -> int: ... + def get_minute(self) -> int: ... + def get_month(self) -> int: ... + def get_offset(self) -> int: ... + def get_second(self) -> int: ... + def get_utc(self) -> int: ... + def get_year(self) -> int: ... + def is_past(self) -> bool: ... + @classmethod + def new( + cls, year: int, month: int, day: int, hour: int, minute: int, second: int + ) -> Date: ... + @classmethod + def new_from_now(cls, offset_seconds: int) -> Date: ... + @classmethod + def new_from_string(cls, date_string: str) -> Optional[Date]: ... + @classmethod + def new_from_time_t(cls, when: int) -> Date: ... + def to_string(self, format: DateFormat) -> str: ... + def to_time_t(self) -> int: ... + def to_timeval(self) -> GLib.TimeVal: ... + +class HSTSEnforcer(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + HSTSEnforcer(**properties) + new() -> Soup.HSTSEnforcer + + Object SoupHSTSEnforcer + + Signals from SoupHSTSEnforcer: + changed (SoupHSTSPolicy, SoupHSTSPolicy) + hsts-enforced (SoupMessage) + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: HSTSEnforcerPrivate = ... + def do_changed(self, old_policy: HSTSPolicy, new_policy: HSTSPolicy) -> None: ... + def do_has_valid_policy(self, domain: str) -> bool: ... + def do_hsts_enforced(self, message: Message) -> None: ... + def do_is_persistent(self) -> bool: ... + def get_domains(self, session_policies: bool) -> list[str]: ... + def get_policies(self, session_policies: bool) -> list[HSTSPolicy]: ... + def has_valid_policy(self, domain: str) -> bool: ... + def is_persistent(self) -> bool: ... + @classmethod + def new(cls) -> HSTSEnforcer: ... + def set_policy(self, policy: HSTSPolicy) -> None: ... + def set_session_policy(self, domain: str, include_subdomains: bool) -> None: ... + +class HSTSEnforcerClass(GObject.GPointer): + """ + :Constructors: + + :: + + HSTSEnforcerClass() + """ + + parent_class: GObject.ObjectClass = ... + is_persistent: Callable[[HSTSEnforcer], bool] = ... + has_valid_policy: Callable[[HSTSEnforcer, str], bool] = ... + changed: Callable[[HSTSEnforcer, HSTSPolicy, HSTSPolicy], None] = ... + hsts_enforced: Callable[[HSTSEnforcer, Message], None] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class HSTSEnforcerDB(HSTSEnforcer, SessionFeature): + """ + :Constructors: + + :: + + HSTSEnforcerDB(**properties) + new(filename:str) -> Soup.HSTSEnforcer + + Object SoupHSTSEnforcerDB + + Properties from SoupHSTSEnforcerDB: + filename -> gchararray: Filename + HSTS policy storage filename + + Signals from SoupHSTSEnforcer: + changed (SoupHSTSPolicy, SoupHSTSPolicy) + hsts-enforced (SoupMessage) + + Signals from GObject: + notify (GParam) + """ + + class Props: + filename: str + props: Props = ... + parent: HSTSEnforcer = ... + priv: HSTSEnforcerDBPrivate = ... + def __init__(self, filename: str = ...): ... + @classmethod + def new(cls, filename: str) -> HSTSEnforcerDB: ... + +class HSTSEnforcerDBClass(GObject.GPointer): + """ + :Constructors: + + :: + + HSTSEnforcerDBClass() + """ + + parent_class: HSTSEnforcerClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class HSTSEnforcerDBPrivate(GObject.GPointer): ... +class HSTSEnforcerPrivate(GObject.GPointer): ... + +class HSTSPolicy(GObject.GBoxed): + """ + :Constructors: + + :: + + HSTSPolicy() + new(domain:str, max_age:int, include_subdomains:bool) -> Soup.HSTSPolicy + new_from_response(msg:Soup.Message) -> Soup.HSTSPolicy or None + new_full(domain:str, max_age:int, expires:Soup.Date, include_subdomains:bool) -> Soup.HSTSPolicy + new_session_policy(domain:str, include_subdomains:bool) -> Soup.HSTSPolicy + """ + + domain: str = ... + max_age: int = ... + expires: Date = ... + include_subdomains: bool = ... + def copy(self) -> HSTSPolicy: ... + def equal(self, policy2: HSTSPolicy) -> bool: ... + def free(self) -> None: ... + def get_domain(self) -> str: ... + def includes_subdomains(self) -> bool: ... + def is_expired(self) -> bool: ... + def is_session_policy(self) -> bool: ... + @classmethod + def new(cls, domain: str, max_age: int, include_subdomains: bool) -> HSTSPolicy: ... + @classmethod + def new_from_response(cls, msg: Message) -> Optional[HSTSPolicy]: ... + @classmethod + def new_full( + cls, domain: str, max_age: int, expires: Date, include_subdomains: bool + ) -> HSTSPolicy: ... + @classmethod + def new_session_policy( + cls, domain: str, include_subdomains: bool + ) -> HSTSPolicy: ... + +class Logger(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + Logger(**properties) + new(level:Soup.LoggerLogLevel, max_body_size:int) -> Soup.Logger + + Object SoupLogger + + Properties from SoupLogger: + level -> SoupLoggerLogLevel: Level + The level of logging output + max-body-size -> gint: Max Body Size + The maximum body size to output + + Signals from GObject: + notify (GParam) + """ + + class Props: + level: LoggerLogLevel + max_body_size: int + props: Props = ... + parent: GObject.Object = ... + def __init__(self, level: LoggerLogLevel = ..., max_body_size: int = ...): ... + def attach(self, session: Session) -> None: ... + def detach(self, session: Session) -> None: ... @classmethod def new(cls, level: LoggerLogLevel, max_body_size: int) -> Logger: ... - def set_printer(*args, **kwargs): ... - def set_request_filter(*args, **kwargs): ... - def set_response_filter(*args, **kwargs): ... + def set_printer(self, printer: Callable[..., None], *printer_data: Any) -> None: ... + def set_request_filter( + self, request_filter: Callable[..., LoggerLogLevel], *filter_data: Any + ) -> None: ... + def set_response_filter( + self, response_filter: Callable[..., LoggerLogLevel], *filter_data: Any + ) -> None: ... + +class LoggerClass(GObject.GPointer): + """ + :Constructors: + + :: + + LoggerClass() + """ + + parent_class: GObject.ObjectClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... class Message(GObject.Object): - method: Optional[str] = ... - parent: GObject.Object = ... - reason_phrase: Optional[str] = ... - request_body: Optional[MessageBody] = ... - request_headers: Optional[MessageHeaders] = ... - response_body: Optional[MessageBody] = ... - response_headers: Optional[MessageHeaders] = ... - status_code: int = ... + """ + :Constructors: + + :: + + Message(**properties) + new(method:str, uri_string:str) -> Soup.Message or None + new_from_uri(method:str, uri:Soup.URI) -> Soup.Message + + Object SoupMessage + + Signals from SoupMessage: + wrote-informational () + wrote-headers () + wrote-chunk () + wrote-body-data (SoupBuffer) + wrote-body () + got-informational () + got-headers () + got-chunk (SoupBuffer) + got-body () + content-sniffed (gchararray, GHashTable) + starting () + restarted () + finished () + network-event (GSocketClientEvent, GIOStream) + + Properties from SoupMessage: + method -> gchararray: Method + The message's HTTP method + uri -> SoupURI: URI + The message's Request-URI + http-version -> SoupHTTPVersion: HTTP Version + The HTTP protocol version to use + flags -> SoupMessageFlags: Flags + Various message options + server-side -> gboolean: Server-side + Whether or not the message is server-side rather than client-side + status-code -> guint: Status code + The HTTP response status code + reason-phrase -> gchararray: Reason phrase + The HTTP response reason phrase + first-party -> SoupURI: First party + The URI loaded in the application when the message was requested. + request-body -> SoupMessageBody: Request Body + The HTTP request content + request-body-data -> GBytes: Request Body Data + The HTTP request body + request-headers -> SoupMessageHeaders: Request Headers + The HTTP request headers + response-body -> SoupMessageBody: Response Body + The HTTP response content + response-body-data -> GBytes: Response Body Data + The HTTP response body + response-headers -> SoupMessageHeaders: Response Headers + The HTTP response headers + tls-certificate -> GTlsCertificate: TLS Certificate + The TLS certificate associated with the message + tls-errors -> GTlsCertificateFlags: TLS Errors + The verification errors on the message's TLS certificate + priority -> SoupMessagePriority: Priority + The priority of the message + site-for-cookies -> SoupURI: Site for cookies + The URI for the site to compare cookies against + is-top-level-navigation -> gboolean: Is top-level navigation + If the current messsage is navigating between top-levels + + Signals from GObject: + notify (GParam) + """ class Props: - reason_phrase: Optional[str] = ... - request_body: Optional[MessageBody] = ... - request_body_data: Optional[GLib.Bytes] = ... - request_headers: Optional[MessageHeaders] = ... - response_body: Optional[MessageBody] = ... - response_body_data: Optional[GLib.Bytes] = ... - response_headers: Optional[MessageHeaders] = ... - status_code: int = ... - uri: Optional[URI] = ... - - props: Props - - def content_sniffed(*args, **kwargs): ... - def disable_feature(*args, **kwargs): ... - def finished(*args, **kwargs): ... - def get_address(*args, **kwargs): ... - def get_first_party(*args, **kwargs): ... - def get_flags(*args, **kwargs): ... - def get_http_version(*args, **kwargs): ... + first_party: URI + flags: MessageFlags + http_version: HTTPVersion + is_top_level_navigation: bool + method: str + priority: MessagePriority + reason_phrase: str + request_body: MessageBody + request_body_data: GLib.Bytes + request_headers: MessageHeaders + response_body: MessageBody + response_body_data: GLib.Bytes + response_headers: MessageHeaders + server_side: bool + site_for_cookies: URI + status_code: int + tls_certificate: Gio.TlsCertificate + tls_errors: Gio.TlsCertificateFlags + uri: URI + props: Props = ... + parent: GObject.Object = ... + method: str = ... + status_code: int = ... + reason_phrase: str = ... + request_body: MessageBody = ... + request_headers: MessageHeaders = ... + response_body: MessageBody = ... + response_headers: MessageHeaders = ... + def __init__( + self, + first_party: URI = ..., + flags: MessageFlags = ..., + http_version: HTTPVersion = ..., + is_top_level_navigation: bool = ..., + method: str = ..., + priority: MessagePriority = ..., + reason_phrase: str = ..., + server_side: bool = ..., + site_for_cookies: Optional[URI] = ..., + status_code: int = ..., + tls_certificate: Gio.TlsCertificate = ..., + tls_errors: Gio.TlsCertificateFlags = ..., + uri: URI = ..., + ): ... + def content_sniffed(self, content_type: str, params: dict[None, None]) -> None: ... + def disable_feature(self, feature_type: Type) -> None: ... + def do_finished(self) -> None: ... + def do_got_body(self) -> None: ... + def do_got_chunk(self, chunk: Buffer) -> None: ... + def do_got_headers(self) -> None: ... + def do_got_informational(self) -> None: ... + def do_restarted(self) -> None: ... + def do_starting(self) -> None: ... + def do_wrote_body(self) -> None: ... + def do_wrote_chunk(self) -> None: ... + def do_wrote_headers(self) -> None: ... + def do_wrote_informational(self) -> None: ... + def finished(self) -> None: ... + def get_address(self) -> Address: ... + def get_first_party(self) -> URI: ... + def get_flags(self) -> MessageFlags: ... + def get_http_version(self) -> HTTPVersion: ... def get_https_status( self, - ) -> tuple[bool, Gio.TlsCertificate, Gio.TlsCertificateFlags]: ... - def get_is_top_level_navigation(*args, **kwargs): ... - def get_priority(*args, **kwargs): ... - def get_site_for_cookies(*args, **kwargs): ... - def get_soup_request(*args, **kwargs): ... - def get_uri(*args, **kwargs): ... - def got_body(*args, **kwargs): ... - def got_chunk(*args, **kwargs): ... - def got_headers(*args, **kwargs): ... - def got_informational(*args, **kwargs): ... - def is_feature_disabled(*args, **kwargs): ... - def is_keepalive(*args, **kwargs): ... + ) -> Tuple[bool, Gio.TlsCertificate, Gio.TlsCertificateFlags]: ... + def get_is_top_level_navigation(self) -> bool: ... + def get_priority(self) -> MessagePriority: ... + def get_site_for_cookies(self) -> URI: ... + def get_soup_request(self) -> Request: ... + def get_uri(self) -> URI: ... + def got_body(self) -> None: ... + def got_chunk(self, chunk: Buffer) -> None: ... + def got_headers(self) -> None: ... + def got_informational(self) -> None: ... + def is_feature_disabled(self, feature_type: Type) -> bool: ... + def is_keepalive(self) -> bool: ... @classmethod - def new(cls, method: str, uri_string: str) -> Message: ... - def new_from_uri(*args, **kwargs): ... - def restarted(*args, **kwargs): ... - def set_chunk_allocator(*args, **kwargs): ... - def set_first_party(*args, **kwargs): ... + def new(cls, method: str, uri_string: str) -> Optional[Message]: ... + @classmethod + def new_from_uri(cls, method: str, uri: URI) -> Message: ... + def restarted(self) -> None: ... + def set_chunk_allocator( + self, allocator: Callable[..., Optional[Buffer]], *user_data: Any + ) -> None: ... + def set_first_party(self, first_party: URI) -> None: ... def set_flags(self, flags: MessageFlags) -> None: ... - def set_http_version(*args, **kwargs): ... - def set_is_top_level_navigation(*args, **kwargs): ... - def set_priority(*args, **kwargs): ... - def set_redirect(*args, **kwargs): ... - def set_request(*args, **kwargs): ... - def set_response(*args, **kwargs): ... - def set_site_for_cookies(*args, **kwargs): ... - def set_status(*args, **kwargs): ... - def set_status_full(*args, **kwargs): ... - def set_uri(*args, **kwargs): ... - def starting(*args, **kwargs): ... - def wrote_body(*args, **kwargs): ... - def wrote_body_data(*args, **kwargs): ... - def wrote_chunk(*args, **kwargs): ... - def wrote_headers(*args, **kwargs): ... - def wrote_informational(*args, **kwargs): ... - def do_finished(self, *args, **kwargs): ... - def do_got_body(self, *args, **kwargs): ... - def do_got_chunk(self, *args, **kwargs): ... - def do_got_headers(self, *args, **kwargs): ... - def do_got_informational(self, *args, **kwargs): ... - def do_restarted(self, *args, **kwargs): ... - def do_starting(self, *args, **kwargs): ... - def do_wrote_body(self, *args, **kwargs): ... - def do_wrote_chunk(self, *args, **kwargs): ... - def do_wrote_headers(self, *args, **kwargs): ... - def do_wrote_informational(self, *args, **kwargs): ... - -class MessageBody: + def set_http_version(self, version: HTTPVersion) -> None: ... + def set_is_top_level_navigation(self, is_top_level_navigation: bool) -> None: ... + def set_priority(self, priority: MessagePriority) -> None: ... + def set_redirect(self, status_code: int, redirect_uri: str) -> None: ... + def set_request( + self, + content_type: Optional[str], + req_use: MemoryUse, + req_body: Optional[Sequence[int]] = None, + ) -> None: ... + def set_response( + self, + content_type: Optional[str], + resp_use: MemoryUse, + resp_body: Optional[Sequence[int]] = None, + ) -> None: ... + def set_site_for_cookies(self, site_for_cookies: Optional[URI] = None) -> None: ... + def set_status(self, status_code: int) -> None: ... + def set_status_full(self, status_code: int, reason_phrase: str) -> None: ... + def set_uri(self, uri: URI) -> None: ... + def starting(self) -> None: ... + def wrote_body(self) -> None: ... + def wrote_body_data(self, chunk: Buffer) -> None: ... + def wrote_chunk(self) -> None: ... + def wrote_headers(self) -> None: ... + def wrote_informational(self) -> None: ... + +class MessageBody(GObject.GBoxed): + """ + :Constructors: + + :: + + MessageBody() + new() -> Soup.MessageBody + """ + data: str = ... length: int = ... - - def append(self, data: bytes) -> None: ... - def append_buffer(*args, **kwargs): ... + def append(self, data: Sequence[int]) -> None: ... + def append_buffer(self, buffer: Buffer) -> None: ... def complete(self) -> None: ... - def flatten(*args, **kwargs): ... - def free(*args, **kwargs): ... - def get_accumulate(*args, **kwargs): ... - def get_chunk(*args, **kwargs): ... - def got_chunk(*args, **kwargs): ... - def new(*args, **kwargs): ... + def flatten(self) -> Buffer: ... + def free(self) -> None: ... + def get_accumulate(self) -> bool: ... + def get_chunk(self, offset: int) -> Optional[Buffer]: ... + def got_chunk(self, chunk: Buffer) -> None: ... + @classmethod + def new(cls) -> MessageBody: ... def set_accumulate(self, accumulate: bool) -> None: ... - def truncate(*args, **kwargs): ... - def wrote_chunk(*args, **kwargs): ... + def truncate(self) -> None: ... + def wrote_chunk(self, chunk: Buffer) -> None: ... + +class MessageClass(GObject.GPointer): + """ + :Constructors: + + :: + + MessageClass() + """ + + parent_class: GObject.ObjectClass = ... + wrote_informational: Callable[[Message], None] = ... + wrote_headers: Callable[[Message], None] = ... + wrote_chunk: Callable[[Message], None] = ... + wrote_body: Callable[[Message], None] = ... + got_informational: Callable[[Message], None] = ... + got_headers: Callable[[Message], None] = ... + got_chunk: Callable[[Message, Buffer], None] = ... + got_body: Callable[[Message], None] = ... + restarted: Callable[[Message], None] = ... + finished: Callable[[Message], None] = ... + starting: Callable[[Message], None] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + +class MessageHeaders(GObject.GBoxed): + """ + :Constructors: + + :: + + new(type:Soup.MessageHeadersType) -> Soup.MessageHeaders + """ -class MessageHeaders: def append(self, name: str, value: str) -> None: ... - def clean_connection_headers(*args, **kwargs): ... - def clear(*args, **kwargs): ... - def foreach(*args, **kwargs): ... - def free(*args, **kwargs): ... - def free_ranges(*args, **kwargs): ... - def get(*args, **kwargs): ... - def get_content_disposition(*args, **kwargs): ... + def clean_connection_headers(self) -> None: ... + def clear(self) -> None: ... + def foreach(self, func: Callable[..., None], *user_data: Any) -> None: ... + def free(self) -> None: ... + def free_ranges(self, ranges: Range) -> None: ... + def get(self, name: str) -> Optional[str]: ... + def get_content_disposition(self) -> Tuple[bool, str, dict[str, str]]: ... def get_content_length(self) -> int: ... - def get_content_range(*args, **kwargs): ... - def get_content_type(*args, **kwargs): ... - def get_encoding(*args, **kwargs): ... - def get_expectations(*args, **kwargs): ... - def get_headers_type(*args, **kwargs): ... - def get_list(*args, **kwargs): ... - def get_one(*args, **kwargs): ... - def get_ranges(*args, **kwargs): ... - def header_contains(*args, **kwargs): ... - def header_equals(*args, **kwargs): ... - def new(*args, **kwargs): ... - def remove(*args, **kwargs): ... - def replace(*args, **kwargs): ... - def set_content_disposition(*args, **kwargs): ... + def get_content_range(self) -> Tuple[bool, int, int, int]: ... + def get_content_type(self) -> Tuple[Optional[str], dict[str, str]]: ... + def get_encoding(self) -> Encoding: ... + def get_expectations(self) -> Expectation: ... + def get_headers_type(self) -> MessageHeadersType: ... + def get_list(self, name: str) -> Optional[str]: ... + def get_one(self, name: str) -> Optional[str]: ... + def get_ranges(self, total_length: int) -> Tuple[bool, list[Range]]: ... + def header_contains(self, name: str, token: str) -> bool: ... + def header_equals(self, name: str, value: str) -> bool: ... + @classmethod + def new(cls, type: MessageHeadersType) -> MessageHeaders: ... + def remove(self, name: str) -> None: ... + def replace(self, name: str, value: str) -> None: ... + def set_content_disposition( + self, disposition: str, params: Optional[dict[str, str]] = None + ) -> None: ... def set_content_length(self, content_length: int) -> None: ... - def set_content_range(*args, **kwargs): ... + def set_content_range(self, start: int, end: int, total_length: int) -> None: ... def set_content_type( - self, content_type: str, params: Optional[dict[str, str]] + self, content_type: str, params: Optional[dict[str, str]] = None ) -> None: ... - def set_encoding(*args, **kwargs): ... - def set_expectations(*args, **kwargs): ... - def set_range(*args, **kwargs): ... - def set_ranges(*args, **kwargs): ... - -class MessageHeadersIter: - dummy = ... - - def init(*args, **kwargs): ... - def next(*args, **kwargs): ... - -class MessageQueue: ... -class MessageQueueItem: ... - -class Multipart: - def append_form_file(*args, **kwargs): ... - def append_form_string(*args, **kwargs): ... - def append_part(*args, **kwargs): ... - def free(*args, **kwargs): ... - def get_length(*args, **kwargs): ... - def get_part(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_from_message(*args, **kwargs): ... - def to_message(*args, **kwargs): ... - -class MultipartInputStream: - def get_headers(*args, **kwargs): ... - def new(*args, **kwargs): ... - def next_part(*args, **kwargs): ... - def next_part_async(*args, **kwargs): ... - def next_part_finish(*args, **kwargs): ... - -class PasswordManager: - def get_passwords_async(*args, **kwargs): ... - def get_passwords_sync(*args, **kwargs): ... - -class PasswordManagerInterface: - base = ... - get_passwords_async = ... - get_passwords_sync = ... - -class ProxyResolver: - def get_proxy_async(*args, **kwargs): ... - def get_proxy_sync(*args, **kwargs): ... - -class ProxyResolverDefault: - parent = ... - -class ProxyResolverInterface: - base = ... - get_proxy_async = ... - get_proxy_sync = ... - -class ProxyURIResolver: - def get_proxy_uri_async(*args, **kwargs): ... - def get_proxy_uri_sync(*args, **kwargs): ... - -class ProxyURIResolverInterface: - _libsoup_reserved1 = ... - _libsoup_reserved2 = ... - _libsoup_reserved3 = ... - _libsoup_reserved4 = ... - base = ... - get_proxy_uri_async = ... - get_proxy_uri_sync = ... - -class Range: - end = ... - start = ... - -class Request: - parent = ... - priv = ... + def set_encoding(self, encoding: Encoding) -> None: ... + def set_expectations(self, expectations: Expectation) -> None: ... + def set_range(self, start: int, end: int) -> None: ... + def set_ranges(self, ranges: Range, length: int) -> None: ... + +class MessageHeadersIter(GObject.GPointer): + """ + :Constructors: + + :: + + MessageHeadersIter() + """ + + dummy: list[None] = ... + @staticmethod + def init(hdrs: MessageHeaders) -> MessageHeadersIter: ... + def next(self) -> Tuple[bool, str, str]: ... + +class MessageQueue(GObject.GPointer): ... +class MessageQueueItem(GObject.GPointer): ... + +class Multipart(GObject.GBoxed): + """ + :Constructors: + + :: + + new(mime_type:str) -> Soup.Multipart + new_from_message(headers:Soup.MessageHeaders, body:Soup.MessageBody) -> Soup.Multipart or None + """ + def append_form_file( + self, control_name: str, filename: str, content_type: str, body: Buffer + ) -> None: ... + def append_form_string(self, control_name: str, data: str) -> None: ... + def append_part(self, headers: MessageHeaders, body: Buffer) -> None: ... + def free(self) -> None: ... + def get_length(self) -> int: ... + def get_part(self, part: int) -> Tuple[bool, MessageHeaders, Buffer]: ... + @classmethod + def new(cls, mime_type: str) -> Multipart: ... + @classmethod + def new_from_message( + cls, headers: MessageHeaders, body: MessageBody + ) -> Optional[Multipart]: ... + def to_message( + self, dest_headers: MessageHeaders, dest_body: MessageBody + ) -> None: ... + +class MultipartInputStream(Gio.FilterInputStream, Gio.PollableInputStream): + """ + :Constructors: + + :: + + MultipartInputStream(**properties) + new(msg:Soup.Message, base_stream:Gio.InputStream) -> Soup.MultipartInputStream + + Object SoupMultipartInputStream + + Properties from SoupMultipartInputStream: + message -> SoupMessage: Message + The SoupMessage + + Properties from GFilterInputStream: + base-stream -> GInputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + + class Props: + message: Message + base_stream: Gio.InputStream + close_base_stream: bool + props: Props = ... + parent_instance: Gio.FilterInputStream = ... + priv: MultipartInputStreamPrivate = ... + def __init__( + self, + message: Message = ..., + base_stream: Gio.InputStream = ..., + close_base_stream: bool = ..., + ): ... + def get_headers(self) -> Optional[MessageHeaders]: ... + @classmethod + def new( + cls, msg: Message, base_stream: Gio.InputStream + ) -> MultipartInputStream: ... + def next_part( + self, cancellable: Optional[Gio.Cancellable] = None + ) -> Optional[Gio.InputStream]: ... + def next_part_async( + self, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *data: Any, + ) -> None: ... + def next_part_finish( + self, result: Gio.AsyncResult + ) -> Optional[Gio.InputStream]: ... + +class MultipartInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + MultipartInputStreamClass() + """ + + parent_class: Gio.FilterInputStreamClass = ... + +class MultipartInputStreamPrivate(GObject.GPointer): ... + +class PasswordManager(GObject.GInterface): + """ + Interface SoupPasswordManager + + Signals from GObject: + notify (GParam) + """ + + def get_passwords_async( + self, + msg: Message, + auth: Auth, + retrying: bool, + async_context: GLib.MainContext, + cancellable: Optional[Gio.Cancellable], + callback: Callable[..., None], + *user_data: Any, + ) -> None: ... + def get_passwords_sync( + self, msg: Message, auth: Auth, cancellable: Optional[Gio.Cancellable] = None + ) -> None: ... + +class PasswordManagerInterface(GObject.GPointer): + """ + :Constructors: + + :: + + PasswordManagerInterface() + """ + + base: GObject.TypeInterface = ... + get_passwords_async: Callable[..., None] = ... + get_passwords_sync: Callable[ + [PasswordManager, Message, Auth, Optional[Gio.Cancellable]], None + ] = ... + +class ProxyResolver(GObject.GInterface): + """ + Interface SoupProxyResolver + + Signals from GObject: + notify (GParam) + """ + + def get_proxy_async( + self, + msg: Message, + async_context: GLib.MainContext, + cancellable: Optional[Gio.Cancellable], + callback: Callable[..., None], + *user_data: Any, + ) -> None: ... + def get_proxy_sync( + self, msg: Message, cancellable: Optional[Gio.Cancellable] = None + ) -> Tuple[int, Address]: ... + +class ProxyResolverDefault(GObject.Object, ProxyURIResolver, SessionFeature): + """ + :Constructors: + + :: + + ProxyResolverDefault(**properties) + + Object SoupProxyResolverDefault + + Properties from SoupProxyResolverDefault: + gproxy-resolver -> GProxyResolver: GProxyResolver + The underlying GProxyResolver + + Signals from GObject: + notify (GParam) + """ + + class Props: + gproxy_resolver: Gio.ProxyResolver + props: Props = ... + parent: GObject.Object = ... + def __init__(self, gproxy_resolver: Gio.ProxyResolver = ...): ... + +class ProxyResolverDefaultClass(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyResolverDefaultClass() + """ + + parent_class: GObject.ObjectClass = ... + +class ProxyResolverInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyResolverInterface() + """ + + base: GObject.TypeInterface = ... + get_proxy_async: Callable[..., None] = ... + get_proxy_sync: Callable[ + [ProxyResolver, Message, Optional[Gio.Cancellable]], Tuple[int, Address] + ] = ... + +class ProxyURIResolver(GObject.GInterface): + """ + Interface SoupProxyURIResolver + + Signals from GObject: + notify (GParam) + """ + + def get_proxy_uri_async( + self, + uri: URI, + async_context: Optional[GLib.MainContext], + cancellable: Optional[Gio.Cancellable], + callback: Callable[..., None], + *user_data: Any, + ) -> None: ... + def get_proxy_uri_sync( + self, uri: URI, cancellable: Optional[Gio.Cancellable] = None + ) -> Tuple[int, URI]: ... + +class ProxyURIResolverInterface(GObject.GPointer): + """ + :Constructors: + + :: + + ProxyURIResolverInterface() + """ + + base: GObject.TypeInterface = ... + get_proxy_uri_async: Callable[..., None] = ... + get_proxy_uri_sync: Callable[ + [ProxyURIResolver, URI, Optional[Gio.Cancellable]], Tuple[int, URI] + ] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class Range(GObject.GPointer): + """ + :Constructors: + + :: + + Range() + """ + + start: int = ... + end: int = ... + +class Request(GObject.Object, Gio.Initable): + """ + :Constructors: + + :: + + Request(**properties) + + Object SoupRequest + + Properties from SoupRequest: + uri -> SoupURI: URI + The request URI + session -> SoupSession: Session + The request's session + + Signals from GObject: + notify (GParam) + """ + + class Props: + session: Session + uri: URI + props: Props = ... + parent: GObject.Object = ... + priv: RequestPrivate = ... + def __init__(self, session: Session = ..., uri: URI = ...): ... + def do_check_uri(self, uri: URI) -> bool: ... + def do_get_content_length(self) -> int: ... + def do_get_content_type(self) -> Optional[str]: ... + def do_send( + self, cancellable: Optional[Gio.Cancellable] = None + ) -> Gio.InputStream: ... + def do_send_async( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def do_send_finish(self, result: Gio.AsyncResult) -> Gio.InputStream: ... def get_content_length(self) -> int: ... def get_content_type(self) -> Optional[str]: ... def get_session(self) -> Session: ... def get_uri(self) -> URI: ... - def send(*args, **kwargs): ... - def send_async(*args, **kwargs): ... - def send_finish(*args, **kwargs): ... - def do_check_uri(self, *args, **kwargs): ... - def do_get_content_length(self, *args, **kwargs): ... - def do_get_content_type(self, *args, **kwargs): ... - def do_send(self, *args, **kwargs): ... - def do_send_async(self, *args, **kwargs): ... - def do_send_finish(self, *args, **kwargs): ... - -class RequestData: ... - -class RequestFile: - def get_file(*args, **kwargs): ... - -class RequestHTTP: - def get_message(*args, **kwargs): ... - -class Requester: - parent = ... - priv = ... - - def new(*args, **kwargs): ... - def request(*args, **kwargs): ... - def request_uri(*args, **kwargs): ... - -class Server: - parent = ... - - def accept_iostream(*args, **kwargs): ... - def add_auth_domain(*args, **kwargs): ... - def add_early_handler(*args, **kwargs): ... - def add_handler(*args, **kwargs): ... - def add_websocket_extension(*args, **kwargs): ... - def add_websocket_handler(*args, **kwargs): ... - def get_async_context(*args, **kwargs): ... - def get_listener(*args, **kwargs): ... - def get_listeners(*args, **kwargs): ... - def get_port(*args, **kwargs): ... - def get_uris(*args, **kwargs): ... - def is_https(*args, **kwargs): ... - def listen(*args, **kwargs): ... - def listen_all(*args, **kwargs): ... - def listen_fd(*args, **kwargs): ... - def listen_local(*args, **kwargs): ... - def listen_socket(*args, **kwargs): ... - def pause_message(*args, **kwargs): ... - def quit(*args, **kwargs): ... - def remove_auth_domain(*args, **kwargs): ... - def remove_handler(*args, **kwargs): ... - def remove_websocket_extension(*args, **kwargs): ... - def run(*args, **kwargs): ... - def run_async(*args, **kwargs): ... - def set_ssl_cert_file(*args, **kwargs): ... - def unpause_message(*args, **kwargs): ... - def do_request_aborted(self, *args, **kwargs): ... - def do_request_finished(self, *args, **kwargs): ... - def do_request_read(self, *args, **kwargs): ... - def do_request_started(self, *args, **kwargs): ... - -class Session: - parent = ... + def send( + self, cancellable: Optional[Gio.Cancellable] = None + ) -> Gio.InputStream: ... + def send_async( + self, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def send_finish(self, result: Gio.AsyncResult) -> Gio.InputStream: ... + +class RequestClass(GObject.GPointer): + """ + :Constructors: + + :: + + RequestClass() + """ + + parent: GObject.ObjectClass = ... + schemes: str = ... + check_uri: Callable[[Request, URI], bool] = ... + send: Callable[[Request, Optional[Gio.Cancellable]], Gio.InputStream] = ... + send_async: Callable[..., None] = ... + send_finish: Callable[[Request, Gio.AsyncResult], Gio.InputStream] = ... + get_content_length: Callable[[Request], int] = ... + get_content_type: Callable[[Request], Optional[str]] = ... + +class RequestData(Request, Gio.Initable): + """ + :Constructors: + + :: + + RequestData(**properties) + + Object SoupRequestData + + Properties from SoupRequest: + uri -> SoupURI: URI + The request URI + session -> SoupSession: Session + The request's session + + Signals from GObject: + notify (GParam) + """ + + class Props: + session: Session + uri: URI + props: Props = ... + parent: Request = ... + priv: RequestDataPrivate = ... + def __init__(self, session: Session = ..., uri: URI = ...): ... + +class RequestDataClass(GObject.GPointer): + """ + :Constructors: + + :: + + RequestDataClass() + """ + + parent: RequestClass = ... + +class RequestDataPrivate(GObject.GPointer): ... + +class RequestFile(Request, Gio.Initable): + """ + :Constructors: + + :: + + RequestFile(**properties) + + Object SoupRequestFile + + Properties from SoupRequest: + uri -> SoupURI: URI + The request URI + session -> SoupSession: Session + The request's session + + Signals from GObject: + notify (GParam) + """ + + class Props: + session: Session + uri: URI + props: Props = ... + parent: Request = ... + priv: RequestFilePrivate = ... + def __init__(self, session: Session = ..., uri: URI = ...): ... + def get_file(self) -> Gio.File: ... + +class RequestFileClass(GObject.GPointer): + """ + :Constructors: + + :: + + RequestFileClass() + """ + + parent: RequestClass = ... + +class RequestFilePrivate(GObject.GPointer): ... + +class RequestHTTP(Request, Gio.Initable): + """ + :Constructors: + + :: + + RequestHTTP(**properties) + + Object SoupRequestHTTP + + Properties from SoupRequest: + uri -> SoupURI: URI + The request URI + session -> SoupSession: Session + The request's session + + Signals from GObject: + notify (GParam) + """ + + class Props: + session: Session + uri: URI + props: Props = ... + parent: Request = ... + priv: RequestHTTPPrivate = ... + def __init__(self, session: Session = ..., uri: URI = ...): ... + def get_message(self) -> Message: ... + +class RequestHTTPClass(GObject.GPointer): + """ + :Constructors: + + :: + + RequestHTTPClass() + """ + + parent: RequestClass = ... + +class RequestHTTPPrivate(GObject.GPointer): ... +class RequestPrivate(GObject.GPointer): ... + +class Requester(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + Requester(**properties) + new() -> Soup.Requester + + Object SoupRequester + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + priv: RequesterPrivate = ... + @classmethod + def new(cls) -> Requester: ... + def request(self, uri_string: str) -> Request: ... + def request_uri(self, uri: URI) -> Request: ... + +class RequesterClass(GObject.GPointer): + """ + :Constructors: + + :: + + RequesterClass() + """ + + parent_class: GObject.ObjectClass = ... + +class RequesterPrivate(GObject.GPointer): ... + +class Server(GObject.Object): + """ + :Constructors: + + :: + + Server(**properties) + + Object SoupServer + + Signals from SoupServer: + request-started (SoupMessage, SoupClientContext) + request-read (SoupMessage, SoupClientContext) + request-finished (SoupMessage, SoupClientContext) + request-aborted (SoupMessage, SoupClientContext) + + Properties from SoupServer: + port -> guint: Port + Port to listen on (Deprecated) + interface -> SoupAddress: Interface + Address of interface to listen on (Deprecated) + ssl-cert-file -> gchararray: TLS (aka SSL) certificate file + File containing server TLS (aka SSL) certificate + ssl-key-file -> gchararray: TLS (aka SSL) key file + File containing server TLS (aka SSL) key + tls-certificate -> GTlsCertificate: TLS certificate + GTlsCertificate to use for https + async-context -> gpointer: Async GMainContext + The GMainContext to dispatch async I/O in + raw-paths -> gboolean: Raw paths + If %TRUE, percent-encoding in the Request-URI path will not be automatically decoded. + server-header -> gchararray: Server header + Server header + http-aliases -> GStrv: http aliases + URI schemes that are considered aliases for 'http' + https-aliases -> GStrv: https aliases + URI schemes that are considered aliases for 'https' + add-websocket-extension -> GType: Add support for a WebSocket extension + Add support for a WebSocket extension of the given type + remove-websocket-extension -> GType: Remove support for a WebSocket extension + Remove support for a WebSocket extension of the given type + + Signals from GObject: + notify (GParam) + """ class Props: - https_aliases: list[str] = ... - proxy_resolver: Optional[Gio.ProxyResolver] = ... - ssl_strict: bool = ... - user_agent: str = ... + async_context: Optional[None] + http_aliases: list[str] + https_aliases: list[str] + interface: Address + port: int + raw_paths: bool + server_header: str + ssl_cert_file: str + ssl_key_file: str + tls_certificate: Gio.TlsCertificate + props: Props = ... + parent: GObject.Object = ... + def __init__( + self, + async_context: None = ..., + http_aliases: Sequence[str] = ..., + https_aliases: Sequence[str] = ..., + interface: Address = ..., + port: int = ..., + raw_paths: bool = ..., + server_header: str = ..., + ssl_cert_file: str = ..., + ssl_key_file: str = ..., + tls_certificate: Gio.TlsCertificate = ..., + ): ... + def accept_iostream( + self, + stream: Gio.IOStream, + local_addr: Optional[Gio.SocketAddress] = None, + remote_addr: Optional[Gio.SocketAddress] = None, + ) -> bool: ... + def add_auth_domain(self, auth_domain: AuthDomain) -> None: ... + def add_early_handler( + self, path: Optional[str], callback: Callable[..., None], *user_data: Any + ) -> None: ... + def add_handler( + self, path: Optional[str], callback: Callable[..., None], *user_data: Any + ) -> None: ... + def add_websocket_extension(self, extension_type: Type) -> None: ... + def add_websocket_handler( + self, + path: Optional[str], + origin: Optional[str], + protocols: Optional[Sequence[str]], + callback: Callable[..., None], + *user_data: Any, + ) -> None: ... + def disconnect(self) -> None: ... + def do_request_aborted(self, msg: Message, client: ClientContext) -> None: ... + def do_request_finished(self, msg: Message, client: ClientContext) -> None: ... + def do_request_read(self, msg: Message, client: ClientContext) -> None: ... + def do_request_started(self, msg: Message, client: ClientContext) -> None: ... + def get_async_context(self) -> Optional[GLib.MainContext]: ... + def get_listener(self) -> Socket: ... + def get_listeners(self) -> list[Gio.Socket]: ... + def get_port(self) -> int: ... + def get_uris(self) -> list[URI]: ... + def is_https(self) -> bool: ... + def listen( + self, address: Gio.SocketAddress, options: ServerListenOptions + ) -> bool: ... + def listen_all(self, port: int, options: ServerListenOptions) -> bool: ... + def listen_fd(self, fd: int, options: ServerListenOptions) -> bool: ... + def listen_local(self, port: int, options: ServerListenOptions) -> bool: ... + def listen_socket( + self, socket: Gio.Socket, options: ServerListenOptions + ) -> bool: ... + def pause_message(self, msg: Message) -> None: ... + def quit(self) -> None: ... + def remove_auth_domain(self, auth_domain: AuthDomain) -> None: ... + def remove_handler(self, path: str) -> None: ... + def remove_websocket_extension(self, extension_type: Type) -> None: ... + def run(self) -> None: ... + def run_async(self) -> None: ... + def set_ssl_cert_file(self, ssl_cert_file: str, ssl_key_file: str) -> bool: ... + def unpause_message(self, msg: Message) -> None: ... - props = Props +class ServerClass(GObject.GPointer): + """ + :Constructors: + + :: + + ServerClass() + """ + + parent_class: GObject.ObjectClass = ... + request_started: Callable[[Server, Message, ClientContext], None] = ... + request_read: Callable[[Server, Message, ClientContext], None] = ... + request_finished: Callable[[Server, Message, ClientContext], None] = ... + request_aborted: Callable[[Server, Message, ClientContext], None] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class Session(GObject.Object): + """ + :Constructors: + + :: + + Session(**properties) + new() -> Soup.Session + + Object SoupSession + + Signals from SoupSession: + authenticate (SoupMessage, SoupAuth, gboolean) + request-started (SoupMessage, SoupSocket) + request-queued (SoupMessage) + request-unqueued (SoupMessage) + connection-created (GObject) + tunneling (GObject) + + Properties from SoupSession: + proxy-uri -> SoupURI: Proxy URI + The HTTP Proxy to use for this session + proxy-resolver -> GProxyResolver: Proxy Resolver + The GProxyResolver to use for this session + max-conns -> gint: Max Connection Count + The maximum number of connections that the session can open at once + max-conns-per-host -> gint: Max Per-Host Connection Count + The maximum number of connections that the session can open at once to a given host + use-ntlm -> gboolean: Use NTLM + Whether or not to use NTLM authentication + ssl-ca-file -> gchararray: SSL CA file + File containing SSL CA certificates + ssl-use-system-ca-file -> gboolean: Use system CA file + Use the system certificate database + tls-database -> GTlsDatabase: TLS Database + TLS database to use + ssl-strict -> gboolean: Strictly validate SSL certificates + Whether certificate errors should be considered a connection error + async-context -> gpointer: Async GMainContext + The GMainContext to dispatch async I/O in + use-thread-context -> gboolean: Use thread-default GMainContext + Whether to use thread-default main contexts + timeout -> guint: Timeout value + Value in seconds to timeout a blocking I/O + user-agent -> gchararray: User-Agent string + User-Agent string + accept-language -> gchararray: Accept-Language string + Accept-Language string + accept-language-auto -> gboolean: Accept-Language automatic mode + Accept-Language automatic mode + idle-timeout -> guint: Idle Timeout + Connection lifetime when idle + add-feature -> SoupSessionFeature: Add Feature + Add a feature object to the session + add-feature-by-type -> GType: Add Feature By Type + Add a feature object of the given type to the session + remove-feature-by-type -> GType: Remove Feature By Type + Remove features of the given type from the session + http-aliases -> GStrv: http aliases + URI schemes that are considered aliases for 'http' + https-aliases -> GStrv: https aliases + URI schemes that are considered aliases for 'https' + local-address -> SoupAddress: Local address + Address of local end of socket + tls-interaction -> GTlsInteraction: TLS Interaction + TLS interaction to use + + Signals from GObject: + notify (GParam) + """ + class Props: + accept_language: str + accept_language_auto: bool + async_context: Optional[None] + http_aliases: list[str] + https_aliases: list[str] + idle_timeout: int + local_address: Address + max_conns: int + max_conns_per_host: int + proxy_resolver: Gio.ProxyResolver + proxy_uri: URI + ssl_ca_file: str + ssl_strict: bool + ssl_use_system_ca_file: bool + timeout: int + tls_database: Gio.TlsDatabase + tls_interaction: Gio.TlsInteraction + use_ntlm: bool + use_thread_context: bool + user_agent: str + props: Props = ... + parent: GObject.Object = ... + def __init__( + self, + accept_language: str = ..., + accept_language_auto: bool = ..., + async_context: None = ..., + http_aliases: Sequence[str] = ..., + https_aliases: Sequence[str] = ..., + idle_timeout: int = ..., + local_address: Address = ..., + max_conns: int = ..., + max_conns_per_host: int = ..., + proxy_resolver: Gio.ProxyResolver = ..., + proxy_uri: URI = ..., + ssl_ca_file: str = ..., + ssl_strict: bool = ..., + ssl_use_system_ca_file: bool = ..., + timeout: int = ..., + tls_database: Gio.TlsDatabase = ..., + tls_interaction: Gio.TlsInteraction = ..., + use_ntlm: bool = ..., + use_thread_context: bool = ..., + user_agent: str = ..., + ): ... def abort(self) -> None: ... - def add_feature(self, type: Any) -> bool: ... - def add_feature_by_type(self, feature_type: GObject.GType) -> None: ... + def add_feature(self, feature: SessionFeature) -> None: ... + def add_feature_by_type(self, feature_type: Type) -> None: ... def cancel_message(self, msg: Message, status_code: int) -> None: ... - def connect_async(*args, **kwargs): ... - def connect_finish(*args, **kwargs): ... - def get_async_context(*args, **kwargs): ... - def get_feature(*args, **kwargs): ... - def get_feature_for_message(*args, **kwargs): ... - def get_features(*args, **kwargs): ... - def has_feature(*args, **kwargs): ... - def new(*args, **kwargs): ... + def connect_async( + self, + uri: URI, + cancellable: Optional[Gio.Cancellable] = None, + progress_callback: Optional[Callable[..., None]] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def connect_finish(self, result: Gio.AsyncResult) -> Gio.IOStream: ... + def do_auth_required(self, msg: Message, auth: Auth, retrying: bool) -> None: ... + def do_authenticate(self, msg: Message, auth: Auth, retrying: bool) -> None: ... + def do_cancel_message(self, msg: Message, status_code: int) -> None: ... + def do_flush_queue(self) -> None: ... + def do_kick(self) -> None: ... + def do_queue_message( + self, + msg: Message, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def do_request_started(self, msg: Message, socket: Socket) -> None: ... + def do_requeue_message(self, msg: Message) -> None: ... + def do_send_message(self, msg: Message) -> int: ... + def get_async_context(self) -> Optional[GLib.MainContext]: ... + def get_feature(self, feature_type: Type) -> Optional[SessionFeature]: ... + def get_feature_for_message( + self, feature_type: Type, msg: Message + ) -> Optional[SessionFeature]: ... + def get_features(self, feature_type: Type) -> list[SessionFeature]: ... + def has_feature(self, feature_type: Type) -> bool: ... + @classmethod + def new(cls) -> Session: ... def pause_message(self, msg: Message) -> None: ... - def prefetch_dns(*args, **kwargs): ... - def prepare_for_uri(*args, **kwargs): ... - @overload - def queue_message( - self, msg: Message, callback: Optional[SessionCallbackU], *user_data: Any + def prefetch_dns( + self, + hostname: str, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, ) -> None: ... - @overload + def prepare_for_uri(self, uri: URI) -> None: ... def queue_message( - self, msg: Message, callback: Optional[SessionCallback] + self, + msg: Message, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def redirect_message(self, msg: Message) -> bool: ... + def remove_feature(self, feature: SessionFeature) -> None: ... + def remove_feature_by_type(self, feature_type: Type) -> None: ... + def request(self, uri_string: str) -> Request: ... + def request_http(self, method: str, uri_string: str) -> RequestHTTP: ... + def request_http_uri(self, method: str, uri: URI) -> RequestHTTP: ... + def request_uri(self, uri: URI) -> Request: ... + def requeue_message(self, msg: Message) -> None: ... + def send( + self, msg: Message, cancellable: Optional[Gio.Cancellable] = None + ) -> Gio.InputStream: ... + def send_async( + self, + msg: Message, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, ) -> None: ... - def redirect_message(*args, **kwargs): ... - def remove_feature(*args, **kwargs): ... - def remove_feature_by_type(*args, **kwargs): ... - def request(*args, **kwargs): ... - def request_http(*args, **kwargs): ... - def request_http_uri(*args, **kwargs): ... - def request_uri(*args, **kwargs): ... - def requeue_message(*args, **kwargs): ... - def send(*args, **kwargs): ... - def send_async(*args, **kwargs): ... - def send_finish(*args, **kwargs): ... - def send_message(*args, **kwargs): ... - def steal_connection(*args, **kwargs): ... + def send_finish(self, result: Gio.AsyncResult) -> Gio.InputStream: ... + def send_message(self, msg: Message) -> int: ... + def steal_connection(self, msg: Message) -> Gio.IOStream: ... def unpause_message(self, msg: Message) -> None: ... def websocket_connect_async( self, msg: Message, - origin: Optional[str], - protocols: Optional[list[str]], - cancellable: Optional[Gio.Cancellable], - callback: Optional[Gio.AsyncReadyCallback], - *user_data: Optional[Any], + origin: Optional[str] = None, + protocols: Optional[Sequence[str]] = None, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, ) -> None: ... def websocket_connect_finish( self, result: Gio.AsyncResult ) -> WebsocketConnection: ... - def would_redirect(*args, **kwargs): ... - def do_auth_required(self, *args, **kwargs): ... - def do_authenticate(self, *args, **kwargs): ... - def do_cancel_message(self, *args, **kwargs): ... - def do_flush_queue(self, *args, **kwargs): ... - def do_kick(self, *args, **kwargs): ... - def do_queue_message(self, *args, **kwargs): ... - def do_request_started(self, *args, **kwargs): ... - def do_requeue_message(self, *args, **kwargs): ... - def do_send_message(self, *args, **kwargs): ... - -class SessionAsync: ... + def would_redirect(self, msg: Message) -> bool: ... + +class SessionAsync(Session): + """ + :Constructors: + + :: + + SessionAsync(**properties) + new() -> Soup.Session + + Object SoupSessionAsync + + Signals from SoupSession: + authenticate (SoupMessage, SoupAuth, gboolean) + request-started (SoupMessage, SoupSocket) + request-queued (SoupMessage) + request-unqueued (SoupMessage) + connection-created (GObject) + tunneling (GObject) + + Properties from SoupSession: + proxy-uri -> SoupURI: Proxy URI + The HTTP Proxy to use for this session + proxy-resolver -> GProxyResolver: Proxy Resolver + The GProxyResolver to use for this session + max-conns -> gint: Max Connection Count + The maximum number of connections that the session can open at once + max-conns-per-host -> gint: Max Per-Host Connection Count + The maximum number of connections that the session can open at once to a given host + use-ntlm -> gboolean: Use NTLM + Whether or not to use NTLM authentication + ssl-ca-file -> gchararray: SSL CA file + File containing SSL CA certificates + ssl-use-system-ca-file -> gboolean: Use system CA file + Use the system certificate database + tls-database -> GTlsDatabase: TLS Database + TLS database to use + ssl-strict -> gboolean: Strictly validate SSL certificates + Whether certificate errors should be considered a connection error + async-context -> gpointer: Async GMainContext + The GMainContext to dispatch async I/O in + use-thread-context -> gboolean: Use thread-default GMainContext + Whether to use thread-default main contexts + timeout -> guint: Timeout value + Value in seconds to timeout a blocking I/O + user-agent -> gchararray: User-Agent string + User-Agent string + accept-language -> gchararray: Accept-Language string + Accept-Language string + accept-language-auto -> gboolean: Accept-Language automatic mode + Accept-Language automatic mode + idle-timeout -> guint: Idle Timeout + Connection lifetime when idle + add-feature -> SoupSessionFeature: Add Feature + Add a feature object to the session + add-feature-by-type -> GType: Add Feature By Type + Add a feature object of the given type to the session + remove-feature-by-type -> GType: Remove Feature By Type + Remove features of the given type from the session + http-aliases -> GStrv: http aliases + URI schemes that are considered aliases for 'http' + https-aliases -> GStrv: https aliases + URI schemes that are considered aliases for 'https' + local-address -> SoupAddress: Local address + Address of local end of socket + tls-interaction -> GTlsInteraction: TLS Interaction + TLS interaction to use + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_language: str + accept_language_auto: bool + async_context: Optional[None] + http_aliases: list[str] + https_aliases: list[str] + idle_timeout: int + local_address: Address + max_conns: int + max_conns_per_host: int + proxy_resolver: Gio.ProxyResolver + proxy_uri: URI + ssl_ca_file: str + ssl_strict: bool + ssl_use_system_ca_file: bool + timeout: int + tls_database: Gio.TlsDatabase + tls_interaction: Gio.TlsInteraction + use_ntlm: bool + use_thread_context: bool + user_agent: str + props: Props = ... + parent: Session = ... + def __init__( + self, + accept_language: str = ..., + accept_language_auto: bool = ..., + async_context: None = ..., + http_aliases: Sequence[str] = ..., + https_aliases: Sequence[str] = ..., + idle_timeout: int = ..., + local_address: Address = ..., + max_conns: int = ..., + max_conns_per_host: int = ..., + proxy_resolver: Gio.ProxyResolver = ..., + proxy_uri: URI = ..., + ssl_ca_file: str = ..., + ssl_strict: bool = ..., + ssl_use_system_ca_file: bool = ..., + timeout: int = ..., + tls_database: Gio.TlsDatabase = ..., + tls_interaction: Gio.TlsInteraction = ..., + use_ntlm: bool = ..., + use_thread_context: bool = ..., + user_agent: str = ..., + ): ... + @classmethod + def new(cls) -> SessionAsync: ... + +class SessionAsyncClass(GObject.GPointer): + """ + :Constructors: + + :: + + SessionAsyncClass() + """ + + parent_class: SessionClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class SessionClass(GObject.GPointer): + """ + :Constructors: + + :: + + SessionClass() + """ + + parent_class: GObject.ObjectClass = ... + request_started: Callable[[Session, Message, Socket], None] = ... + authenticate: Callable[[Session, Message, Auth, bool], None] = ... + queue_message: Callable[..., None] = ... + requeue_message: Callable[[Session, Message], None] = ... + send_message: Callable[[Session, Message], int] = ... + cancel_message: Callable[[Session, Message, int], None] = ... + auth_required: Callable[[Session, Message, Auth, bool], None] = ... + flush_queue: Callable[[Session], None] = ... + kick: Callable[[Session], None] = ... + _libsoup_reserved4: None = ... class SessionFeature(GObject.GInterface): - def add_feature(*args, **kwargs): ... - def attach(*args, **kwargs): ... - def detach(*args, **kwargs): ... - def has_feature(*args, **kwargs): ... - def remove_feature(*args, **kwargs): ... - -class SessionFeatureInterface: - add_feature = ... - attach = ... - detach = ... - has_feature = ... - parent = ... - remove_feature = ... - request_queued = ... - request_started = ... - request_unqueued = ... - -class SessionSync: ... - -class Socket: - parent = ... - - def connect_async(*args, **kwargs): ... - def connect_sync(*args, **kwargs): ... - def get_fd(*args, **kwargs): ... - def get_local_address(*args, **kwargs): ... - def get_remote_address(*args, **kwargs): ... - def is_connected(*args, **kwargs): ... - def is_ssl(*args, **kwargs): ... - def listen(*args, **kwargs): ... - def read(*args, **kwargs): ... - def read_until(*args, **kwargs): ... - def start_proxy_ssl(*args, **kwargs): ... - def start_ssl(*args, **kwargs): ... - def write(*args, **kwargs): ... - def do_disconnected(self, *args, **kwargs): ... - def do_new_connection(self, *args, **kwargs): ... - def do_readable(self, *args, **kwargs): ... - def do_writable(self, *args, **kwargs): ... - -class URI: - fragment = ... - host = ... - password = ... - path = ... - port = ... - query = ... - scheme = ... - user = ... - - def copy_host(*args, **kwargs): ... - def decode(*args, **kwargs): ... - def encode(*args, **kwargs): ... - def equal(*args, **kwargs): ... - def free(*args, **kwargs): ... - def get_fragment(*args, **kwargs): ... - def get_host(*args, **kwargs): ... - def get_password(*args, **kwargs): ... - def get_path(*args, **kwargs): ... - def get_port(*args, **kwargs): ... - def get_query(*args, **kwargs): ... - def get_scheme(*args, **kwargs): ... - def get_user(*args, **kwargs): ... - def host_equal(*args, **kwargs): ... - def host_hash(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_with_base(*args, **kwargs): ... - def normalize(*args, **kwargs): ... - def set_fragment(*args, **kwargs): ... - def set_host(*args, **kwargs): ... - def set_password(*args, **kwargs): ... - def set_path(*args, **kwargs): ... - def set_port(*args, **kwargs): ... - def set_query(*args, **kwargs): ... - def set_query_from_form(*args, **kwargs): ... - def set_scheme(*args, **kwargs): ... - def set_user(*args, **kwargs): ... + """ + Interface SoupSessionFeature + + Signals from GObject: + notify (GParam) + """ + + def add_feature(self, type: Type) -> bool: ... + def attach(self, session: Session) -> None: ... + def detach(self, session: Session) -> None: ... + def has_feature(self, type: Type) -> bool: ... + def remove_feature(self, type: Type) -> bool: ... + +class SessionFeatureInterface(GObject.GPointer): + """ + :Constructors: + + :: + + SessionFeatureInterface() + """ + + parent: GObject.TypeInterface = ... + attach: Callable[[SessionFeature, Session], None] = ... + detach: Callable[[SessionFeature, Session], None] = ... + request_queued: Callable[[SessionFeature, Session, Message], None] = ... + request_started: Callable[[SessionFeature, Session, Message, Socket], None] = ... + request_unqueued: Callable[[SessionFeature, Session, Message], None] = ... + add_feature: Callable[[SessionFeature, Type], bool] = ... + remove_feature: Callable[[SessionFeature, Type], bool] = ... + has_feature: Callable[[SessionFeature, Type], bool] = ... + +class SessionSync(Session): + """ + :Constructors: + + :: + + SessionSync(**properties) + new() -> Soup.Session + + Object SoupSessionSync + + Signals from SoupSession: + authenticate (SoupMessage, SoupAuth, gboolean) + request-started (SoupMessage, SoupSocket) + request-queued (SoupMessage) + request-unqueued (SoupMessage) + connection-created (GObject) + tunneling (GObject) + + Properties from SoupSession: + proxy-uri -> SoupURI: Proxy URI + The HTTP Proxy to use for this session + proxy-resolver -> GProxyResolver: Proxy Resolver + The GProxyResolver to use for this session + max-conns -> gint: Max Connection Count + The maximum number of connections that the session can open at once + max-conns-per-host -> gint: Max Per-Host Connection Count + The maximum number of connections that the session can open at once to a given host + use-ntlm -> gboolean: Use NTLM + Whether or not to use NTLM authentication + ssl-ca-file -> gchararray: SSL CA file + File containing SSL CA certificates + ssl-use-system-ca-file -> gboolean: Use system CA file + Use the system certificate database + tls-database -> GTlsDatabase: TLS Database + TLS database to use + ssl-strict -> gboolean: Strictly validate SSL certificates + Whether certificate errors should be considered a connection error + async-context -> gpointer: Async GMainContext + The GMainContext to dispatch async I/O in + use-thread-context -> gboolean: Use thread-default GMainContext + Whether to use thread-default main contexts + timeout -> guint: Timeout value + Value in seconds to timeout a blocking I/O + user-agent -> gchararray: User-Agent string + User-Agent string + accept-language -> gchararray: Accept-Language string + Accept-Language string + accept-language-auto -> gboolean: Accept-Language automatic mode + Accept-Language automatic mode + idle-timeout -> guint: Idle Timeout + Connection lifetime when idle + add-feature -> SoupSessionFeature: Add Feature + Add a feature object to the session + add-feature-by-type -> GType: Add Feature By Type + Add a feature object of the given type to the session + remove-feature-by-type -> GType: Remove Feature By Type + Remove features of the given type from the session + http-aliases -> GStrv: http aliases + URI schemes that are considered aliases for 'http' + https-aliases -> GStrv: https aliases + URI schemes that are considered aliases for 'https' + local-address -> SoupAddress: Local address + Address of local end of socket + tls-interaction -> GTlsInteraction: TLS Interaction + TLS interaction to use + + Signals from GObject: + notify (GParam) + """ + + class Props: + accept_language: str + accept_language_auto: bool + async_context: Optional[None] + http_aliases: list[str] + https_aliases: list[str] + idle_timeout: int + local_address: Address + max_conns: int + max_conns_per_host: int + proxy_resolver: Gio.ProxyResolver + proxy_uri: URI + ssl_ca_file: str + ssl_strict: bool + ssl_use_system_ca_file: bool + timeout: int + tls_database: Gio.TlsDatabase + tls_interaction: Gio.TlsInteraction + use_ntlm: bool + use_thread_context: bool + user_agent: str + props: Props = ... + parent: Session = ... + def __init__( + self, + accept_language: str = ..., + accept_language_auto: bool = ..., + async_context: None = ..., + http_aliases: Sequence[str] = ..., + https_aliases: Sequence[str] = ..., + idle_timeout: int = ..., + local_address: Address = ..., + max_conns: int = ..., + max_conns_per_host: int = ..., + proxy_resolver: Gio.ProxyResolver = ..., + proxy_uri: URI = ..., + ssl_ca_file: str = ..., + ssl_strict: bool = ..., + ssl_use_system_ca_file: bool = ..., + timeout: int = ..., + tls_database: Gio.TlsDatabase = ..., + tls_interaction: Gio.TlsInteraction = ..., + use_ntlm: bool = ..., + use_thread_context: bool = ..., + user_agent: str = ..., + ): ... + @classmethod + def new(cls) -> SessionSync: ... + +class SessionSyncClass(GObject.GPointer): + """ + :Constructors: + + :: + + SessionSyncClass() + """ + + parent_class: SessionClass = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class Socket(GObject.Object, Gio.Initable): + """ + :Constructors: + + :: + + Socket(**properties) + + Object SoupSocket + + Signals from SoupSocket: + readable () + writable () + disconnected () + new-connection (SoupSocket) + event (GSocketClientEvent, GIOStream) + + Properties from SoupSocket: + fd -> gint: FD + The socket's file descriptor + gsocket -> GSocket: GSocket + The socket's underlying GSocket + iostream -> GIOStream: GIOStream + The socket's underlying GIOStream + local-address -> SoupAddress: Local address + Address of local end of socket + remote-address -> SoupAddress: Remote address + Address of remote end of socket + non-blocking -> gboolean: Non-blocking + Whether or not the socket uses non-blocking I/O + ipv6-only -> gboolean: IPv6 only + IPv6 only + is-server -> gboolean: Server + Whether or not the socket is a server socket + ssl-creds -> gpointer: SSL credentials + SSL credential information, passed from the session to the SSL implementation + ssl-strict -> gboolean: Strictly validate SSL certificates + Whether certificate errors should be considered a connection error + ssl-fallback -> gboolean: SSLv3 fallback + Use SSLv3 instead of TLS (client-side only) + async-context -> gpointer: Async GMainContext + The GMainContext to dispatch this socket's async I/O in + use-thread-context -> gboolean: Use thread context + Use g_main_context_get_thread_default + timeout -> guint: Timeout value + Value in seconds to timeout a blocking I/O + trusted-certificate -> gboolean: Trusted Certificate + Whether the server certificate is trusted, if this is an SSL socket + tls-certificate -> GTlsCertificate: TLS certificate + The peer's TLS certificate + tls-errors -> GTlsCertificateFlags: TLS errors + Errors with the peer's TLS certificate + socket-properties -> SoupSocketProperties: Socket properties + Socket properties + + Signals from GObject: + notify (GParam) + """ + + class Props: + async_context: None + fd: int + ipv6_only: bool + is_server: bool + local_address: Address + non_blocking: bool + remote_address: Address + ssl_creds: None + ssl_fallback: bool + ssl_strict: bool + timeout: int + tls_certificate: Gio.TlsCertificate + tls_errors: Gio.TlsCertificateFlags + trusted_certificate: bool + use_thread_context: bool + gsocket: Gio.Socket + iostream: Gio.IOStream + props: Props = ... + parent: GObject.Object = ... + def __init__( + self, + async_context: None = ..., + fd: int = ..., + gsocket: Gio.Socket = ..., + iostream: Gio.IOStream = ..., + ipv6_only: bool = ..., + local_address: Address = ..., + non_blocking: bool = ..., + remote_address: Address = ..., + ssl_creds: None = ..., + ssl_fallback: bool = ..., + ssl_strict: bool = ..., + timeout: int = ..., + use_thread_context: bool = ..., + ): ... + def connect_async( + self, + cancellable: Optional[Gio.Cancellable], + callback: Callable[..., None], + *user_data: Any, + ) -> None: ... + def connect_sync(self, cancellable: Optional[Gio.Cancellable] = None) -> int: ... + def disconnect(self) -> None: ... + def do_disconnected(self) -> None: ... + def do_new_connection(self, new_sock: Socket) -> None: ... + def do_readable(self) -> None: ... + def do_writable(self) -> None: ... + def get_fd(self) -> int: ... + def get_local_address(self) -> Address: ... + def get_remote_address(self) -> Address: ... + def is_connected(self) -> bool: ... + def is_ssl(self) -> bool: ... + def listen(self) -> bool: ... + def read( + self, buffer: Sequence[int], cancellable: Optional[Gio.Cancellable] = None + ) -> Tuple[SocketIOStatus, int]: ... + def read_until( + self, + buffer: Sequence[int], + boundary: None, + boundary_len: int, + cancellable: Optional[Gio.Cancellable] = None, + ) -> Tuple[SocketIOStatus, int, bool]: ... + def start_proxy_ssl( + self, ssl_host: str, cancellable: Optional[Gio.Cancellable] = None + ) -> bool: ... + def start_ssl(self, cancellable: Optional[Gio.Cancellable] = None) -> bool: ... + def write( + self, buffer: Sequence[int], cancellable: Optional[Gio.Cancellable] = None + ) -> Tuple[SocketIOStatus, int]: ... + +class SocketClass(GObject.GPointer): + """ + :Constructors: + + :: + + SocketClass() + """ + + parent_class: GObject.ObjectClass = ... + readable: Callable[[Socket], None] = ... + writable: Callable[[Socket], None] = ... + disconnected: Callable[[Socket], None] = ... + new_connection: Callable[[Socket, Socket], None] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class URI(GObject.GBoxed): + """ + :Constructors: + + :: + + URI() + new(uri_string:str=None) -> Soup.URI or None + new_with_base(base:Soup.URI, uri_string:str) -> Soup.URI + """ + + scheme: str = ... + user: str = ... + password: str = ... + host: str = ... + port: int = ... + path: str = ... + query: str = ... + fragment: str = ... + def copy(self) -> URI: ... + def copy_host(self) -> URI: ... + @staticmethod + def decode(part: str) -> str: ... + @staticmethod + def encode(part: str, escape_extra: Optional[str] = None) -> str: ... + def equal(self, uri2: URI) -> bool: ... + def free(self) -> None: ... + def get_fragment(self) -> str: ... + def get_host(self) -> str: ... + def get_password(self) -> str: ... + def get_path(self) -> str: ... + def get_port(self) -> int: ... + def get_query(self) -> str: ... + def get_scheme(self) -> str: ... + def get_user(self) -> str: ... + def host_equal(self, v2: URI) -> bool: ... + def host_hash(self) -> int: ... + @classmethod + def new(cls, uri_string: Optional[str] = None) -> Optional[URI]: ... + @classmethod + def new_with_base(cls, base: URI, uri_string: str) -> URI: ... + @staticmethod + def normalize(part: str, unescape_extra: Optional[str] = None) -> str: ... + def set_fragment(self, fragment: Optional[str] = None) -> None: ... + def set_host(self, host: Optional[str] = None) -> None: ... + def set_password(self, password: Optional[str] = None) -> None: ... + def set_path(self, path: str) -> None: ... + def set_port(self, port: int) -> None: ... + def set_query(self, query: Optional[str] = None) -> None: ... + def set_query_from_form(self, form: dict[str, str]) -> None: ... + def set_scheme(self, scheme: str) -> None: ... + def set_user(self, user: Optional[str] = None) -> None: ... def to_string(self, just_path_and_query: bool) -> str: ... - def uses_default_port(*args, **kwargs): ... + def uses_default_port(self) -> bool: ... class WebsocketConnection(GObject.Object): - parent = ... - pv = ... - - def close(self, code: WebsocketCloseCode, data: Optional[bytes]) -> None: ... - def get_close_code(*args, **kwargs): ... - def get_close_data(*args, **kwargs): ... - def get_connection_type(*args, **kwargs): ... - def get_extensions(*args, **kwargs): ... - def get_io_stream(*args, **kwargs): ... - def get_keepalive_interval(*args, **kwargs): ... - def get_max_incoming_payload_size(*args, **kwargs): ... - def get_origin(*args, **kwargs): ... - def get_protocol(*args, **kwargs): ... - def get_state(*args, **kwargs): ... - def get_uri(*args, **kwargs): ... - def new(*args, **kwargs): ... - def new_with_extensions(*args, **kwargs): ... - def send_binary(self, data: Optional[bytes]) -> None: ... - def send_message(*args, **kwargs): ... - def send_text(*args, **kwargs): ... + """ + :Constructors: + + :: + + WebsocketConnection(**properties) + new(stream:Gio.IOStream, uri:Soup.URI, type:Soup.WebsocketConnectionType, origin:str=None, protocol:str=None) -> Soup.WebsocketConnection + new_with_extensions(stream:Gio.IOStream, uri:Soup.URI, type:Soup.WebsocketConnectionType, origin:str=None, protocol:str=None, extensions:list) -> Soup.WebsocketConnection + + Object SoupWebsocketConnection + + Signals from SoupWebsocketConnection: + message (gint, GBytes) + error (GError) + closing () + closed () + pong (GBytes) + + Properties from SoupWebsocketConnection: + io-stream -> GIOStream: I/O Stream + Underlying I/O stream + connection-type -> SoupWebsocketConnectionType: Connection type + Connection type (client/server) + uri -> SoupURI: URI + The WebSocket URI + origin -> gchararray: Origin + The WebSocket origin + protocol -> gchararray: Protocol + The chosen WebSocket protocol + state -> SoupWebsocketState: State + State + max-incoming-payload-size -> guint64: Max incoming payload size + Max incoming payload size + keepalive-interval -> guint: Keepalive interval + Keepalive interval + extensions -> gpointer: Active extensions + The list of active extensions + + Signals from GObject: + notify (GParam) + """ + + class Props: + connection_type: WebsocketConnectionType + extensions: None + io_stream: Gio.IOStream + keepalive_interval: int + max_incoming_payload_size: int + origin: Optional[str] + protocol: Optional[str] + state: WebsocketState + uri: URI + props: Props = ... + parent: GObject.Object = ... + pv: WebsocketConnectionPrivate = ... + def __init__( + self, + connection_type: WebsocketConnectionType = ..., + extensions: None = ..., + io_stream: Gio.IOStream = ..., + keepalive_interval: int = ..., + max_incoming_payload_size: int = ..., + origin: str = ..., + protocol: str = ..., + uri: URI = ..., + ): ... + def close(self, code: int, data: Optional[str] = None) -> None: ... + def do_closed(self) -> None: ... + def do_closing(self) -> None: ... + def do_error(self, error: GLib.Error) -> None: ... + def do_message(self, type: WebsocketDataType, message: GLib.Bytes) -> None: ... + def do_pong(self, message: GLib.Bytes) -> None: ... + def get_close_code(self) -> int: ... + def get_close_data(self) -> str: ... + def get_connection_type(self) -> WebsocketConnectionType: ... + def get_extensions(self) -> list[WebsocketExtension]: ... + def get_io_stream(self) -> Gio.IOStream: ... + def get_keepalive_interval(self) -> int: ... + def get_max_incoming_payload_size(self) -> int: ... + def get_origin(self) -> Optional[str]: ... + def get_protocol(self) -> Optional[str]: ... + def get_state(self) -> WebsocketState: ... + def get_uri(self) -> URI: ... + @classmethod + def new( + cls, + stream: Gio.IOStream, + uri: URI, + type: WebsocketConnectionType, + origin: Optional[str] = None, + protocol: Optional[str] = None, + ) -> WebsocketConnection: ... + @classmethod + def new_with_extensions( + cls, + stream: Gio.IOStream, + uri: URI, + type: WebsocketConnectionType, + origin: Optional[str], + protocol: Optional[str], + extensions: list[WebsocketExtension], + ) -> WebsocketConnection: ... + def send_binary(self, data: Optional[Sequence[int]] = None) -> None: ... + def send_message(self, type: WebsocketDataType, message: GLib.Bytes) -> None: ... + def send_text(self, text: str) -> None: ... def set_keepalive_interval(self, interval: int) -> None: ... - def set_max_incoming_payload_size(*args, **kwargs): ... - def do_closed(self, *args, **kwargs): ... - def do_closing(self, *args, **kwargs): ... - def do_error(self, *args, **kwargs): ... - def do_message(self, *args, **kwargs): ... - def do_pong(self, *args, **kwargs): ... - -class WebsocketExtension: - parent = ... - - def configure(*args, **kwargs): ... - def get_request_params(*args, **kwargs): ... - def get_response_params(*args, **kwargs): ... - def process_incoming_message(*args, **kwargs): ... - def process_outgoing_message(*args, **kwargs): ... - def do_configure(self, *args, **kwargs): ... - def do_get_request_params(self, *args, **kwargs): ... - def do_get_response_params(self, *args, **kwargs): ... - def do_process_incoming_message(self, *args, **kwargs): ... - def do_process_outgoing_message(self, *args, **kwargs): ... - -class WebsocketExtensionDeflate: ... - -class WebsocketExtensionManager: - parent = ... - -class XMLRPCParams: - def free(*args, **kwargs): ... - def parse(*args, **kwargs): ... + def set_max_incoming_payload_size(self, max_incoming_payload_size: int) -> None: ... + +class WebsocketConnectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketConnectionClass() + """ + + parent: GObject.ObjectClass = ... + message: Callable[[WebsocketConnection, WebsocketDataType, GLib.Bytes], None] = ... + error: Callable[[WebsocketConnection, GLib.Error], None] = ... + closing: Callable[[WebsocketConnection], None] = ... + closed: Callable[[WebsocketConnection], None] = ... + pong: Callable[[WebsocketConnection, GLib.Bytes], None] = ... + +class WebsocketConnectionPrivate(GObject.GPointer): ... + +class WebsocketExtension(GObject.Object): + """ + :Constructors: + + :: + + WebsocketExtension(**properties) + + Object SoupWebsocketExtension + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + def configure( + self, + connection_type: WebsocketConnectionType, + params: Optional[dict[None, None]] = None, + ) -> bool: ... + def do_configure( + self, + connection_type: WebsocketConnectionType, + params: Optional[dict[None, None]] = None, + ) -> bool: ... + def do_get_request_params(self) -> Optional[str]: ... + def do_get_response_params(self) -> Optional[str]: ... + def do_process_incoming_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + def do_process_outgoing_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + def get_request_params(self) -> Optional[str]: ... + def get_response_params(self) -> Optional[str]: ... + def process_incoming_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + def process_outgoing_message( + self, payload: GLib.Bytes + ) -> Tuple[GLib.Bytes, int]: ... + +class WebsocketExtensionClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketExtensionClass() + """ + + parent_class: GObject.ObjectClass = ... + name: str = ... + configure: Callable[ + [WebsocketExtension, WebsocketConnectionType, Optional[dict[None, None]]], bool + ] = ... + get_request_params: Callable[[WebsocketExtension], Optional[str]] = ... + get_response_params: Callable[[WebsocketExtension], Optional[str]] = ... + process_outgoing_message: Callable[ + [WebsocketExtension, GLib.Bytes], Tuple[GLib.Bytes, int] + ] = ... + process_incoming_message: Callable[ + [WebsocketExtension, GLib.Bytes], Tuple[GLib.Bytes, int] + ] = ... + _libsoup_reserved1: None = ... + _libsoup_reserved2: None = ... + _libsoup_reserved3: None = ... + _libsoup_reserved4: None = ... + +class WebsocketExtensionDeflate(WebsocketExtension): + """ + :Constructors: + + :: + + WebsocketExtensionDeflate(**properties) + + Object SoupWebsocketExtensionDeflate + + Signals from GObject: + notify (GParam) + """ + + parent: WebsocketExtension = ... + +class WebsocketExtensionDeflateClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketExtensionDeflateClass() + """ + + parent_class: WebsocketExtensionClass = ... + +class WebsocketExtensionManager(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + WebsocketExtensionManager(**properties) + + Object SoupWebsocketExtensionManager + + Signals from GObject: + notify (GParam) + """ + + parent: GObject.Object = ... + +class WebsocketExtensionManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketExtensionManagerClass() + """ + + parent_class: GObject.ObjectClass = ... + +class XMLRPCParams(GObject.GPointer): + def free(self) -> None: ... + def parse(self, signature: Optional[str] = None) -> GLib.Variant: ... class Cacheability(GObject.GFlags): - CACHEABLE = ... - UNCACHEABLE = ... - INVALIDATES = ... - VALIDATES = ... + CACHEABLE = 1 + INVALIDATES = 4 + UNCACHEABLE = 2 + VALIDATES = 8 class Expectation(GObject.GFlags): - UNRECOGNIZED = ... - CONTINUE = ... + CONTINUE = 2 + UNRECOGNIZED = 1 class MessageFlags(GObject.GFlags): - NO_REDIRECT = ... - CAN_REBUILD = ... - OVERWRITE_CHUNKS = ... - CONTENT_DECODED = ... - CERTIFICATE_TRUSTED = ... - NEW_CONNECTION = ... - IDEMPOTENT = ... - IGNORE_CONNECTION_LIMITS = ... - DO_NOT_USE_AUTH_CACHE = ... + CAN_REBUILD = 4 + CERTIFICATE_TRUSTED = 32 + CONTENT_DECODED = 16 + DO_NOT_USE_AUTH_CACHE = 512 + IDEMPOTENT = 128 + IGNORE_CONNECTION_LIMITS = 256 + NEW_CONNECTION = 64 + NO_REDIRECT = 2 + OVERWRITE_CHUNKS = 8 class ServerListenOptions(GObject.GFlags): - HTTPS = ... - IPV4_ONLY = ... - IPV6_ONLY = ... + HTTPS = 1 + IPV4_ONLY = 2 + IPV6_ONLY = 4 class AddressFamily(GObject.GEnum): - INVALID = ... - IPV4 = ... - IPV6 = ... + INVALID = -1 + IPV4 = 2 + IPV6 = 10 class CacheResponse(GObject.GEnum): - FRESH = ... - NEEDS_VALIDATION = ... - STALE = ... + FRESH = 0 + NEEDS_VALIDATION = 1 + STALE = 2 class CacheType(GObject.GEnum): - SINGLE_USER = ... - SHARED = ... + SHARED = 1 + SINGLE_USER = 0 class ConnectionState(GObject.GEnum): - NEW = ... - CONNECTING = ... - IDLE = ... - IN_USE = ... - REMOTE_DISCONNECTED = ... - DISCONNECTED = ... + CONNECTING = 1 + DISCONNECTED = 5 + IDLE = 2 + IN_USE = 3 + NEW = 0 + REMOTE_DISCONNECTED = 4 class CookieJarAcceptPolicy(GObject.GEnum): - ALWAYS = ... - NEVER = ... - NO_THIRD_PARTY = ... - GRANDFATHERED_THIRD_PARTY = ... + ALWAYS = 0 + GRANDFATHERED_THIRD_PARTY = 3 + NEVER = 1 + NO_THIRD_PARTY = 2 class DateFormat(GObject.GEnum): - HTTP = ... - COOKIE = ... - RFC2822 = ... - ISO8601_COMPACT = ... - ISO8601_FULL = ... - ISO8601 = ... - ISO8601_XMLRPC = ... + COOKIE = 2 + HTTP = 1 + ISO8601 = 5 + ISO8601_COMPACT = 4 + ISO8601_FULL = 5 + ISO8601_XMLRPC = 6 + RFC2822 = 3 class Encoding(GObject.GEnum): - UNRECOGNIZED = ... - NONE = ... - CONTENT_LENGTH = ... - EOF = ... - CHUNKED = ... - BYTERANGES = ... + BYTERANGES = 5 + CHUNKED = 4 + CONTENT_LENGTH = 2 + EOF = 3 + NONE = 1 + UNRECOGNIZED = 0 class HTTPVersion(GObject.GEnum): - HTTP_1_0 = ... - HTTP_1_1 = ... + HTTP_1_0 = 0 + HTTP_1_1 = 1 class KnownStatusCode(GObject.GEnum): - NONE = ... - CANCELLED = ... - CANT_RESOLVE = ... - CANT_RESOLVE_PROXY = ... - CANT_CONNECT = ... - CANT_CONNECT_PROXY = ... - SSL_FAILED = ... - IO_ERROR = ... - MALFORMED = ... - TRY_AGAIN = ... - TOO_MANY_REDIRECTS = ... - TLS_FAILED = ... - CONTINUE = ... - SWITCHING_PROTOCOLS = ... - PROCESSING = ... - OK = ... - CREATED = ... - ACCEPTED = ... - NON_AUTHORITATIVE = ... - NO_CONTENT = ... - RESET_CONTENT = ... - PARTIAL_CONTENT = ... - MULTI_STATUS = ... - MULTIPLE_CHOICES = ... - MOVED_PERMANENTLY = ... - FOUND = ... - MOVED_TEMPORARILY = ... - SEE_OTHER = ... - NOT_MODIFIED = ... - USE_PROXY = ... - NOT_APPEARING_IN_THIS_PROTOCOL = ... - TEMPORARY_REDIRECT = ... - BAD_REQUEST = ... - UNAUTHORIZED = ... - PAYMENT_REQUIRED = ... - FORBIDDEN = ... - NOT_FOUND = ... - METHOD_NOT_ALLOWED = ... - NOT_ACCEPTABLE = ... - PROXY_AUTHENTICATION_REQUIRED = ... - PROXY_UNAUTHORIZED = ... - REQUEST_TIMEOUT = ... - CONFLICT = ... - GONE = ... - LENGTH_REQUIRED = ... - PRECONDITION_FAILED = ... - REQUEST_ENTITY_TOO_LARGE = ... - REQUEST_URI_TOO_LONG = ... - UNSUPPORTED_MEDIA_TYPE = ... - REQUESTED_RANGE_NOT_SATISFIABLE = ... - INVALID_RANGE = ... - EXPECTATION_FAILED = ... - UNPROCESSABLE_ENTITY = ... - LOCKED = ... - FAILED_DEPENDENCY = ... - INTERNAL_SERVER_ERROR = ... - NOT_IMPLEMENTED = ... - BAD_GATEWAY = ... - SERVICE_UNAVAILABLE = ... - GATEWAY_TIMEOUT = ... - HTTP_VERSION_NOT_SUPPORTED = ... - INSUFFICIENT_STORAGE = ... - NOT_EXTENDED = ... + ACCEPTED = 202 + BAD_GATEWAY = 502 + BAD_REQUEST = 400 + CANCELLED = 1 + CANT_CONNECT = 4 + CANT_CONNECT_PROXY = 5 + CANT_RESOLVE = 2 + CANT_RESOLVE_PROXY = 3 + CONFLICT = 409 + CONTINUE = 100 + CREATED = 201 + EXPECTATION_FAILED = 417 + FAILED_DEPENDENCY = 424 + FORBIDDEN = 403 + FOUND = 302 + GATEWAY_TIMEOUT = 504 + GONE = 410 + HTTP_VERSION_NOT_SUPPORTED = 505 + INSUFFICIENT_STORAGE = 507 + INTERNAL_SERVER_ERROR = 500 + INVALID_RANGE = 416 + IO_ERROR = 7 + LENGTH_REQUIRED = 411 + LOCKED = 423 + MALFORMED = 8 + METHOD_NOT_ALLOWED = 405 + MOVED_PERMANENTLY = 301 + MOVED_TEMPORARILY = 302 + MULTIPLE_CHOICES = 300 + MULTI_STATUS = 207 + NONE = 0 + NON_AUTHORITATIVE = 203 + NOT_ACCEPTABLE = 406 + NOT_APPEARING_IN_THIS_PROTOCOL = 306 + NOT_EXTENDED = 510 + NOT_FOUND = 404 + NOT_IMPLEMENTED = 501 + NOT_MODIFIED = 304 + NO_CONTENT = 204 + OK = 200 + PARTIAL_CONTENT = 206 + PAYMENT_REQUIRED = 402 + PRECONDITION_FAILED = 412 + PROCESSING = 102 + PROXY_AUTHENTICATION_REQUIRED = 407 + PROXY_UNAUTHORIZED = 407 + REQUESTED_RANGE_NOT_SATISFIABLE = 416 + REQUEST_ENTITY_TOO_LARGE = 413 + REQUEST_TIMEOUT = 408 + REQUEST_URI_TOO_LONG = 414 + RESET_CONTENT = 205 + SEE_OTHER = 303 + SERVICE_UNAVAILABLE = 503 + SSL_FAILED = 6 + SWITCHING_PROTOCOLS = 101 + TEMPORARY_REDIRECT = 307 + TLS_FAILED = 11 + TOO_MANY_REDIRECTS = 10 + TRY_AGAIN = 9 + UNAUTHORIZED = 401 + UNPROCESSABLE_ENTITY = 422 + UNSUPPORTED_MEDIA_TYPE = 415 + USE_PROXY = 305 class LoggerLogLevel(GObject.GEnum): - NONE = ... - MINIMAL = ... - HEADERS = ... - BODY = ... + BODY = 3 + HEADERS = 2 + MINIMAL = 1 + NONE = 0 class MemoryUse(GObject.GEnum): - STATIC = ... - TAKE = ... - COPY = ... - TEMPORARY = ... + COPY = 2 + STATIC = 0 + TAKE = 1 + TEMPORARY = 3 class MessageHeadersType(GObject.GEnum): - REQUEST = ... - RESPONSE = ... - MULTIPART = ... + MULTIPART = 2 + REQUEST = 0 + RESPONSE = 1 class MessagePriority(GObject.GEnum): - VERY_LOW = ... - LOW = ... - NORMAL = ... - HIGH = ... - VERY_HIGH = ... + HIGH = 3 + LOW = 1 + NORMAL = 2 + VERY_HIGH = 4 + VERY_LOW = 0 class RequestError(GObject.GEnum): - BAD_URI = ... - UNSUPPORTED_URI_SCHEME = ... - PARSING = ... - ENCODING = ... - quark = ... + BAD_URI = 0 + ENCODING = 3 + PARSING = 2 + UNSUPPORTED_URI_SCHEME = 1 + @staticmethod + def quark() -> int: ... class RequesterError(GObject.GEnum): - BAD_URI = ... - UNSUPPORTED_URI_SCHEME = ... - quark = ... + BAD_URI = 0 + UNSUPPORTED_URI_SCHEME = 1 + @staticmethod + def quark() -> int: ... class SameSitePolicy(GObject.GEnum): - NONE = ... - LAX = ... - STRICT = ... + LAX = 1 + NONE = 0 + STRICT = 2 class SocketIOStatus(GObject.GEnum): - OK = ... - WOULD_BLOCK = ... - EOF = ... - ERROR = ... + EOF = 2 + ERROR = 3 + OK = 0 + WOULD_BLOCK = 1 class Status(GObject.GEnum): - NONE = ... - CANCELLED = ... - CANT_RESOLVE = ... - CANT_RESOLVE_PROXY = ... - CANT_CONNECT = ... - CANT_CONNECT_PROXY = ... - SSL_FAILED = ... - IO_ERROR = ... - MALFORMED = ... - TRY_AGAIN = ... - TOO_MANY_REDIRECTS = ... - TLS_FAILED = ... - CONTINUE = ... - SWITCHING_PROTOCOLS = ... - PROCESSING = ... - OK = ... - CREATED = ... - ACCEPTED = ... - NON_AUTHORITATIVE = ... - NO_CONTENT = ... - RESET_CONTENT = ... - PARTIAL_CONTENT = ... - MULTI_STATUS = ... - MULTIPLE_CHOICES = ... - MOVED_PERMANENTLY = ... - FOUND = ... - MOVED_TEMPORARILY = ... - SEE_OTHER = ... - NOT_MODIFIED = ... - USE_PROXY = ... - NOT_APPEARING_IN_THIS_PROTOCOL = ... - TEMPORARY_REDIRECT = ... - PERMANENT_REDIRECT = ... - BAD_REQUEST = ... - UNAUTHORIZED = ... - PAYMENT_REQUIRED = ... - FORBIDDEN = ... - NOT_FOUND = ... - METHOD_NOT_ALLOWED = ... - NOT_ACCEPTABLE = ... - PROXY_AUTHENTICATION_REQUIRED = ... - PROXY_UNAUTHORIZED = ... - REQUEST_TIMEOUT = ... - CONFLICT = ... - GONE = ... - LENGTH_REQUIRED = ... - PRECONDITION_FAILED = ... - REQUEST_ENTITY_TOO_LARGE = ... - REQUEST_URI_TOO_LONG = ... - UNSUPPORTED_MEDIA_TYPE = ... - REQUESTED_RANGE_NOT_SATISFIABLE = ... - INVALID_RANGE = ... - EXPECTATION_FAILED = ... - UNPROCESSABLE_ENTITY = ... - LOCKED = ... - FAILED_DEPENDENCY = ... - INTERNAL_SERVER_ERROR = ... - NOT_IMPLEMENTED = ... - BAD_GATEWAY = ... - SERVICE_UNAVAILABLE = ... - GATEWAY_TIMEOUT = ... - HTTP_VERSION_NOT_SUPPORTED = ... - INSUFFICIENT_STORAGE = ... - NOT_EXTENDED = ... - @classmethod - def get_phrase(cls, status_code: int) -> str: ... - @classmethod - def proxify(cls, status_code: int) -> int: ... + ACCEPTED = 202 + BAD_GATEWAY = 502 + BAD_REQUEST = 400 + CANCELLED = 1 + CANT_CONNECT = 4 + CANT_CONNECT_PROXY = 5 + CANT_RESOLVE = 2 + CANT_RESOLVE_PROXY = 3 + CONFLICT = 409 + CONTINUE = 100 + CREATED = 201 + EXPECTATION_FAILED = 417 + FAILED_DEPENDENCY = 424 + FORBIDDEN = 403 + FOUND = 302 + GATEWAY_TIMEOUT = 504 + GONE = 410 + HTTP_VERSION_NOT_SUPPORTED = 505 + INSUFFICIENT_STORAGE = 507 + INTERNAL_SERVER_ERROR = 500 + INVALID_RANGE = 416 + IO_ERROR = 7 + LENGTH_REQUIRED = 411 + LOCKED = 423 + MALFORMED = 8 + METHOD_NOT_ALLOWED = 405 + MOVED_PERMANENTLY = 301 + MOVED_TEMPORARILY = 302 + MULTIPLE_CHOICES = 300 + MULTI_STATUS = 207 + NONE = 0 + NON_AUTHORITATIVE = 203 + NOT_ACCEPTABLE = 406 + NOT_APPEARING_IN_THIS_PROTOCOL = 306 + NOT_EXTENDED = 510 + NOT_FOUND = 404 + NOT_IMPLEMENTED = 501 + NOT_MODIFIED = 304 + NO_CONTENT = 204 + OK = 200 + PARTIAL_CONTENT = 206 + PAYMENT_REQUIRED = 402 + PERMANENT_REDIRECT = 308 + PRECONDITION_FAILED = 412 + PROCESSING = 102 + PROXY_AUTHENTICATION_REQUIRED = 407 + PROXY_UNAUTHORIZED = 407 + REQUESTED_RANGE_NOT_SATISFIABLE = 416 + REQUEST_ENTITY_TOO_LARGE = 413 + REQUEST_TIMEOUT = 408 + REQUEST_URI_TOO_LONG = 414 + RESET_CONTENT = 205 + SEE_OTHER = 303 + SERVICE_UNAVAILABLE = 503 + SSL_FAILED = 6 + SWITCHING_PROTOCOLS = 101 + TEMPORARY_REDIRECT = 307 + TLS_FAILED = 11 + TOO_MANY_REDIRECTS = 10 + TRY_AGAIN = 9 + UNAUTHORIZED = 401 + UNPROCESSABLE_ENTITY = 422 + UNSUPPORTED_MEDIA_TYPE = 415 + USE_PROXY = 305 + @staticmethod + def get_phrase(status_code: int) -> str: ... + @staticmethod + def proxify(status_code: int) -> int: ... class TLDError(GObject.GEnum): - INVALID_HOSTNAME = ... - IS_IP_ADDRESS = ... - NOT_ENOUGH_DOMAINS = ... - NO_BASE_DOMAIN = ... - NO_PSL_DATA = ... - quark = ... + INVALID_HOSTNAME = 0 + IS_IP_ADDRESS = 1 + NOT_ENOUGH_DOMAINS = 2 + NO_BASE_DOMAIN = 3 + NO_PSL_DATA = 4 + @staticmethod + def quark() -> int: ... class WebsocketCloseCode(GObject.GEnum): - NORMAL = ... - GOING_AWAY = ... - PROTOCOL_ERROR = ... - UNSUPPORTED_DATA = ... - NO_STATUS = ... - ABNORMAL = ... - BAD_DATA = ... - POLICY_VIOLATION = ... - TOO_BIG = ... - NO_EXTENSION = ... - SERVER_ERROR = ... - TLS_HANDSHAKE = ... + ABNORMAL = 1006 + BAD_DATA = 1007 + GOING_AWAY = 1001 + NORMAL = 1000 + NO_EXTENSION = 1010 + NO_STATUS = 1005 + POLICY_VIOLATION = 1008 + PROTOCOL_ERROR = 1002 + SERVER_ERROR = 1011 + TLS_HANDSHAKE = 1015 + TOO_BIG = 1009 + UNSUPPORTED_DATA = 1003 class WebsocketConnectionType(GObject.GEnum): - UNKNOWN = ... - CLIENT = ... - SERVER = ... + CLIENT = 1 + SERVER = 2 + UNKNOWN = 0 class WebsocketDataType(GObject.GEnum): - TEXT = ... - BINARY = ... + BINARY = 2 + TEXT = 1 class WebsocketError(GObject.GEnum): - FAILED = ... - NOT_WEBSOCKET = ... - BAD_HANDSHAKE = ... - BAD_ORIGIN = ... - get_quark = ... + BAD_HANDSHAKE = 2 + BAD_ORIGIN = 3 + FAILED = 0 + NOT_WEBSOCKET = 1 + @staticmethod + def get_quark() -> int: ... class WebsocketState(GObject.GEnum): - OPEN = ... - CLOSING = ... - CLOSED = ... + CLOSED = 3 + CLOSING = 2 + OPEN = 1 class XMLRPCError(GObject.GEnum): - ARGUMENTS = ... - RETVAL = ... - quark = ... + ARGUMENTS = 0 + RETVAL = 1 + @staticmethod + def quark() -> int: ... class XMLRPCFault(GObject.GEnum): - PARSE_ERROR_NOT_WELL_FORMED = ... - PARSE_ERROR_UNSUPPORTED_ENCODING = ... - PARSE_ERROR_INVALID_CHARACTER_FOR_ENCODING = ... - SERVER_ERROR_INVALID_XML_RPC = ... - SERVER_ERROR_REQUESTED_METHOD_NOT_FOUND = ... - SERVER_ERROR_INVALID_METHOD_PARAMETERS = ... - SERVER_ERROR_INTERNAL_XML_RPC_ERROR = ... - APPLICATION_ERROR = ... - SYSTEM_ERROR = ... - TRANSPORT_ERROR = ... - quark = ... + APPLICATION_ERROR = -32500 + PARSE_ERROR_INVALID_CHARACTER_FOR_ENCODING = -32702 + PARSE_ERROR_NOT_WELL_FORMED = -32700 + PARSE_ERROR_UNSUPPORTED_ENCODING = -32701 + SERVER_ERROR_INTERNAL_XML_RPC_ERROR = -32603 + SERVER_ERROR_INVALID_METHOD_PARAMETERS = -32602 + SERVER_ERROR_INVALID_XML_RPC = -32600 + SERVER_ERROR_REQUESTED_METHOD_NOT_FOUND = -32601 + SYSTEM_ERROR = -32400 + TRANSPORT_ERROR = -32300 + @staticmethod + def quark() -> int: ... diff --git a/src/gi-stubs/repository/_Soup3.pyi b/src/gi-stubs/repository/_Soup3.pyi index b7760b7e..ac80162e 100644 --- a/src/gi-stubs/repository/_Soup3.pyi +++ b/src/gi-stubs/repository/_Soup3.pyi @@ -1,9 +1,11 @@ from typing import Any from typing import Callable +from typing import Literal from typing import Optional from typing import Sequence from typing import Tuple from typing import Type +from typing import TypeVar from gi.repository import Gio from gi.repository import GLib @@ -18,9 +20,10 @@ FORM_MIME_TYPE_URLENCODED: str = "application/x-www-form-urlencoded" HSTS_POLICY_MAX_AGE_PAST: int = 0 HTTP_URI_FLAGS: int = 482 MAJOR_VERSION: int = 3 -MICRO_VERSION: int = 0 -MINOR_VERSION: int = 2 +MICRO_VERSION: int = 4 +MINOR_VERSION: int = 4 VERSION_MIN_REQUIRED: int = 2 +_lock = ... # FIXME Constant _namespace: str = "Soup" _version: str = "3.0" @@ -47,7 +50,7 @@ def get_minor_version() -> int: ... def header_contains(header: str, token: str) -> bool: ... def header_free_param_list(param_list: dict[str, str]) -> None: ... def header_g_string_append_param( - string: GLib.String, name: str, value: str + string: GLib.String, name: str, value: Optional[str] = None ) -> None: ... def header_g_string_append_param_quoted( string: GLib.String, name: str, value: str @@ -102,6 +105,34 @@ def websocket_server_process_handshake( ) -> Tuple[bool, list[WebsocketExtension]]: ... class Auth(GObject.Object): + """ + :Constructors: + + :: + + Auth(**properties) + new(type:GType, msg:Soup.Message, auth_header:str) -> Soup.Auth or None + + Object SoupAuth + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + authority -> gchararray: Authority + Authentication authority + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + is-cancelled -> gboolean: Cancelled + Whether or not the auth is cancelled + + Signals from GObject: + notify (GParam) + """ + class Props: authority: str is_authenticated: bool @@ -109,12 +140,11 @@ class Auth(GObject.Object): is_for_proxy: bool realm: str scheme_name: str - props: Props = ... + parent_instance: GObject.Object = ... def __init__( self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... ): ... - parent_instance: GObject.Object = ... def authenticate(self, username: str, password: str) -> None: ... def can_authenticate(self) -> bool: ... def cancel(self) -> None: ... @@ -124,7 +154,7 @@ class Auth(GObject.Object): def do_get_protection_space(self, source_uri: GLib.Uri) -> list[str]: ... def do_is_authenticated(self) -> bool: ... def do_is_ready(self, msg: Message) -> bool: ... - def do_update(self, msg: Message, auth_header: dict[str, str]) -> bool: ... + def do_update(self, msg: Message, auth_header: dict[None, None]) -> bool: ... def get_authority(self) -> str: ... def get_authorization(self, msg: Message) -> str: ... def get_info(self) -> str: ... @@ -140,6 +170,33 @@ class Auth(GObject.Object): def update(self, msg: Message, auth_header: str) -> bool: ... class AuthBasic(Auth): + """ + :Constructors: + + :: + + AuthBasic(**properties) + + Object SoupAuthBasic + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + authority -> gchararray: Authority + Authentication authority + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + is-cancelled -> gboolean: Cancelled + Whether or not the auth is cancelled + + Signals from GObject: + notify (GParam) + """ + class Props: authority: str is_authenticated: bool @@ -147,17 +204,24 @@ class AuthBasic(Auth): is_for_proxy: bool realm: str scheme_name: str - props: Props = ... def __init__( self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... ): ... class AuthClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthClass() + """ + parent_class: GObject.ObjectClass = ... scheme_name: str = ... strength: int = ... - update: Callable[[Auth, Message, dict[str, str]], bool] = ... + update: Callable[[Auth, Message, dict[None, None]], bool] = ... get_protection_space: Callable[[Auth, GLib.Uri], list[str]] = ... authenticate: Callable[[Auth, str, str], None] = ... is_authenticated: Callable[[Auth], bool] = ... @@ -167,6 +231,33 @@ class AuthClass(GObject.GPointer): padding: list[None] = ... class AuthDigest(Auth): + """ + :Constructors: + + :: + + AuthDigest(**properties) + + Object SoupAuthDigest + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + authority -> gchararray: Authority + Authentication authority + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + is-cancelled -> gboolean: Cancelled + Whether or not the auth is cancelled + + Signals from GObject: + notify (GParam) + """ + class Props: authority: str is_authenticated: bool @@ -174,32 +265,57 @@ class AuthDigest(Auth): is_for_proxy: bool realm: str scheme_name: str - props: Props = ... def __init__( self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... ): ... class AuthDomain(GObject.Object): + """ + :Constructors: + + :: + + AuthDomain(**properties) + + Object SoupAuthDomain + + Properties from SoupAuthDomain: + realm -> gchararray: Realm + The realm of this auth domain + proxy -> gboolean: Proxy + Whether or not this is a proxy auth domain + filter -> gpointer: Filter + A filter for deciding whether or not to require authentication + filter-data -> gpointer: Filter data + Data to pass to filter + generic-auth-callback -> gpointer: Generic authentication callback + An authentication callback that can be used with any SoupAuthDomain subclass + generic-auth-data -> gpointer: Authentication callback data + Data to pass to auth callback + + Signals from GObject: + notify (GParam) + """ + class Props: - filter: Callable[..., bool] + filter: AuthDomainFilter filter_data: None - generic_auth_callback: Callable[..., bool] + generic_auth_callback: AuthDomainGenericAuthCallback generic_auth_data: None proxy: bool realm: str - props: Props = ... + parent_instance: GObject.Object = ... def __init__( self, - filter: Callable[..., bool] = ..., + filter: AuthDomainFilter = ..., filter_data: None = ..., - generic_auth_callback: Callable[..., bool] = ..., + generic_auth_callback: AuthDomainGenericAuthCallback = ..., generic_auth_data: None = ..., proxy: bool = ..., realm: str = ..., ): ... - parent_instance: GObject.Object = ... def accepts(self, msg: ServerMessage) -> Optional[str]: ... def add_path(self, path: str) -> None: ... def challenge(self, msg: ServerMessage) -> None: ... @@ -220,24 +336,56 @@ class AuthDomain(GObject.Object): ) -> None: ... class AuthDomainBasic(AuthDomain): + """ + :Constructors: + + :: + + AuthDomainBasic(**properties) + + Object SoupAuthDomainBasic + + Properties from SoupAuthDomainBasic: + auth-callback -> gpointer: Authentication callback + Password-checking callback + auth-data -> gpointer: Authentication callback data + Data to pass to authentication callback + + Properties from SoupAuthDomain: + realm -> gchararray: Realm + The realm of this auth domain + proxy -> gboolean: Proxy + Whether or not this is a proxy auth domain + filter -> gpointer: Filter + A filter for deciding whether or not to require authentication + filter-data -> gpointer: Filter data + Data to pass to filter + generic-auth-callback -> gpointer: Generic authentication callback + An authentication callback that can be used with any SoupAuthDomain subclass + generic-auth-data -> gpointer: Authentication callback data + Data to pass to auth callback + + Signals from GObject: + notify (GParam) + """ + class Props: - auth_callback: Callable[..., bool] + auth_callback: AuthDomainBasicAuthCallback auth_data: None - filter: Callable[..., bool] + filter: AuthDomainFilter filter_data: None - generic_auth_callback: Callable[..., bool] + generic_auth_callback: AuthDomainGenericAuthCallback generic_auth_data: None proxy: bool realm: str - props: Props = ... def __init__( self, - auth_callback: Callable[..., bool] = ..., + auth_callback: AuthDomainBasicAuthCallback = ..., auth_data: None = ..., - filter: Callable[..., bool] = ..., + filter: AuthDomainFilter = ..., filter_data: None = ..., - generic_auth_callback: Callable[..., bool] = ..., + generic_auth_callback: AuthDomainGenericAuthCallback = ..., generic_auth_data: None = ..., proxy: bool = ..., realm: str = ..., @@ -247,9 +395,25 @@ class AuthDomainBasic(AuthDomain): ) -> None: ... class AuthDomainBasicClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthDomainBasicClass() + """ + parent_class: AuthDomainClass = ... class AuthDomainClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthDomainClass() + """ + parent_class: GObject.ObjectClass = ... accepts: Callable[[AuthDomain, ServerMessage, str], str] = ... challenge: Callable[[AuthDomain, ServerMessage], str] = ... @@ -257,24 +421,56 @@ class AuthDomainClass(GObject.GPointer): padding: list[None] = ... class AuthDomainDigest(AuthDomain): + """ + :Constructors: + + :: + + AuthDomainDigest(**properties) + + Object SoupAuthDomainDigest + + Properties from SoupAuthDomainDigest: + auth-callback -> gpointer: Authentication callback + Password-finding callback + auth-data -> gpointer: Authentication callback data + Data to pass to authentication callback + + Properties from SoupAuthDomain: + realm -> gchararray: Realm + The realm of this auth domain + proxy -> gboolean: Proxy + Whether or not this is a proxy auth domain + filter -> gpointer: Filter + A filter for deciding whether or not to require authentication + filter-data -> gpointer: Filter data + Data to pass to filter + generic-auth-callback -> gpointer: Generic authentication callback + An authentication callback that can be used with any SoupAuthDomain subclass + generic-auth-data -> gpointer: Authentication callback data + Data to pass to auth callback + + Signals from GObject: + notify (GParam) + """ + class Props: - auth_callback: Callable[..., Optional[str]] + auth_callback: AuthDomainDigestAuthCallback auth_data: None - filter: Callable[..., bool] + filter: AuthDomainFilter filter_data: None - generic_auth_callback: Callable[..., bool] + generic_auth_callback: AuthDomainGenericAuthCallback generic_auth_data: None proxy: bool realm: str - props: Props = ... def __init__( self, - auth_callback: Callable[..., Optional[str]] = ..., + auth_callback: AuthDomainDigestAuthCallback = ..., auth_data: None = ..., - filter: Callable[..., bool] = ..., + filter: AuthDomainFilter = ..., filter_data: None = ..., - generic_auth_callback: Callable[..., bool] = ..., + generic_auth_callback: AuthDomainGenericAuthCallback = ..., generic_auth_data: None = ..., proxy: bool = ..., realm: str = ..., @@ -286,16 +482,72 @@ class AuthDomainDigest(AuthDomain): ) -> None: ... class AuthDomainDigestClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthDomainDigestClass() + """ + parent_class: AuthDomainClass = ... class AuthManager(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + AuthManager(**properties) + + Object SoupAuthManager + + Signals from GObject: + notify (GParam) + """ + def clear_cached_credentials(self) -> None: ... def use_auth(self, uri: GLib.Uri, auth: Auth) -> None: ... class AuthManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + AuthManagerClass() + """ + parent_class: GObject.ObjectClass = ... class AuthNTLM(Auth): + """ + :Constructors: + + :: + + AuthNTLM(**properties) + + Object SoupAuthNTLM + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + authority -> gchararray: Authority + Authentication authority + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + is-cancelled -> gboolean: Cancelled + Whether or not the auth is cancelled + + Signals from GObject: + notify (GParam) + """ + class Props: authority: str is_authenticated: bool @@ -303,13 +555,39 @@ class AuthNTLM(Auth): is_for_proxy: bool realm: str scheme_name: str - props: Props = ... def __init__( self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... ): ... class AuthNegotiate(Auth): + """ + :Constructors: + + :: + + AuthNegotiate(**properties) + + Object SoupAuthNegotiate + + Properties from SoupAuth: + scheme-name -> gchararray: Scheme name + Authentication scheme name + realm -> gchararray: Realm + Authentication realm + authority -> gchararray: Authority + Authentication authority + is-for-proxy -> gboolean: For Proxy + Whether or not the auth is for a proxy server + is-authenticated -> gboolean: Authenticated + Whether or not the auth is authenticated + is-cancelled -> gboolean: Cancelled + Whether or not the auth is cancelled + + Signals from GObject: + notify (GParam) + """ + class Props: authority: str is_authenticated: bool @@ -317,7 +595,6 @@ class AuthNegotiate(Auth): is_for_proxy: bool realm: str scheme_name: str - props: Props = ... def __init__( self, authority: str = ..., is_for_proxy: bool = ..., realm: str = ... @@ -326,13 +603,32 @@ class AuthNegotiate(Auth): def supported() -> bool: ... class Cache(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + Cache(**properties) + new(cache_dir:str=None, cache_type:Soup.CacheType) -> Soup.Cache + + Object SoupCache + + Properties from SoupCache: + cache-dir -> gchararray: Cache directory + The directory to store the cache files + cache-type -> SoupCacheType: Cache type + Whether the cache is private or shared + + Signals from GObject: + notify (GParam) + """ + class Props: cache_dir: str cache_type: CacheType - props: Props = ... - def __init__(self, cache_dir: str = ..., cache_type: CacheType = ...): ... parent_instance: GObject.Object = ... + def __init__(self, cache_dir: str = ..., cache_type: CacheType = ...): ... def clear(self) -> None: ... def do_get_cacheability(self, msg: Message) -> Cacheability: ... def dump(self) -> None: ... @@ -344,6 +640,14 @@ class Cache(GObject.Object, SessionFeature): def set_max_size(self, max_size: int) -> None: ... class CacheClass(GObject.GPointer): + """ + :Constructors: + + :: + + CacheClass() + """ + parent_class: GObject.ObjectClass = ... get_cacheability: Callable[[Cache, Message], Cacheability] = ... padding: list[None] = ... @@ -351,17 +655,55 @@ class CacheClass(GObject.GPointer): class ContentDecoder(GObject.Object, SessionFeature): ... class ContentDecoderClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContentDecoderClass() + """ + parent_class: GObject.ObjectClass = ... class ContentSniffer(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + ContentSniffer(**properties) + new() -> Soup.ContentSniffer + + Object SoupContentSniffer + + Signals from GObject: + notify (GParam) + """ + @classmethod def new(cls) -> ContentSniffer: ... def sniff(self, msg: Message, buffer: GLib.Bytes) -> Tuple[str, dict[str, str]]: ... class ContentSnifferClass(GObject.GPointer): + """ + :Constructors: + + :: + + ContentSnifferClass() + """ + parent_class: GObject.ObjectClass = ... class Cookie(GObject.GBoxed): + """ + :Constructors: + + :: + + new(name:str, value:str, domain:str, path:str, max_age:int) -> Soup.Cookie + """ + def applies_to_uri(self, uri: GLib.Uri) -> bool: ... def copy(self) -> Cookie: ... def domain_matches(self, host: str) -> bool: ... @@ -394,15 +736,37 @@ class Cookie(GObject.GBoxed): def to_set_cookie_header(self) -> str: ... class CookieJar(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + CookieJar(**properties) + new() -> Soup.CookieJar + + Object SoupCookieJar + + Signals from SoupCookieJar: + changed (SoupCookie, SoupCookie) + + Properties from SoupCookieJar: + read-only -> gboolean: Read-only + Whether or not the cookie jar is read-only + accept-policy -> SoupCookieJarAcceptPolicy: Accept-policy + The policy the jar should follow to accept or reject cookies + + Signals from GObject: + notify (GParam) + """ + class Props: accept_policy: CookieJarAcceptPolicy read_only: bool - props: Props = ... + parent_instance: GObject.Object = ... def __init__( self, accept_policy: CookieJarAcceptPolicy = ..., read_only: bool = ... ): ... - parent_instance: GObject.Object = ... def add_cookie(self, cookie: Cookie) -> None: ... def add_cookie_full( self, @@ -440,6 +804,14 @@ class CookieJar(GObject.Object, SessionFeature): ) -> None: ... class CookieJarClass(GObject.GPointer): + """ + :Constructors: + + :: + + CookieJarClass() + """ + parent_class: GObject.ObjectClass = ... save: Callable[[CookieJar], None] = ... is_persistent: Callable[[CookieJar], bool] = ... @@ -447,11 +819,37 @@ class CookieJarClass(GObject.GPointer): padding: list[None] = ... class CookieJarDB(CookieJar, SessionFeature): + """ + :Constructors: + + :: + + CookieJarDB(**properties) + new(filename:str, read_only:bool) -> Soup.CookieJar + + Object SoupCookieJarDB + + Properties from SoupCookieJarDB: + filename -> gchararray: Filename + Cookie-storage filename + + Signals from SoupCookieJar: + changed (SoupCookie, SoupCookie) + + Properties from SoupCookieJar: + read-only -> gboolean: Read-only + Whether or not the cookie jar is read-only + accept-policy -> SoupCookieJarAcceptPolicy: Accept-policy + The policy the jar should follow to accept or reject cookies + + Signals from GObject: + notify (GParam) + """ + class Props: filename: str accept_policy: CookieJarAcceptPolicy read_only: bool - props: Props = ... def __init__( self, @@ -463,14 +861,48 @@ class CookieJarDB(CookieJar, SessionFeature): def new(cls, filename: str, read_only: bool) -> CookieJarDB: ... class CookieJarDBClass(GObject.GPointer): + """ + :Constructors: + + :: + + CookieJarDBClass() + """ + parent_class: CookieJarClass = ... class CookieJarText(CookieJar, SessionFeature): + """ + :Constructors: + + :: + + CookieJarText(**properties) + new(filename:str, read_only:bool) -> Soup.CookieJar + + Object SoupCookieJarText + + Properties from SoupCookieJarText: + filename -> gchararray: Filename + Cookie-storage filename + + Signals from SoupCookieJar: + changed (SoupCookie, SoupCookie) + + Properties from SoupCookieJar: + read-only -> gboolean: Read-only + Whether or not the cookie jar is read-only + accept-policy -> SoupCookieJarAcceptPolicy: Accept-policy + The policy the jar should follow to accept or reject cookies + + Signals from GObject: + notify (GParam) + """ + class Props: filename: str accept_policy: CookieJarAcceptPolicy read_only: bool - props: Props = ... def __init__( self, @@ -482,9 +914,34 @@ class CookieJarText(CookieJar, SessionFeature): def new(cls, filename: str, read_only: bool) -> CookieJarText: ... class CookieJarTextClass(GObject.GPointer): + """ + :Constructors: + + :: + + CookieJarTextClass() + """ + parent_class: CookieJarClass = ... class HSTSEnforcer(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + HSTSEnforcer(**properties) + new() -> Soup.HSTSEnforcer + + Object SoupHSTSEnforcer + + Signals from SoupHSTSEnforcer: + changed (SoupHSTSPolicy, SoupHSTSPolicy) + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def do_changed(self, old_policy: HSTSPolicy, new_policy: HSTSPolicy) -> None: ... def do_has_valid_policy(self, domain: str) -> bool: ... @@ -499,6 +956,14 @@ class HSTSEnforcer(GObject.Object, SessionFeature): def set_session_policy(self, domain: str, include_subdomains: bool) -> None: ... class HSTSEnforcerClass(GObject.GPointer): + """ + :Constructors: + + :: + + HSTSEnforcerClass() + """ + parent_class: GObject.ObjectClass = ... is_persistent: Callable[[HSTSEnforcer], bool] = ... has_valid_policy: Callable[[HSTSEnforcer, str], bool] = ... @@ -506,18 +971,57 @@ class HSTSEnforcerClass(GObject.GPointer): padding: list[None] = ... class HSTSEnforcerDB(HSTSEnforcer, SessionFeature): + """ + :Constructors: + + :: + + HSTSEnforcerDB(**properties) + new(filename:str) -> Soup.HSTSEnforcer + + Object SoupHSTSEnforcerDB + + Properties from SoupHSTSEnforcerDB: + filename -> gchararray: Filename + HSTS policy storage filename + + Signals from SoupHSTSEnforcer: + changed (SoupHSTSPolicy, SoupHSTSPolicy) + + Signals from GObject: + notify (GParam) + """ + class Props: filename: str - props: Props = ... def __init__(self, filename: str = ...): ... @classmethod def new(cls, filename: str) -> HSTSEnforcerDB: ... class HSTSEnforcerDBClass(GObject.GPointer): + """ + :Constructors: + + :: + + HSTSEnforcerDBClass() + """ + parent_class: HSTSEnforcerClass = ... class HSTSPolicy(GObject.GBoxed): + """ + :Constructors: + + :: + + new(domain:str, max_age:int, include_subdomains:bool) -> Soup.HSTSPolicy + new_from_response(msg:Soup.Message) -> Soup.HSTSPolicy or None + new_full(domain:str, max_age:int, expires:GLib.DateTime, include_subdomains:bool) -> Soup.HSTSPolicy + new_session_policy(domain:str, include_subdomains:bool) -> Soup.HSTSPolicy + """ + def copy(self) -> HSTSPolicy: ... def equal(self, policy2: HSTSPolicy) -> bool: ... def free(self) -> None: ... @@ -541,10 +1045,29 @@ class HSTSPolicy(GObject.GBoxed): ) -> HSTSPolicy: ... class Logger(GObject.Object, SessionFeature): + """ + :Constructors: + + :: + + Logger(**properties) + new(level:Soup.LoggerLogLevel) -> Soup.Logger + + Object SoupLogger + + Properties from SoupLogger: + level -> SoupLoggerLogLevel: Level + The level of logging output + max-body-size -> gint: Max Body Size + The maximum body size to output + + Signals from GObject: + notify (GParam) + """ + class Props: level: LoggerLogLevel max_body_size: int - props: Props = ... def __init__(self, level: LoggerLogLevel = ..., max_body_size: int = ...): ... def get_max_body_size(self) -> int: ... @@ -560,9 +1083,92 @@ class Logger(GObject.Object, SessionFeature): ) -> None: ... class LoggerClass(GObject.GPointer): + """ + :Constructors: + + :: + + LoggerClass() + """ + parent_class: GObject.ObjectClass = ... class Message(GObject.Object): + """ + :Constructors: + + :: + + Message(**properties) + new(method:str, uri_string:str) -> Soup.Message or None + new_from_encoded_form(method:str, uri_string:str, encoded_form:str) -> Soup.Message or None + new_from_multipart(uri_string:str, multipart:Soup.Multipart) -> Soup.Message or None + new_from_uri(method:str, uri:GLib.Uri) -> Soup.Message + new_options_ping(base_uri:GLib.Uri) -> Soup.Message + + Object SoupMessage + + Signals from SoupMessage: + wrote-headers () + wrote-body-data (guint) + wrote-body () + got-informational () + got-headers () + got-body-data (guint) + got-body () + content-sniffed (gchararray, GHashTable) + starting () + restarted () + finished () + authenticate (SoupAuth, gboolean) -> gboolean + network-event (GSocketClientEvent, GIOStream) + accept-certificate (GTlsCertificate, GTlsCertificateFlags) -> gboolean + request-certificate (GTlsClientConnection) -> gboolean + request-certificate-password (GTlsPassword) -> gboolean + hsts-enforced () + + Properties from SoupMessage: + method -> gchararray: Method + The message's HTTP method + uri -> GUri: URI + The message's Request-URI + http-version -> SoupHTTPVersion: HTTP Version + The HTTP protocol version to use + flags -> SoupMessageFlags: Flags + Various message options + status-code -> guint: Status code + The HTTP response status code + reason-phrase -> gchararray: Reason phrase + The HTTP response reason phrase + first-party -> GUri: First party + The URI loaded in the application when the message was requested. + request-headers -> SoupMessageHeaders: Request Headers + The HTTP request headers + response-headers -> SoupMessageHeaders: Response Headers + The HTTP response headers + tls-peer-certificate -> GTlsCertificate: TLS Peer Certificate + The TLS peer certificate associated with the message + tls-peer-certificate-errors -> GTlsCertificateFlags: TLS Peer Certificate Errors + The verification errors on the message's TLS peer certificate + tls-protocol-version -> GTlsProtocolVersion: TLS Protocol Version + TLS protocol version negotiated for this connection + tls-ciphersuite-name -> gchararray: TLS Ciphersuite Name + Name of TLS ciphersuite negotiated for this connection + remote-address -> GSocketAddress: Remote Address + The remote address of the connection associated with the message + priority -> SoupMessagePriority: Priority + The priority of the message + site-for-cookies -> GUri: Site for cookies + The URI for the site to compare cookies against + is-top-level-navigation -> gboolean: Is top-level navigation + If the current messsage is navigating between top-levels + is-options-ping -> gboolean: Is Options Ping + The message is an OPTIONS ping + + Signals from GObject: + notify (GParam) + """ + class Props: first_party: GLib.Uri flags: MessageFlags @@ -571,18 +1177,17 @@ class Message(GObject.Object): is_top_level_navigation: bool method: str priority: MessagePriority - reason_phrase: str - remote_address: Gio.SocketAddress + reason_phrase: Optional[str] + remote_address: Optional[Gio.SocketAddress] request_headers: MessageHeaders response_headers: MessageHeaders site_for_cookies: GLib.Uri status_code: int tls_ciphersuite_name: str - tls_peer_certificate: Gio.TlsCertificate + tls_peer_certificate: Optional[Gio.TlsCertificate] tls_peer_certificate_errors: Gio.TlsCertificateFlags tls_protocol_version: Gio.TlsProtocolVersion uri: GLib.Uri - props: Props = ... def __init__( self, @@ -592,7 +1197,7 @@ class Message(GObject.Object): is_top_level_navigation: bool = ..., method: str = ..., priority: MessagePriority = ..., - site_for_cookies: GLib.Uri = ..., + site_for_cookies: Optional[GLib.Uri] = ..., uri: GLib.Uri = ..., ): ... def add_flags(self, flags: MessageFlags) -> None: ... @@ -600,6 +1205,7 @@ class Message(GObject.Object): def get_connection_id(self) -> int: ... def get_first_party(self) -> GLib.Uri: ... def get_flags(self) -> MessageFlags: ... + def get_force_http1(self) -> bool: ... def get_http_version(self) -> HTTPVersion: ... def get_is_options_ping(self) -> bool: ... def get_is_top_level_navigation(self) -> bool: ... @@ -637,6 +1243,7 @@ class Message(GObject.Object): def remove_flags(self, flags: MessageFlags) -> None: ... def set_first_party(self, first_party: GLib.Uri) -> None: ... def set_flags(self, flags: MessageFlags) -> None: ... + def set_force_http1(self, value: bool) -> None: ... def set_is_options_ping(self, is_options_ping: bool) -> None: ... def set_is_top_level_navigation(self, is_top_level_navigation: bool) -> None: ... def set_method(self, method: str) -> None: ... @@ -660,6 +1267,15 @@ class Message(GObject.Object): def tls_client_certificate_password_request_complete(self) -> None: ... class MessageBody(GObject.GBoxed): + """ + :Constructors: + + :: + + MessageBody() + new() -> Soup.MessageBody + """ + data: bytes = ... length: int = ... def append(self, data: Sequence[int]) -> None: ... @@ -678,9 +1294,25 @@ class MessageBody(GObject.GBoxed): def wrote_chunk(self, chunk: GLib.Bytes) -> None: ... class MessageClass(GObject.GPointer): + """ + :Constructors: + + :: + + MessageClass() + """ + parent_class: GObject.ObjectClass = ... class MessageHeaders(GObject.GBoxed): + """ + :Constructors: + + :: + + new(type:Soup.MessageHeadersType) -> Soup.MessageHeaders + """ + def append(self, name: str, value: str) -> None: ... def clean_connection_headers(self) -> None: ... def clear(self) -> None: ... @@ -718,6 +1350,14 @@ class MessageHeaders(GObject.GBoxed): def unref(self) -> None: ... class MessageHeadersIter(GObject.GPointer): + """ + :Constructors: + + :: + + MessageHeadersIter() + """ + dummy: list[None] = ... @staticmethod def init(hdrs: MessageHeaders) -> MessageHeadersIter: ... @@ -743,8 +1383,21 @@ class MessageMetrics(GObject.GBoxed): def get_tls_start(self) -> int: ... class Multipart(GObject.GBoxed): + """ + :Constructors: + + :: + + new(mime_type:str) -> Soup.Multipart + new_from_message(headers:Soup.MessageHeaders, body:GLib.Bytes) -> Soup.Multipart or None + """ + def append_form_file( - self, control_name: str, filename: str, content_type: str, body: GLib.Bytes + self, + control_name: str, + filename: Optional[str], + content_type: Optional[str], + body: GLib.Bytes, ) -> None: ... def append_form_string(self, control_name: str, data: str) -> None: ... def append_part(self, headers: MessageHeaders, body: GLib.Bytes) -> None: ... @@ -760,11 +1413,34 @@ class Multipart(GObject.GBoxed): def to_message(self, dest_headers: MessageHeaders) -> GLib.Bytes: ... class MultipartInputStream(Gio.FilterInputStream, Gio.PollableInputStream): + """ + :Constructors: + + :: + + MultipartInputStream(**properties) + new(msg:Soup.Message, base_stream:Gio.InputStream) -> Soup.MultipartInputStream + + Object SoupMultipartInputStream + + Properties from SoupMultipartInputStream: + message -> SoupMessage: Message + The SoupMessage + + Properties from GFilterInputStream: + base-stream -> GInputStream: The Filter Base Stream + The underlying base stream on which the io ops will be done. + close-base-stream -> gboolean: Close Base Stream + If the base stream should be closed when the filter stream is closed. + + Signals from GObject: + notify (GParam) + """ + class Props: message: Message base_stream: Gio.InputStream close_base_stream: bool - props: Props = ... def __init__( self, @@ -792,21 +1468,68 @@ class MultipartInputStream(Gio.FilterInputStream, Gio.PollableInputStream): ) -> Optional[Gio.InputStream]: ... class MultipartInputStreamClass(GObject.GPointer): + """ + :Constructors: + + :: + + MultipartInputStreamClass() + """ + parent_class: Gio.FilterInputStreamClass = ... class Range(GObject.GPointer): + """ + :Constructors: + + :: + + Range() + """ + start: int = ... end: int = ... class Server(GObject.Object): + """ + :Constructors: + + :: + + Server(**properties) + + Object SoupServer + + Signals from SoupServer: + request-started (SoupServerMessage) + request-read (SoupServerMessage) + request-finished (SoupServerMessage) + request-aborted (SoupServerMessage) + + Properties from SoupServer: + tls-certificate -> GTlsCertificate: TLS certificate + GTlsCertificate to use for https + tls-database -> GTlsDatabase: TLS database + GTlsDatabase to use for validating SSL/TLS client certificates + tls-auth-mode -> GTlsAuthenticationMode: TLS Authentication Mode + GTlsAuthenticationMode to use for SSL/TLS client authentication + raw-paths -> gboolean: Raw paths + If %TRUE, percent-encoding in the Request-URI path will not be automatically decoded. + server-header -> gchararray: Server header + Server header + + Signals from GObject: + notify (GParam) + """ + class Props: raw_paths: bool server_header: str tls_auth_mode: Gio.TlsAuthenticationMode - tls_certificate: Gio.TlsCertificate - tls_database: Gio.TlsDatabase - + tls_certificate: Optional[Gio.TlsCertificate] + tls_database: Optional[Gio.TlsDatabase] props: Props = ... + parent_instance: GObject.Object = ... def __init__( self, raw_paths: bool = ..., @@ -815,7 +1538,6 @@ class Server(GObject.Object): tls_certificate: Gio.TlsCertificate = ..., tls_database: Gio.TlsDatabase = ..., ): ... - parent_instance: GObject.Object = ... def accept_iostream( self, stream: Gio.IOStream, @@ -867,6 +1589,14 @@ class Server(GObject.Object): def unpause_message(self, msg: ServerMessage) -> None: ... class ServerClass(GObject.GPointer): + """ + :Constructors: + + :: + + ServerClass() + """ + parent_class: GObject.ObjectClass = ... request_started: Callable[[Server, ServerMessage], None] = ... request_read: Callable[[Server, ServerMessage], None] = ... @@ -875,10 +1605,42 @@ class ServerClass(GObject.GPointer): padding: list[None] = ... class ServerMessage(GObject.Object): + """ + :Constructors: + + :: + + ServerMessage(**properties) + + Object SoupServerMessage + + Signals from SoupServerMessage: + wrote-headers () + wrote-body-data (guint) + wrote-body () + got-headers () + got-body () + finished () + accept-certificate (GTlsCertificate, GTlsCertificateFlags) -> gboolean + wrote-informational () + wrote-chunk () + got-chunk (GBytes) + connected () + disconnected () + + Properties from SoupServerMessage: + tls-peer-certificate -> GTlsCertificate: TLS Peer Certificate + The TLS peer certificate associated with the message + tls-peer-certificate-errors -> GTlsCertificateFlags: TLS Peer Certificate Errors + The verification errors on the message's TLS peer certificate + + Signals from GObject: + notify (GParam) + """ + class Props: - tls_peer_certificate: Gio.TlsCertificate + tls_peer_certificate: Optional[Gio.TlsCertificate] tls_peer_certificate_errors: Gio.TlsCertificateFlags - props: Props = ... def get_http_version(self) -> HTTPVersion: ... def get_local_address(self) -> Optional[Gio.SocketAddress]: ... @@ -912,24 +1674,76 @@ class ServerMessage(GObject.Object): def unpause(self) -> None: ... class ServerMessageClass(GObject.GPointer): + """ + :Constructors: + + :: + + ServerMessageClass() + """ + parent_class: GObject.ObjectClass = ... class Session(GObject.Object): + """ + :Constructors: + + :: + + Session(**properties) + new() -> Soup.Session + + Object SoupSession + + Signals from SoupSession: + request-queued (SoupMessage) + request-unqueued (SoupMessage) + + Properties from SoupSession: + proxy-resolver -> GProxyResolver: Proxy Resolver + The GProxyResolver to use for this session + max-conns -> gint: Max Connection Count + The maximum number of connections that the session can open at once + max-conns-per-host -> gint: Max Per-Host Connection Count + The maximum number of connections that the session can open at once to a given host + tls-database -> GTlsDatabase: TLS Database + TLS database to use + timeout -> guint: Timeout value + Value in seconds to timeout a blocking I/O + user-agent -> gchararray: User-Agent string + User-Agent string + accept-language -> gchararray: Accept-Language string + Accept-Language string + accept-language-auto -> gboolean: Accept-Language automatic mode + Accept-Language automatic mode + remote-connectable -> GSocketConnectable: Remote Connectable + Socket to connect to make outgoing connections on + idle-timeout -> guint: Idle Timeout + Connection lifetime when idle + local-address -> GInetSocketAddress: Local address + Address of local end of socket + tls-interaction -> GTlsInteraction: TLS Interaction + TLS interaction to use + + Signals from GObject: + notify (GParam) + """ + class Props: - accept_language: str + accept_language: Optional[str] accept_language_auto: bool idle_timeout: int - local_address: Gio.InetSocketAddress + local_address: Optional[Gio.InetSocketAddress] max_conns: int max_conns_per_host: int - proxy_resolver: Gio.ProxyResolver - remote_connectable: Gio.SocketConnectable + proxy_resolver: Optional[Gio.ProxyResolver] + remote_connectable: Optional[Gio.SocketConnectable] timeout: int - tls_database: Gio.TlsDatabase - tls_interaction: Gio.TlsInteraction - user_agent: str - + tls_database: Optional[Gio.TlsDatabase] + tls_interaction: Optional[Gio.TlsInteraction] + user_agent: Optional[str] props: Props = ... + parent_instance: GObject.Object = ... def __init__( self, accept_language: str = ..., @@ -938,14 +1752,13 @@ class Session(GObject.Object): local_address: Gio.InetSocketAddress = ..., max_conns: int = ..., max_conns_per_host: int = ..., - proxy_resolver: Gio.ProxyResolver = ..., + proxy_resolver: Optional[Gio.ProxyResolver] = ..., remote_connectable: Gio.SocketConnectable = ..., timeout: int = ..., - tls_database: Gio.TlsDatabase = ..., - tls_interaction: Gio.TlsInteraction = ..., + tls_database: Optional[Gio.TlsDatabase] = ..., + tls_interaction: Optional[Gio.TlsInteraction] = ..., user_agent: str = ..., ): ... - parent_instance: GObject.Object = ... def abort(self) -> None: ... def add_feature(self, feature: SessionFeature) -> None: ... def add_feature_by_type(self, feature_type: Type) -> None: ... @@ -999,6 +1812,24 @@ class Session(GObject.Object): *user_data: Any, ) -> None: ... def send_and_read_finish(self, result: Gio.AsyncResult) -> GLib.Bytes: ... + def send_and_splice( + self, + msg: Message, + out_stream: Gio.OutputStream, + flags: Gio.OutputStreamSpliceFlags, + cancellable: Optional[Gio.Cancellable] = None, + ) -> int: ... + def send_and_splice_async( + self, + msg: Message, + out_stream: Gio.OutputStream, + flags: Gio.OutputStreamSpliceFlags, + io_priority: int, + cancellable: Optional[Gio.Cancellable] = None, + callback: Optional[Callable[..., None]] = None, + *user_data: Any, + ) -> None: ... + def send_and_splice_finish(self, result: Gio.AsyncResult) -> int: ... def send_async( self, msg: Message, @@ -1037,6 +1868,14 @@ class Session(GObject.Object): ) -> WebsocketConnection: ... class SessionClass(GObject.GPointer): + """ + :Constructors: + + :: + + SessionClass() + """ + parent_class: GObject.ObjectClass = ... request_queued: Callable[[Session, Message], None] = ... request_unqueued: Callable[[Session, Message], None] = ... @@ -1049,21 +1888,61 @@ class SessionClass(GObject.GPointer): _soup_reserved7: None = ... _soup_reserved8: None = ... -class SessionFeature(GObject.Object): ... +class SessionFeature(GObject.GInterface): ... class SessionFeatureInterface(GObject.GPointer): ... class WebsocketConnection(GObject.Object): + """ + :Constructors: + + :: + + WebsocketConnection(**properties) + new(stream:Gio.IOStream, uri:GLib.Uri, type:Soup.WebsocketConnectionType, origin:str=None, protocol:str=None, extensions:list) -> Soup.WebsocketConnection + + Object SoupWebsocketConnection + + Signals from SoupWebsocketConnection: + message (gint, GBytes) + error (GError) + closing () + closed () + pong (GBytes) + + Properties from SoupWebsocketConnection: + io-stream -> GIOStream: I/O Stream + Underlying I/O stream + connection-type -> SoupWebsocketConnectionType: Connection type + Connection type (client/server) + uri -> GUri: URI + The WebSocket URI + origin -> gchararray: Origin + The WebSocket origin + protocol -> gchararray: Protocol + The chosen WebSocket protocol + state -> SoupWebsocketState: State + State + max-incoming-payload-size -> guint64: Max incoming payload size + Max incoming payload size + keepalive-interval -> guint: Keepalive interval + Keepalive interval + extensions -> gpointer: Active extensions + The list of active extensions + + Signals from GObject: + notify (GParam) + """ + class Props: connection_type: WebsocketConnectionType extensions: None io_stream: Gio.IOStream keepalive_interval: int max_incoming_payload_size: int - origin: str - protocol: str + origin: Optional[str] + protocol: Optional[str] state: WebsocketState uri: GLib.Uri - props: Props = ... def __init__( self, @@ -1105,19 +1984,40 @@ class WebsocketConnection(GObject.Object): def set_max_incoming_payload_size(self, max_incoming_payload_size: int) -> None: ... class WebsocketConnectionClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketConnectionClass() + """ + parent_class: GObject.ObjectClass = ... class WebsocketExtension(GObject.Object): + """ + :Constructors: + + :: + + WebsocketExtension(**properties) + + Object SoupWebsocketExtension + + Signals from GObject: + notify (GParam) + """ + parent_instance: GObject.Object = ... def configure( self, connection_type: WebsocketConnectionType, - params: Optional[dict[str, str]] = None, + params: Optional[dict[None, None]] = None, ) -> bool: ... def do_configure( self, connection_type: WebsocketConnectionType, - params: Optional[dict[str, str]] = None, + params: Optional[dict[None, None]] = None, ) -> bool: ... def do_get_request_params(self) -> Optional[str]: ... def do_get_response_params(self) -> Optional[str]: ... @@ -1137,10 +2037,18 @@ class WebsocketExtension(GObject.Object): ) -> Tuple[GLib.Bytes, int]: ... class WebsocketExtensionClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketExtensionClass() + """ + parent_class: GObject.ObjectClass = ... name: str = ... configure: Callable[ - [WebsocketExtension, WebsocketConnectionType, Optional[dict[str, str]]], bool + [WebsocketExtension, WebsocketConnectionType, Optional[dict[None, None]]], bool ] = ... get_request_params: Callable[[WebsocketExtension], Optional[str]] = ... get_response_params: Callable[[WebsocketExtension], Optional[str]] = ... @@ -1155,11 +2063,27 @@ class WebsocketExtensionClass(GObject.GPointer): class WebsocketExtensionDeflate(WebsocketExtension): ... class WebsocketExtensionDeflateClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketExtensionDeflateClass() + """ + parent_class: WebsocketExtensionClass = ... class WebsocketExtensionManager(GObject.Object, SessionFeature): ... class WebsocketExtensionManagerClass(GObject.GPointer): + """ + :Constructors: + + :: + + WebsocketExtensionManagerClass() + """ + parent_class: GObject.ObjectClass = ... class Cacheability(GObject.GFlags): diff --git a/src/gi-stubs/repository/_WebKit6.pyi b/src/gi-stubs/repository/_WebKit6.pyi index eb2013a5..7321de90 100644 --- a/src/gi-stubs/repository/_WebKit6.pyi +++ b/src/gi-stubs/repository/_WebKit6.pyi @@ -25,7 +25,7 @@ EDITING_COMMAND_REDO: str = "Redo" EDITING_COMMAND_SELECT_ALL: str = "SelectAll" EDITING_COMMAND_UNDO: str = "Undo" MAJOR_VERSION: int = 2 -MICRO_VERSION: int = 3 +MICRO_VERSION: int = 5 MINOR_VERSION: int = 42 _lock = ... # FIXME Constant _namespace: str = "WebKit" @@ -142,7 +142,6 @@ class AutomationSession(GObject.Object): class Props: id: str - props: Props = ... def __init__(self, id: str = ...): ... def get_application_info(self) -> ApplicationInfo: ... @@ -262,7 +261,6 @@ class ColorChooserRequest(GObject.Object): class Props: rgba: Gdk.RGBA - props: Props = ... def __init__(self, rgba: Gdk.RGBA = ...): ... def cancel(self) -> None: ... @@ -537,7 +535,6 @@ class Download(GObject.Object): destination: Optional[str] estimated_progress: float response: URIResponse - props: Props = ... def __init__(self, allow_overwrite: bool = ...): ... def cancel(self) -> None: ... @@ -582,7 +579,6 @@ class EditorState(GObject.Object): class Props: typing_attributes: int - props: Props = ... def get_typing_attributes(self) -> int: ... def is_copy_available(self) -> bool: ... @@ -682,7 +678,6 @@ class FileChooserRequest(GObject.Object): mime_types: list[str] select_multiple: bool selected_files: list[str] - props: Props = ... def cancel(self) -> None: ... def get_mime_types(self) -> list[str]: ... @@ -732,7 +727,6 @@ class FindController(GObject.Object): options: FindOptions text: str web_view: WebView - props: Props = ... def __init__(self, web_view: WebView = ...): ... def count_matches( @@ -811,7 +805,6 @@ class GeolocationManager(GObject.Object): class Props: enable_high_accuracy: bool - props: Props = ... def failed(self, error_message: str) -> None: ... def get_enable_high_accuracy(self) -> bool: ... @@ -891,7 +884,6 @@ class HitTestResult(GObject.Object): link_title: str link_uri: str media_uri: str - props: Props = ... def __init__( self, @@ -967,7 +959,6 @@ class InputMethodContext(GObject.Object): class Props: input_hints: InputHints input_purpose: InputPurpose - props: Props = ... parent_instance: GObject.Object = ... priv: InputMethodContextPrivate = ... @@ -1132,7 +1123,6 @@ class NavigationPolicyDecision(PolicyDecision): class Props: navigation_action: NavigationAction - props: Props = ... def get_navigation_action(self) -> NavigationAction: ... @@ -1194,7 +1184,6 @@ class NetworkSession(GObject.Object): is_ephemeral: bool cache_directory: str data_directory: str - props: Props = ... def __init__( self, @@ -1281,7 +1270,6 @@ class Notification(GObject.Object): id: int tag: Optional[str] title: str - props: Props = ... def clicked(self) -> None: ... def close(self) -> None: ... @@ -1473,7 +1461,6 @@ class PrintOperation(GObject.Object): page_setup: Gtk.PageSetup print_settings: Gtk.PrintSettings web_view: WebView - props: Props = ... def __init__( self, @@ -1524,7 +1511,6 @@ class ResponsePolicyDecision(PolicyDecision): class Props: request: URIRequest response: URIResponse - props: Props = ... def get_request(self) -> URIRequest: ... def get_response(self) -> URIResponse: ... @@ -1800,7 +1786,6 @@ class Settings(GObject.Object): serif_font_family: str user_agent: str zoom_text_only: bool - props: Props = ... def __init__( self, @@ -2025,7 +2010,6 @@ class URIRequest(GObject.Object): class Props: uri: str - props: Props = ... def __init__(self, uri: str = ...): ... def get_http_headers(self) -> Soup.MessageHeaders: ... @@ -2075,7 +2059,6 @@ class URIResponse(GObject.Object): status_code: int suggested_filename: str uri: str - props: Props = ... def get_content_length(self) -> int: ... def get_http_headers(self) -> Soup.MessageHeaders: ... @@ -2158,7 +2141,6 @@ class URISchemeResponse(GObject.Object): class Props: stream: Gio.InputStream stream_length: int - props: Props = ... def __init__(self, stream: Gio.InputStream = ..., stream_length: int = ...): ... @classmethod @@ -2207,7 +2189,6 @@ class UserContentFilterStore(GObject.Object): class Props: path: str - props: Props = ... def __init__(self, path: str = ...): ... def fetch_identifiers( @@ -2339,7 +2320,6 @@ class UserMediaPermissionRequest(GObject.Object, PermissionRequest): class Props: is_for_audio_device: bool is_for_video_device: bool - props: Props = ... class UserMediaPermissionRequestClass(GObject.GPointer): @@ -2378,7 +2358,6 @@ class UserMessage(GObject.InitiallyUnowned): fd_list: Optional[Gio.UnixFDList] name: str parameters: Optional[GLib.Variant] - props: Props = ... def __init__( self, @@ -2505,7 +2484,6 @@ class WebContext(GObject.Object): class Props: time_zone_override: str memory_pressure_settings: MemoryPressureSettings - props: Props = ... def __init__( self, @@ -2587,7 +2565,6 @@ class WebInspector(GObject.Object): attached_height: int can_attach: bool inspected_uri: str - props: Props = ... def attach(self) -> None: ... def close(self) -> None: ... @@ -2637,7 +2614,6 @@ class WebResource(GObject.Object): class Props: response: URIResponse uri: str - props: Props = ... def get_data( self, @@ -2841,7 +2817,6 @@ class WebView(WebViewBase, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): accessible_role: Gtk.AccessibleRole related_view: WebView settings: Settings - props: Props = ... parent_instance: WebViewBase = ... priv: WebViewPrivate = ... @@ -3195,7 +3170,6 @@ class WebViewBase(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge visible: bool width_request: int accessible_role: Gtk.AccessibleRole - props: Props = ... parent_instance: Gtk.Widget = ... priv: WebViewBasePrivate = ... @@ -3401,7 +3375,6 @@ class WebsiteDataManager(GObject.Object): is_ephemeral: bool origin_storage_ratio: float total_storage_ratio: float - props: Props = ... def __init__( self, @@ -3484,7 +3457,6 @@ class WebsitePolicies(GObject.Object): class Props: autoplay: AutoplayPolicy - props: Props = ... def __init__(self, autoplay: AutoplayPolicy = ...): ... def get_autoplay_policy(self) -> AutoplayPolicy: ... @@ -3535,7 +3507,6 @@ class WindowProperties(GObject.Object): scrollbars_visible: bool statusbar_visible: bool toolbar_visible: bool - props: Props = ... def __init__( self, From a116bcda4addad0470fa70c366f7218be11ab5b3 Mon Sep 17 00:00:00 2001 From: Matteo Percivaldi <26527954+mat-xc@users.noreply.github.com> Date: Sat, 10 Feb 2024 10:42:12 +0100 Subject: [PATCH 3/4] imprv: Generator: Add deprecations --- pyproject.toml | 7 ++++- tools/generate.py | 72 +++++++++++++++++++++++++++++++++++++++++------ tools/gir.py | 63 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 133 insertions(+), 9 deletions(-) create mode 100644 tools/gir.py diff --git a/pyproject.toml b/pyproject.toml index f8255ee6..5b7369a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,10 @@ authors = [ {email = "reiter.christoph@gmail.com"}, {name = "Christoph Reiter"} ] +dependencies = [ + # for @deprecated decorator + 'typing_extensions>="4.5.0"; python_version<"3.13"', +] classifiers = [ "Programming Language :: Python :: 3", "Intended Audience :: Developers", @@ -50,7 +54,8 @@ include = '\.pyi?$' skip = "*__pycache__*,.mypy_cache,.git,test,*.pyi" ignore-words-list = """ astroid, - inout""" + inout, + gir""" [tool.isort] force_alphabetical_sort_within_sections = true diff --git a/tools/generate.py b/tools/generate.py index 7e929043..ebb98474 100755 --- a/tools/generate.py +++ b/tools/generate.py @@ -24,6 +24,7 @@ import gi import gi._gi as GI +import gir import parse gi.require_version("GIRepository", "2.0") @@ -34,6 +35,8 @@ ObjectT = Union[ModuleType, Type[Any]] +DEPRECATION_DOCS: dict[str, str] = {} + def _object_get_props( obj: GI.ObjectInfo, @@ -339,9 +342,16 @@ def _build(parent: ObjectT, namespace: str, overrides: dict[str, str]) -> str: typings = "from typing import Any, Callable, Literal, Optional, Tuple, Type, TypeVar, Sequence" typevars: list[str] = [] - imports: list[str] = [] + imports: list[str] = [ + """ +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated +""" + ] if "cairo" in ns: - imports = ["import cairo"] + imports += ["import cairo"] typevars.append('_SomeSurface = TypeVar("_SomeSurface", bound=cairo.Surface)') ns.remove("cairo") @@ -507,6 +517,29 @@ def _check_override(prefix: str, name: str, overrides: dict[str, str]) -> Option return None +def _check_deprecation(obj: Any, full_name: str, default_message: str) -> str: + ret = "" + if hasattr(obj, "is_deprecated"): + if obj.is_deprecated(): + message = ( + # Currently not implemented: + # https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/80 + ( + obj.get_attribute("deprecated") + if hasattr(obj, "get_attribute") + else None + ) + or ( + DEPRECATION_DOCS[full_name] + if full_name in DEPRECATION_DOCS + else None + ) + or default_message + ) + ret += f'@deprecated("{message}")\n' + return ret + + def _gi_build_stub( parent: ObjectT, current_namespace: str, @@ -601,6 +634,12 @@ def _gi_build_stub( # Functions for name in sorted(functions): + full_name = _generate_full_name(prefix_name, name) + ret += _check_deprecation( + functions[name], + full_name, + f"This {'method' if in_class else 'function'} is deprecated", + ) override = _check_override(prefix_name, name, overrides) if override: ret += override + "\n" @@ -615,13 +654,18 @@ def _gi_build_stub( # Classes for name, obj in sorted(classes.items()): + full_name = _generate_full_name(prefix_name, name) + + if hasattr(obj, "__info__"): + ret += _check_deprecation( + obj.__info__, full_name, "This class is deprecated" + ) + override = _check_override(prefix_name, name, overrides) if override: ret += override + "\n\n" continue - full_name = _generate_full_name(prefix_name, name) - classret = _gi_build_stub( obj, current_namespace, @@ -804,13 +848,18 @@ def _gi_build_stub( # Flags for name, obj in sorted(flags.items()): + full_name = _generate_full_name(prefix_name, name) + + if hasattr(obj, "__info__"): + ret += _check_deprecation( + obj.__info__, full_name, "This class is deprecated" + ) + override = _check_override(prefix_name, name, overrides) if override: ret += override + "\n\n" continue - full_name = _generate_full_name(prefix_name, name) - if current_namespace == "GObject": if name != "GFlags": base = "GFlags" @@ -847,13 +896,18 @@ def _gi_build_stub( # Enums for name, obj in sorted(enums.items()): + full_name = _generate_full_name(prefix_name, name) + + if hasattr(obj, "__info__"): + ret += _check_deprecation( + obj.__info__, full_name, "This class is deprecated" + ) + override = _check_override(prefix_name, name, overrides) if override: ret += override + "\n\n" continue - full_name = _generate_full_name(prefix_name, name) - if current_namespace == "GObject": if name != "GEnum": base = "GEnum" @@ -940,6 +994,8 @@ def start(module: str, version: str, overrides: dict[str, str]) -> str: args = parser.parse_args() + DEPRECATION_DOCS = gir.load_gir(args.module, args.version) + if args.output: overrides: dict[str, str] = {} try: diff --git a/tools/gir.py b/tools/gir.py new file mode 100644 index 00000000..5961960d --- /dev/null +++ b/tools/gir.py @@ -0,0 +1,63 @@ +from typing import cast + +import os +import re +import sys +import xml.etree.ElementTree as ET + +import gi +from gi.repository import GLib + + +def _get_gir_path(girname: str) -> str: + searchdirs: list[str] = [] + + from_env = os.getenv("GI_GIR_PATH", "") + if from_env: + searchdirs.extend(from_env.split(os.pathsep)) + + user_data_dir = GLib.get_user_data_dir() + if user_data_dir is not None: + searchdirs.append(os.path.join(user_data_dir, "gir-1.0")) + + for path in GLib.get_system_data_dirs(): + searchdirs.append(os.path.join(path, "gir-1.0")) + + if os.name != "nt": + # For backwards compatibility, was always unconditionally added to the list. + searchdirs.append("/usr/share/gir-1.0") + + for d in searchdirs: + path = os.path.join(d, girname) + if os.path.exists(path): + return path + + sys.stderr.write(f"Couldn't find '{girname}' (search path: '{searchdirs}')\n") + sys.exit(1) + + +def load_gir(module: str, version: str) -> dict[str, str]: + deprecation_docs: dict[str, str] = {} + ns = { + "core": "http://www.gtk.org/introspection/core/1.0", + "c": "http://www.gtk.org/introspection/c/1.0", + "glib": "http://www.gtk.org/introspection/glib/1.0", + } + gir_tree = ET.parse(_get_gir_path(f"{module}-{version}.gir")) + gir_root = gir_tree.getroot() + gir_parent_map = {c: p for p in gir_tree.iter() for c in p} + + for child in gir_root.iterfind(".//core:doc-deprecated", ns): + parents: list[str] = [] + parent = gir_parent_map[child] + while True: + try: + parents.insert(0, parent.attrib["name"]) + except KeyError: + break + parent = gir_parent_map[parent] + deprecation_docs[".".join(parents[1:])] = re.sub( + " +", " ", cast(str, child.text).replace("\n", " ").replace('"', '\\"') + ) + + return deprecation_docs From aa85743662c15b54cd46737d6d714207d9f34788 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 11 Feb 2024 16:11:04 +0100 Subject: [PATCH 4/4] Update stubs after deprecation --- src/gi-stubs/repository/Adw.pyi | 356 ++++++++ src/gi-stubs/repository/AppIndicator3.pyi | 7 + src/gi-stubs/repository/AppStream.pyi | 5 + src/gi-stubs/repository/Atk.pyi | 50 ++ .../repository/AyatanaAppIndicator3.pyi | 7 + src/gi-stubs/repository/Farstream.pyi | 5 + src/gi-stubs/repository/Flatpak.pyi | 13 + src/gi-stubs/repository/GIRepository.pyi | 5 + src/gi-stubs/repository/GLib.pyi | 120 +++ src/gi-stubs/repository/GModule.pyi | 11 + src/gi-stubs/repository/GObject.pyi | 30 + src/gi-stubs/repository/GSound.pyi | 5 + src/gi-stubs/repository/GdkPixbuf.pyi | 9 + src/gi-stubs/repository/Geoclue.pyi | 5 + src/gi-stubs/repository/Ggit.pyi | 5 + src/gi-stubs/repository/Gio.pyi | 118 +++ src/gi-stubs/repository/Goa.pyi | 81 ++ src/gi-stubs/repository/Graphene.pyi | 7 + src/gi-stubs/repository/Gsk.pyi | 6 + src/gi-stubs/repository/Gspell.pyi | 5 + src/gi-stubs/repository/Gst.pyi | 16 + src/gi-stubs/repository/GstSdp.pyi | 5 + src/gi-stubs/repository/GstWebRTC.pyi | 5 + src/gi-stubs/repository/Handy.pyi | 15 + src/gi-stubs/repository/Manette.pyi | 5 + src/gi-stubs/repository/Notify.pyi | 12 + src/gi-stubs/repository/OSTree.pyi | 5 + src/gi-stubs/repository/Panel.pyi | 5 + src/gi-stubs/repository/Pango.pyi | 24 + src/gi-stubs/repository/PangoCairo.pyi | 5 + src/gi-stubs/repository/Rsvg.pyi | 66 +- src/gi-stubs/repository/Secret.pyi | 5 + src/gi-stubs/repository/Vte.pyi | 34 +- src/gi-stubs/repository/XApp.pyi | 5 + src/gi-stubs/repository/Xdp.pyi | 5 + src/gi-stubs/repository/_Gdk3.pyi | 131 ++- src/gi-stubs/repository/_Gdk4.pyi | 22 + src/gi-stubs/repository/_Gtk3.pyi | 835 ++++++++++++++++++ src/gi-stubs/repository/_Gtk4.pyi | 833 +++++++++++++++++ src/gi-stubs/repository/_GtkSource4.pyi | 5 + src/gi-stubs/repository/_GtkSource5.pyi | 5 + src/gi-stubs/repository/_JavaScriptCore6.pyi | 5 + src/gi-stubs/repository/_Soup2.pyi | 55 ++ src/gi-stubs/repository/_Soup3.pyi | 7 + src/gi-stubs/repository/_WebKit6.pyi | 7 + 45 files changed, 2964 insertions(+), 3 deletions(-) diff --git a/src/gi-stubs/repository/Adw.pyi b/src/gi-stubs/repository/Adw.pyi index 44017bc2..488941ef 100644 --- a/src/gi-stubs/repository/Adw.pyi +++ b/src/gi-stubs/repository/Adw.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gdk from gi.repository import Gio from gi.repository import GLib @@ -608,6 +613,7 @@ class ActionRow( def add_prefix(self, widget: Gtk.Widget) -> None: ... def add_suffix(self, widget: Gtk.Widget) -> None: ... def get_activatable_widget(self) -> Optional[Gtk.Widget]: ... + @deprecated("Use [method@ActionRow.add_prefix] to add an icon.") def get_icon_name(self) -> Optional[str]: ... def get_subtitle(self) -> Optional[str]: ... def get_subtitle_lines(self) -> int: ... @@ -617,6 +623,7 @@ class ActionRow( def new(cls) -> ActionRow: ... def remove(self, widget: Gtk.Widget) -> None: ... def set_activatable_widget(self, widget: Optional[Gtk.Widget] = None) -> None: ... + @deprecated("Use [method@ActionRow.add_prefix] to add an icon.") def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... def set_subtitle(self, subtitle: str) -> None: ... def set_subtitle_lines(self, subtitle_lines: int) -> None: ... @@ -3769,12 +3776,14 @@ class ExpanderRow( action_name: Optional[str] = ..., action_target: GLib.Variant = ..., ): ... + @deprecated("Use [method@ExpanderRow.add_suffix] to add a suffix.") def add_action(self, widget: Gtk.Widget) -> None: ... def add_prefix(self, widget: Gtk.Widget) -> None: ... def add_row(self, child: Gtk.Widget) -> None: ... def add_suffix(self, widget: Gtk.Widget) -> None: ... def get_enable_expansion(self) -> bool: ... def get_expanded(self) -> bool: ... + @deprecated("Use [method@ExpanderRow.add_prefix] to add an icon.") def get_icon_name(self) -> Optional[str]: ... def get_show_enable_switch(self) -> bool: ... def get_subtitle(self) -> str: ... @@ -3785,6 +3794,7 @@ class ExpanderRow( def remove(self, child: Gtk.Widget) -> None: ... def set_enable_expansion(self, enable_expansion: bool) -> None: ... def set_expanded(self, expanded: bool) -> None: ... + @deprecated("Use [method@ExpanderRow.add_prefix] to add an icon.") def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... def set_show_enable_switch(self, show_enable_switch: bool) -> None: ... def set_subtitle(self, subtitle: str) -> None: ... @@ -3803,6 +3813,7 @@ class ExpanderRowClass(GObject.GPointer): parent_class: PreferencesRowClass = ... padding: list[None] = ... +@deprecated("See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)") class Flap( Gtk.Widget, Swipeable, @@ -3996,37 +4007,130 @@ class Flap( accessible_role: Gtk.AccessibleRole = ..., orientation: Gtk.Orientation = ..., ): ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_content(self) -> Optional[Gtk.Widget]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_flap(self) -> Optional[Gtk.Widget]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_flap_position(self) -> Gtk.PackType: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_fold_duration(self) -> int: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_fold_policy(self) -> FlapFoldPolicy: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_fold_threshold_policy(self) -> FoldThresholdPolicy: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_folded(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_locked(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_modal(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_reveal_flap(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_reveal_params(self) -> SpringParams: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_reveal_progress(self) -> float: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_separator(self) -> Optional[Gtk.Widget]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_swipe_to_close(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_swipe_to_open(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def get_transition_type(self) -> FlapTransitionType: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) @classmethod def new(cls) -> Flap: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_content(self, content: Optional[Gtk.Widget] = None) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_flap(self, flap: Optional[Gtk.Widget] = None) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_flap_position(self, position: Gtk.PackType) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_fold_duration(self, duration: int) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_fold_policy(self, policy: FlapFoldPolicy) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_fold_threshold_policy(self, policy: FoldThresholdPolicy) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_locked(self, locked: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_modal(self, modal: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_reveal_flap(self, reveal_flap: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_reveal_params(self, params: SpringParams) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_separator(self, separator: Optional[Gtk.Widget] = None) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_swipe_to_close(self, swipe_to_close: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_swipe_to_open(self, swipe_to_open: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)" + ) def set_transition_type(self, transition_type: FlapTransitionType) -> None: ... class FlapClass(GObject.GPointer): @@ -4230,6 +4334,9 @@ class HeaderBarClass(GObject.GPointer): parent_class: Gtk.WidgetClass = ... +@deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" +) class Leaflet( Gtk.Widget, Swipeable, @@ -4413,45 +4520,144 @@ class Leaflet( accessible_role: Gtk.AccessibleRole = ..., orientation: Gtk.Orientation = ..., ): ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def append(self, child: Gtk.Widget) -> LeafletPage: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_adjacent_child( self, direction: NavigationDirection ) -> Optional[Gtk.Widget]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_can_navigate_back(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_can_navigate_forward(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_can_unfold(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_child_by_name(self, name: str) -> Optional[Gtk.Widget]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_child_transition_params(self) -> SpringParams: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_child_transition_running(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_fold_threshold_policy(self) -> FoldThresholdPolicy: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_folded(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_homogeneous(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_mode_transition_duration(self) -> int: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_page(self, child: Gtk.Widget) -> LeafletPage: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_pages(self) -> Gtk.SelectionModel: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_transition_type(self) -> LeafletTransitionType: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_visible_child(self) -> Optional[Gtk.Widget]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_visible_child_name(self) -> Optional[str]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def insert_child_after( self, child: Gtk.Widget, sibling: Optional[Gtk.Widget] = None ) -> LeafletPage: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def navigate(self, direction: NavigationDirection) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) @classmethod def new(cls) -> Leaflet: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def prepend(self, child: Gtk.Widget) -> LeafletPage: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def remove(self, child: Gtk.Widget) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def reorder_child_after( self, child: Gtk.Widget, sibling: Optional[Gtk.Widget] = None ) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_can_navigate_back(self, can_navigate_back: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_can_navigate_forward(self, can_navigate_forward: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_can_unfold(self, can_unfold: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_child_transition_params(self, params: SpringParams) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_fold_threshold_policy(self, policy: FoldThresholdPolicy) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_homogeneous(self, homogeneous: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_mode_transition_duration(self, duration: int) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_transition_type(self, transition: LeafletTransitionType) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_visible_child(self, visible_child: Gtk.Widget) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_visible_child_name(self, name: str) -> None: ... class LeafletClass(GObject.GPointer): @@ -4465,6 +4671,9 @@ class LeafletClass(GObject.GPointer): parent_class: Gtk.WidgetClass = ... +@deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" +) class LeafletPage(GObject.Object): """ :Constructors: @@ -4495,10 +4704,25 @@ class LeafletPage(GObject.Object): name: Optional[str] = ..., navigatable: bool = ..., ): ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_child(self) -> Gtk.Widget: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_name(self) -> Optional[str]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def get_navigatable(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_name(self, name: Optional[str] = None) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" + ) def set_navigatable(self, navigatable: bool) -> None: ... class LeafletPageClass(GObject.GPointer): @@ -6639,7 +6863,9 @@ class PreferencesWindow( ): ... def add(self, page: PreferencesPage) -> None: ... def add_toast(self, toast: Toast) -> None: ... + @deprecated("Use [method@PreferencesWindow.pop_subpage] instead.") def close_subpage(self) -> None: ... + @deprecated("Use [method@NavigationPage.get_can_pop] instead.") def get_can_navigate_back(self) -> bool: ... def get_search_enabled(self) -> bool: ... def get_visible_page(self) -> Optional[PreferencesPage]: ... @@ -6647,9 +6873,13 @@ class PreferencesWindow( @classmethod def new(cls) -> PreferencesWindow: ... def pop_subpage(self) -> bool: ... + @deprecated("Use [method@PreferencesWindow.push_subpage] instead.") def present_subpage(self, subpage: Gtk.Widget) -> None: ... def push_subpage(self, page: NavigationPage) -> None: ... def remove(self, page: PreferencesPage) -> None: ... + @deprecated( + "Use [method@NavigationPage.set_can_pop] instead. Has no effect for subpages added with [method@PreferencesWindow.push_subpage]." + ) def set_can_navigate_back(self, can_navigate_back: bool) -> None: ... def set_search_enabled(self, search_enabled: bool) -> None: ... def set_visible_page(self, page: PreferencesPage) -> None: ... @@ -7319,6 +7549,9 @@ class SpringParams(GObject.GBoxed): def ref(self) -> SpringParams: ... def unref(self) -> None: ... +@deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" +) class Squeezer( Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable ): @@ -7491,29 +7724,98 @@ class Squeezer( accessible_role: Gtk.AccessibleRole = ..., orientation: Gtk.Orientation = ..., ): ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def add(self, child: Gtk.Widget) -> SqueezerPage: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_allow_none(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_homogeneous(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_interpolate_size(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_page(self, child: Gtk.Widget) -> SqueezerPage: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_pages(self) -> Gtk.SelectionModel: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_switch_threshold_policy(self) -> FoldThresholdPolicy: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_transition_duration(self) -> int: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_transition_running(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_transition_type(self) -> SqueezerTransitionType: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_visible_child(self) -> Optional[Gtk.Widget]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_xalign(self) -> float: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_yalign(self) -> float: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) @classmethod def new(cls) -> Squeezer: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def remove(self, child: Gtk.Widget) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_allow_none(self, allow_none: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_homogeneous(self, homogeneous: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_interpolate_size(self, interpolate_size: bool) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_switch_threshold_policy(self, policy: FoldThresholdPolicy) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_transition_duration(self, duration: int) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_transition_type(self, transition: SqueezerTransitionType) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_xalign(self, xalign: float) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_yalign(self, yalign: float) -> None: ... class SqueezerClass(GObject.GPointer): @@ -7527,6 +7829,9 @@ class SqueezerClass(GObject.GPointer): parent_class: Gtk.WidgetClass = ... +@deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" +) class SqueezerPage(GObject.Object): """ :Constructors: @@ -7550,8 +7855,17 @@ class SqueezerPage(GObject.Object): enabled: bool props: Props = ... def __init__(self, child: Gtk.Widget = ..., enabled: bool = ...): ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_child(self) -> Gtk.Widget: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def get_enabled(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" + ) def set_enabled(self, enabled: bool) -> None: ... class SqueezerPageClass(GObject.GPointer): @@ -10197,6 +10511,9 @@ class ViewSwitcherClass(GObject.GPointer): parent_class: Gtk.WidgetClass = ... +@deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" +) class ViewSwitcherTitle( Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget ): @@ -10351,16 +10668,46 @@ class ViewSwitcherTitle( width_request: int = ..., accessible_role: Gtk.AccessibleRole = ..., ): ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def get_stack(self) -> Optional[ViewStack]: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def get_subtitle(self) -> str: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def get_title(self) -> str: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def get_title_visible(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def get_view_switcher_enabled(self) -> bool: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) @classmethod def new(cls) -> ViewSwitcherTitle: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def set_stack(self, stack: Optional[ViewStack] = None) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def set_subtitle(self, subtitle: str) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def set_title(self, title: str) -> None: ... + @deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)" + ) def set_view_switcher_enabled(self, enabled: bool) -> None: ... class ViewSwitcherTitleClass(GObject.GPointer): @@ -10867,20 +11214,26 @@ class Easing(GObject.GEnum): @staticmethod def ease(self: Easing, value: float) -> float: ... +@deprecated("See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)") class FlapFoldPolicy(GObject.GEnum): ALWAYS = 1 AUTO = 2 NEVER = 0 +@deprecated("See [the migration guide](migrating-to-breakpoints.html#replace-adwflap)") class FlapTransitionType(GObject.GEnum): OVER = 0 SLIDE = 2 UNDER = 1 +@deprecated("Stop using `AdwLeaflet` and `AdwFlap`") class FoldThresholdPolicy(GObject.GEnum): MINIMUM = 0 NATURAL = 1 +@deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)" +) class LeafletTransitionType(GObject.GEnum): OVER = 0 SLIDE = 2 @@ -10908,6 +11261,9 @@ class ResponseAppearance(GObject.GEnum): DESTRUCTIVE = 2 SUGGESTED = 1 +@deprecated( + "See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)" +) class SqueezerTransitionType(GObject.GEnum): CROSSFADE = 1 NONE = 0 diff --git a/src/gi-stubs/repository/AppIndicator3.pyi b/src/gi-stubs/repository/AppIndicator3.pyi index fd54d923..70ca1293 100644 --- a/src/gi-stubs/repository/AppIndicator3.pyi +++ b/src/gi-stubs/repository/AppIndicator3.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gdk from gi.repository import GObject from gi.repository import Gtk @@ -142,8 +147,10 @@ class Indicator(GObject.Object): def new_with_path( cls, id: str, icon_name: str, category: IndicatorCategory, icon_theme_path: str ) -> Indicator: ... + @deprecated("Use app_indicator_set_attention_icon_full() instead.") def set_attention_icon(self, icon_name: str) -> None: ... def set_attention_icon_full(self, icon_name: str, icon_desc: str) -> None: ... + @deprecated("Use app_indicator_set_icon_full()") def set_icon(self, icon_name: str) -> None: ... def set_icon_full(self, icon_name: str, icon_desc: str) -> None: ... def set_icon_theme_path(self, icon_theme_path: str) -> None: ... diff --git a/src/gi-stubs/repository/AppStream.pyi b/src/gi-stubs/repository/AppStream.pyi index 770b8f3f..8000ae4e 100644 --- a/src/gi-stubs/repository/AppStream.pyi +++ b/src/gi-stubs/repository/AppStream.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/Atk.pyi b/src/gi-stubs/repository/Atk.pyi index b1f38773..935db4aa 100644 --- a/src/gi-stubs/repository/Atk.pyi +++ b/src/gi-stubs/repository/Atk.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject @@ -21,6 +26,9 @@ _namespace: str = "Atk" _version: str = "1.0" def attribute_set_free(attrib_set: list[None]) -> None: ... +@deprecated( + "Focus tracking has been dropped as a feature to be implemented by ATK itself. As #AtkObject::focus-event was deprecated in favor of a #AtkObject::state-change signal, in order to notify a focus change on your implementation, you can use atk_object_notify_state_change() instead." +) def focus_tracker_notify(object: Object) -> None: ... def get_binary_age() -> int: ... def get_default_registry() -> Registry: ... @@ -36,12 +44,18 @@ def get_version() -> str: ... def relation_type_for_name(name: str) -> RelationType: ... def relation_type_get_name(type: RelationType) -> str: ... def relation_type_register(name: str) -> RelationType: ... +@deprecated( + 'Focus tracking has been dropped as a feature to be implemented by ATK itself. If you need focus tracking on your implementation, subscribe to the #AtkObject::state-change "focused" signal.' +) def remove_focus_tracker(tracker_id: int) -> None: ... def remove_global_event_listener(listener_id: int) -> None: ... def remove_key_event_listener(listener_id: int) -> None: ... def role_for_name(name: str) -> Role: ... def role_get_localized_name(role: Role) -> str: ... def role_get_name(role: Role) -> str: ... +@deprecated( + "Since 2.12. If your application/toolkit doesn't find a suitable role for a specific object defined at #AtkRole, please submit a bug in order to add a new role to the specification." +) def role_register(name: str) -> Role: ... def state_type_for_name(name: str) -> StateType: ... def state_type_get_name(type: StateType) -> str: ... @@ -109,12 +123,17 @@ class Component(GObject.GInterface): def get_extents(self, coord_type: CoordType) -> Tuple[int, int, int, int]: ... def get_layer(self) -> Layer: ... def get_mdi_zorder(self) -> int: ... + @deprecated("Since 2.12. Use atk_component_get_extents() instead.") def get_position(self, coord_type: CoordType) -> Tuple[int, int]: ... + @deprecated("Since 2.12. Use atk_component_get_extents() instead.") def get_size(self) -> Tuple[int, int]: ... def grab_focus(self) -> bool: ... def ref_accessible_at_point( self, x: int, y: int, coord_type: CoordType ) -> Optional[Object]: ... + @deprecated( + 'If you need to track when an object gains or lose the focus, use the #AtkObject::state-change "focused" notification instead.' + ) def remove_focus_handler(self, handler_id: int) -> None: ... def scroll_to(self, type: ScrollType) -> bool: ... def scroll_to_point(self, coords: CoordType, x: int, y: int) -> bool: ... @@ -162,8 +181,15 @@ class Document(GObject.GInterface): def get_attribute_value(self, attribute_name: str) -> Optional[str]: ... def get_attributes(self) -> list[None]: ... def get_current_page_number(self) -> int: ... + @deprecated( + "Since 2.12. @document is already a representation of the document. Use it directly, or one of its children, as an instance of the DOM." + ) def get_document(self) -> None: ... + @deprecated( + "Since 2.12. Please use atk_document_get_attributes() to ask for the document type if it applies." + ) def get_document_type(self) -> str: ... + @deprecated("Please use atk_object_get_object_locale() instead.") def get_locale(self) -> str: ... def get_page_count(self) -> int: ... def set_attribute_value( @@ -377,6 +403,9 @@ class Hyperlink(GObject.Object, Action): def get_start_index(self) -> int: ... def get_uri(self, i: int) -> str: ... def is_inline(self) -> bool: ... + @deprecated( + "Please use ATK_STATE_FOCUSABLE for all links, and ATK_STATE_FOCUSED for focused links." + ) def is_selected_link(self) -> bool: ... def is_valid(self) -> bool: ... @@ -510,9 +539,12 @@ class Misc(GObject.Object): parent: GObject.Object = ... def do_threads_enter(self) -> None: ... def do_threads_leave(self) -> None: ... + @deprecated("Since 2.12.") @staticmethod def get_instance() -> Misc: ... + @deprecated("Since 2.12.") def threads_enter(self) -> None: ... + @deprecated("Since 2.12.") def threads_leave(self) -> None: ... class MiscClass(GObject.GPointer): @@ -847,7 +879,9 @@ class Object(GObject.Object): def get_attributes(self) -> list[None]: ... def get_description(self) -> str: ... def get_index_in_parent(self) -> int: ... + @deprecated("Use atk_component_get_layer instead.") def get_layer(self) -> Layer: ... + @deprecated("Use atk_component_get_mdi_zorder instead.") def get_mdi_zorder(self) -> int: ... def get_n_accessible_children(self) -> int: ... def get_name(self) -> str: ... @@ -860,6 +894,7 @@ class Object(GObject.Object): def ref_accessible_child(self, i: int) -> Object: ... def ref_relation_set(self) -> RelationSet: ... def ref_state_set(self) -> StateSet: ... + @deprecated("See atk_object_connect_property_change_handler()") def remove_property_change_handler(self, handler_id: int) -> None: ... def remove_relationship( self, relationship: RelationType, target: Object @@ -1443,13 +1478,18 @@ class Table(GObject.GInterface): def add_column_selection(self, column: int) -> bool: ... def add_row_selection(self, row: int) -> bool: ... def get_caption(self) -> Optional[Object]: ... + @deprecated("Since 2.12.") def get_column_at_index(self, index_: int) -> int: ... def get_column_description(self, column: int) -> str: ... def get_column_extent_at(self, row: int, column: int) -> int: ... def get_column_header(self, column: int) -> Optional[Object]: ... + @deprecated( + "Since 2.12. Use atk_table_ref_at() in order to get the accessible that represents the cell at (@row, @column)" + ) def get_index_at(self, row: int, column: int) -> int: ... def get_n_columns(self) -> int: ... def get_n_rows(self) -> int: ... + @deprecated("since 2.12.") def get_row_at_index(self, index_: int) -> int: ... def get_row_description(self, row: int) -> Optional[str]: ... def get_row_extent_at(self, row: int, column: int) -> int: ... @@ -1584,12 +1624,17 @@ class Text(GObject.GInterface): self, offset: int, granularity: TextGranularity ) -> Tuple[Optional[str], int, int]: ... def get_text(self, start_offset: int, end_offset: int) -> str: ... + @deprecated("Please use atk_text_get_string_at_offset() instead.") def get_text_after_offset( self, offset: int, boundary_type: TextBoundary ) -> Tuple[str, int, int]: ... + @deprecated( + "This method is deprecated since ATK version 2.9.4. Please use atk_text_get_string_at_offset() instead." + ) def get_text_at_offset( self, offset: int, boundary_type: TextBoundary ) -> Tuple[str, int, int]: ... + @deprecated("Please use atk_text_get_string_at_offset() instead.") def get_text_before_offset( self, offset: int, boundary_type: TextBoundary ) -> Tuple[str, int, int]: ... @@ -1721,14 +1766,19 @@ class Value(GObject.GInterface): Interface AtkValue """ + @deprecated("Since 2.12. Use atk_value_get_value_and_text() instead.") def get_current_value(self) -> Any: ... def get_increment(self) -> float: ... + @deprecated("Since 2.12. Use atk_value_get_range() instead.") def get_maximum_value(self) -> Any: ... + @deprecated("Since 2.12. Use atk_value_get_increment() instead.") def get_minimum_increment(self) -> Any: ... + @deprecated("Since 2.12. Use atk_value_get_range() instead.") def get_minimum_value(self) -> Any: ... def get_range(self) -> Optional[Range]: ... def get_sub_ranges(self) -> list[Range]: ... def get_value_and_text(self) -> Tuple[float, str]: ... + @deprecated("Since 2.12. Use atk_value_set_value() instead.") def set_current_value(self, value: Any) -> bool: ... def set_value(self, new_value: float) -> None: ... diff --git a/src/gi-stubs/repository/AyatanaAppIndicator3.pyi b/src/gi-stubs/repository/AyatanaAppIndicator3.pyi index f847686e..bb7f6092 100644 --- a/src/gi-stubs/repository/AyatanaAppIndicator3.pyi +++ b/src/gi-stubs/repository/AyatanaAppIndicator3.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gdk from gi.repository import GObject from gi.repository import Gtk @@ -141,10 +146,12 @@ class Indicator(GObject.Object): def new_with_path( cls, id: str, icon_name: str, category: IndicatorCategory, icon_theme_path: str ) -> Indicator: ... + @deprecated("Use app_indicator_set_attention_icon_full() instead.") def set_attention_icon(self, icon_name: str) -> None: ... def set_attention_icon_full( self, icon_name: str, icon_desc: Optional[str] = None ) -> None: ... + @deprecated("Use app_indicator_set_icon_full()") def set_icon(self, icon_name: str) -> None: ... def set_icon_full( self, icon_name: str, icon_desc: Optional[str] = None diff --git a/src/gi-stubs/repository/Farstream.pyi b/src/gi-stubs/repository/Farstream.pyi index bbe777d5..0ded1471 100644 --- a/src/gi-stubs/repository/Farstream.pyi +++ b/src/gi-stubs/repository/Farstream.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject from gi.repository import Gst diff --git a/src/gi-stubs/repository/Flatpak.pyi b/src/gi-stubs/repository/Flatpak.pyi index 939815f6..ffe129e3 100644 --- a/src/gi-stubs/repository/Flatpak.pyi +++ b/src/gi-stubs/repository/Flatpak.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject @@ -185,6 +190,7 @@ class Installation(GObject.Object): self, name: str, cancellable: Optional[Gio.Cancellable] = None ) -> Remote: ... def get_storage_type(self) -> StorageType: ... + @deprecated("Use flatpak_transaction_add_install() instead.") def install( self, remote_name: str, @@ -196,6 +202,7 @@ class Installation(GObject.Object): cancellable: Optional[Gio.Cancellable] = None, *progress_data: Any, ) -> InstalledRef: ... + @deprecated("Use flatpak_transaction_add_install_bundle() instead.") def install_bundle( self, file: Gio.File, @@ -203,6 +210,7 @@ class Installation(GObject.Object): cancellable: Optional[Gio.Cancellable] = None, *progress_data: Any, ) -> InstalledRef: ... + @deprecated("Use flatpak_transaction_add_install() instead.") def install_full( self, flags: InstallFlags, @@ -216,6 +224,7 @@ class Installation(GObject.Object): cancellable: Optional[Gio.Cancellable] = None, *progress_data: Any, ) -> InstalledRef: ... + @deprecated("Use flatpak_transaction_add_install_flatpakref() instead.") def install_ref_file( self, ref_file_data: GLib.Bytes, cancellable: Optional[Gio.Cancellable] = None ) -> RemoteRef: ... @@ -319,6 +328,7 @@ class Installation(GObject.Object): self, key: str, value: str, cancellable: Optional[Gio.Cancellable] = None ) -> bool: ... def set_no_interaction(self, no_interaction: bool) -> None: ... + @deprecated("Use flatpak_transaction_add_uninstall() instead.") def uninstall( self, kind: RefKind, @@ -329,6 +339,7 @@ class Installation(GObject.Object): cancellable: Optional[Gio.Cancellable] = None, *progress_data: Any, ) -> bool: ... + @deprecated("Use flatpak_transaction_add_uninstall() instead.") def uninstall_full( self, flags: UninstallFlags, @@ -340,6 +351,7 @@ class Installation(GObject.Object): cancellable: Optional[Gio.Cancellable] = None, *progress_data: Any, ) -> bool: ... + @deprecated("Use flatpak_transaction_add_update() instead.") def update( self, flags: UpdateFlags, @@ -367,6 +379,7 @@ class Installation(GObject.Object): out_changed: Optional[bool] = None, cancellable: Optional[Gio.Cancellable] = None, ) -> bool: ... + @deprecated("Use flatpak_transaction_add_update() instead.") def update_full( self, flags: UpdateFlags, diff --git a/src/gi-stubs/repository/GIRepository.pyi b/src/gi-stubs/repository/GIRepository.pyi index e72dc269..c7bd81ee 100644 --- a/src/gi-stubs/repository/GIRepository.pyi +++ b/src/gi-stubs/repository/GIRepository.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/GLib.pyi b/src/gi-stubs/repository/GLib.pyi index 61c2c3f5..78496f14 100644 --- a/src/gi-stubs/repository/GLib.pyi +++ b/src/gi-stubs/repository/GLib.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GObject ANALYZER_ANALYZING: int = 1 @@ -282,6 +287,7 @@ def assertion_message_error( error_domain: int, error_code: int, ) -> None: ... +@deprecated("It is best to avoid g_atexit().") def atexit(func: Callable[[], None]) -> None: ... def atomic_int_add(atomic: int, val: int) -> int: ... def atomic_int_and(atomic: int, val: int) -> int: ... @@ -291,6 +297,7 @@ def atomic_int_compare_and_exchange_full( ) -> Tuple[bool, int]: ... def atomic_int_dec_and_test(atomic: int) -> bool: ... def atomic_int_exchange(atomic: int, newval: int) -> int: ... +@deprecated("Use g_atomic_int_add() instead.") def atomic_int_exchange_and_add(atomic: int, val: int) -> int: ... def atomic_int_get(atomic: int) -> int: ... def atomic_int_inc(atomic: int) -> None: ... @@ -330,6 +337,9 @@ def base64_encode_close(break_lines: bool) -> Tuple[int, bytes, int, int]: ... def base64_encode_step( in_: Sequence[int], break_lines: bool ) -> Tuple[int, bytes, int, int]: ... +@deprecated( + "Use g_path_get_basename() instead, but notice that g_path_get_basename() allocates new memory for the returned string, unlike this function which returns a pointer into the argument." +) def basename(file_name: str) -> str: ... def bit_lock(address: int, lock_bit: int) -> None: ... def bit_nth_lsf(mask: int, nth_bit: int) -> int: ... @@ -439,6 +449,9 @@ def filename_to_uri(filename: str, hostname: Optional[str] = None) -> str: ... def filename_to_utf8(opsysstring: str, len: int) -> Tuple[str, int, int]: ... def find_program_in_path(program: str) -> Optional[str]: ... def format_size(size: int) -> str: ... +@deprecated( + "This function is broken due to its use of SI suffixes to denote IEC units. Use g_format_size() instead." +) def format_size_for_display(size: int) -> str: ... def format_size_full(size: int, flags: FormatSizeFlags) -> str: ... def free(mem: None) -> None: ... @@ -583,9 +596,17 @@ def markup_error_quark() -> int: ... # override def markup_escape_text(str: Union[str, bytes], length: int = ...) -> str: ... +@deprecated( + "GLib always uses the system malloc, so this function always returns %TRUE." +) def mem_is_system_malloc() -> bool: ... +@deprecated("Use other memory profiling tools instead") def mem_profile() -> None: ... +@deprecated("This function now does nothing. Use other memory profiling tools instead") def mem_set_vtable(vtable: MemVTable) -> None: ... +@deprecated( + "Use g_memdup2() instead, as it accepts a #gsize argument for @byte_size, avoiding the possibility of overflow in a #gsize → #guint conversion" +) def memdup(mem: None, byte_size: int) -> None: ... def memdup2(mem: None, byte_size: int) -> None: ... def mkdir_with_parents(pathname: str, mode: int) -> int: ... @@ -726,6 +747,9 @@ def spawn_async_with_pipes_and_fds( target_fds: Optional[Sequence[int]] = None, *user_data: Any, ) -> Tuple[bool, int, int, int, int]: ... +@deprecated( + "Use g_spawn_check_wait_status() instead, and check whether your code is conflating wait and exit statuses." +) def spawn_check_exit_status(wait_status: int) -> bool: ... def spawn_check_wait_status(wait_status: int) -> bool: ... def spawn_close_pid(pid: int) -> None: ... @@ -755,12 +779,18 @@ def str_tokenize_and_fold( string: str, translit_locale: Optional[str] = None ) -> Tuple[list[str], list[str]]: ... def strcanon(string: str, valid_chars: str, substitutor: int) -> str: ... +@deprecated( + "See g_strncasecmp() for a discussion of why this function is deprecated and how to replace it." +) def strcasecmp(s1: str, s2: str) -> int: ... def strchomp(string: str) -> str: ... def strchug(string: str) -> str: ... def strcmp0(str1: Optional[str] = None, str2: Optional[str] = None) -> int: ... def strcompress(source: str) -> str: ... def strdelimit(string: str, delimiters: Optional[str], new_delimiter: int) -> str: ... +@deprecated( + "This function is totally broken for the reasons discussed in the g_strncasecmp() docs - use g_ascii_strdown() or g_utf8_strdown() instead." +) def strdown(string: str) -> str: ... def strdup(str: Optional[str] = None) -> str: ... def strerror(errnum: int) -> str: ... @@ -770,6 +800,9 @@ def strip_context(msgid: str, msgval: str) -> str: ... def strjoinv(separator: Optional[str], str_array: str) -> str: ... def strlcat(dest: str, src: str, dest_size: int) -> int: ... def strlcpy(dest: str, src: str, dest_size: int) -> int: ... +@deprecated( + "The problem with g_strncasecmp() is that it does the comparison by calling toupper()/tolower(). These functions are locale-specific and operate on single bytes. However, it is impossible to handle things correctly from an internationalization standpoint by operating on bytes, since characters may be multibyte. Thus g_strncasecmp() is broken if your string is guaranteed to be ASCII, since it is locale-sensitive, and it's broken if your string is localized, since it doesn't work on many encodings at all, including UTF-8, EUC-JP, etc. There are therefore two replacement techniques: g_ascii_strncasecmp(), which only works on ASCII and is not locale-sensitive, and g_utf8_casefold() followed by strcmp() on the resulting strings, which is good for case-insensitive sorting of UTF-8." +) def strncasecmp(s1: str, s2: str, n: int) -> int: ... def strndup(str: str, n: int) -> str: ... def strnfill(length: int, fill_char: int) -> str: ... @@ -781,6 +814,9 @@ def strsplit(string: str, delimiter: str, max_tokens: int) -> list[str]: ... def strsplit_set(string: str, delimiters: str, max_tokens: int) -> list[str]: ... def strstr_len(haystack: str, haystack_len: int, needle: str) -> str: ... def strtod(nptr: str) -> Tuple[float, str]: ... +@deprecated( + "This function is totally broken for the reasons discussed in the g_strncasecmp() docs - use g_ascii_strup() or g_utf8_strup() instead." +) def strup(string: str) -> str: ... def strv_contains(strv: str, str: str) -> bool: ... def strv_equal(strv1: str, strv2: str) -> bool: ... @@ -831,6 +867,9 @@ def test_timer_start() -> None: ... def test_trap_assertions( domain: str, file: str, line: int, func: str, assertion_flags: int, pattern: str ) -> None: ... +@deprecated( + "This function is implemented only on Unix platforms, is not always reliable due to problems inherent in fork-without-exec and doesn't set close-on-exec flag on its file descriptors. Use g_test_trap_subprocess() instead." +) def test_trap_fork(usec_timeout: int, test_trap_flags: TestTrapFlags) -> bool: ... def test_trap_has_passed() -> bool: ... def test_trap_reached_timeout() -> bool: ... @@ -848,6 +887,9 @@ def thread_pool_stop_unused_threads() -> None: ... def thread_self() -> Thread: ... def thread_yield() -> None: ... def threads_init(): ... # FIXME Function +@deprecated( + "#GTimeVal is not year-2038-safe. Use g_date_time_new_from_iso8601() instead." +) def time_val_from_iso8601(iso_date: str) -> Tuple[bool, TimeVal]: ... # override @@ -859,9 +901,13 @@ def timeout_add_seconds( ) -> int: ... def timeout_source_new(interval: int) -> Source: ... def timeout_source_new_seconds(interval: int) -> Source: ... +@deprecated("#GTrashStack is deprecated without replacement") def trash_stack_height(stack_p: TrashStack) -> int: ... +@deprecated("#GTrashStack is deprecated without replacement") def trash_stack_peek(stack_p: TrashStack) -> None: ... +@deprecated("#GTrashStack is deprecated without replacement") def trash_stack_pop(stack_p: TrashStack) -> None: ... +@deprecated("#GTrashStack is deprecated without replacement") def trash_stack_push(stack_p: TrashStack, data_p: None) -> None: ... def try_malloc(n_bytes: int) -> None: ... def try_malloc0(n_bytes: int) -> None: ... @@ -905,6 +951,7 @@ def unichar_toupper(c: str) -> str: ... def unichar_type(c: str) -> UnicodeType: ... def unichar_validate(ch: str) -> bool: ... def unichar_xdigit_value(c: str) -> int: ... +@deprecated("Use the more flexible g_unichar_fully_decompose() instead.") def unicode_canonical_decomposition(ch: str, result_len: int) -> str: ... def unicode_canonical_ordering(string: Sequence[str]) -> None: ... def unicode_script_from_iso15924(iso15924: int) -> UnicodeScript: ... @@ -1055,6 +1102,7 @@ def variant_parse( ) -> Variant: ... def variant_parse_error_print_context(error: Error, source_str: str) -> str: ... def variant_parse_error_quark() -> int: ... +@deprecated("Use g_variant_parse_error_quark() instead.") def variant_parser_get_error_quark() -> int: ... def variant_type_checked_(arg0: str) -> VariantType: ... def variant_type_string_get_depth_(type_string: str) -> int: ... @@ -1085,10 +1133,15 @@ class AsyncQueue(GObject.GPointer): def push_front(self, item: None) -> None: ... def push_front_unlocked(self, item: None) -> None: ... def push_unlocked(self, data: None) -> None: ... + @deprecated( + "Reference counting is done atomically. so g_async_queue_ref() can be used regardless of the @queue's lock." + ) def ref_unlocked(self) -> None: ... def remove(self, item: None) -> bool: ... def remove_unlocked(self, item: None) -> bool: ... + @deprecated("use g_async_queue_timeout_pop().") def timed_pop(self, end_time: TimeVal) -> None: ... + @deprecated("use g_async_queue_timeout_pop_unlocked().") def timed_pop_unlocked(self, end_time: TimeVal) -> None: ... def timeout_pop(self, timeout: int) -> None: ... def timeout_pop_unlocked(self, timeout: int) -> None: ... @@ -1096,6 +1149,9 @@ class AsyncQueue(GObject.GPointer): def try_pop_unlocked(self) -> None: ... def unlock(self) -> None: ... def unref(self) -> None: ... + @deprecated( + "Reference counting is done atomically. so g_async_queue_unref() can be used regardless of the @queue's lock." + ) def unref_and_unlock(self) -> None: ... class BookmarkFile(GObject.GBoxed): @@ -1115,8 +1171,14 @@ class BookmarkFile(GObject.GBoxed): @staticmethod def error_quark() -> int: ... def free(self) -> None: ... + @deprecated( + "Use g_bookmark_file_get_added_date_time() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def get_added(self, uri: str) -> int: ... def get_added_date_time(self, uri: str) -> DateTime: ... + @deprecated( + "Use g_bookmark_file_get_application_info() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def get_app_info(self, uri: str, name: str) -> Tuple[bool, str, int, int]: ... def get_application_info( self, uri: str, name: str @@ -1127,11 +1189,17 @@ class BookmarkFile(GObject.GBoxed): def get_icon(self, uri: str) -> Tuple[bool, str, str]: ... def get_is_private(self, uri: str) -> bool: ... def get_mime_type(self, uri: str) -> str: ... + @deprecated( + "Use g_bookmark_file_get_modified_date_time() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def get_modified(self, uri: str) -> int: ... def get_modified_date_time(self, uri: str) -> DateTime: ... def get_size(self) -> int: ... def get_title(self, uri: Optional[str] = None) -> str: ... def get_uris(self) -> list[str]: ... + @deprecated( + "Use g_bookmark_file_get_visited_date_time() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def get_visited(self, uri: str) -> int: ... def get_visited_date_time(self, uri: str) -> DateTime: ... def has_application(self, uri: str, name: str) -> bool: ... @@ -1146,8 +1214,14 @@ class BookmarkFile(GObject.GBoxed): def remove_application(self, uri: str, name: str) -> bool: ... def remove_group(self, uri: str, group: str) -> bool: ... def remove_item(self, uri: str) -> bool: ... + @deprecated( + "Use g_bookmark_file_set_added_date_time() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def set_added(self, uri: str, added: int) -> None: ... def set_added_date_time(self, uri: str, added: DateTime) -> None: ... + @deprecated( + "Use g_bookmark_file_set_application_info() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def set_app_info( self, uri: str, name: str, exec: str, count: int, stamp: int ) -> bool: ... @@ -1164,9 +1238,15 @@ class BookmarkFile(GObject.GBoxed): def set_icon(self, uri: str, href: Optional[str], mime_type: str) -> None: ... def set_is_private(self, uri: str, is_private: bool) -> None: ... def set_mime_type(self, uri: str, mime_type: str) -> None: ... + @deprecated( + "Use g_bookmark_file_set_modified_date_time() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def set_modified(self, uri: str, modified: int) -> None: ... def set_modified_date_time(self, uri: str, modified: DateTime) -> None: ... def set_title(self, uri: Optional[str], title: str) -> None: ... + @deprecated( + "Use g_bookmark_file_set_visited_date_time() instead, as `time_t` is deprecated due to the year 2038 problem." + ) def set_visited(self, uri: str, visited: int) -> None: ... def set_visited_date_time(self, uri: str, visited: DateTime) -> None: ... def to_data(self) -> bytes: ... @@ -1319,8 +1399,10 @@ class Date(GObject.GBoxed): def set_julian(self, julian_date: int) -> None: ... def set_month(self, month: DateMonth) -> None: ... def set_parse(self, str: str) -> None: ... + @deprecated("Use g_date_set_time_t() instead.") def set_time(self, time_: int) -> None: ... def set_time_t(self, timet: int) -> None: ... + @deprecated("#GTimeVal is not year-2038-safe. Use g_date_set_time_t() instead.") def set_time_val(self, timeval: TimeVal) -> None: ... def set_year(self, year: int) -> None: ... @staticmethod @@ -1417,8 +1499,14 @@ class DateTime(GObject.GBoxed): def new_from_iso8601( cls, text: str, default_tz: Optional[TimeZone] = None ) -> Optional[DateTime]: ... + @deprecated( + "#GTimeVal is not year-2038-safe. Use g_date_time_new_from_unix_local() instead." + ) @classmethod def new_from_timeval_local(cls, tv: TimeVal) -> Optional[DateTime]: ... + @deprecated( + "#GTimeVal is not year-2038-safe. Use g_date_time_new_from_unix_utc() instead." + ) @classmethod def new_from_timeval_utc(cls, tv: TimeVal) -> Optional[DateTime]: ... @classmethod @@ -1441,6 +1529,7 @@ class DateTime(GObject.GBoxed): ) -> Optional[DateTime]: ... def ref(self) -> DateTime: ... def to_local(self) -> Optional[DateTime]: ... + @deprecated("#GTimeVal is not year-2038-safe. Use g_date_time_to_unix() instead.") def to_timeval(self, tv: TimeVal) -> bool: ... def to_timezone(self, tz: TimeZone) -> Optional[DateTime]: ... def to_unix(self) -> int: ... @@ -1669,6 +1758,7 @@ class IOChannel(GObject.GBoxed): def add_watch( self, condition, callback, *user_data, **kwargs ): ... # FIXME Function + @deprecated("Use g_io_channel_shutdown() instead.") def close(self) -> None: ... @staticmethod def error_from_errno(en: int) -> IOChannelError: ... @@ -1957,6 +2047,7 @@ class MainContext(GObject.GBoxed): def release(self) -> None: ... def remove_poll(self, fd: PollFD) -> None: ... def unref(self) -> None: ... + @deprecated("Use g_main_context_is_owner() and separate locking instead.") def wait(self, cond: Cond, mutex: Mutex) -> bool: ... def wakeup(self) -> None: ... @@ -1988,6 +2079,7 @@ class MappedFile(GObject.GBoxed): new_from_fd(fd:int, writable:bool) -> GLib.MappedFile """ + @deprecated("Use g_mapped_file_unref() instead.") def free(self) -> None: ... def get_bytes(self) -> Bytes: ... def get_contents(self) -> str: ... @@ -2690,6 +2782,9 @@ class String(GObject.GBoxed): def ascii_down(self) -> String: ... def ascii_up(self) -> String: ... def assign(self, rval: str) -> String: ... + @deprecated( + "This function uses the locale-specific tolower() function, which is almost never the right thing. Use g_string_ascii_down() or g_utf8_strdown() instead." + ) def down(self) -> String: ... def equal(self, v2: String) -> bool: ... def erase(self, pos: int, len: int) -> String: ... @@ -2718,6 +2813,9 @@ class String(GObject.GBoxed): @classmethod def sized_new(cls, dfl_size: int) -> String: ... def truncate(self, len: int) -> String: ... + @deprecated( + "This function uses the locale-specific toupper() function, which is almost never the right thing. Use g_string_ascii_up() or g_utf8_strup() instead." + ) def up(self) -> String: ... class StringChunk(GObject.GPointer): @@ -2849,6 +2947,7 @@ class ThreadPool(GObject.GPointer): def stop_unused_threads() -> None: ... def unprocessed(self) -> int: ... +@deprecated("Use #GDateTime or #guint64 instead.") class TimeVal(GObject.GPointer): """ :Constructors: @@ -2860,9 +2959,18 @@ class TimeVal(GObject.GPointer): tv_sec: int = ... tv_usec: int = ... + @deprecated( + "#GTimeVal is not year-2038-safe. Use `guint64` for representing microseconds since the epoch, or use #GDateTime." + ) def add(self, microseconds: int) -> None: ... + @deprecated( + "#GTimeVal is not year-2038-safe. Use g_date_time_new_from_iso8601() instead." + ) @staticmethod def from_iso8601(iso_date: str) -> Tuple[bool, TimeVal]: ... + @deprecated( + "#GTimeVal is not year-2038-safe. Use g_date_time_format_iso8601(dt) instead." + ) def to_iso8601(self) -> Optional[str]: ... class TimeZone(GObject.GBoxed): @@ -2884,6 +2992,9 @@ class TimeZone(GObject.GBoxed): def get_identifier(self) -> str: ... def get_offset(self, interval: int) -> int: ... def is_dst(self, interval: int) -> bool: ... + @deprecated( + "Use g_time_zone_new_identifier() instead, as it provides error reporting. Change your code to handle a potentially %NULL return value." + ) @classmethod def new(cls, identifier: Optional[str] = None) -> TimeZone: ... @classmethod @@ -2987,6 +3098,7 @@ class TokenValue(GObject.GPointer): v_string = ... # FIXME Constant v_symbol = ... # FIXME Constant +@deprecated("#GTrashStack is deprecated without replacement") class TrashStack(GObject.GPointer): """ :Constructors: @@ -2997,12 +3109,16 @@ class TrashStack(GObject.GPointer): """ next: TrashStack = ... + @deprecated("#GTrashStack is deprecated without replacement") @staticmethod def height(stack_p: TrashStack) -> int: ... + @deprecated("#GTrashStack is deprecated without replacement") @staticmethod def peek(stack_p: TrashStack) -> None: ... + @deprecated("#GTrashStack is deprecated without replacement") @staticmethod def pop(stack_p: TrashStack) -> None: ... + @deprecated("#GTrashStack is deprecated without replacement") @staticmethod def push(stack_p: TrashStack, data_p: None) -> None: ... @@ -3351,6 +3467,7 @@ class Variant(GObject.GPointer): def parse_error_print_context(error: Error, source_str: str) -> str: ... @staticmethod def parse_error_quark() -> int: ... + @deprecated("Use g_variant_parse_error_quark() instead.") @staticmethod def parser_get_error_quark() -> int: ... def print_(self, type_annotate: bool) -> str: ... @@ -3624,6 +3741,9 @@ class TestSubprocessFlags(GObject.GFlags): INHERIT_STDIN = 1 INHERIT_STDOUT = 2 +@deprecated( + "#GTestTrapFlags is used only with g_test_trap_fork(), which is deprecated. g_test_trap_subprocess() uses #GTestSubprocessFlags." +) class TestTrapFlags(GObject.GFlags): DEFAULT = 0 INHERIT_STDIN = 512 diff --git a/src/gi-stubs/repository/GModule.pyi b/src/gi-stubs/repository/GModule.pyi index 04d67d1f..2dc729bc 100644 --- a/src/gi-stubs/repository/GModule.pyi +++ b/src/gi-stubs/repository/GModule.pyi @@ -7,18 +7,29 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GObject _lock = ... # FIXME Constant _namespace: str = "GModule" _version: str = "2.0" +@deprecated( + "Use g_module_open() instead with @module_name as the basename of the file_name argument. See %G_MODULE_SUFFIX for why." +) def module_build_path(directory: Optional[str], module_name: str) -> str: ... def module_error() -> str: ... def module_error_quark() -> int: ... def module_supported() -> bool: ... class Module(GObject.GPointer): + @deprecated( + "Use g_module_open() instead with @module_name as the basename of the file_name argument. See %G_MODULE_SUFFIX for why." + ) @staticmethod def build_path(directory: Optional[str], module_name: str) -> str: ... def close(self) -> bool: ... diff --git a/src/gi-stubs/repository/GObject.pyi b/src/gi-stubs/repository/GObject.pyi index f9585746..e9c7d7f6 100644 --- a/src/gi-stubs/repository/GObject.pyi +++ b/src/gi-stubs/repository/GObject.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib G_MAXDOUBLE: float = 1.7976931348623157e308 @@ -693,7 +698,9 @@ def type_get_instance_count(type: Type) -> int: ... def type_get_plugin(type: Type) -> TypePlugin: ... def type_get_qdata(type: Type, quark: int) -> None: ... def type_get_type_registration_serial() -> int: ... +@deprecated("the type system is now initialised automatically") def type_init() -> None: ... +@deprecated("the type system is now initialised automatically") def type_init_with_debug_flags(debug_flags: TypeDebugFlags) -> None: ... def type_interface_add_prerequisite( interface_type: Type, prerequisite_type: Type @@ -779,8 +786,10 @@ class Binding(Object): def dup_source(self) -> Optional[Object]: ... def dup_target(self) -> Optional[Object]: ... def get_flags(self) -> BindingFlags: ... + @deprecated("Use g_binding_dup_source() for a safer version of this function.") def get_source(self) -> Optional[Object]: ... def get_source_property(self) -> str: ... + @deprecated("Use g_binding_dup_target() for a safer version of this function.") def get_target(self) -> Optional[Object]: ... def get_target_property(self) -> str: ... def unbind(self): ... # FIXME Function @@ -1439,6 +1448,7 @@ class MainContext(GBoxed): def release(self) -> None: ... def remove_poll(self, fd: GLib.PollFD) -> None: ... def unref(self) -> None: ... + @deprecated("This method is deprecated") def wait(self, cond: GLib.Cond, mutex: GLib.Mutex) -> bool: ... def wakeup(self) -> None: ... @@ -1537,6 +1547,9 @@ class Object: def interface_list_properties(self, *args, **kargs): ... # FIXME Function def is_floating(self) -> bool: ... def list_properties(self) -> list[ParamSpec]: ... + @deprecated( + "Use g_object_new_with_properties() instead. deprecated. See #GParameter for more information." + ) @classmethod def newv(cls, object_type: Type, parameters: Sequence[Parameter]) -> Object: ... def notify(self, property_name: str) -> None: ... @@ -2004,6 +2017,7 @@ class ParamSpecVariant(ParamSpec): default_value: GLib.Variant = ... padding: list[None] = ... +@deprecated("This type is not introspectable.") class Parameter(GPointer): """ :Constructors: @@ -2328,6 +2342,9 @@ class TypeClass(GPointer): """ g_type: Type = ... + @deprecated( + "Use the G_ADD_PRIVATE() macro with the `G_DEFINE_*` family of macros to add instance private data to a type" + ) def add_private(self, private_size: int) -> None: ... @staticmethod def adjust_private_offset(g_class: None, private_size_or_offset: int) -> None: ... @@ -2531,6 +2548,7 @@ class Value(GBoxed): def fits_pointer(self) -> bool: ... def get_boolean(self) -> bool: ... def get_boxed(self): ... # FIXME Function + @deprecated("This function's return type is broken, see g_value_get_schar()") def get_char(self) -> int: ... def get_double(self) -> float: ... def get_enum(self) -> int: ... @@ -2557,7 +2575,9 @@ class Value(GBoxed): def reset(self) -> Any: ... def set_boolean(self, v_boolean: bool) -> None: ... def set_boxed(self, boxed): ... # FIXME Function + @deprecated("Use g_value_take_boxed() instead.") def set_boxed_take_ownership(self, v_boxed: None) -> None: ... + @deprecated("This function's input type is broken, see g_value_set_schar()") def set_char(self, v_char: int) -> None: ... def set_double(self, v_double: float) -> None: ... def set_enum(self, v_enum: int) -> None: ... @@ -2576,6 +2596,7 @@ class Value(GBoxed): def set_static_boxed(self, v_boxed: None) -> None: ... def set_static_string(self, v_string: Optional[str] = None) -> None: ... def set_string(self, v_string: Optional[str] = None) -> None: ... + @deprecated("Use g_value_take_string() instead.") def set_string_take_ownership(self, v_string: Optional[str] = None) -> None: ... def set_uchar(self, v_uchar: int) -> None: ... def set_uint(self, v_uint: int) -> None: ... @@ -2606,14 +2627,22 @@ class ValueArray(GBoxed): n_values: int = ... values: Any = ... n_prealloced: int = ... + @deprecated("Use #GArray and g_array_append_val() instead.") def append(self, value: Optional[Any] = None) -> ValueArray: ... + @deprecated("Use #GArray and g_array_ref() instead.") def copy(self) -> ValueArray: ... + @deprecated("Use g_array_index() instead.") def get_nth(self, index_: int) -> Any: ... + @deprecated("Use #GArray and g_array_insert_val() instead.") def insert(self, index_: int, value: Optional[Any] = None) -> ValueArray: ... + @deprecated("Use #GArray and g_array_sized_new() instead.") @classmethod def new(cls, n_prealloced: int) -> ValueArray: ... + @deprecated("Use #GArray and g_array_prepend_val() instead.") def prepend(self, value: Optional[Any] = None) -> ValueArray: ... + @deprecated("Use #GArray and g_array_remove_index() instead.") def remove(self, index_: int) -> ValueArray: ... + @deprecated("Use #GArray and g_array_sort().") def sort(self, compare_func: Callable[..., int], *user_data: Any) -> ValueArray: ... class Warning: @@ -2762,6 +2791,7 @@ class SignalMatchType(GFlags): ID = 1 UNBLOCKED = 32 +@deprecated("g_type_init() is now done automatically") class TypeDebugFlags(GFlags): INSTANCE_COUNT = 4 MASK = 7 diff --git a/src/gi-stubs/repository/GSound.pyi b/src/gi-stubs/repository/GSound.pyi index 060cc5b4..cee1d908 100644 --- a/src/gi-stubs/repository/GSound.pyi +++ b/src/gi-stubs/repository/GSound.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GObject diff --git a/src/gi-stubs/repository/GdkPixbuf.pyi b/src/gi-stubs/repository/GdkPixbuf.pyi index 1d827595..3f50be36 100644 --- a/src/gi-stubs/repository/GdkPixbuf.pyi +++ b/src/gi-stubs/repository/GdkPixbuf.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GModule @@ -233,6 +238,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def new_from_file_at_size( cls, filename: str, width: int, height: int ) -> Optional[Pixbuf]: ... + @deprecated("Use `GResource` instead.") @classmethod def new_from_inline(cls, data: Sequence[int], copy_pixels: bool) -> Pixbuf: ... @classmethod @@ -649,6 +655,9 @@ class InterpType(GObject.GEnum): NEAREST = 0 TILES = 1 +@deprecated( + "There is no user of GdkPixbufAlphaMode in GdkPixbuf, and the Xlib utility functions have been split out to their own library, gdk-pixbuf-xlib" +) class PixbufAlphaMode(GObject.GEnum): BILEVEL = 0 FULL = 1 diff --git a/src/gi-stubs/repository/Geoclue.pyi b/src/gi-stubs/repository/Geoclue.pyi index 7e2bef7c..ec0cba44 100644 --- a/src/gi-stubs/repository/Geoclue.pyi +++ b/src/gi-stubs/repository/Geoclue.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/Ggit.pyi b/src/gi-stubs/repository/Ggit.pyi index 26660d2d..5f7b50b0 100644 --- a/src/gi-stubs/repository/Ggit.pyi +++ b/src/gi-stubs/repository/Ggit.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/Gio.pyi b/src/gi-stubs/repository/Gio.pyi index 83bb6238..531931ec 100644 --- a/src/gi-stubs/repository/Gio.pyi +++ b/src/gi-stubs/repository/Gio.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject @@ -193,6 +198,9 @@ def app_info_launch_default_for_uri_async( ) -> None: ... def app_info_launch_default_for_uri_finish(result: AsyncResult) -> bool: ... def app_info_reset_type_associations(content_type: str) -> None: ... +@deprecated( + "Use g_object_new_with_properties() and g_async_initable_init_async() instead. See #GParameter for more information." +) def async_initable_newv_async( object_type: Type, n_parameters: int, @@ -340,6 +348,9 @@ def file_new_tmp_finish(result: AsyncResult) -> Tuple[File, FileIOStream]: ... def file_parse_name(parse_name: str) -> File: ... def icon_deserialize(value: GLib.Variant) -> Optional[Icon]: ... def icon_new_for_string(str: str) -> Icon: ... +@deprecated( + "Use g_object_new_with_properties() and g_initable_init() instead. See #GParameter for more information." +) def initable_newv( object_type: Type, parameters: Sequence[GObject.Parameter], @@ -361,7 +372,11 @@ def io_modules_scan_all_in_directory(dirname: str) -> None: ... def io_modules_scan_all_in_directory_with_scope( dirname: str, scope: IOModuleScope ) -> None: ... +@deprecated( + "You should never call this function, since you don't know how other libraries in your program might be making use of gioscheduler." +) def io_scheduler_cancel_all_jobs() -> None: ... +@deprecated("use #GThreadPool or g_task_run_in_thread()") def io_scheduler_push_job( job_func: Callable[..., bool], io_priority: int, @@ -421,6 +436,7 @@ def resources_open_stream( def resources_register(resource: Resource) -> None: ... def resources_unregister(resource: Resource) -> None: ... def settings_schema_source_get_default() -> Optional[SettingsSchemaSource]: ... +@deprecated("Use g_task_report_error().") def simple_async_report_gerror_in_idle( object: Optional[GObject.Object], callback: Optional[Callable[..., None]], @@ -969,6 +985,9 @@ class Application(GObject.Object, ActionGroup, ActionMap): def send_notification( self, id: Optional[str], notification: Notification ) -> None: ... + @deprecated( + "Use the #GActionMap interface instead. Never ever mix use of this API with use of #GActionMap on the same @application or things will go very badly wrong. This function is known to introduce buggy behaviour (ie: signals not emitted on changes to the action group), so you should really use #GActionMap instead." + ) def set_action_group(self, action_group: Optional[ActionGroup] = None) -> None: ... def set_application_id(self, application_id: Optional[str] = None) -> None: ... def set_default(self) -> None: ... @@ -1101,6 +1120,9 @@ class AsyncInitable(GObject.GInterface): ) -> None: ... def init_finish(self, res: AsyncResult) -> bool: ... def new_finish(self, res: AsyncResult) -> GObject.Object: ... + @deprecated( + "Use g_object_new_with_properties() and g_async_initable_init_async() instead. See #GParameter for more information." + ) @staticmethod def newv_async( object_type: Type, @@ -3155,9 +3177,15 @@ class DataInputStream(BufferedInputStream, Seekable): def read_uint16(self, cancellable: Optional[Cancellable] = None) -> int: ... def read_uint32(self, cancellable: Optional[Cancellable] = None) -> int: ... def read_uint64(self, cancellable: Optional[Cancellable] = None) -> int: ... + @deprecated( + "Use g_data_input_stream_read_upto() instead, which has more consistent behaviour regarding the stop character." + ) def read_until( self, stop_chars: str, cancellable: Optional[Cancellable] = None ) -> Tuple[str, int]: ... + @deprecated( + "Use g_data_input_stream_read_upto_async() instead, which has more consistent behaviour regarding the stop character." + ) def read_until_async( self, stop_chars: str, @@ -3166,6 +3194,9 @@ class DataInputStream(BufferedInputStream, Seekable): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated( + "Use g_data_input_stream_read_upto_finish() instead, which has more consistent behaviour regarding the stop character." + ) def read_until_finish(self, result: AsyncResult) -> Tuple[str, int]: ... def read_upto( self, @@ -3490,6 +3521,9 @@ class DesktopAppInfo(GObject.Object, AppInfo): def new_from_keyfile(cls, key_file: GLib.KeyFile) -> Optional[DesktopAppInfo]: ... @staticmethod def search(search_string: str) -> list[Sequence[str]]: ... + @deprecated( + "do not use this API. Since 2.42 the value of the `XDG_CURRENT_DESKTOP` environment variable will be used." + ) @staticmethod def set_desktop_env(desktop_env: str) -> None: ... @@ -3504,6 +3538,7 @@ class DesktopAppInfoClass(GObject.GPointer): parent_class: GObject.ObjectClass = ... +@deprecated("The #GDesktopAppInfoLookup interface is deprecated and unused by GIO.") class DesktopAppInfoLookup(GObject.GInterface): """ Interface GDesktopAppInfoLookup @@ -3512,6 +3547,7 @@ class DesktopAppInfoLookup(GObject.GInterface): notify (GParam) """ + @deprecated("The #GDesktopAppInfoLookup interface is deprecated and unused by GIO.") def get_default_for_uri_scheme(self, uri_scheme: str) -> Optional[AppInfo]: ... class DesktopAppInfoLookupIface(GObject.GPointer): @@ -3541,6 +3577,7 @@ class Drive(GObject.GInterface): def can_start(self) -> bool: ... def can_start_degraded(self) -> bool: ... def can_stop(self) -> bool: ... + @deprecated("Use g_drive_eject_with_operation() instead.") def eject( self, flags: MountUnmountFlags, @@ -3548,6 +3585,7 @@ class Drive(GObject.GInterface): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("Use g_drive_eject_with_operation_finish() instead.") def eject_finish(self, result: AsyncResult) -> bool: ... def eject_with_operation( self, @@ -3650,12 +3688,14 @@ class DtlsClientConnection(GObject.GInterface): def get_accepted_cas(self) -> list[Sequence[int]]: ... def get_server_identity(self) -> SocketConnectable: ... + @deprecated("Do not attempt to ignore validation errors.") def get_validation_flags(self) -> TlsCertificateFlags: ... @staticmethod def new( base_socket: DatagramBased, server_identity: Optional[SocketConnectable] = None ) -> DtlsClientConnection: ... def set_server_identity(self, identity: SocketConnectable) -> None: ... + @deprecated("Do not attempt to ignore validation errors.") def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ... class DtlsClientConnectionInterface(GObject.GPointer): @@ -3700,6 +3740,9 @@ class DtlsConnection(GObject.GInterface): def get_peer_certificate(self) -> Optional[TlsCertificate]: ... def get_peer_certificate_errors(self) -> TlsCertificateFlags: ... def get_protocol_version(self) -> TlsProtocolVersion: ... + @deprecated( + "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3." + ) def get_rehandshake_mode(self) -> TlsRehandshakeMode: ... def get_require_close_notify(self) -> bool: ... def handshake(self, cancellable: Optional[Cancellable] = None) -> bool: ... @@ -3717,6 +3760,9 @@ class DtlsConnection(GObject.GInterface): def set_certificate(self, certificate: TlsCertificate) -> None: ... def set_database(self, database: Optional[TlsDatabase] = None) -> None: ... def set_interaction(self, interaction: Optional[TlsInteraction] = None) -> None: ... + @deprecated( + "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3." + ) def set_rehandshake_mode(self, mode: TlsRehandshakeMode) -> None: ... def set_require_close_notify(self, require_close_notify: bool) -> None: ... def shutdown( @@ -3950,6 +3996,7 @@ class File(GObject.GInterface): ) -> None: ... def delete_finish(self, result: AsyncResult) -> bool: ... def dup(self) -> File: ... + @deprecated("Use g_file_eject_mountable_with_operation() instead.") def eject_mountable( self, flags: MountUnmountFlags, @@ -3957,6 +4004,7 @@ class File(GObject.GInterface): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("Use g_file_eject_mountable_with_operation_finish() instead.") def eject_mountable_finish(self, result: AsyncResult) -> bool: ... def eject_mountable_with_operation( self, @@ -4388,6 +4436,7 @@ class File(GObject.GInterface): *user_data: Any, ) -> None: ... def trash_finish(self, result: AsyncResult) -> bool: ... + @deprecated("Use g_file_unmount_mountable_with_operation() instead.") def unmount_mountable( self, flags: MountUnmountFlags, @@ -4395,6 +4444,7 @@ class File(GObject.GInterface): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("Use g_file_unmount_mountable_with_operation_finish() instead.") def unmount_mountable_finish(self, result: AsyncResult) -> bool: ... def unmount_mountable_with_operation( self, @@ -4907,6 +4957,9 @@ class FileInfo(GObject.Object): def get_is_hidden(self) -> bool: ... def get_is_symlink(self) -> bool: ... def get_modification_date_time(self) -> Optional[GLib.DateTime]: ... + @deprecated( + "Use g_file_info_get_modification_date_time() instead, as #GTimeVal is deprecated due to the year 2038 problem." + ) def get_modification_time(self) -> GLib.TimeVal: ... def get_name(self) -> str: ... def get_size(self) -> int: ... @@ -4952,6 +5005,9 @@ class FileInfo(GObject.Object): def set_is_hidden(self, is_hidden: bool) -> None: ... def set_is_symlink(self, is_symlink: bool) -> None: ... def set_modification_date_time(self, mtime: GLib.DateTime) -> None: ... + @deprecated( + "Use g_file_info_set_modification_date_time() instead, as #GTimeVal is deprecated due to the year 2038 problem." + ) def set_modification_time(self, mtime: GLib.TimeVal) -> None: ... def set_name(self, name: str) -> None: ... def set_size(self, size: int) -> None: ... @@ -5362,7 +5418,9 @@ class IOModuleScope(GObject.GPointer): def free(self) -> None: ... class IOSchedulerJob(GObject.GPointer): + @deprecated("Use g_main_context_invoke().") def send_to_mainloop(self, func: Callable[..., bool], *user_data: Any) -> bool: ... + @deprecated("Use g_main_context_invoke().") def send_to_mainloop_async( self, func: Callable[..., bool], *user_data: Any ) -> None: ... @@ -5731,6 +5789,9 @@ class Initable(GObject.GInterface): """ def init(self, cancellable: Optional[Cancellable] = None) -> bool: ... + @deprecated( + "Use g_object_new_with_properties() and g_initable_init() instead. See #GParameter for more information." + ) @staticmethod def newv( object_type: Type, @@ -6411,6 +6472,7 @@ class Mount(GObject.GInterface): def can_eject(self) -> bool: ... def can_unmount(self) -> bool: ... + @deprecated("Use g_mount_eject_with_operation() instead.") def eject( self, flags: MountUnmountFlags, @@ -6418,6 +6480,7 @@ class Mount(GObject.GInterface): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("Use g_mount_eject_with_operation_finish() instead.") def eject_finish(self, result: AsyncResult) -> bool: ... def eject_with_operation( self, @@ -6459,6 +6522,7 @@ class Mount(GObject.GInterface): ) -> None: ... def remount_finish(self, result: AsyncResult) -> bool: ... def shadow(self) -> None: ... + @deprecated("Use g_mount_unmount_with_operation() instead.") def unmount( self, flags: MountUnmountFlags, @@ -6466,6 +6530,7 @@ class Mount(GObject.GInterface): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("Use g_mount_unmount_with_operation_finish() instead.") def unmount_finish(self, result: AsyncResult) -> bool: ... def unmount_with_operation( self, @@ -6928,6 +6993,9 @@ class Notification(GObject.Object): def set_icon(self, icon: Icon) -> None: ... def set_priority(self, priority: NotificationPriority) -> None: ... def set_title(self, title: str) -> None: ... + @deprecated( + "Since 2.42, this has been deprecated in favour of g_notification_set_priority()." + ) def set_urgent(self, urgent: bool) -> None: ... class OutputMessage(GObject.GPointer): @@ -8048,6 +8116,7 @@ class Settings(GObject.Object): def get_mapped( self, key: str, mapping: Callable[..., Tuple[bool, None]], *user_data: Any ) -> None: ... + @deprecated("Use g_settings_schema_key_get_range() instead.") def get_range(self, key: str) -> GLib.Variant: ... def get_string(self, key: str) -> str: ... def get_strv(self, key: str) -> list[str]: ... @@ -8058,9 +8127,14 @@ class Settings(GObject.Object): def is_writable(self, name: str) -> bool: ... def keys(self): ... # FIXME Function def list_children(self) -> list[str]: ... + @deprecated("Use g_settings_schema_list_keys() instead.") def list_keys(self) -> list[str]: ... + @deprecated("Use g_settings_schema_source_list_schemas() instead") @staticmethod def list_relocatable_schemas() -> list[str]: ... + @deprecated( + "Use g_settings_schema_source_list_schemas() instead. If you used g_settings_list_schemas() to check for the presence of a particular schema, use g_settings_schema_source_lookup() instead of your whole loop." + ) @staticmethod def list_schemas() -> list[str]: ... @classmethod @@ -8080,6 +8154,7 @@ class Settings(GObject.Object): ) -> Settings: ... @classmethod def new_with_path(cls, schema_id: str, path: str) -> Settings: ... + @deprecated("Use g_settings_schema_key_range_check() instead.") def range_check(self, key: str, value: GLib.Variant) -> bool: ... def reset(self, key: str) -> None: ... def revert(self) -> None: ... @@ -8307,11 +8382,15 @@ class SimpleActionGroup(GObject.Object, ActionGroup, ActionMap): parent_instance: GObject.Object = ... priv: SimpleActionGroupPrivate = ... + @deprecated("Use g_action_map_add_action_entries()") def add_entries(self, entries: Sequence[ActionEntry], user_data: None) -> None: ... + @deprecated("Use g_action_map_add_action()") def insert(self, action: Action) -> None: ... + @deprecated("Use g_action_map_lookup_action()") def lookup(self, action_name: str) -> Action: ... @classmethod def new(cls) -> SimpleActionGroup: ... + @deprecated("Use g_action_map_remove_action()") def remove(self, action_name: str) -> None: ... class SimpleActionGroupClass(GObject.GPointer): @@ -8344,14 +8423,20 @@ class SimpleAsyncResult(GObject.Object, AsyncResult): notify (GParam) """ + @deprecated("Use #GTask instead.") def complete(self) -> None: ... + @deprecated("Use #GTask instead.") def complete_in_idle(self) -> None: ... + @deprecated("Use #GTask and g_task_propagate_boolean() instead.") def get_op_res_gboolean(self) -> bool: ... + @deprecated("Use #GTask and g_task_propagate_int() instead.") def get_op_res_gssize(self) -> int: ... + @deprecated("Use #GTask and g_task_is_valid() instead.") @staticmethod def is_valid( result: AsyncResult, source: Optional[GObject.Object], source_tag: None ) -> bool: ... + @deprecated("Use g_task_new() instead.") @classmethod def new( cls, @@ -8360,6 +8445,7 @@ class SimpleAsyncResult(GObject.Object, AsyncResult): source_tag: None, *user_data: Any, ) -> SimpleAsyncResult: ... + @deprecated("Use g_task_new() and g_task_return_error() instead.") @classmethod def new_from_error( cls, @@ -8368,13 +8454,19 @@ class SimpleAsyncResult(GObject.Object, AsyncResult): error: GLib.Error, *user_data: Any, ) -> SimpleAsyncResult: ... + @deprecated("Use #GTask instead.") def propagate_error(self) -> bool: ... + @deprecated("Use #GTask instead.") def set_check_cancellable( self, check_cancellable: Optional[Cancellable] = None ) -> None: ... + @deprecated("Use #GTask and g_task_return_error() instead.") def set_from_error(self, error: GLib.Error) -> None: ... + @deprecated("This method is deprecated") def set_handle_cancellation(self, handle_cancellation: bool) -> None: ... + @deprecated("Use #GTask and g_task_return_boolean() instead.") def set_op_res_gboolean(self, op_res: bool) -> None: ... + @deprecated("Use #GTask and g_task_return_int() instead.") def set_op_res_gssize(self, op_res: int) -> None: ... class SimpleAsyncResultClass(GObject.GPointer): ... @@ -8966,6 +9058,7 @@ class SocketClient(GObject.Object): def get_socket_type(self) -> SocketType: ... def get_timeout(self) -> int: ... def get_tls(self) -> bool: ... + @deprecated("Do not attempt to ignore validation errors.") def get_tls_validation_flags(self) -> TlsCertificateFlags: ... @classmethod def new(cls) -> SocketClient: ... @@ -8979,6 +9072,7 @@ class SocketClient(GObject.Object): def set_socket_type(self, type: SocketType) -> None: ... def set_timeout(self, timeout: int) -> None: ... def set_tls(self, tls: bool) -> None: ... + @deprecated("Do not attempt to ignore validation errors.") def set_tls_validation_flags(self, flags: TlsCertificateFlags) -> None: ... class SocketClientClass(GObject.GPointer): @@ -10034,14 +10128,18 @@ class TlsClientConnection(GObject.GInterface): def copy_session_state(self, source: TlsClientConnection) -> None: ... def get_accepted_cas(self) -> list[Sequence[int]]: ... def get_server_identity(self) -> Optional[SocketConnectable]: ... + @deprecated("SSL 3.0 is insecure.") def get_use_ssl3(self) -> bool: ... + @deprecated("Do not attempt to ignore validation errors.") def get_validation_flags(self) -> TlsCertificateFlags: ... @staticmethod def new( base_io_stream: IOStream, server_identity: Optional[SocketConnectable] = None ) -> TlsClientConnection: ... def set_server_identity(self, identity: SocketConnectable) -> None: ... + @deprecated("SSL 3.0 is insecure.") def set_use_ssl3(self, use_ssl3: bool) -> None: ... + @deprecated("Do not attempt to ignore validation errors.") def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ... class TlsClientConnectionInterface(GObject.GPointer): @@ -10170,8 +10268,12 @@ class TlsConnection(IOStream): def get_peer_certificate(self) -> Optional[TlsCertificate]: ... def get_peer_certificate_errors(self) -> TlsCertificateFlags: ... def get_protocol_version(self) -> TlsProtocolVersion: ... + @deprecated( + "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3." + ) def get_rehandshake_mode(self) -> TlsRehandshakeMode: ... def get_require_close_notify(self) -> bool: ... + @deprecated("Use g_tls_connection_get_database() instead") def get_use_system_certdb(self) -> bool: ... def handshake(self, cancellable: Optional[Cancellable] = None) -> bool: ... def handshake_async( @@ -10188,8 +10290,12 @@ class TlsConnection(IOStream): def set_certificate(self, certificate: TlsCertificate) -> None: ... def set_database(self, database: Optional[TlsDatabase] = None) -> None: ... def set_interaction(self, interaction: Optional[TlsInteraction] = None) -> None: ... + @deprecated( + "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3." + ) def set_rehandshake_mode(self, mode: TlsRehandshakeMode) -> None: ... def set_require_close_notify(self, require_close_notify: bool) -> None: ... + @deprecated("Use g_tls_connection_set_database() instead") def set_use_system_certdb(self, use_system_certdb: bool) -> None: ... class TlsConnectionClass(GObject.GPointer): @@ -10991,8 +11097,10 @@ class UnixMountMonitor(GObject.Object): @staticmethod def get() -> UnixMountMonitor: ... + @deprecated("Use g_unix_mount_monitor_get() instead.") @classmethod def new(cls) -> UnixMountMonitor: ... + @deprecated("This function does nothing. Don't call it.") def set_rate_limit(self, limit_msec: int) -> None: ... class UnixMountMonitorClass(GObject.GPointer): ... @@ -11117,11 +11225,13 @@ class UnixSocketAddress(SocketAddress, SocketConnectable): @staticmethod def abstract_names_supported() -> bool: ... def get_address_type(self) -> UnixSocketAddressType: ... + @deprecated("Use g_unix_socket_address_get_address_type()") def get_is_abstract(self) -> bool: ... def get_path(self) -> str: ... def get_path_len(self) -> int: ... @classmethod def new(cls, path: str) -> UnixSocketAddress: ... + @deprecated("Use g_unix_socket_address_new_with_type().") @classmethod def new_abstract(cls, path: Sequence[int]) -> UnixSocketAddress: ... @classmethod @@ -11252,6 +11362,7 @@ class Volume(GObject.GInterface): def can_eject(self) -> bool: ... def can_mount(self) -> bool: ... + @deprecated("Use g_volume_eject_with_operation() instead.") def eject( self, flags: MountUnmountFlags, @@ -11259,6 +11370,7 @@ class Volume(GObject.GInterface): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("Use g_volume_eject_with_operation_finish() instead.") def eject_finish(self, result: AsyncResult) -> bool: ... def eject_with_operation( self, @@ -11352,6 +11464,9 @@ class VolumeMonitor(GObject.Object): parent_instance: GObject.Object = ... priv: None = ... + @deprecated( + "Instead of using this function, #GVolumeMonitor implementations should instead create shadow mounts with the URI of the mount they intend to adopt. See the proxy volume monitor in gvfs for an example of this. Also see g_mount_is_shadowed(), g_mount_shadow() and g_mount_unshadow() functions." + ) @staticmethod def adopt_orphan_mount(mount: Mount) -> Volume: ... def do_drive_changed(self, drive: Drive) -> None: ... @@ -12121,6 +12236,9 @@ class TlsProtocolVersion(GObject.GEnum): TLS_1_3 = 5 UNKNOWN = 0 +@deprecated( + "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3." +) class TlsRehandshakeMode(GObject.GEnum): NEVER = 0 SAFELY = 1 diff --git a/src/gi-stubs/repository/Goa.pyi b/src/gi-stubs/repository/Goa.pyi index 0c94854b..c04fe5fc 100644 --- a/src/gi-stubs/repository/Goa.pyi +++ b/src/gi-stubs/repository/Goa.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject @@ -38,7 +43,9 @@ def contacts_interface_info() -> Gio.DBusInterfaceInfo: ... def contacts_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") def documents_interface_info() -> Gio.DBusInterfaceInfo: ... +@deprecated("The D-Bus interface has been deprecated.") def documents_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... @@ -59,7 +66,9 @@ def manager_interface_info() -> Gio.DBusInterfaceInfo: ... def manager_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") def maps_interface_info() -> Gio.DBusInterfaceInfo: ... +@deprecated("The D-Bus interface has been deprecated.") def maps_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... @@ -91,7 +100,9 @@ def printers_interface_info() -> Gio.DBusInterfaceInfo: ... def printers_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") def read_later_interface_info() -> Gio.DBusInterfaceInfo: ... +@deprecated("The D-Bus interface has been deprecated.") def read_later_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... @@ -99,7 +110,9 @@ def ticketing_interface_info() -> Gio.DBusInterfaceInfo: ... def ticketing_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") def todo_interface_info() -> Gio.DBusInterfaceInfo: ... +@deprecated("The D-Bus interface has been deprecated.") def todo_override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... @@ -1109,6 +1122,7 @@ class ContactsSkeletonClass(GObject.GPointer): class ContactsSkeletonPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class Documents(GObject.GInterface): """ Interface GoaDocuments @@ -1117,13 +1131,16 @@ class Documents(GObject.GInterface): notify (GParam) """ + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def interface_info() -> Gio.DBusInterfaceInfo: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") class DocumentsIface(GObject.GPointer): """ :Constructors: @@ -1135,6 +1152,7 @@ class DocumentsIface(GObject.GPointer): parent_iface: GObject.TypeInterface = ... +@deprecated("The D-Bus interface has been deprecated.") class DocumentsProxy( Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, Documents ): @@ -1203,6 +1221,7 @@ class DocumentsProxy( g_name: str = ..., g_object_path: str = ..., ): ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new( connection: Gio.DBusConnection, @@ -1213,8 +1232,10 @@ class DocumentsProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_finish(cls, res: Gio.AsyncResult) -> DocumentsProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new_for_bus( bus_type: Gio.BusType, @@ -1225,8 +1246,10 @@ class DocumentsProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_finish(cls, res: Gio.AsyncResult) -> DocumentsProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_sync( cls, @@ -1236,6 +1259,7 @@ class DocumentsProxy( object_path: str, cancellable: Optional[Gio.Cancellable] = None, ) -> DocumentsProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_sync( cls, @@ -1246,6 +1270,7 @@ class DocumentsProxy( cancellable: Optional[Gio.Cancellable] = None, ) -> DocumentsProxy: ... +@deprecated("The D-Bus interface has been deprecated.") class DocumentsProxyClass(GObject.GPointer): """ :Constructors: @@ -1259,6 +1284,7 @@ class DocumentsProxyClass(GObject.GPointer): class DocumentsProxyPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class DocumentsSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Documents): """ :Constructors: @@ -1287,9 +1313,11 @@ class DocumentsSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Documents) parent_instance: Gio.DBusInterfaceSkeleton = ... priv: DocumentsSkeletonPrivate = ... def __init__(self, g_flags: Gio.DBusInterfaceSkeletonFlags = ...): ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new(cls) -> DocumentsSkeleton: ... +@deprecated("The D-Bus interface has been deprecated.") class DocumentsSkeletonClass(GObject.GPointer): """ :Constructors: @@ -2253,6 +2281,7 @@ class ManagerSkeletonClass(GObject.GPointer): class ManagerSkeletonPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class Maps(GObject.GInterface): """ Interface GoaMaps @@ -2261,13 +2290,16 @@ class Maps(GObject.GInterface): notify (GParam) """ + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def interface_info() -> Gio.DBusInterfaceInfo: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") class MapsIface(GObject.GPointer): """ :Constructors: @@ -2279,6 +2311,7 @@ class MapsIface(GObject.GPointer): parent_iface: GObject.TypeInterface = ... +@deprecated("The D-Bus interface has been deprecated.") class MapsProxy( Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, Maps ): @@ -2347,6 +2380,7 @@ class MapsProxy( g_name: str = ..., g_object_path: str = ..., ): ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new( connection: Gio.DBusConnection, @@ -2357,8 +2391,10 @@ class MapsProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_finish(cls, res: Gio.AsyncResult) -> MapsProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new_for_bus( bus_type: Gio.BusType, @@ -2369,8 +2405,10 @@ class MapsProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_finish(cls, res: Gio.AsyncResult) -> MapsProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_sync( cls, @@ -2380,6 +2418,7 @@ class MapsProxy( object_path: str, cancellable: Optional[Gio.Cancellable] = None, ) -> MapsProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_sync( cls, @@ -2390,6 +2429,7 @@ class MapsProxy( cancellable: Optional[Gio.Cancellable] = None, ) -> MapsProxy: ... +@deprecated("The D-Bus interface has been deprecated.") class MapsProxyClass(GObject.GPointer): """ :Constructors: @@ -2403,6 +2443,7 @@ class MapsProxyClass(GObject.GPointer): class MapsProxyPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class MapsSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Maps): """ :Constructors: @@ -2431,9 +2472,11 @@ class MapsSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Maps): parent_instance: Gio.DBusInterfaceSkeleton = ... priv: MapsSkeletonPrivate = ... def __init__(self, g_flags: Gio.DBusInterfaceSkeletonFlags = ...): ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new(cls) -> MapsSkeleton: ... +@deprecated("The D-Bus interface has been deprecated.") class MapsSkeletonClass(GObject.GPointer): """ :Constructors: @@ -3326,11 +3369,13 @@ class Object(GObject.GInterface): def get_calendar(self) -> Optional[Calendar]: ... def get_chat(self) -> Optional[Chat]: ... def get_contacts(self) -> Optional[Contacts]: ... + @deprecated("The D-Bus interface has been deprecated.") def get_documents(self) -> Optional[Documents]: ... def get_exchange(self) -> Optional[Exchange]: ... def get_files(self) -> Optional[Files]: ... def get_mail(self) -> Optional[Mail]: ... def get_manager(self) -> Optional[Manager]: ... + @deprecated("The D-Bus interface has been deprecated.") def get_maps(self) -> Optional[Maps]: ... def get_media_server(self) -> Optional[MediaServer]: ... def get_music(self) -> Optional[Music]: ... @@ -3339,8 +3384,10 @@ class Object(GObject.GInterface): def get_password_based(self) -> Optional[PasswordBased]: ... def get_photos(self) -> Optional[Photos]: ... def get_printers(self) -> Optional[Printers]: ... + @deprecated("The D-Bus interface has been deprecated.") def get_read_later(self) -> Optional[ReadLater]: ... def get_ticketing(self) -> Optional[Ticketing]: ... + @deprecated("The D-Bus interface has been deprecated.") def get_todo(self) -> Optional[Todo]: ... class ObjectIface(GObject.GPointer): @@ -3678,11 +3725,13 @@ class ObjectSkeleton(Gio.DBusObjectSkeleton, Gio.DBusObject, Object): def set_calendar(self, interface_: Optional[Calendar] = None) -> None: ... def set_chat(self, interface_: Optional[Chat] = None) -> None: ... def set_contacts(self, interface_: Optional[Contacts] = None) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") def set_documents(self, interface_: Optional[Documents] = None) -> None: ... def set_exchange(self, interface_: Optional[Exchange] = None) -> None: ... def set_files(self, interface_: Optional[Files] = None) -> None: ... def set_mail(self, interface_: Optional[Mail] = None) -> None: ... def set_manager(self, interface_: Optional[Manager] = None) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") def set_maps(self, interface_: Optional[Maps] = None) -> None: ... def set_media_server(self, interface_: Optional[MediaServer] = None) -> None: ... def set_music(self, interface_: Optional[Music] = None) -> None: ... @@ -3693,8 +3742,10 @@ class ObjectSkeleton(Gio.DBusObjectSkeleton, Gio.DBusObject, Object): ) -> None: ... def set_photos(self, interface_: Optional[Photos] = None) -> None: ... def set_printers(self, interface_: Optional[Printers] = None) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") def set_read_later(self, interface_: Optional[ReadLater] = None) -> None: ... def set_ticketing(self, interface_: Optional[Ticketing] = None) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") def set_todo(self, interface_: Optional[Todo] = None) -> None: ... class ObjectSkeletonClass(GObject.GPointer): @@ -4317,6 +4368,7 @@ class PrintersSkeletonClass(GObject.GPointer): class PrintersSkeletonPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class ReadLater(GObject.GInterface): """ Interface GoaReadLater @@ -4325,13 +4377,16 @@ class ReadLater(GObject.GInterface): notify (GParam) """ + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def interface_info() -> Gio.DBusInterfaceInfo: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") class ReadLaterIface(GObject.GPointer): """ :Constructors: @@ -4343,6 +4398,7 @@ class ReadLaterIface(GObject.GPointer): parent_iface: GObject.TypeInterface = ... +@deprecated("The D-Bus interface has been deprecated.") class ReadLaterProxy( Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, ReadLater ): @@ -4411,6 +4467,7 @@ class ReadLaterProxy( g_name: str = ..., g_object_path: str = ..., ): ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new( connection: Gio.DBusConnection, @@ -4421,8 +4478,10 @@ class ReadLaterProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_finish(cls, res: Gio.AsyncResult) -> ReadLaterProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new_for_bus( bus_type: Gio.BusType, @@ -4433,8 +4492,10 @@ class ReadLaterProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_finish(cls, res: Gio.AsyncResult) -> ReadLaterProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_sync( cls, @@ -4444,6 +4505,7 @@ class ReadLaterProxy( object_path: str, cancellable: Optional[Gio.Cancellable] = None, ) -> ReadLaterProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_sync( cls, @@ -4454,6 +4516,7 @@ class ReadLaterProxy( cancellable: Optional[Gio.Cancellable] = None, ) -> ReadLaterProxy: ... +@deprecated("The D-Bus interface has been deprecated.") class ReadLaterProxyClass(GObject.GPointer): """ :Constructors: @@ -4467,6 +4530,7 @@ class ReadLaterProxyClass(GObject.GPointer): class ReadLaterProxyPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class ReadLaterSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, ReadLater): """ :Constructors: @@ -4495,9 +4559,11 @@ class ReadLaterSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, ReadLater) parent_instance: Gio.DBusInterfaceSkeleton = ... priv: ReadLaterSkeletonPrivate = ... def __init__(self, g_flags: Gio.DBusInterfaceSkeletonFlags = ...): ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new(cls) -> ReadLaterSkeleton: ... +@deprecated("The D-Bus interface has been deprecated.") class ReadLaterSkeletonClass(GObject.GPointer): """ :Constructors: @@ -4729,6 +4795,7 @@ class TicketingSkeletonClass(GObject.GPointer): class TicketingSkeletonPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class Todo(GObject.GInterface): """ Interface GoaTodo @@ -4737,13 +4804,16 @@ class Todo(GObject.GInterface): notify (GParam) """ + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def interface_info() -> Gio.DBusInterfaceInfo: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def override_properties( klass: GObject.ObjectClass, property_id_begin: int ) -> int: ... +@deprecated("The D-Bus interface has been deprecated.") class TodoIface(GObject.GPointer): """ :Constructors: @@ -4755,6 +4825,7 @@ class TodoIface(GObject.GPointer): parent_iface: GObject.TypeInterface = ... +@deprecated("The D-Bus interface has been deprecated.") class TodoProxy( Gio.DBusProxy, Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, Todo ): @@ -4823,6 +4894,7 @@ class TodoProxy( g_name: str = ..., g_object_path: str = ..., ): ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new( connection: Gio.DBusConnection, @@ -4833,8 +4905,10 @@ class TodoProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_finish(cls, res: Gio.AsyncResult) -> TodoProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @staticmethod def new_for_bus( bus_type: Gio.BusType, @@ -4845,8 +4919,10 @@ class TodoProxy( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_finish(cls, res: Gio.AsyncResult) -> TodoProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_for_bus_sync( cls, @@ -4856,6 +4932,7 @@ class TodoProxy( object_path: str, cancellable: Optional[Gio.Cancellable] = None, ) -> TodoProxy: ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new_sync( cls, @@ -4866,6 +4943,7 @@ class TodoProxy( cancellable: Optional[Gio.Cancellable] = None, ) -> TodoProxy: ... +@deprecated("The D-Bus interface has been deprecated.") class TodoProxyClass(GObject.GPointer): """ :Constructors: @@ -4879,6 +4957,7 @@ class TodoProxyClass(GObject.GPointer): class TodoProxyPrivate(GObject.GPointer): ... +@deprecated("The D-Bus interface has been deprecated.") class TodoSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Todo): """ :Constructors: @@ -4907,9 +4986,11 @@ class TodoSkeleton(Gio.DBusInterfaceSkeleton, Gio.DBusInterface, Todo): parent_instance: Gio.DBusInterfaceSkeleton = ... priv: TodoSkeletonPrivate = ... def __init__(self, g_flags: Gio.DBusInterfaceSkeletonFlags = ...): ... + @deprecated("The D-Bus interface has been deprecated.") @classmethod def new(cls) -> TodoSkeleton: ... +@deprecated("The D-Bus interface has been deprecated.") class TodoSkeletonClass(GObject.GPointer): """ :Constructors: diff --git a/src/gi-stubs/repository/Graphene.pyi b/src/gi-stubs/repository/Graphene.pyi index 82d7e94a..cdd045b7 100644 --- a/src/gi-stubs/repository/Graphene.pyi +++ b/src/gi-stubs/repository/Graphene.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GObject PI: float = 3.141593 @@ -496,8 +501,10 @@ class Rect(GObject.GBoxed): def normalize_r(self) -> Rect: ... def offset(self, d_x: float, d_y: float) -> Rect: ... def offset_r(self, d_x: float, d_y: float) -> Rect: ... + @deprecated("Use graphene_rect_round_extents() instead") def round(self) -> Rect: ... def round_extents(self) -> Rect: ... + @deprecated("Use graphene_rect_round() instead") def round_to_pixel(self) -> Rect: ... def scale(self, s_h: float, s_v: float) -> Rect: ... def union(self, b: Rect) -> Rect: ... diff --git a/src/gi-stubs/repository/Gsk.pyi b/src/gi-stubs/repository/Gsk.pyi index ee849f0f..6fbc9f94 100644 --- a/src/gi-stubs/repository/Gsk.pyi +++ b/src/gi-stubs/repository/Gsk.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + import cairo from gi.repository import Gdk from gi.repository import GLib @@ -492,6 +497,7 @@ class NglRenderer(Renderer): realized: bool surface: Optional[Gdk.Surface] props: Props = ... + @deprecated("Use gsk_gl_renderer_new()") @classmethod def new(cls) -> NglRenderer: ... diff --git a/src/gi-stubs/repository/Gspell.pyi b/src/gi-stubs/repository/Gspell.pyi index 2b205b01..d56e7d79 100644 --- a/src/gi-stubs/repository/Gspell.pyi +++ b/src/gi-stubs/repository/Gspell.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Atk from gi.repository import Gdk from gi.repository import GdkPixbuf diff --git a/src/gi-stubs/repository/Gst.pyi b/src/gi-stubs/repository/Gst.pyi index f479ce74..e116a417 100644 --- a/src/gi-stubs/repository/Gst.pyi +++ b/src/gi-stubs/repository/Gst.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject @@ -411,6 +416,7 @@ def type_find_register( def type_is_plugin_api(type: Type) -> Tuple[bool, PluginAPIFlags]: ... def type_mark_as_plugin_api(type: Type, flags: PluginAPIFlags) -> None: ... def update_registry() -> bool: ... +@deprecated("Use GstURI instead.") def uri_construct(protocol: str, location: str) -> str: ... def uri_error_quark() -> int: ... def uri_from_string(uri: str) -> Optional[Uri]: ... @@ -1675,6 +1681,7 @@ class DebugCategory(GObject.GPointer): color: int = ... name: str = ... description: str = ... + @deprecated("This function can easily cause memory corruption, don't use it.") def free(self) -> None: ... def get_color(self) -> int: ... def get_description(self) -> str: ... @@ -2119,6 +2126,9 @@ class Element(Object): def get_metadata(self, key: str) -> str: ... def get_pad_template(self, name: str) -> Optional[PadTemplate]: ... def get_pad_template_list(self) -> list[PadTemplate]: ... + @deprecated( + "Prefer using gst_element_request_pad_simple() which provides the exact same functionality." + ) def get_request_pad(self, name: str) -> Optional[Pad]: ... def get_start_time(self) -> int: ... def get_state(self, timeout: int) -> Tuple[StateChangeReturn, State, State]: ... @@ -2602,6 +2612,7 @@ class GhostPad(ProxyPad): def activate_mode_default( pad: Pad, parent: Optional[Object], mode: PadMode, active: bool ) -> bool: ... + @deprecated("This function is deprecated since 1.18 and does nothing anymore.") def construct(self) -> bool: ... def get_target(self) -> Optional[Pad]: ... @staticmethod @@ -3182,6 +3193,9 @@ class Object(GObject.InitiallyUnowned): def get_path_string(self) -> str: ... def get_value(self, property_name: str, timestamp: int) -> Optional[Any]: ... def has_active_control_bindings(self) -> bool: ... + @deprecated( + "Use gst_object_has_as_ancestor() instead. MT safe. Grabs and releases @object's locks." + ) def has_ancestor(self, ancestor: Object) -> bool: ... def has_as_ancestor(self, ancestor: Object) -> bool: ... def has_as_parent(self, parent: Object) -> bool: ... @@ -4452,6 +4466,7 @@ class Segment(GObject.GBoxed): self, format: Format, stream_time: int ) -> Tuple[int, int]: ... def set_running_time(self, format: Format, running_time: int) -> bool: ... + @deprecated("Use gst_segment_position_from_running_time() instead.") def to_position(self, format: Format, running_time: int) -> int: ... def to_running_time(self, format: Format, position: int) -> int: ... def to_running_time_full( @@ -5385,6 +5400,7 @@ class Uri(GObject.GBoxed): def append_path(self, relative_path: Optional[str] = None) -> bool: ... def append_path_segment(self, path_segment: Optional[str] = None) -> bool: ... + @deprecated("Use GstURI instead.") @staticmethod def construct(protocol: str, location: str) -> str: ... def equal(self, second: Uri) -> bool: ... diff --git a/src/gi-stubs/repository/GstSdp.pyi b/src/gi-stubs/repository/GstSdp.pyi index 741f71e7..287a3a08 100644 --- a/src/gi-stubs/repository/GstSdp.pyi +++ b/src/gi-stubs/repository/GstSdp.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject from gi.repository import Gst diff --git a/src/gi-stubs/repository/GstWebRTC.pyi b/src/gi-stubs/repository/GstWebRTC.pyi index a0950c4a..81b30845 100644 --- a/src/gi-stubs/repository/GstWebRTC.pyi +++ b/src/gi-stubs/repository/GstWebRTC.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject from gi.repository import Gst diff --git a/src/gi-stubs/repository/Handy.pyi b/src/gi-stubs/repository/Handy.pyi index c6d9409f..d889a87a 100644 --- a/src/gi-stubs/repository/Handy.pyi +++ b/src/gi-stubs/repository/Handy.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Atk from gi.repository import Gdk from gi.repository import GdkPixbuf @@ -1107,6 +1112,7 @@ class Avatar(Gtk.DrawingArea, Atk.ImplementorIface, Gtk.Buildable): @classmethod def new(cls, size: int, text: Optional[str], show_initials: bool) -> Avatar: ... def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... + @deprecated("use [method@Avatar.set_loadable_icon] instead.") def set_image_load_func( self, load_image: Optional[Callable[..., Optional[GdkPixbuf.Pixbuf]]] = None, @@ -7282,6 +7288,7 @@ class StyleManagerClass(GObject.GPointer): parent_class: GObject.ObjectClass = ... +@deprecated("This class is deprecated") class SwipeGroup(GObject.Object, Gtk.Buildable): """ :Constructors: @@ -7297,10 +7304,14 @@ class SwipeGroup(GObject.Object, Gtk.Buildable): notify (GParam) """ + @deprecated("This method is deprecated") def add_swipeable(self, swipeable: Swipeable) -> None: ... + @deprecated("This method is deprecated") def get_swipeables(self) -> list[Swipeable]: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> SwipeGroup: ... + @deprecated("This method is deprecated") def remove_swipeable(self, swipeable: Swipeable) -> None: ... class SwipeGroupClass(GObject.GPointer): @@ -8213,6 +8224,7 @@ class TabViewClass(GObject.GPointer): parent_class: Gtk.BinClass = ... +@deprecated("This class is deprecated") class TitleBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): """ :Constructors: @@ -8485,9 +8497,12 @@ class TitleBar(Gtk.Bin, Atk.ImplementorIface, Gtk.Buildable): visible: bool = ..., width_request: int = ..., ): ... + @deprecated("This method is deprecated") def get_selection_mode(self) -> bool: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> TitleBar: ... + @deprecated("This method is deprecated") def set_selection_mode(self, selection_mode: bool) -> None: ... class TitleBarClass(GObject.GPointer): diff --git a/src/gi-stubs/repository/Manette.pyi b/src/gi-stubs/repository/Manette.pyi index 11a2c444..e4e3eee3 100644 --- a/src/gi-stubs/repository/Manette.pyi +++ b/src/gi-stubs/repository/Manette.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GObject diff --git a/src/gi-stubs/repository/Notify.pyi b/src/gi-stubs/repository/Notify.pyi index e05e7287..25e99d94 100644 --- a/src/gi-stubs/repository/Notify.pyi +++ b/src/gi-stubs/repository/Notify.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GdkPixbuf from gi.repository import GLib from gi.repository import GObject @@ -94,12 +99,19 @@ class Notification(GObject.Object): def set_app_name(self, app_name: Optional[str] = None) -> None: ... def set_category(self, category: str) -> None: ... def set_hint(self, key: str, value: Optional[GLib.Variant] = None) -> None: ... + @deprecated("Use [method@Notification.set_hint] instead") def set_hint_byte(self, key: str, value: int) -> None: ... + @deprecated("Use [method@Notification.set_hint] instead") def set_hint_byte_array(self, key: str, value: Sequence[int]) -> None: ... + @deprecated("Use [method@Notification.set_hint] instead") def set_hint_double(self, key: str, value: float) -> None: ... + @deprecated("Use [method@Notification.set_hint] instead") def set_hint_int32(self, key: str, value: int) -> None: ... + @deprecated("Use [method@Notification.set_hint] instead") def set_hint_string(self, key: str, value: str) -> None: ... + @deprecated("Use [method@Notification.set_hint] instead") def set_hint_uint32(self, key: str, value: int) -> None: ... + @deprecated("Use [method@Notification.set_image_from_pixbuf] instead.") def set_icon_from_pixbuf(self, icon: GdkPixbuf.Pixbuf) -> None: ... def set_image_from_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ... def set_timeout(self, timeout: int) -> None: ... diff --git a/src/gi-stubs/repository/OSTree.pyi b/src/gi-stubs/repository/OSTree.pyi index 4f7f1c38..dd3106de 100644 --- a/src/gi-stubs/repository/OSTree.pyi +++ b/src/gi-stubs/repository/OSTree.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/Panel.pyi b/src/gi-stubs/repository/Panel.pyi index 9c962556..dd6c8aee 100644 --- a/src/gi-stubs/repository/Panel.pyi +++ b/src/gi-stubs/repository/Panel.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Adw from gi.repository import Gdk from gi.repository import Gio diff --git a/src/gi-stubs/repository/Pango.pyi b/src/gi-stubs/repository/Pango.pyi index f6234027..d2030e19 100644 --- a/src/gi-stubs/repository/Pango.pyi +++ b/src/gi-stubs/repository/Pango.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject @@ -82,6 +87,7 @@ def attr_variant_new(variant: Variant) -> Attribute: ... def attr_weight_new(weight: Weight) -> Attribute: ... def attr_word_new() -> Attribute: ... def bidi_type_for_unichar(ch: str) -> BidiType: ... +@deprecated("This function is deprecated") def break_( text: str, length: int, analysis: Analysis, attrs: Sequence[LogAttr] ) -> None: ... @@ -97,6 +103,9 @@ def font_description_from_string(str: str) -> FontDescription: ... def get_log_attrs( text: str, length: int, level: int, language: Language, attrs: Sequence[LogAttr] ) -> None: ... +@deprecated( + "Use [func@GLib.unichar_get_mirror_char] instead; the docs for that function provide full details." +) def get_mirror_char(ch: str, mirrored_ch: str) -> bool: ... def gravity_get_for_matrix(matrix: Optional[Matrix] = None) -> Gravity: ... def gravity_get_for_script( @@ -135,6 +144,7 @@ def markup_parser_finish( context: GLib.MarkupParseContext, ) -> Tuple[bool, AttrList, str, str]: ... def markup_parser_new(accel_marker: str) -> GLib.MarkupParseContext: ... +@deprecated("This function is deprecated") def parse_enum(type: Type, str: Optional[str], warn: bool) -> Tuple[bool, int, str]: ... def parse_markup( markup_text: str, length: int, accel_marker: str @@ -144,11 +154,16 @@ def parse_style(str: str, warn: bool) -> Tuple[bool, Style]: ... def parse_variant(str: str, warn: bool) -> Tuple[bool, Variant]: ... def parse_weight(str: str, warn: bool) -> Tuple[bool, Weight]: ... def quantize_line_geometry() -> Tuple[int, int]: ... +@deprecated("This function is deprecated") def read_line(stream: None, str: GLib.String) -> int: ... def reorder_items(items: list[Item]) -> list[Item]: ... +@deprecated("This function is deprecated") def scan_int() -> Tuple[bool, str, int]: ... +@deprecated("This function is deprecated") def scan_string(out: GLib.String) -> Tuple[bool, str]: ... +@deprecated("This function is deprecated") def scan_word(out: GLib.String) -> Tuple[bool, str]: ... +@deprecated("Use g_unichar_get_script()") def script_for_unichar(ch: str) -> Script: ... def script_get_sample_language(script: Script) -> Optional[Language]: ... def shape(text: str, length: int, analysis: Analysis, glyphs: GlyphString) -> None: ... @@ -177,12 +192,15 @@ def shape_with_flags( glyphs: GlyphString, flags: ShapeFlags, ) -> None: ... +@deprecated("This function is deprecated") def skip_space() -> Tuple[bool, str]: ... +@deprecated("This function is deprecated") def split_file_list(str: str) -> list[str]: ... def tab_array_from_string(text: str) -> Optional[TabArray]: ... def tailor_break( text: str, length: int, analysis: Analysis, offset: int, attrs: Sequence[LogAttr] ) -> None: ... +@deprecated("This function is deprecated") def trim_string(str: str) -> str: ... def unichar_direction(ch: str) -> Direction: ... def units_from_double(d: float) -> int: ... @@ -504,15 +522,20 @@ class Coverage(GObject.Object): """ def copy(self) -> Coverage: ... + @deprecated("This returns %NULL") @staticmethod def from_bytes(bytes: Sequence[int]) -> Optional[Coverage]: ... def get(self, index_: int) -> CoverageLevel: ... + @deprecated("This function does nothing") def max(self, other: Coverage) -> None: ... @classmethod def new(cls) -> Coverage: ... + @deprecated("Use g_object_ref instead") def ref(self) -> Coverage: ... def set(self, index_: int, level: CoverageLevel) -> None: ... + @deprecated("This returns %NULL") def to_bytes(self) -> bytes: ... + @deprecated("Use g_object_unref instead") def unref(self) -> None: ... class Font(GObject.Object): @@ -1509,6 +1532,7 @@ class BaselineShift(GObject.GEnum): SUBSCRIPT = 2 SUPERSCRIPT = 1 +@deprecated("Use fribidi for this information") class BidiType(GObject.GEnum): AL = 4 AN = 11 diff --git a/src/gi-stubs/repository/PangoCairo.pyi b/src/gi-stubs/repository/PangoCairo.pyi index c6c2c177..88f56b7f 100644 --- a/src/gi-stubs/repository/PangoCairo.pyi +++ b/src/gi-stubs/repository/PangoCairo.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + import cairo from gi.repository import GObject from gi.repository import Pango diff --git a/src/gi-stubs/repository/Rsvg.pyi b/src/gi-stubs/repository/Rsvg.pyi index 625292b5..d28e0d8f 100644 --- a/src/gi-stubs/repository/Rsvg.pyi +++ b/src/gi-stubs/repository/Rsvg.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GdkPixbuf from gi.repository import Gio from gi.repository import GObject @@ -19,26 +24,52 @@ _lock = ... # FIXME Constant _namespace: str = "Rsvg" _version: str = "2.0" +@deprecated("No-op. This function should not be called from normal programs.") def cleanup() -> None: ... def error_quark() -> int: ... +@deprecated("There is no need to initialize librsvg.") def init() -> None: ... +@deprecated( + "Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead." +) def pixbuf_from_file(filename: str) -> Optional[GdkPixbuf.Pixbuf]: ... +@deprecated( + "Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead." +) def pixbuf_from_file_at_max_size( filename: str, max_width: int, max_height: int ) -> Optional[GdkPixbuf.Pixbuf]: ... +@deprecated( + "Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead." +) def pixbuf_from_file_at_size( filename: str, width: int, height: int ) -> Optional[GdkPixbuf.Pixbuf]: ... +@deprecated( + "Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead." +) def pixbuf_from_file_at_zoom( filename: str, x_zoom: float, y_zoom: float ) -> Optional[GdkPixbuf.Pixbuf]: ... +@deprecated( + "Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead." +) def pixbuf_from_file_at_zoom_with_max( filename: str, x_zoom: float, y_zoom: float, max_width: int, max_height: int ) -> Optional[GdkPixbuf.Pixbuf]: ... +@deprecated( + "This function used to set a global default DPI. However, it only worked if it was called before any [class@Rsvg.Handle] objects had been created; it would not work after that. To avoid global mutable state, please use [method@Rsvg.Handle.set_dpi] instead." +) def set_default_dpi(dpi: float) -> None: ... +@deprecated( + "This function used to set a global default DPI. However, it only worked if it was called before any [class@Rsvg.Handle] objects had been created; it would not work after that. To avoid global mutable state, please use [method@Rsvg.Handle.set_dpi] instead." +) def set_default_dpi_x_y(dpi_x: float, dpi_y: float) -> None: ... +@deprecated("There is no need to de-initialize librsvg.") def term() -> None: ... - +@deprecated( + "Use [method@Rsvg.Handle.get_intrinsic_size_in_pixels] or [method@Rsvg.Handle.get_geometry_for_layer] instead." +) class DimensionData(GObject.GPointer): """ :Constructors: @@ -108,11 +139,22 @@ class Handle(GObject.Object): dpi_y: float = ..., flags: HandleFlags = ..., ): ... + @deprecated( + "Use [method@Rsvg.Handle.read_stream_sync] or the constructor functions [ctor@Rsvg.Handle.new_from_gfile_sync] or [ctor@Rsvg.Handle.new_from_stream_sync]. See the deprecation notes for [method@Rsvg.Handle.write] for more information." + ) def close(self) -> bool: ... + @deprecated("Use [method@GObject.Object.unref] instead.") def free(self) -> None: ... def get_base_uri(self) -> str: ... + @deprecated( + "Librsvg does not read the metadata/desc/title elements; this function always returns `NULL`." + ) def get_desc(self) -> Optional[str]: ... + @deprecated( + "Use [method@Rsvg.Handle.get_intrinsic_size_in_pixels] instead. This function is deprecated because it is not able to return exact fractional dimensions, only integer pixels." + ) def get_dimensions(self) -> DimensionData: ... + @deprecated("Use [method@Rsvg.Handle.get_geometry_for_layer] instead.") def get_dimensions_sub( self, id: Optional[str] = None ) -> Tuple[bool, DimensionData]: ... @@ -126,14 +168,23 @@ class Handle(GObject.Object): self, ) -> Tuple[bool, Length, bool, Length, bool, Rectangle]: ... def get_intrinsic_size_in_pixels(self) -> Tuple[bool, float, float]: ... + @deprecated( + "Librsvg does not read the metadata/desc/title elements; this function always returns `NULL`." + ) def get_metadata(self) -> Optional[str]: ... def get_pixbuf(self) -> Optional[GdkPixbuf.Pixbuf]: ... def get_pixbuf_sub( self, id: Optional[str] = None ) -> Optional[GdkPixbuf.Pixbuf]: ... + @deprecated( + "Use [method@Rsvg.Handle.get_geometry_for_layer] instead. This function is deprecated since it is not able to return exact floating-point positions, only integer pixels." + ) def get_position_sub( self, id: Optional[str] = None ) -> Tuple[bool, PositionData]: ... + @deprecated( + "Librsvg does not read the metadata/desc/title elements; this function always returns `NULL`." + ) def get_title(self) -> Optional[str]: ... def has_sub(self, id: str) -> bool: ... def internal_set_testing(self, testing: bool) -> None: ... @@ -163,7 +214,13 @@ class Handle(GObject.Object): def read_stream_sync( self, stream: Gio.InputStream, cancellable: Optional[Gio.Cancellable] = None ) -> bool: ... + @deprecated( + "Please use [method@Rsvg.Handle.render_document] instead; that function lets you pass a viewport and obtain a good error message." + ) def render_cairo(self, cr: cairo.Context[_SomeSurface]) -> bool: ... + @deprecated( + "Please use [method@Rsvg.Handle.render_layer] instead; that function lets you pass a viewport and obtain a good error message." + ) def render_cairo_sub( self, cr: cairo.Context[_SomeSurface], id: Optional[str] = None ) -> bool: ... @@ -183,12 +240,18 @@ class Handle(GObject.Object): def set_base_uri(self, base_uri: str) -> None: ... def set_dpi(self, dpi: float) -> None: ... def set_dpi_x_y(self, dpi_x: float, dpi_y: float) -> None: ... + @deprecated( + "Use [method@Rsvg.Handle.render_document] instead. This function was deprecated because when the @size_func is used, it makes it unclear when the librsvg functions which call the @size_func will use the size computed originally, or the callback-specified size, or whether it refers to the whole SVG or to just a sub-element of it. It is easier, and unambiguous, to use code similar to the example above." + ) def set_size_callback( self, size_func: Optional[Callable[..., Tuple[int, int]]] = None, *user_data: Any, ) -> None: ... def set_stylesheet(self, css: Sequence[int]) -> bool: ... + @deprecated( + "Use [method@Rsvg.Handle.read_stream_sync] or the constructor functions [ctor@Rsvg.Handle.new_from_gfile_sync] or [ctor@Rsvg.Handle.new_from_stream_sync]. This function is deprecated because it will accumulate data from the @buf in memory until [method@Rsvg.Handle.close] gets called. To avoid a big temporary buffer, use the suggested functions, which take a `GFile` or a `GInputStream` and do not require a temporary buffer." + ) def write(self, buf: Sequence[int]) -> bool: ... class HandleClass(GObject.GPointer): @@ -215,6 +278,7 @@ class Length(GObject.GPointer): length: float = ... unit: Unit = ... +@deprecated("Use [method@Rsvg.Handle.get_geometry_for_layer] instead.") class PositionData(GObject.GPointer): """ :Constructors: diff --git a/src/gi-stubs/repository/Secret.pyi b/src/gi-stubs/repository/Secret.pyi index 3d19607d..471372aa 100644 --- a/src/gi-stubs/repository/Secret.pyi +++ b/src/gi-stubs/repository/Secret.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/Vte.pyi b/src/gi-stubs/repository/Vte.pyi index 8be057a6..792e1bd7 100644 --- a/src/gi-stubs/repository/Vte.pyi +++ b/src/gi-stubs/repository/Vte.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + import cairo from gi.repository import Atk from gi.repository import Gdk @@ -31,7 +36,9 @@ _lock = ... # FIXME Constant _namespace: str = "Vte" _version: str = "2.91" +@deprecated("This function is deprecated") def get_encoding_supported(encoding: str) -> bool: ... +@deprecated("This function is deprecated") def get_encodings(include_aliases: bool) -> list[str]: ... def get_feature_flags() -> FeatureFlags: ... def get_features() -> str: ... @@ -41,7 +48,7 @@ def get_minor_version() -> int: ... def get_user_shell() -> str: ... def pty_error_quark() -> int: ... def regex_error_quark() -> int: ... - +@deprecated("This class is deprecated") class CharAttributes(GObject.GPointer): """ :Constructors: @@ -85,6 +92,7 @@ class Pty(GObject.Object, Gio.Initable): props: Props = ... def __init__(self, fd: int = ..., flags: PtyFlags = ...): ... def child_setup(self) -> None: ... + @deprecated("This method is deprecated") def close(self) -> None: ... def get_fd(self) -> int: ... def get_size(self) -> Tuple[bool, int, int]: ... @@ -534,6 +542,9 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): vadjustment: Optional[Gtk.Adjustment] = ..., vscroll_policy: Gtk.ScrollablePolicy = ..., ): ... + @deprecated( + "Use vte_terminal_copy_clipboard_format() with %VTE_FORMAT_TEXT instead." + ) def copy_clipboard(self) -> None: ... def copy_clipboard_format(self, format: Format) -> None: ... def copy_primary(self) -> None: ... @@ -565,6 +576,7 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def do_text_modified(self) -> None: ... def do_text_scrolled(self, delta: int) -> None: ... def do_window_title_changed(self) -> None: ... + @deprecated("Use vte_terminal_event_check_regex_simple() instead.") def event_check_gregex_simple( self, event: Gdk.Event, @@ -576,7 +588,11 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): ) -> Optional[list[str]]: ... def feed(self, data: Optional[Sequence[int]] = None) -> None: ... def feed_child(self, text: Optional[Sequence[int]] = None) -> None: ... + @deprecated( + "Don't send binary data. Use vte_terminal_feed_child() instead to send UTF-8 text" + ) def feed_child_binary(self, data: Optional[Sequence[int]] = None) -> None: ... + @deprecated("There's probably no reason for this feature to exist.") def get_allow_bold(self) -> bool: ... def get_allow_hyperlink(self) -> bool: ... def get_audible_bell(self) -> bool: ... @@ -597,16 +613,20 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def get_enable_fallback_scrolling(self) -> bool: ... def get_enable_shaping(self) -> bool: ... def get_enable_sixel(self) -> bool: ... + @deprecated("Support for non-UTF-8 is deprecated.") def get_encoding(self) -> Optional[str]: ... def get_font(self) -> Pango.FontDescription: ... def get_font_options(self) -> Optional[cairo.FontOptions]: ... def get_font_scale(self) -> float: ... + @deprecated("This method is deprecated") def get_geometry_hints(self, min_rows: int, min_columns: int) -> Gdk.Geometry: ... def get_has_selection(self) -> bool: ... + @deprecated("This method is deprecated") def get_icon_title(self) -> Optional[str]: ... def get_input_enabled(self) -> bool: ... def get_mouse_autohide(self) -> bool: ... def get_pty(self) -> Pty: ... + @deprecated("This method is deprecated") def get_rewrap_on_resize(self) -> bool: ... def get_row_count(self) -> int: ... def get_scroll_on_keystroke(self) -> bool: ... @@ -617,6 +637,7 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): self, is_selected: Optional[Callable[..., bool]] = None, *user_data: Any ) -> Tuple[Optional[str], list[CharAttributes]]: ... def get_text_blink_mode(self) -> TextBlinkMode: ... + @deprecated("Use vte_terminal_get_text() instead.") def get_text_include_trailing_spaces( self, is_selected: Optional[Callable[..., bool]] = None, *user_data: Any ) -> Tuple[str, list[CharAttributes]]: ... @@ -637,18 +658,22 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def get_window_title(self) -> Optional[str]: ... def get_word_char_exceptions(self) -> Optional[str]: ... def hyperlink_check_event(self, event: Gdk.Event) -> Optional[str]: ... + @deprecated("Use vte_terminal_match_add_regex() instead.") def match_add_gregex( self, gregex: GLib.Regex, gflags: GLib.RegexMatchFlags ) -> int: ... def match_add_regex(self, regex: Regex, flags: int) -> int: ... + @deprecated("Use vte_terminal_match_check_event() instead.") def match_check(self, column: int, row: int) -> Tuple[Optional[str], int]: ... def match_check_event(self, event: Gdk.Event) -> Tuple[Optional[str], int]: ... def match_remove(self, tag: int) -> None: ... def match_remove_all(self) -> None: ... + @deprecated("Use vte_terminal_match_set_cursor_name() instead.") def match_set_cursor( self, tag: int, cursor: Optional[Gdk.Cursor] = None ) -> None: ... def match_set_cursor_name(self, tag: int, cursor_name: str) -> None: ... + @deprecated("Use vte_terminal_match_set_cursor_name() instead.") def match_set_cursor_type(self, tag: int, cursor_type: Gdk.CursorType) -> None: ... @classmethod def new(cls) -> Terminal: ... @@ -661,15 +686,18 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def reset(self, clear_tabstops: bool, clear_history: bool) -> None: ... def search_find_next(self) -> bool: ... def search_find_previous(self) -> bool: ... + @deprecated("use vte_terminal_search_get_regex() instead.") def search_get_gregex(self) -> GLib.Regex: ... def search_get_regex(self) -> Regex: ... def search_get_wrap_around(self) -> bool: ... + @deprecated("use vte_terminal_search_set_regex() instead.") def search_set_gregex( self, gregex: Optional[GLib.Regex], gflags: GLib.RegexMatchFlags ) -> None: ... def search_set_regex(self, regex: Optional[Regex], flags: int) -> None: ... def search_set_wrap_around(self, wrap_around: bool) -> None: ... def select_all(self) -> None: ... + @deprecated("There's probably no reason for this feature to exist.") def set_allow_bold(self, allow_bold: bool) -> None: ... def set_allow_hyperlink(self, allow_hyperlink: bool) -> None: ... def set_audible_bell(self, is_audible: bool) -> None: ... @@ -708,16 +736,19 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): def set_enable_fallback_scrolling(self, enable: bool) -> None: ... def set_enable_shaping(self, enable_shaping: bool) -> None: ... def set_enable_sixel(self, enabled: bool) -> None: ... + @deprecated("Support for non-UTF-8 is deprecated.") def set_encoding(self, codeset: Optional[str] = None) -> bool: ... def set_font(self, font_desc: Optional[Pango.FontDescription] = None) -> None: ... def set_font_options( self, font_options: Optional[cairo.FontOptions] = None ) -> None: ... def set_font_scale(self, scale: float) -> None: ... + @deprecated("This method is deprecated") def set_geometry_hints_for_window(self, window: Gtk.Window) -> None: ... def set_input_enabled(self, enabled: bool) -> None: ... def set_mouse_autohide(self, setting: bool) -> None: ... def set_pty(self, pty: Optional[Pty] = None) -> None: ... + @deprecated("This method is deprecated") def set_rewrap_on_resize(self, rewrap: bool) -> None: ... def set_scroll_on_keystroke(self, scroll: bool) -> None: ... def set_scroll_on_output(self, scroll: bool) -> None: ... @@ -739,6 +770,7 @@ class Terminal(Gtk.Widget, Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("Use vte_terminal_spawn_async() instead.") def spawn_sync( self, pty_flags: PtyFlags, diff --git a/src/gi-stubs/repository/XApp.pyi b/src/gi-stubs/repository/XApp.pyi index 459e4035..bf2fb1ea 100644 --- a/src/gi-stubs/repository/XApp.pyi +++ b/src/gi-stubs/repository/XApp.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Atk from gi.repository import Gdk from gi.repository import GdkPixbuf diff --git a/src/gi-stubs/repository/Xdp.pyi b/src/gi-stubs/repository/Xdp.pyi index 94f39b43..7646579b 100644 --- a/src/gi-stubs/repository/Xdp.pyi +++ b/src/gi-stubs/repository/Xdp.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/_Gdk3.pyi b/src/gi-stubs/repository/_Gdk3.pyi index 2db448e5..03baed81 100644 --- a/src/gi-stubs/repository/_Gdk3.pyi +++ b/src/gi-stubs/repository/_Gdk3.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + import cairo from gi.repository import GdkPixbuf from gi.repository import Gio @@ -2328,11 +2333,14 @@ _namespace: str = "Gdk" _overrides_module = ... # FIXME Constant _version: str = "3.0" +@deprecated("This symbol was never meant to be used outside of GTK+") def add_option_entries_libgtk_only(group: GLib.OptionGroup) -> None: ... def atom_intern(atom_name: str, only_if_exists: bool) -> Atom: ... def atom_intern_static_string(atom_name: str) -> Atom: ... def beep() -> None: ... - +@deprecated( + "Use gdk_window_begin_draw_frame() and gdk_drawing_context_get_cairo_context() instead" +) # override def cairo_create(window: Window) -> cairo.Context[cairo.ImageSurface]: ... def cairo_draw_from_gl( @@ -2355,6 +2363,7 @@ def cairo_get_drawing_context( def cairo_rectangle(cr: cairo.Context[_SomeSurface], rectangle: Rectangle) -> None: ... def cairo_region(cr: cairo.Context[_SomeSurface], region: cairo.Region) -> None: ... def cairo_region_create_from_surface(surface: cairo.Surface) -> cairo.Region: ... +@deprecated("Use gdk_cairo_set_source_rgba() instead") def cairo_set_source_color(cr: cairo.Context[_SomeSurface], color: Color) -> None: ... def cairo_set_source_pixbuf( cr: cairo.Context[_SomeSurface], @@ -2414,6 +2423,7 @@ def events_get_distance(event1: Event, event2: Event) -> Tuple[bool, float]: ... def events_pending() -> bool: ... def flush() -> None: ... def get_default_root_window() -> Window: ... +@deprecated("Call gdk_display_get_name (gdk_display_get_default ())) instead.") def get_display() -> str: ... def get_display_arg_name() -> Optional[str]: ... def get_program_class() -> str: ... @@ -2421,7 +2431,9 @@ def get_show_events() -> bool: ... def gl_error_quark() -> int: ... def init() -> list[str]: ... def init_check() -> Tuple[bool, list[str]]: ... +@deprecated("Use gdk_device_grab() instead.") def keyboard_grab(window: Window, owner_events: bool, time_: int) -> GrabStatus: ... +@deprecated("Use gdk_device_ungrab(), together with gdk_device_grab() instead.") def keyboard_ungrab(time_: int) -> None: ... def keyval_convert_case(symbol: int) -> Tuple[int, int]: ... def keyval_from_name(keyval_name: str) -> int: ... @@ -2431,6 +2443,7 @@ def keyval_name(keyval: int) -> Optional[str]: ... def keyval_to_lower(keyval: int) -> int: ... def keyval_to_unicode(keyval: int) -> int: ... def keyval_to_upper(keyval: int) -> int: ... +@deprecated("Use gdk_screen_list_visuals (gdk_screen_get_default ()).") def list_visuals() -> list[Visual]: ... def notify_startup_complete() -> None: ... def notify_startup_complete_with_id(startup_id: str) -> None: ... @@ -2447,6 +2460,7 @@ def pixbuf_get_from_surface( def pixbuf_get_from_window( window: Window, src_x: int, src_y: int, width: int, height: int ) -> Optional[GdkPixbuf.Pixbuf]: ... +@deprecated("Use gdk_device_grab() instead.") def pointer_grab( window: Window, owner_events: bool, @@ -2455,14 +2469,23 @@ def pointer_grab( cursor: Optional[Cursor], time_: int, ) -> GrabStatus: ... +@deprecated("Use gdk_display_device_is_grabbed() instead.") def pointer_is_grabbed() -> bool: ... +@deprecated("Use gdk_device_ungrab(), together with gdk_device_grab() instead.") def pointer_ungrab(time_: int) -> None: ... +@deprecated("This symbol was never meant to be used outside of GTK+") def pre_parse_libgtk_only() -> None: ... def property_delete(window: Window, property: Atom) -> None: ... def property_get( window: Window, property: Atom, type: Atom, offset: int, length: int, pdelete: int ) -> Tuple[bool, Atom, int, bytes]: ... +@deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" +) def query_depths() -> list[int]: ... +@deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" +) def query_visual_types() -> list[VisualType]: ... def rectangle_intersect(self, src2: Rectangle) -> Tuple[bool, Rectangle]: ... def rectangle_union(self, src2: Rectangle) -> Rectangle: ... @@ -2531,8 +2554,11 @@ def threads_add_timeout( def threads_add_timeout_seconds( priority: int, interval: int, function: Callable[..., bool], *data: Any ) -> int: ... +@deprecated("All GDK and GTK+ calls should be made from the main thread") def threads_enter() -> None: ... +@deprecated("All GDK and GTK+ calls should be made from the main thread") def threads_init() -> None: ... +@deprecated("All GDK and GTK+ calls should be made from the main thread") def threads_leave() -> None: ... def unicode_to_keyval(wc: int) -> int: ... def utf8_to_string_target(str: str) -> Optional[str]: ... @@ -2565,9 +2591,11 @@ class AppLaunchContext(Gio.AppLaunchContext): display: Display props: Props = ... def __init__(self, display: Display = ...): ... + @deprecated("Use gdk_display_get_app_launch_context() instead") @classmethod def new(cls) -> AppLaunchContext: ... def set_desktop(self, desktop: int) -> None: ... + @deprecated("Use gdk_display_get_app_launch_context() instead") def set_display(self, display: Display) -> None: ... def set_icon(self, icon: Optional[Gio.Icon] = None) -> None: ... def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... @@ -2581,6 +2609,7 @@ class Atom(GObject.GPointer): def intern_static_string(atom_name: str) -> Atom: ... def name(self) -> str: ... +@deprecated("Use #GdkRGBA") class Color(GObject.GBoxed): """ :Constructors: @@ -2599,14 +2628,20 @@ class Color(GObject.GBoxed): green_float = ... # FIXME Constant red_float = ... # FIXME Constant + @deprecated("Use #GdkRGBA") def copy(self) -> Color: ... + @deprecated("Use #GdkRGBA") def equal(self, colorb: Color) -> bool: ... + @deprecated("Use #GdkRGBA") def free(self) -> None: ... def from_floats(red, green, blue): ... # FIXME Function + @deprecated("Use #GdkRGBA") def hash(self) -> int: ... + @deprecated("Use #GdkRGBA") @staticmethod def parse(spec: str) -> Tuple[bool, Color]: ... def to_floats(self): ... # FIXME Function + @deprecated("Use #GdkRGBA") def to_string(self) -> str: ... class Cursor(GObject.Object): @@ -2643,6 +2678,7 @@ class Cursor(GObject.Object): def get_display(self) -> Display: ... def get_image(self) -> Optional[GdkPixbuf.Pixbuf]: ... def get_surface(self) -> Tuple[Optional[cairo.Surface], float, float]: ... + @deprecated("Use gdk_cursor_new_for_display() instead.") @classmethod def new(cls, cursor_type: CursorType) -> Cursor: ... @classmethod @@ -2659,7 +2695,9 @@ class Cursor(GObject.Object): def new_from_surface( cls, display: Display, surface: cairo.Surface, x: float, y: float ) -> Cursor: ... + @deprecated("Use g_object_ref() instead") def ref(self) -> Cursor: ... + @deprecated("Use g_object_unref() instead") def unref(self) -> None: ... class Device(GObject.Object): @@ -2765,6 +2803,7 @@ class Device(GObject.Object): def get_window_at_position_double( self, ) -> Tuple[Optional[Window], float, float]: ... + @deprecated("Use gdk_seat_grab() instead.") def grab( self, window: Window, @@ -2774,6 +2813,7 @@ class Device(GObject.Object): cursor: Optional[Cursor], time_: int, ) -> GrabStatus: ... + @deprecated("The symbol was never meant to be used outside of GTK+") @staticmethod def grab_info_libgtk_only( display: Display, device: Device @@ -2783,6 +2823,7 @@ class Device(GObject.Object): def set_axis_use(self, index_: int, use: AxisUse) -> None: ... def set_key(self, index_: int, keyval: int, modifiers: ModifierType) -> None: ... def set_mode(self, mode: InputMode) -> bool: ... + @deprecated("Use gdk_seat_ungrab() instead.") def ungrab(self, time_: int) -> None: ... def warp(self, screen: Screen, x: int, y: int) -> None: ... @@ -2813,8 +2854,12 @@ class DeviceManager(GObject.Object): display: Optional[Display] props: Props = ... def __init__(self, display: Display = ...): ... + @deprecated("Use gdk_seat_get_pointer() instead.") def get_client_pointer(self) -> Device: ... def get_display(self) -> Optional[Display]: ... + @deprecated( + ", use gdk_seat_get_pointer(), gdk_seat_get_keyboard() and gdk_seat_get_slaves() instead." + ) def list_devices(self, type: DeviceType) -> list[Device]: ... class DevicePad(GObject.GInterface): @@ -2906,6 +2951,7 @@ class Display(GObject.Object): def get_default_group(self) -> Window: ... def get_default_screen(self) -> Screen: ... def get_default_seat(self) -> Seat: ... + @deprecated("Use gdk_display_get_default_seat() and #GdkSeat operations.") def get_device_manager(self) -> Optional[DeviceManager]: ... def get_event(self) -> Optional[Event]: ... def get_maximal_cursor_size(self) -> Tuple[int, int]: ... @@ -2913,24 +2959,35 @@ class Display(GObject.Object): def get_monitor_at_point(self, x: int, y: int) -> Monitor: ... def get_monitor_at_window(self, window: Window) -> Monitor: ... def get_n_monitors(self) -> int: ... + @deprecated("The number of screens is always 1.") def get_n_screens(self) -> int: ... def get_name(self) -> str: ... + @deprecated("Use gdk_device_get_position() instead.") def get_pointer(self) -> Tuple[Screen, int, int, ModifierType]: ... def get_primary_monitor(self) -> Optional[Monitor]: ... + @deprecated( + "There is only one screen; use gdk_display_get_default_screen() to get it." + ) def get_screen(self, screen_num: int) -> Screen: ... + @deprecated("Use gdk_device_get_window_at_position() instead.") def get_window_at_pointer(self) -> Tuple[Optional[Window], int, int]: ... def has_pending(self) -> bool: ... def is_closed(self) -> bool: ... + @deprecated("Use gdk_device_ungrab(), together with gdk_device_grab() instead.") def keyboard_ungrab(self, time_: int) -> None: ... + @deprecated("Use gdk_device_manager_list_devices() instead.") def list_devices(self) -> list[Device]: ... def list_seats(self) -> list[Seat]: ... def notify_startup_complete(self, startup_id: str) -> None: ... @staticmethod def open(display_name: str) -> Optional[Display]: ... + @deprecated("This symbol was never meant to be used outside of GTK+") @staticmethod def open_default_libgtk_only() -> Optional[Display]: ... def peek_event(self) -> Optional[Event]: ... + @deprecated("Use gdk_display_device_is_grabbed() instead.") def pointer_is_grabbed(self) -> bool: ... + @deprecated("Use gdk_device_ungrab(), together with gdk_device_grab() instead.") def pointer_ungrab(self, time_: int) -> None: ... def put_event(self, event: Event) -> None: ... def request_selection_notification(self, selection: Atom) -> bool: ... @@ -2943,6 +3000,7 @@ class Display(GObject.Object): targets: Optional[Sequence[Atom]] = None, ) -> None: ... def supports_clipboard_persistence(self) -> bool: ... + @deprecated("Compositing is an outdated technology that only ever worked on X11.") def supports_composite(self) -> bool: ... def supports_cursor_alpha(self) -> bool: ... def supports_cursor_color(self) -> bool: ... @@ -2950,6 +3008,7 @@ class Display(GObject.Object): def supports_selection_notification(self) -> bool: ... def supports_shapes(self) -> bool: ... def sync(self) -> None: ... + @deprecated("Use gdk_device_warp() instead.") def warp_pointer(self, screen: Screen, x: int, y: int) -> None: ... class DisplayManager(GObject.Object): @@ -3377,6 +3436,9 @@ class EventTouchpadSwipe(Event): y_root: float = ... state: ModifierType = ... +@deprecated( + "Modern composited windowing systems with pervasive transparency make it impossible to track the visibility of a window reliably, so this event can not be guaranteed to provide useful information." +) # override class EventVisibility(Event): type: EventType = ... @@ -3533,6 +3595,7 @@ class Keymap(GObject.Object): def add_virtual_modifiers(self) -> ModifierType: ... def get_caps_lock_state(self) -> bool: ... + @deprecated("Use gdk_keymap_get_for_display() instead") @staticmethod def get_default() -> Keymap: ... def get_direction(self) -> Pango.Direction: ... @@ -3724,23 +3787,37 @@ class Screen(GObject.Object): resolution: float props: Props = ... def __init__(self, font_options: Optional[None] = ..., resolution: float = ...): ... + @deprecated("This method is deprecated") def get_active_window(self) -> Optional[Window]: ... @staticmethod def get_default() -> Optional[Screen]: ... def get_display(self) -> Display: ... def get_font_options(self) -> Optional[cairo.FontOptions]: ... + @deprecated("Use per-monitor information instead") def get_height(self) -> int: ... + @deprecated("Use per-monitor information instead") def get_height_mm(self) -> int: ... + @deprecated("Use gdk_display_get_monitor_at_point() instead") def get_monitor_at_point(self, x: int, y: int) -> int: ... + @deprecated("Use gdk_display_get_monitor_at_window() instead") def get_monitor_at_window(self, window: Window) -> int: ... + @deprecated("Use gdk_monitor_get_geometry() instead") def get_monitor_geometry(self, monitor_num: int) -> Rectangle: ... + @deprecated("Use gdk_monitor_get_height_mm() instead") def get_monitor_height_mm(self, monitor_num: int) -> int: ... + @deprecated("Use gdk_monitor_get_model() instead") def get_monitor_plug_name(self, monitor_num: int) -> Optional[str]: ... + @deprecated("Use gdk_monitor_get_scale_factor() instead") def get_monitor_scale_factor(self, monitor_num: int) -> int: ... + @deprecated("Use gdk_monitor_get_width_mm() instead") def get_monitor_width_mm(self, monitor_num: int) -> int: ... + @deprecated("Use gdk_monitor_get_workarea() instead") def get_monitor_workarea(self, monitor_num: int) -> Rectangle: ... + @deprecated("Use gdk_display_get_n_monitors() instead") def get_n_monitors(self) -> int: ... + @deprecated("This method is deprecated") def get_number(self) -> int: ... + @deprecated("Use gdk_display_get_primary_monitor() instead") def get_primary_monitor(self) -> int: ... def get_resolution(self) -> float: ... def get_rgba_visual(self) -> Optional[Visual]: ... @@ -3748,20 +3825,27 @@ class Screen(GObject.Object): def get_setting(self, name: str, value: Any) -> bool: ... def get_system_visual(self) -> Visual: ... def get_toplevel_windows(self) -> list[Window]: ... + @deprecated("Use per-monitor information instead") def get_width(self) -> int: ... + @deprecated("Use per-monitor information instead") def get_width_mm(self) -> int: ... def get_window_stack(self) -> Optional[list[Window]]: ... + @deprecated("Use per-monitor information") @staticmethod def height() -> int: ... + @deprecated("Use per-monitor information") @staticmethod def height_mm() -> int: ... def is_composited(self) -> bool: ... def list_visuals(self) -> list[Visual]: ... + @deprecated("This method is deprecated") def make_display_name(self) -> str: ... def set_font_options(self, options: Optional[cairo.FontOptions] = None) -> None: ... def set_resolution(self, dpi: float) -> None: ... + @deprecated("Use per-monitor information") @staticmethod def width() -> int: ... + @deprecated("Use per-monitor information") @staticmethod def width_mm() -> int: ... @@ -3837,26 +3921,52 @@ class Visual(GObject.Object): notify (GParam) """ + @deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" + ) @staticmethod def get_best() -> Visual: ... + @deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" + ) @staticmethod def get_best_depth() -> int: ... + @deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" + ) @staticmethod def get_best_type() -> VisualType: ... + @deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" + ) @staticmethod def get_best_with_both(depth: int, visual_type: VisualType) -> Optional[Visual]: ... + @deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" + ) @staticmethod def get_best_with_depth(depth: int) -> Visual: ... + @deprecated( + "Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()" + ) @staticmethod def get_best_with_type(visual_type: VisualType) -> Visual: ... + @deprecated( + "Use gdk_visual_get_red_pixel_details() and its variants to learn about the pixel layout of TrueColor and DirectColor visuals" + ) def get_bits_per_rgb(self) -> int: ... def get_blue_pixel_details(self) -> Tuple[int, int, int]: ... + @deprecated("This information is not useful") def get_byte_order(self) -> ByteOrder: ... + @deprecated( + "This information is not useful, since GDK does not provide APIs to operate on colormaps." + ) def get_colormap_size(self) -> int: ... def get_depth(self) -> int: ... def get_green_pixel_details(self) -> Tuple[int, int, int]: ... def get_red_pixel_details(self) -> Tuple[int, int, int]: ... def get_screen(self) -> Screen: ... + @deprecated("Use gdk_screen_get_system_visual (gdk_screen_get_default ()).") @staticmethod def get_system() -> Visual: ... def get_visual_type(self) -> VisualType: ... @@ -3897,6 +4007,7 @@ class Window(GObject.Object): attributes: WindowAttr, attributes_mask: WindowAttributesType, ): ... + @deprecated("Use gdk_device_get_window_at_position() instead.") @staticmethod def at_pointer() -> Tuple[Window, int, int]: ... def beep(self) -> None: ... @@ -3907,7 +4018,9 @@ class Window(GObject.Object): def begin_move_drag_for_device( self, device: Device, button: int, root_x: int, root_y: int, timestamp: int ) -> None: ... + @deprecated("Use gdk_window_begin_draw_frame() instead") def begin_paint_rect(self, rectangle: Rectangle) -> None: ... + @deprecated("Use gdk_window_begin_draw_frame() instead") def begin_paint_region(self, region: cairo.Region) -> None: ... def begin_resize_drag( self, edge: WindowEdge, button: int, root_x: int, root_y: int, timestamp: int @@ -3922,6 +4035,7 @@ class Window(GObject.Object): timestamp: int, ) -> None: ... def cairo_create(self): ... # FIXME Function + @deprecated("this function is no longer needed") def configure_finished(self) -> None: ... @staticmethod def constrain_size( @@ -3956,22 +4070,27 @@ class Window(GObject.Object): embedder_x: float, embedder_y: float, ) -> None: ... + @deprecated("this function is no longer needed") def enable_synchronized_configure(self) -> None: ... def end_draw_frame(self, context: DrawingContext) -> None: ... def end_paint(self) -> None: ... def ensure_native(self) -> bool: ... + @deprecated("This method is deprecated") def flush(self) -> None: ... def focus(self, timestamp: int) -> None: ... + @deprecated("This symbol was never meant to be used outside of GTK+") def freeze_toplevel_updates_libgtk_only(self) -> None: ... def freeze_updates(self) -> None: ... def fullscreen(self) -> None: ... def fullscreen_on_monitor(self, monitor: int) -> None: ... def geometry_changed(self) -> None: ... def get_accept_focus(self) -> bool: ... + @deprecated("Don't use this function") def get_background_pattern(self) -> Optional[cairo.Pattern]: ... def get_children(self) -> list[Window]: ... def get_children_with_user_data(self, user_data: None) -> list[Window]: ... def get_clip_region(self) -> cairo.Region: ... + @deprecated("Compositing is an outdated technology that only ever worked on X11.") def get_composited(self) -> bool: ... def get_cursor(self) -> Optional[Cursor]: ... def get_decorations(self) -> Tuple[bool, WMDecoration]: ... @@ -4000,6 +4119,7 @@ class Window(GObject.Object): def get_origin(self) -> Tuple[int, int, int]: ... def get_parent(self) -> Window: ... def get_pass_through(self) -> bool: ... + @deprecated("Use gdk_window_get_device_position() instead.") def get_pointer(self) -> Tuple[Optional[Window], int, int, ModifierType]: ... def get_position(self) -> Tuple[int, int]: ... def get_root_coords(self, x: int, y: int) -> Tuple[int, int]: ... @@ -4065,8 +4185,10 @@ class Window(GObject.Object): attributes_mask: WindowAttributesType, ) -> Window: ... def peek_children(self) -> list[Window]: ... + @deprecated("This method is deprecated") @staticmethod def process_all_updates() -> None: ... + @deprecated("This method is deprecated") def process_updates(self, update_children: bool) -> None: ... def raise_(self) -> None: ... def register_dnd(self) -> None: ... @@ -4075,15 +4197,20 @@ class Window(GObject.Object): def restack(self, sibling: Optional[Window], above: bool) -> None: ... def scroll(self, dx: int, dy: int) -> None: ... def set_accept_focus(self, accept_focus: bool) -> None: ... + @deprecated("Don't use this function") def set_background(self, color: Color) -> None: ... + @deprecated("Don't use this function") def set_background_pattern( self, pattern: Optional[cairo.Pattern] = None ) -> None: ... + @deprecated("Don't use this function") def set_background_rgba(self, rgba: RGBA) -> None: ... def set_child_input_shapes(self) -> None: ... def set_child_shapes(self) -> None: ... + @deprecated("Compositing is an outdated technology that only ever worked on X11.") def set_composited(self, composited: bool) -> None: ... def set_cursor(self, cursor: Optional[Cursor] = None) -> None: ... + @deprecated("This method is deprecated") @staticmethod def set_debug_updates(setting: bool) -> None: ... def set_decorations(self, decorations: WMDecoration) -> None: ... @@ -4115,6 +4242,7 @@ class Window(GObject.Object): def set_skip_taskbar_hint(self, skips_taskbar: bool) -> None: ... def set_source_events(self, source: InputSource, event_mask: EventMask) -> None: ... def set_startup_id(self, startup_id: str) -> None: ... + @deprecated("static gravities haven't worked on anything but X11 for a long time.") def set_static_gravities(self, use_static: bool) -> bool: ... def set_support_multidevice(self, support_multidevice: bool) -> None: ... def set_title(self, title: str) -> None: ... @@ -4129,6 +4257,7 @@ class Window(GObject.Object): def show_unraised(self) -> None: ... def show_window_menu(self, event: Event) -> bool: ... def stick(self) -> None: ... + @deprecated("This symbol was never meant to be used outside of GTK+") def thaw_toplevel_updates_libgtk_only(self) -> None: ... def thaw_updates(self) -> None: ... def unfullscreen(self) -> None: ... diff --git a/src/gi-stubs/repository/_Gdk4.pyi b/src/gi-stubs/repository/_Gdk4.pyi index afca3fab..11b74c93 100644 --- a/src/gi-stubs/repository/_Gdk4.pyi +++ b/src/gi-stubs/repository/_Gdk4.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + import cairo from gi.repository import GdkPixbuf from gi.repository import Gio @@ -2309,6 +2314,9 @@ _namespace: str = "Gdk" _overrides_module = ... # FIXME Constant _version: str = "4.0" +@deprecated( + "The function is overly complex and produces broken output in various combinations of arguments. If you want to draw with GL textures in GTK, use [ctor@Gdk.GLTexture.new]; if you want to use that texture in Cairo, use [method@Gdk.Texture.download] to download the data into a Cairo image surface." +) def cairo_draw_from_gl( cr: cairo.Context[_SomeSurface], surface: Surface, @@ -2373,9 +2381,11 @@ def keyval_to_lower(keyval: int) -> int: ... def keyval_to_unicode(keyval: int) -> int: ... def keyval_to_upper(keyval: int) -> int: ... def paintable_new_empty(intrinsic_width: int, intrinsic_height: int) -> Paintable: ... +@deprecated("Use [class@Gdk.Texture] and subclasses instead cairo surfaces and pixbufs") def pixbuf_get_from_surface( surface: cairo.Surface, src_x: int, src_y: int, width: int, height: int ) -> Optional[GdkPixbuf.Pixbuf]: ... +@deprecated("Use [class@Gdk.Texture] and subclasses instead cairo surfaces and pixbufs") def pixbuf_get_from_texture(texture: Texture) -> Optional[GdkPixbuf.Pixbuf]: ... def set_allowed_backends(backends: str) -> None: ... def texture_error_quark() -> int: ... @@ -2985,6 +2995,7 @@ class Display(GObject.Object): def get_name(self) -> str: ... def get_primary_clipboard(self) -> Clipboard: ... def get_setting(self, name: str, value: Any) -> bool: ... + @deprecated("This method is deprecated") def get_startup_notification_id(self) -> Optional[str]: ... def is_closed(self) -> bool: ... def is_composited(self) -> bool: ... @@ -2992,10 +3003,14 @@ class Display(GObject.Object): def list_seats(self) -> list[Seat]: ... def map_keycode(self, keycode: int) -> Tuple[bool, list[KeymapKey], list[int]]: ... def map_keyval(self, keyval: int) -> Tuple[bool, list[KeymapKey]]: ... + @deprecated("Using [method@Gdk.Toplevel.set_startup_id] is sufficient") def notify_startup_complete(self, startup_id: str) -> None: ... @staticmethod def open(display_name: Optional[str] = None) -> Optional[Display]: ... def prepare_gl(self) -> bool: ... + @deprecated( + "This function is only useful in very special situations and should not be used by applications." + ) def put_event(self, event: Event) -> None: ... def supports_input_shapes(self) -> bool: ... def sync(self) -> None: ... @@ -3362,6 +3377,9 @@ class GLContext(DrawContext): def get_display(self) -> Optional[Display]: ... def get_forward_compatible(self) -> bool: ... def get_required_version(self) -> Tuple[int, int]: ... + @deprecated( + "Use [method@Gdk.GLContext.is_shared] to check if contexts can be shared." + ) def get_shared_context(self) -> Optional[GLContext]: ... def get_surface(self) -> Optional[Surface]: ... def get_use_es(self) -> bool: ... @@ -3408,6 +3426,9 @@ class GLTexture(Texture, Paintable, Gio.Icon, Gio.LoadableIcon): width: int props: Props = ... def __init__(self, height: int = ..., width: int = ...): ... + @deprecated( + "[class@Gdk.GLTextureBuilder] supercedes this function and provides extended functionality for creating GL textures." + ) @classmethod def new( cls, @@ -3897,6 +3918,7 @@ class Surface(GObject.Object): def beep(self) -> None: ... def create_cairo_context(self) -> CairoContext: ... def create_gl_context(self) -> GLContext: ... + @deprecated("Create a suitable cairo image surface yourself") def create_similar_surface( self, content: cairo.Content, width: int, height: int ) -> cairo.Surface: ... diff --git a/src/gi-stubs/repository/_Gtk3.pyi b/src/gi-stubs/repository/_Gtk3.pyi index e2c2cd98..93e71c15 100644 --- a/src/gi-stubs/repository/_Gtk3.pyi +++ b/src/gi-stubs/repository/_Gtk3.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + import cairo from gi.repository import Atk from gi.repository import Gdk @@ -315,6 +320,7 @@ def accelerator_parse_with_keycode( ) -> Tuple[int, list[int], Gdk.ModifierType]: ... def accelerator_set_default_mod_mask(default_mod_mask: Gdk.ModifierType) -> None: ... def accelerator_valid(keyval: int, modifiers: Gdk.ModifierType) -> bool: ... +@deprecated("Deprecated") def alternative_dialog_button_order(screen: Optional[Gdk.Screen] = None) -> bool: ... def binding_entry_add_signal_from_string( binding_set: BindingSet, signal_desc: str @@ -369,6 +375,7 @@ def drag_set_icon_name( def drag_set_icon_pixbuf( context: Gdk.DragContext, pixbuf: GdkPixbuf.Pixbuf, hot_x: int, hot_y: int ) -> None: ... +@deprecated("Use gtk_drag_set_icon_name() instead.") def drag_set_icon_stock( context: Gdk.DragContext, stock_id: str, hot_x: int, hot_y: int ) -> None: ... @@ -376,6 +383,7 @@ def drag_set_icon_surface(context: Gdk.DragContext, surface: cairo.Surface) -> N def drag_set_icon_widget( context: Gdk.DragContext, widget: Widget, hot_x: int, hot_y: int ) -> None: ... +@deprecated("Use gtk_render_insertion_cursor() instead.") def draw_insertion_cursor( widget: Widget, cr: cairo.Context[_SomeSurface], @@ -402,13 +410,18 @@ def get_micro_version() -> int: ... def get_minor_version() -> int: ... def get_option_group(open_default_display: bool) -> GLib.OptionGroup: ... def grab_get_current() -> Optional[Widget]: ... +@deprecated("Use #GtkIconTheme instead.") def icon_size_from_name(name: str) -> int: ... +@deprecated("Use #GtkIconTheme instead.") def icon_size_get_name(size: int) -> str: ... def icon_size_lookup(size: int) -> Tuple[bool, int, int]: ... +@deprecated("Use gtk_icon_size_lookup() instead.") def icon_size_lookup_for_settings( settings: Settings, size: int ) -> Tuple[bool, int, int]: ... +@deprecated("Use #GtkIconTheme instead.") def icon_size_register(name: str, width: int, height: int) -> int: ... +@deprecated("Use #GtkIconTheme instead.") def icon_size_register_alias(alias: str, target: int) -> None: ... def icon_theme_error_quark() -> int: ... def init() -> list[str]: ... @@ -418,6 +431,7 @@ def init_with_args( entries: Sequence[GLib.OptionEntry], translation_domain: Optional[str] = None, ) -> Tuple[bool, list[str]]: ... +@deprecated("Key snooping should not be done. Events should be handled by widgets.") def key_snooper_remove(snooper_handler_id: int) -> None: ... # override @@ -429,6 +443,7 @@ def main_level() -> int: ... # override def main_quit() -> None: ... +@deprecated("Use gtk_render_arrow() instead") def paint_arrow( style: Style, cr: cairo.Context[_SomeSurface], @@ -443,6 +458,7 @@ def paint_arrow( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_frame() and gtk_render_background() instead") def paint_box( style: Style, cr: cairo.Context[_SomeSurface], @@ -455,6 +471,7 @@ def paint_box( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_frame_gap() instead") def paint_box_gap( style: Style, cr: cairo.Context[_SomeSurface], @@ -470,6 +487,7 @@ def paint_box_gap( gap_x: int, gap_width: int, ) -> None: ... +@deprecated("Use gtk_render_check() instead") def paint_check( style: Style, cr: cairo.Context[_SomeSurface], @@ -482,6 +500,7 @@ def paint_check( width: int, height: int, ) -> None: ... +@deprecated("Use cairo instead") def paint_diamond( style: Style, cr: cairo.Context[_SomeSurface], @@ -494,6 +513,7 @@ def paint_diamond( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_expander() instead") def paint_expander( style: Style, cr: cairo.Context[_SomeSurface], @@ -504,6 +524,7 @@ def paint_expander( y: int, expander_style: ExpanderStyle, ) -> None: ... +@deprecated("Use gtk_render_extension() instead") def paint_extension( style: Style, cr: cairo.Context[_SomeSurface], @@ -517,6 +538,7 @@ def paint_extension( height: int, gap_side: PositionType, ) -> None: ... +@deprecated("Use gtk_render_frame() and gtk_render_background() instead") def paint_flat_box( style: Style, cr: cairo.Context[_SomeSurface], @@ -529,6 +551,7 @@ def paint_flat_box( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_focus() instead") def paint_focus( style: Style, cr: cairo.Context[_SomeSurface], @@ -540,6 +563,7 @@ def paint_focus( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_handle() instead") def paint_handle( style: Style, cr: cairo.Context[_SomeSurface], @@ -553,6 +577,7 @@ def paint_handle( height: int, orientation: Orientation, ) -> None: ... +@deprecated("Use gtk_render_line() instead") def paint_hline( style: Style, cr: cairo.Context[_SomeSurface], @@ -563,6 +588,7 @@ def paint_hline( x2: int, y: int, ) -> None: ... +@deprecated("Use gtk_render_layout() instead") def paint_layout( style: Style, cr: cairo.Context[_SomeSurface], @@ -574,6 +600,7 @@ def paint_layout( y: int, layout: Pango.Layout, ) -> None: ... +@deprecated("Use gtk_render_option() instead") def paint_option( style: Style, cr: cairo.Context[_SomeSurface], @@ -586,6 +613,7 @@ def paint_option( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_handle() instead") def paint_resize_grip( style: Style, cr: cairo.Context[_SomeSurface], @@ -598,6 +626,7 @@ def paint_resize_grip( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_frame() instead") def paint_shadow( style: Style, cr: cairo.Context[_SomeSurface], @@ -610,6 +639,7 @@ def paint_shadow( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_frame_gap() instead") def paint_shadow_gap( style: Style, cr: cairo.Context[_SomeSurface], @@ -625,6 +655,7 @@ def paint_shadow_gap( gap_x: int, gap_width: int, ) -> None: ... +@deprecated("Use gtk_render_slider() instead") def paint_slider( style: Style, cr: cairo.Context[_SomeSurface], @@ -638,6 +669,7 @@ def paint_slider( height: int, orientation: Orientation, ) -> None: ... +@deprecated("Use gtk_render_icon() and the #GtkStyleContext you are drawing instead") def paint_spinner( style: Style, cr: cairo.Context[_SomeSurface], @@ -650,6 +682,7 @@ def paint_spinner( width: int, height: int, ) -> None: ... +@deprecated("Use cairo instead") def paint_tab( style: Style, cr: cairo.Context[_SomeSurface], @@ -662,6 +695,7 @@ def paint_tab( width: int, height: int, ) -> None: ... +@deprecated("Use gtk_render_line() instead") def paint_vline( style: Style, cr: cairo.Context[_SomeSurface], @@ -687,30 +721,46 @@ def print_run_page_setup_dialog_async( *data: Any, ) -> None: ... def propagate_event(widget: Widget, event: Gdk.Event) -> None: ... +@deprecated("Use #GtkStyleContext with a custom #GtkStyleProvider instead") def rc_add_default_file(filename: str) -> None: ... +@deprecated("Use #GtkCssProvider instead.") def rc_find_module_in_path(module_file: str) -> str: ... +@deprecated("Use #GtkCssProvider instead.") def rc_find_pixmap_in_path( settings: Settings, scanner: GLib.Scanner, pixmap_file: str ) -> str: ... +@deprecated("Use #GtkStyleContext instead") def rc_get_default_files() -> list[str]: ... +@deprecated("Use #GtkCssProvider instead.") def rc_get_im_module_file() -> str: ... +@deprecated("Use #GtkCssProvider instead.") def rc_get_im_module_path() -> str: ... +@deprecated("Use #GtkCssProvider instead.") def rc_get_module_dir() -> str: ... +@deprecated("Use #GtkStyleContext instead") def rc_get_style(widget: Widget) -> Style: ... +@deprecated("Use #GtkStyleContext instead") def rc_get_style_by_paths( settings: Settings, widget_path: Optional[str], class_path: Optional[str], type: Type, ) -> Optional[Style]: ... +@deprecated("Use #GtkCssProvider instead.") def rc_get_theme_dir() -> str: ... +@deprecated("Use #GtkCssProvider instead.") def rc_parse(filename: str) -> None: ... +@deprecated("Use #GtkCssProvider instead") def rc_parse_color(scanner: GLib.Scanner) -> Tuple[int, Gdk.Color]: ... +@deprecated("Use #GtkCssProvider instead") def rc_parse_color_full( scanner: GLib.Scanner, style: Optional[RcStyle] = None ) -> Tuple[int, Gdk.Color]: ... +@deprecated("Use #GtkCssProvider instead") def rc_parse_priority(scanner: GLib.Scanner, priority: PathPriorityType) -> int: ... +@deprecated("Use #GtkCssProvider instead") def rc_parse_state(scanner: GLib.Scanner) -> Tuple[int, StateType]: ... +@deprecated("Use #GtkCssProvider instead.") def rc_parse_string(rc_string: str) -> None: ... def rc_property_parse_border( pspec: GObject.ParamSpec, gstring: GLib.String, property_value: Any @@ -727,9 +777,13 @@ def rc_property_parse_flags( def rc_property_parse_requisition( pspec: GObject.ParamSpec, gstring: GLib.String, property_value: Any ) -> bool: ... +@deprecated("Use #GtkCssProvider instead.") def rc_reparse_all() -> bool: ... +@deprecated("Use #GtkCssProvider instead.") def rc_reparse_all_for_settings(settings: Settings, force_load: bool) -> bool: ... +@deprecated("Use #GtkCssProvider instead.") def rc_reset_styles(settings: Settings) -> None: ... +@deprecated("Use #GtkStyleContext with a custom #GtkStyleProvider instead") def rc_set_default_files(filenames: Sequence[str]) -> None: ... def recent_chooser_error_quark() -> int: ... def recent_manager_error_quark() -> int: ... @@ -801,6 +855,9 @@ def render_frame( width: float, height: float, ) -> None: ... +@deprecated( + "Use gtk_render_frame() instead. Themes can create gaps by omitting borders via CSS." +) def render_frame_gap( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -827,6 +884,7 @@ def render_icon( x: float, y: float, ) -> None: ... +@deprecated("Use gtk_icon_theme_load_icon() instead.") def render_icon_pixbuf( context: StyleContext, source: IconSource, size: int ) -> GdkPixbuf.Pixbuf: ... @@ -897,12 +955,17 @@ def selection_owner_set_for_display( ) -> bool: ... def selection_remove_all(widget: Widget) -> None: ... def set_debug_flags(flags: int) -> None: ... +@deprecated("Use gtk_show_uri_on_window() instead.") def show_uri(screen: Optional[Gdk.Screen], uri: str, timestamp: int) -> bool: ... def show_uri_on_window(parent: Optional[Window], uri: str, timestamp: int) -> bool: ... +@deprecated("This function is deprecated") def stock_add(items: Sequence[StockItem]) -> None: ... +@deprecated("This function is deprecated") def stock_add_static(items: Sequence[StockItem]) -> None: ... +@deprecated("This function is deprecated") def stock_list_ids() -> list[str]: ... def stock_lookup(stock_id: str) -> Optional[StockItem]: ... # CHECK Wrapped function +@deprecated("This function is deprecated") def stock_set_translate_func( domain: str, func: Callable[..., str], *data: Any ) -> None: ... @@ -914,6 +977,7 @@ def targets_include_rich_text( ) -> bool: ... def targets_include_text(targets: Sequence[Gdk.Atom]) -> bool: ... def targets_include_uri(targets: Sequence[Gdk.Atom]) -> bool: ... +@deprecated("This testing infrastructure is phased out in favor of reftests.") def test_create_simple_window(window_title: str, dialog_text: str) -> Widget: ... def test_find_label(widget: Widget, label_pattern: str) -> Widget: ... def test_find_sibling(base_widget: Widget, widget_type: Type) -> Widget: ... @@ -922,11 +986,17 @@ def test_find_widget( ) -> Optional[Widget]: ... def test_list_all_types() -> list[Type]: ... def test_register_all_types() -> None: ... +@deprecated("This testing infrastructure is phased out in favor of reftests.") def test_slider_get_value(widget: Widget) -> float: ... +@deprecated("This testing infrastructure is phased out in favor of reftests.") def test_slider_set_perc(widget: Widget, percentage: float) -> None: ... +@deprecated("This testing infrastructure is phased out in favor of reftests.") def test_spin_button_click(spinner: SpinButton, button: int, upwards: bool) -> bool: ... +@deprecated("This testing infrastructure is phased out in favor of reftests.") def test_text_get(widget: Widget) -> str: ... +@deprecated("This testing infrastructure is phased out in favor of reftests.") def test_text_set(widget: Widget, string: str) -> None: ... +@deprecated("This testing infrastructure is phased out in favor of reftests.") def test_widget_click( widget: Widget, button: int, modifiers: Gdk.ModifierType ) -> bool: ... @@ -2146,6 +2216,7 @@ class Accessible(Atk.Object): accessible_table_summary: Atk.Object = ..., accessible_value: float = ..., ): ... + @deprecated("Use gtk_accessible_set_widget() and its vfuncs.") def connect_widget_destroyed(self) -> None: ... def do_connect_widget_destroyed(self) -> None: ... def do_widget_set(self) -> None: ... @@ -2262,13 +2333,33 @@ class Action(GObject.Object, Buildable): visible_overflown: bool = ..., visible_vertical: bool = ..., ): ... + @deprecated("Use #GSimpleAction::activate instead") def activate(self) -> None: ... + @deprecated( + "Use g_simple_action_set_enabled() to disable the #GSimpleAction instead" + ) def block_activate(self) -> None: ... + @deprecated( + "Use #GAction and the accelerator group on an associated #GtkMenu instead" + ) def connect_accelerator(self) -> None: ... + @deprecated( + "Use g_menu_item_set_icon() to set an icon on a #GMenuItem, or gtk_container_add() to add a #GtkImage to a #GtkButton" + ) def create_icon(self, icon_size: int) -> Widget: ... + @deprecated( + "Use #GAction and #GMenuModel instead, and create a #GtkMenu with gtk_menu_new_from_model()" + ) def create_menu(self) -> Widget: ... + @deprecated("Use g_menu_item_new() and associate it with a #GAction instead.") def create_menu_item(self) -> Widget: ... + @deprecated( + "Use a #GtkToolItem and associate it with a #GAction using gtk_actionable_set_action_name() instead" + ) def create_tool_item(self) -> Widget: ... + @deprecated( + "Use #GAction and the accelerator group on an associated #GtkMenu instead" + ) def disconnect_accelerator(self) -> None: ... def do_activate(self) -> None: ... def do_connect_proxy(self, proxy: Widget) -> None: ... @@ -2276,24 +2367,67 @@ class Action(GObject.Object, Buildable): def do_create_menu_item(self) -> Widget: ... def do_create_tool_item(self) -> Widget: ... def do_disconnect_proxy(self, proxy: Widget) -> None: ... + @deprecated( + "Use #GAction and #GtkMenu instead, which have no equivalent for getting the accel closure" + ) def get_accel_closure(self) -> Callable[..., Any]: ... + @deprecated( + "Use #GAction and the accelerator path on an associated #GtkMenu instead" + ) def get_accel_path(self) -> str: ... + @deprecated("Use g_menu_item_get_attribute_value() on a #GMenuItem instead") def get_always_show_image(self) -> bool: ... + @deprecated( + "Use #GAction instead, and g_menu_item_get_attribute_value() to get an icon from a #GMenuItem associated with a #GAction" + ) def get_gicon(self) -> Gio.Icon: ... + @deprecated( + "Use #GAction instead, and g_menu_item_get_attribute_value() to get an icon from a #GMenuItem associated with a #GAction" + ) def get_icon_name(self) -> str: ... + @deprecated( + "Use #GAction instead, and control and monitor whether labels are shown directly" + ) def get_is_important(self) -> bool: ... + @deprecated( + "Use #GAction instead, and get a label from a menu item with g_menu_item_get_attribute_value(). For #GtkActionable widgets, use the widget-specific API to get a label" + ) def get_label(self) -> str: ... + @deprecated("Use g_action_get_name() on a #GAction instead") def get_name(self) -> str: ... + @deprecated("This method is deprecated") def get_proxies(self) -> list[Widget]: ... + @deprecated("Use g_action_get_enabled() on a #GAction instead") def get_sensitive(self) -> bool: ... + @deprecated("Use #GAction instead, which has no equivalent of short labels") def get_short_label(self) -> str: ... + @deprecated("Use #GAction instead, which has no equivalent of stock items") def get_stock_id(self) -> str: ... + @deprecated( + "Use #GAction instead, and get tooltips from associated #GtkActionable widgets with gtk_widget_get_tooltip_text()" + ) def get_tooltip(self) -> str: ... + @deprecated( + "Use #GAction instead, and control and monitor the state of #GtkActionable widgets directly" + ) def get_visible(self) -> bool: ... + @deprecated( + "Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly" + ) def get_visible_horizontal(self) -> bool: ... + @deprecated( + "Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly" + ) def get_visible_vertical(self) -> bool: ... + @deprecated("Use g_action_get_enabled() on a #GAction instead") def is_sensitive(self) -> bool: ... + @deprecated( + "Use #GAction instead, and control and monitor the state of #GtkActionable widgets directly" + ) def is_visible(self) -> bool: ... + @deprecated( + "Use #GAction instead, associating it to a widget with #GtkActionable or creating a #GtkMenu with gtk_menu_new_from_model()" + ) @classmethod def new( cls, @@ -2302,20 +2436,59 @@ class Action(GObject.Object, Buildable): tooltip: Optional[str] = None, stock_id: Optional[str] = None, ) -> Action: ... + @deprecated( + "Use #GAction and the accelerator group on an associated #GtkMenu instead" + ) def set_accel_group(self, accel_group: Optional[AccelGroup] = None) -> None: ... + @deprecated( + "Use #GAction and the accelerator path on an associated #GtkMenu instead" + ) def set_accel_path(self, accel_path: str) -> None: ... + @deprecated( + "Use g_menu_item_set_icon() on a #GMenuItem instead, if the item should have an image" + ) def set_always_show_image(self, always_show: bool) -> None: ... + @deprecated( + "Use #GAction instead, and g_menu_item_set_icon() to set an icon on a #GMenuItem associated with a #GAction, or gtk_container_add() to add a #GtkImage to a #GtkButton" + ) def set_gicon(self, icon: Gio.Icon) -> None: ... + @deprecated( + "Use #GAction instead, and g_menu_item_set_icon() to set an icon on a #GMenuItem associated with a #GAction, or gtk_container_add() to add a #GtkImage to a #GtkButton" + ) def set_icon_name(self, icon_name: str) -> None: ... + @deprecated( + "Use #GAction instead, and control and monitor whether labels are shown directly" + ) def set_is_important(self, is_important: bool) -> None: ... + @deprecated( + "Use #GAction instead, and set a label on a menu item with g_menu_item_set_label(). For #GtkActionable widgets, use the widget-specific API to set a label" + ) def set_label(self, label: str) -> None: ... + @deprecated("Use g_simple_action_set_enabled() on a #GSimpleAction instead") def set_sensitive(self, sensitive: bool) -> None: ... + @deprecated("Use #GAction instead, which has no equivalent of short labels") def set_short_label(self, short_label: str) -> None: ... + @deprecated("Use #GAction instead, which has no equivalent of stock items") def set_stock_id(self, stock_id: str) -> None: ... + @deprecated( + "Use #GAction instead, and set tooltips on associated #GtkActionable widgets with gtk_widget_set_tooltip_text()" + ) def set_tooltip(self, tooltip: str) -> None: ... + @deprecated( + "Use #GAction instead, and control and monitor the state of #GtkActionable widgets directly" + ) def set_visible(self, visible: bool) -> None: ... + @deprecated( + "Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly" + ) def set_visible_horizontal(self, visible_horizontal: bool) -> None: ... + @deprecated( + "Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly" + ) def set_visible_vertical(self, visible_vertical: bool) -> None: ... + @deprecated( + "Use g_simple_action_set_enabled() to enable the #GSimpleAction instead" + ) def unblock_activate(self) -> None: ... class ActionBar(Bin, Atk.ImplementorIface, Buildable): @@ -2632,6 +2805,7 @@ class ActionClass(GObject.GPointer): _gtk_reserved3: None = ... _gtk_reserved4: None = ... +@deprecated("This class is deprecated") class ActionEntry(GObject.GPointer): """ :Constructors: @@ -2694,7 +2868,9 @@ class ActionGroup(GObject.Object, Buildable): sensitive: bool = ..., visible: bool = ..., ): ... + @deprecated("This method is deprecated") def add_action(self, action: Action) -> None: ... + @deprecated("This method is deprecated") def add_action_with_accel( self, action: Action, accelerator: Optional[str] = None ) -> None: ... @@ -2704,20 +2880,34 @@ class ActionGroup(GObject.Object, Buildable): ): ... # FIXME Function def add_toggle_actions(self, entries, user_data=None): ... # FIXME Function def do_get_action(self, action_name: str) -> Action: ... + @deprecated("This method is deprecated") def get_accel_group(self) -> AccelGroup: ... + @deprecated("This method is deprecated") def get_action(self, action_name: str) -> Action: ... + @deprecated("This method is deprecated") def get_name(self) -> str: ... + @deprecated("This method is deprecated") def get_sensitive(self) -> bool: ... + @deprecated("This method is deprecated") def get_visible(self) -> bool: ... + @deprecated("This method is deprecated") def list_actions(self) -> list[Action]: ... + @deprecated("This method is deprecated") @classmethod def new(cls, name: str) -> ActionGroup: ... + @deprecated("This method is deprecated") def remove_action(self, action: Action) -> None: ... + @deprecated("This method is deprecated") def set_accel_group(self, accel_group: Optional[AccelGroup] = None) -> None: ... + @deprecated("This method is deprecated") def set_sensitive(self, sensitive: bool) -> None: ... + @deprecated("This method is deprecated") def set_translate_func(self, func: Callable[..., str], *data: Any) -> None: ... + @deprecated("This method is deprecated") def set_translation_domain(self, domain: Optional[str] = None) -> None: ... + @deprecated("This method is deprecated") def set_visible(self, visible: bool) -> None: ... + @deprecated("This method is deprecated") def translate_string(self, string: str) -> str: ... class ActionGroupClass(GObject.GPointer): @@ -2778,13 +2968,20 @@ class Activatable(GObject.GInterface): notify (GParam) """ + @deprecated("This method is deprecated") def do_set_related_action(self, action: Action) -> None: ... + @deprecated("This method is deprecated") def get_related_action(self) -> Action: ... + @deprecated("This method is deprecated") def get_use_action_appearance(self) -> bool: ... + @deprecated("This method is deprecated") def set_related_action(self, action: Action) -> None: ... + @deprecated("This method is deprecated") def set_use_action_appearance(self, use_appearance: bool) -> None: ... + @deprecated("This method is deprecated") def sync_action_properties(self, action: Optional[Action] = None) -> None: ... +@deprecated("This class is deprecated") class ActivatableIface(GObject.GPointer): """ :Constructors: @@ -2850,6 +3047,9 @@ class Adjustment(GObject.InitiallyUnowned): upper: float = ..., value: float = ..., ): ... + @deprecated( + "GTK+ emits #GtkAdjustment::changed itself whenever any of the properties (other than value) change" + ) def changed(self) -> None: ... def clamp_page(self, lower: float, upper: float) -> None: ... def configure( @@ -2886,6 +3086,9 @@ class Adjustment(GObject.InitiallyUnowned): def set_step_increment(self, step_increment: float) -> None: ... def set_upper(self, upper: float) -> None: ... def set_value(self, value: float) -> None: ... + @deprecated( + "GTK+ emits #GtkAdjustment::value-changed itself whenever the value changes" + ) def value_changed(self) -> None: ... class AdjustmentClass(GObject.GPointer): @@ -3209,14 +3412,18 @@ class Alignment(Bin, Atk.ImplementorIface, Buildable): visible: bool = ..., width_request: int = ..., ): ... + @deprecated("Use #GtkWidget alignment and margin properties") def get_padding(self) -> Tuple[int, int, int, int]: ... + @deprecated("Use #GtkWidget alignment and margin properties") @classmethod def new( cls, xalign: float, yalign: float, xscale: float, yscale: float ) -> Alignment: ... + @deprecated("Use #GtkWidget alignment and margin properties") def set( self, xalign: float, yalign: float, xscale: float, yscale: float ) -> None: ... + @deprecated("Use #GtkWidget alignment and margin properties") def set_padding( self, padding_top: int, @@ -4558,6 +4765,7 @@ class Application(Gio.Application, Gio.ActionGroup, Gio.ActionMap): inactivity_timeout: int = ..., resource_base_path: Optional[str] = ..., ): ... + @deprecated("Use gtk_application_set_accels_for_action() instead") def add_accelerator( self, accelerator: str, @@ -4588,6 +4796,7 @@ class Application(Gio.Application, Gio.ActionGroup, Gio.ActionMap): cls, application_id: Optional[str], flags: Gio.ApplicationFlags ) -> Application: ... def prefers_app_menu(self) -> bool: ... + @deprecated("Use gtk_application_set_accels_for_action() instead") def remove_accelerator( self, action_name: str, parameter: Optional[GLib.Variant] = None ) -> None: ... @@ -5334,8 +5543,10 @@ class Arrow(Misc, Atk.ImplementorIface, Buildable): visible: bool = ..., width_request: int = ..., ): ... + @deprecated("Use a #GtkImage with a suitable icon.") @classmethod def new(cls, arrow_type: ArrowType, shadow_type: ShadowType) -> Arrow: ... + @deprecated("Use a #GtkImage with a suitable icon.") def set(self, arrow_type: ArrowType, shadow_type: ShadowType) -> None: ... class ArrowAccessible(WidgetAccessible, Atk.Component, Atk.Image): @@ -6239,7 +6450,11 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): def get_nth_page(self, page_num: int) -> Optional[Widget]: ... def get_page_complete(self, page: Widget) -> bool: ... def get_page_has_padding(self, page: Widget) -> bool: ... + @deprecated( + "Since GTK+ 3.2, a header is no longer shown; add your header decoration to the page content instead." + ) def get_page_header_image(self, page: Widget) -> GdkPixbuf.Pixbuf: ... + @deprecated("Since GTK+ 3.2, sidebar images are not shown anymore.") def get_page_side_image(self, page: Widget) -> GdkPixbuf.Pixbuf: ... def get_page_title(self, page: Widget) -> str: ... def get_page_type(self, page: Widget) -> AssistantPageType: ... @@ -6257,9 +6472,13 @@ class Assistant(Window, Atk.ImplementorIface, Buildable): ) -> None: ... def set_page_complete(self, page: Widget, complete: bool) -> None: ... def set_page_has_padding(self, page: Widget, has_padding: bool) -> None: ... + @deprecated( + "Since GTK+ 3.2, a header is no longer shown; add your header decoration to the page content instead." + ) def set_page_header_image( self, page: Widget, pixbuf: Optional[GdkPixbuf.Pixbuf] = None ) -> None: ... + @deprecated("Since GTK+ 3.2, sidebar images are not shown anymore.") def set_page_side_image( self, page: Widget, pixbuf: Optional[GdkPixbuf.Pixbuf] = None ) -> None: ... @@ -6645,6 +6864,7 @@ class BindingSet(GObject.GPointer): def activate( self, keyval: int, modifiers: Gdk.ModifierType, object: GObject.Object ) -> bool: ... + @deprecated("This method is deprecated") def add_path( self, path_type: PathType, path_pattern: str, priority: PathPriorityType ) -> None: ... @@ -7631,7 +7851,11 @@ class Button(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): def do_leave(self) -> None: ... def do_pressed(self) -> None: ... def do_released(self) -> None: ... + @deprecated("Use the #GtkWidget::enter-notify-event signal.") def enter(self) -> None: ... + @deprecated( + "Access the child widget directly if you need to control its alignment." + ) def get_alignment(self) -> Tuple[float, float]: ... def get_always_show_image(self) -> bool: ... def get_event_window(self) -> Gdk.Window: ... @@ -7640,21 +7864,29 @@ class Button(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): def get_image_position(self) -> PositionType: ... def get_label(self) -> str: ... def get_relief(self) -> ReliefStyle: ... + @deprecated("This method is deprecated") def get_use_stock(self) -> bool: ... def get_use_underline(self) -> bool: ... + @deprecated("Use the #GtkWidget::leave-notify-event signal.") def leave(self) -> None: ... @classmethod def new(cls) -> Button: ... @classmethod def new_from_icon_name(cls, icon_name: Optional[str], size: int) -> Button: ... + @deprecated("Stock items are deprecated. Use gtk_button_new_with_label() instead.") @classmethod def new_from_stock(cls, stock_id: str) -> Button: ... @classmethod def new_with_label(cls, label: str) -> Button: ... @classmethod def new_with_mnemonic(cls, label: str) -> Button: ... + @deprecated("Use the #GtkWidget::button-press-event signal.") def pressed(self) -> None: ... + @deprecated("Use the #GtkWidget::button-release-event signal.") def released(self) -> None: ... + @deprecated( + "Access the child widget directly if you need to control its alignment." + ) def set_alignment(self, xalign: float, yalign: float) -> None: ... def set_always_show_image(self, always_show: bool) -> None: ... def set_focus_on_click(self, *args, **kwargs): ... # FIXME Function @@ -7662,6 +7894,7 @@ class Button(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): def set_image_position(self, position: PositionType) -> None: ... def set_label(self, label: str) -> None: ... def set_relief(self, relief: ReliefStyle) -> None: ... + @deprecated("This method is deprecated") def set_use_stock(self, use_stock: bool) -> None: ... def set_use_underline(self, use_underline: bool) -> None: ... @@ -9359,6 +9592,7 @@ class CellRenderer(GObject.InitiallyUnowned): ) -> Tuple[int, int]: ... def get_request_mode(self) -> SizeRequestMode: ... def get_sensitive(self) -> bool: ... + @deprecated("Use gtk_cell_renderer_get_preferred_size() instead.") def get_size( self, widget: Widget, cell_area: Optional[Gdk.Rectangle] = None ) -> Tuple[int, int, int, int]: ... @@ -11621,6 +11855,9 @@ class CellView(Widget, Atk.ImplementorIface, Buildable, CellLayout, Orientable): def get_draw_sensitive(self) -> bool: ... def get_fit_model(self) -> bool: ... def get_model(self) -> Optional[TreeModel]: ... + @deprecated( + "Combo box formerly used this to calculate the sizes for cellviews, now you can achieve this by either using the #GtkCellView:fit-model property or by setting the currently displayed row of the #GtkCellView and using gtk_widget_get_preferred_size()." + ) def get_size_of_row(self, path: TreePath) -> Tuple[bool, Requisition]: ... @classmethod def new(cls) -> CellView: ... @@ -11632,6 +11869,7 @@ class CellView(Widget, Atk.ImplementorIface, Buildable, CellLayout, Orientable): def new_with_pixbuf(cls, pixbuf: GdkPixbuf.Pixbuf) -> CellView: ... @classmethod def new_with_text(cls, text: str) -> CellView: ... + @deprecated("Use gtk_cell_view_set_background_rgba() instead.") def set_background_color(self, color: Gdk.Color) -> None: ... def set_background_rgba(self, rgba: Gdk.RGBA) -> None: ... def set_displayed_row(self, path: Optional[TreePath] = None) -> None: ... @@ -12930,19 +13168,26 @@ class ColorButton( use_action_appearance: bool = ..., ): ... def do_color_set(self) -> None: ... + @deprecated("Use gtk_color_chooser_get_rgba() instead.") def get_alpha(self) -> int: ... + @deprecated("Use gtk_color_chooser_get_rgba() instead.") def get_color(self) -> Gdk.Color: ... def get_title(self) -> str: ... + @deprecated("Use gtk_color_chooser_get_use_alpha() instead.") def get_use_alpha(self) -> bool: ... @classmethod def new(cls) -> ColorButton: ... + @deprecated("Use gtk_color_button_new_with_rgba() instead.") @classmethod def new_with_color(cls, color: Gdk.Color) -> ColorButton: ... @classmethod def new_with_rgba(cls, rgba: Gdk.RGBA) -> ColorButton: ... + @deprecated("Use gtk_color_chooser_set_rgba() instead.") def set_alpha(self, alpha: int) -> None: ... + @deprecated("Use gtk_color_chooser_set_rgba() instead.") def set_color(self, color: Gdk.Color) -> None: ... def set_title(self, title: str) -> None: ... + @deprecated("Use gtk_color_chooser_set_use_alpha() instead.") def set_use_alpha(self, use_alpha: bool) -> None: ... class ColorButtonClass(GObject.GPointer): @@ -14084,11 +14329,13 @@ class ColorSelection(Box, Atk.ImplementorIface, Buildable, Orientable): ): ... def do_color_changed(self) -> None: ... def get_current_alpha(self) -> int: ... + @deprecated("Use gtk_color_selection_get_current_rgba() instead.") def get_current_color(self) -> Gdk.Color: ... def get_current_rgba(self) -> Gdk.RGBA: ... def get_has_opacity_control(self) -> bool: ... def get_has_palette(self) -> bool: ... def get_previous_alpha(self) -> int: ... + @deprecated("Use gtk_color_selection_get_previous_rgba() instead.") def get_previous_color(self) -> Gdk.Color: ... def get_previous_rgba(self) -> Gdk.RGBA: ... def is_adjusting(self) -> bool: ... @@ -14099,11 +14346,13 @@ class ColorSelection(Box, Atk.ImplementorIface, Buildable, Orientable): @staticmethod def palette_to_string(colors: Sequence[Gdk.Color]) -> str: ... def set_current_alpha(self, alpha: int) -> None: ... + @deprecated("Use gtk_color_selection_set_current_rgba() instead.") def set_current_color(self, color: Gdk.Color) -> None: ... def set_current_rgba(self, rgba: Gdk.RGBA) -> None: ... def set_has_opacity_control(self, has_opacity: bool) -> None: ... def set_has_palette(self, has_palette: bool) -> None: ... def set_previous_alpha(self, alpha: int) -> None: ... + @deprecated("Use gtk_color_selection_set_previous_rgba() instead.") def set_previous_color(self, color: Gdk.Color) -> None: ... def set_previous_rgba(self, rgba: Gdk.RGBA) -> None: ... @@ -14930,10 +15179,12 @@ class ComboBox(Bin, Atk.ImplementorIface, Buildable, CellEditable, CellLayout): def get_active(self) -> int: ... def get_active_id(self) -> Optional[str]: ... def get_active_iter(self) -> Optional[TreeIter]: ... # CHECK Wrapped function + @deprecated("This method is deprecated") def get_add_tearoffs(self) -> bool: ... def get_button_sensitivity(self) -> SensitivityType: ... def get_column_span_column(self) -> int: ... def get_entry_text_column(self) -> int: ... + @deprecated("Use gtk_widget_get_focus_on_click() instead") def get_focus_on_click(self) -> bool: ... def get_has_entry(self) -> bool: ... def get_id_column(self) -> int: ... @@ -14941,6 +15192,7 @@ class ComboBox(Bin, Atk.ImplementorIface, Buildable, CellEditable, CellLayout): def get_popup_accessible(self) -> Atk.Object: ... def get_popup_fixed_width(self) -> bool: ... def get_row_span_column(self) -> int: ... + @deprecated("This method is deprecated") def get_title(self) -> str: ... def get_wrap_width(self) -> int: ... @classmethod @@ -14961,16 +15213,19 @@ class ComboBox(Bin, Atk.ImplementorIface, Buildable, CellEditable, CellLayout): def set_active(self, index_: int) -> None: ... def set_active_id(self, active_id: Optional[str] = None) -> bool: ... def set_active_iter(self, iter: Optional[TreeIter] = None) -> None: ... + @deprecated("This method is deprecated") def set_add_tearoffs(self, add_tearoffs: bool) -> None: ... def set_button_sensitivity(self, sensitivity: SensitivityType) -> None: ... def set_column_span_column(self, column_span: int) -> None: ... def set_entry_text_column(self, text_column: int) -> None: ... + @deprecated("Use gtk_widget_set_focus_on_click() instead") def set_focus_on_click(self, focus_on_click: bool) -> None: ... def set_id_column(self, id_column: int) -> None: ... def set_model(self, model: Optional[TreeModel] = None) -> None: ... def set_popup_fixed_width(self, fixed: bool) -> None: ... def set_row_separator_func(self, func: Callable[..., bool], *data: Any) -> None: ... def set_row_span_column(self, row_span: int) -> None: ... + @deprecated("This method is deprecated") def set_title(self, title: str) -> None: ... def set_wrap_width(self, width: int) -> None: ... @@ -15809,6 +16064,9 @@ class Container(Widget, Atk.ImplementorIface, Buildable): def get_focus_hadjustment(self) -> Optional[Adjustment]: ... def get_focus_vadjustment(self) -> Optional[Adjustment]: ... def get_path_for_child(self, child: Widget) -> WidgetPath: ... + @deprecated( + "Resize modes are deprecated. They aren’t necessary anymore since frame clocks and might introduce obscure bugs if used." + ) def get_resize_mode(self) -> ResizeMode: ... def handle_border_width(self) -> None: ... def install_child_properties(self, pspecs: Sequence[GObject.ParamSpec]) -> None: ... @@ -15820,14 +16078,21 @@ class Container(Widget, Atk.ImplementorIface, Buildable): self, child: Widget, cr: cairo.Context[_SomeSurface] ) -> None: ... def remove(self, widget: Widget) -> None: ... + @deprecated("This method is deprecated") def resize_children(self) -> None: ... def set_border_width(self, border_width: int) -> None: ... + @deprecated("For overriding focus behavior, use the GtkWidgetClass::focus signal.") def set_focus_chain(self, focusable_widgets: list[Widget]) -> None: ... def set_focus_child(self, child: Optional[Widget] = None) -> None: ... def set_focus_hadjustment(self, adjustment: Adjustment) -> None: ... def set_focus_vadjustment(self, adjustment: Adjustment) -> None: ... + @deprecated("Call gtk_widget_queue_draw() in your size_allocate handler.") def set_reallocate_redraws(self, needs_redraws: bool) -> None: ... + @deprecated( + "Resize modes are deprecated. They aren’t necessary anymore since frame clocks and might introduce obscure bugs if used." + ) def set_resize_mode(self, resize_mode: ResizeMode) -> None: ... + @deprecated("For overriding focus behavior, use the GtkWidgetClass::focus signal.") def unset_focus_chain(self) -> None: ... class ContainerAccessible(WidgetAccessible, Atk.Component): @@ -16139,6 +16404,7 @@ class CssProvider(GObject.Object, StyleProvider): parent_instance: GObject.Object = ... priv: CssProviderPrivate = ... def do_parsing_error(self, section: CssSection, error: GLib.Error) -> None: ... + @deprecated("Use gtk_css_provider_new() instead.") @staticmethod def get_default() -> CssProvider: ... @staticmethod @@ -16604,6 +16870,9 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): def add_buttons(self, *args): ... # FIXME Function def do_close(self) -> None: ... def do_response(self, response_id: int) -> None: ... + @deprecated( + "Direct access to the action area is discouraged; use gtk_dialog_add_button(), etc." + ) def get_action_area(self) -> Box: ... def get_content_area(self) -> Box: ... def get_header_bar(self) -> HeaderBar: ... @@ -16613,6 +16882,7 @@ class Dialog(Window, Atk.ImplementorIface, Buildable): def new(cls) -> Dialog: ... def response(self, response_id: int) -> None: ... def run(self, *args, **kwargs): ... # FIXME Function + @deprecated("Deprecated") def set_alternative_button_order_from_array( self, new_order: Sequence[int] ) -> None: ... @@ -17456,10 +17726,14 @@ class Entry(Widget, Atk.ImplementorIface, Buildable, CellEditable, Editable): self, icon_pos: EntryIconPosition ) -> Optional[GdkPixbuf.Pixbuf]: ... def get_icon_sensitive(self, icon_pos: EntryIconPosition) -> bool: ... + @deprecated("Use gtk_entry_get_icon_name() instead.") def get_icon_stock(self, icon_pos: EntryIconPosition) -> str: ... def get_icon_storage_type(self, icon_pos: EntryIconPosition) -> ImageType: ... def get_icon_tooltip_markup(self, icon_pos: EntryIconPosition) -> Optional[str]: ... def get_icon_tooltip_text(self, icon_pos: EntryIconPosition) -> Optional[str]: ... + @deprecated( + "Use the standard border and padding CSS properties (through objects like #GtkStyleContext and #GtkCssProvider); the value returned by this function is ignored by #GtkEntry." + ) def get_inner_border(self) -> Optional[Border]: ... def get_input_hints(self) -> InputHints: ... def get_input_purpose(self) -> InputPurpose: ... @@ -17514,6 +17788,7 @@ class Entry(Widget, Atk.ImplementorIface, Buildable, CellEditable, Editable): def set_icon_from_pixbuf( self, icon_pos: EntryIconPosition, pixbuf: Optional[GdkPixbuf.Pixbuf] = None ) -> None: ... + @deprecated("Use gtk_entry_set_icon_from_icon_name() instead.") def set_icon_from_stock( self, icon_pos: EntryIconPosition, stock_id: Optional[str] = None ) -> None: ... @@ -17526,6 +17801,9 @@ class Entry(Widget, Atk.ImplementorIface, Buildable, CellEditable, Editable): def set_icon_tooltip_text( self, icon_pos: EntryIconPosition, tooltip: Optional[str] = None ) -> None: ... + @deprecated( + "Use the standard border and padding CSS properties (through objects like #GtkStyleContext and #GtkCssProvider); the value set with this function is ignored by #GtkEntry." + ) def set_inner_border(self, border: Optional[Border] = None) -> None: ... def set_input_hints(self, hints: InputHints) -> None: ... def set_input_purpose(self, purpose: InputPurpose) -> None: ... @@ -18781,6 +19059,7 @@ class Expander(Bin, Atk.ImplementorIface, Buildable): def get_label_fill(self) -> bool: ... def get_label_widget(self) -> Optional[Widget]: ... def get_resize_toplevel(self) -> bool: ... + @deprecated("Use margins on the child instead.") def get_spacing(self) -> int: ... def get_use_markup(self) -> bool: ... def get_use_underline(self) -> bool: ... @@ -18793,6 +19072,7 @@ class Expander(Bin, Atk.ImplementorIface, Buildable): def set_label_fill(self, label_fill: bool) -> None: ... def set_label_widget(self, label_widget: Optional[Widget] = None) -> None: ... def set_resize_toplevel(self, resize_toplevel: bool) -> None: ... + @deprecated("Use margins on the child instead.") def set_spacing(self, spacing: int) -> None: ... def set_use_markup(self, use_markup: bool) -> None: ... def set_use_underline(self, use_underline: bool) -> None: ... @@ -19346,6 +19626,7 @@ class FileChooserButton(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien orientation: Orientation = ..., ): ... def do_file_set(self) -> None: ... + @deprecated("Use gtk_widget_get_focus_on_click() instead") def get_focus_on_click(self) -> bool: ... def get_title(self) -> str: ... def get_width_chars(self) -> int: ... @@ -19353,6 +19634,7 @@ class FileChooserButton(Box, Atk.ImplementorIface, Buildable, FileChooser, Orien def new(cls, title: str, action: FileChooserAction) -> FileChooserButton: ... @classmethod def new_with_dialog(cls, dialog: Dialog) -> FileChooserButton: ... + @deprecated("Use gtk_widget_set_focus_on_click() instead") def set_focus_on_click(self, focus_on_click: bool) -> None: ... def set_title(self, title: str) -> None: ... def set_width_chars(self, n_chars: int) -> None: ... @@ -22051,6 +22333,7 @@ class FontButton( show_preview_entry: bool = ..., ): ... def do_font_set(self) -> None: ... + @deprecated("Use gtk_font_chooser_get_font() instead") def get_font_name(self) -> str: ... def get_show_size(self) -> bool: ... def get_show_style(self) -> bool: ... @@ -22061,6 +22344,7 @@ class FontButton( def new(cls) -> FontButton: ... @classmethod def new_with_font(cls, fontname: str) -> FontButton: ... + @deprecated("Use gtk_font_chooser_set_font() instead") def set_font_name(self, fontname: str) -> bool: ... def set_show_size(self, show_size: bool) -> None: ... def set_show_style(self, show_style: bool) -> None: ... @@ -23211,19 +23495,32 @@ class FontSelection(Box, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use #GtkFontChooser") def get_face(self) -> Pango.FontFace: ... + @deprecated("Use #GtkFontChooser") def get_face_list(self) -> Widget: ... + @deprecated("Use #GtkFontChooser") def get_family(self) -> Pango.FontFamily: ... + @deprecated("Use #GtkFontChooser") def get_family_list(self) -> Widget: ... + @deprecated("Use #GtkFontChooser") def get_font_name(self) -> str: ... + @deprecated("Use #GtkFontChooser") def get_preview_entry(self) -> Widget: ... + @deprecated("Use #GtkFontChooser") def get_preview_text(self) -> str: ... + @deprecated("Use #GtkFontChooser") def get_size(self) -> int: ... + @deprecated("Use #GtkFontChooser") def get_size_entry(self) -> Widget: ... + @deprecated("Use #GtkFontChooser") def get_size_list(self) -> Widget: ... + @deprecated("Use #GtkFontChooserWidget instead") @classmethod def new(cls) -> FontSelection: ... + @deprecated("Use #GtkFontChooser") def set_font_name(self, fontname: str) -> bool: ... + @deprecated("Use #GtkFontChooser") def set_preview_text(self, text: str) -> None: ... class FontSelectionClass(GObject.GPointer): @@ -23656,14 +23953,22 @@ class FontSelectionDialog(Dialog, Atk.ImplementorIface, Buildable): visible: bool = ..., width_request: int = ..., ): ... + @deprecated("Use #GtkFontChooserDialog") def get_cancel_button(self) -> Widget: ... + @deprecated("Use #GtkFontChooserDialog") def get_font_name(self) -> str: ... + @deprecated("Use #GtkFontChooserDialog") def get_font_selection(self) -> Widget: ... + @deprecated("Use #GtkFontChooserDialog") def get_ok_button(self) -> Widget: ... + @deprecated("Use #GtkFontChooserDialog") def get_preview_text(self) -> str: ... + @deprecated("Use #GtkFontChooserDialog") @classmethod def new(cls, title: str) -> FontSelectionDialog: ... + @deprecated("Use #GtkFontChooserDialog") def set_font_name(self, fontname: str) -> bool: ... + @deprecated("Use #GtkFontChooserDialog") def set_preview_text(self, text: str) -> None: ... class FontSelectionDialogClass(GObject.GPointer): @@ -25156,17 +25461,24 @@ class Gradient(GObject.GBoxed): new_radial(x0:float, y0:float, radius0:float, x1:float, y1:float, radius1:float) -> Gtk.Gradient """ + @deprecated("#GtkGradient is deprecated.") def add_color_stop(self, offset: float, color: SymbolicColor) -> None: ... + @deprecated("#GtkGradient is deprecated.") @classmethod def new_linear(cls, x0: float, y0: float, x1: float, y1: float) -> Gradient: ... + @deprecated("#GtkGradient is deprecated.") @classmethod def new_radial( cls, x0: float, y0: float, radius0: float, x1: float, y1: float, radius1: float ) -> Gradient: ... + @deprecated("#GtkGradient is deprecated.") def ref(self) -> Gradient: ... + @deprecated("#GtkGradient is deprecated.") def resolve(self, props: StyleProperties) -> Tuple[bool, cairo.Pattern]: ... def resolve_for_context(self, context: StyleContext) -> cairo.Pattern: ... + @deprecated("#GtkGradient is deprecated.") def to_string(self) -> str: ... + @deprecated("#GtkGradient is deprecated.") def unref(self) -> None: ... class Grid(Container, Atk.ImplementorIface, Buildable, Orientable): @@ -25797,6 +26109,9 @@ class HBox(Box, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated( + "You should use gtk_box_new() with a %GTK_ORIENTATION_HORIZONTAL #GtkOrientable:orientation instead" + ) @classmethod def new(cls, homogeneous: bool, spacing: int) -> HBox: ... @@ -26100,6 +26415,7 @@ class HButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_button_box_new() with %GTK_ORIENTATION_HORIZONTAL instead") @classmethod def new(cls) -> HButtonBox: ... @@ -26411,6 +26727,7 @@ class HPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_paned_new() with %GTK_ORIENTATION_HORIZONTAL instead") @classmethod def new(cls) -> HPaned: ... @@ -27019,8 +27336,12 @@ class HScale(Scale, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_scale_new() with %GTK_ORIENTATION_HORIZONTAL instead") @classmethod def new(cls, adjustment: Optional[Adjustment] = None) -> HScale: ... + @deprecated( + "Use gtk_scale_new_with_range() with %GTK_ORIENTATION_HORIZONTAL instead" + ) @classmethod def new_with_range(cls, min: float, max: float, step: float) -> HScale: ... @@ -27324,6 +27645,7 @@ class HScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_scrollbar_new() with %GTK_ORIENTATION_HORIZONTAL instead") @classmethod def new(cls, adjustment: Optional[Adjustment] = None) -> HScrollbar: ... @@ -27587,6 +27909,7 @@ class HSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_separator_new() with %GTK_ORIENTATION_HORIZONTAL instead") @classmethod def new(cls) -> HSeparator: ... @@ -27896,14 +28219,22 @@ class HandleBox(Bin, Atk.ImplementorIface, Buildable): ): ... def do_child_attached(self, child: Widget) -> None: ... def do_child_detached(self, child: Widget) -> None: ... + @deprecated("#GtkHandleBox has been deprecated.") def get_child_detached(self) -> bool: ... + @deprecated("#GtkHandleBox has been deprecated.") def get_handle_position(self) -> PositionType: ... + @deprecated("#GtkHandleBox has been deprecated.") def get_shadow_type(self) -> ShadowType: ... + @deprecated("#GtkHandleBox has been deprecated.") def get_snap_edge(self) -> PositionType: ... + @deprecated("#GtkHandleBox has been deprecated.") @classmethod def new(cls) -> HandleBox: ... + @deprecated("#GtkHandleBox has been deprecated.") def set_handle_position(self, position: PositionType) -> None: ... + @deprecated("#GtkHandleBox has been deprecated.") def set_shadow_type(self, type: ShadowType) -> None: ... + @deprecated("#GtkHandleBox has been deprecated.") def set_snap_edge(self, edge: PositionType) -> None: ... class HandleBoxClass(GObject.GPointer): @@ -28585,6 +28916,9 @@ class IMMulticontext(IMContext): def __init__( self, input_hints: InputHints = ..., input_purpose: InputPurpose = ... ): ... + @deprecated( + "It is better to use the system-wide input method framework for changing input methods. Modern desktop shells offer on-screen displays for this that can triggered with a keyboard shortcut, e.g. Super-Space." + ) def append_menuitems(self, menushell: MenuShell) -> None: ... def get_context_id(self) -> str: ... @classmethod @@ -28625,13 +28959,19 @@ class IconFactory(GObject.Object, Buildable): parent_instance: GObject.Object = ... priv: IconFactoryPrivate = ... + @deprecated("Use #GtkIconTheme instead.") def add(self, stock_id: str, icon_set: IconSet) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def add_default(self) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def lookup(self, stock_id: str) -> IconSet: ... + @deprecated("Use #GtkIconTheme instead.") @staticmethod def lookup_default(stock_id: str) -> IconSet: ... + @deprecated("Use #GtkIconTheme instead.") @classmethod def new(cls) -> IconFactory: ... + @deprecated("Use #GtkIconTheme instead.") def remove_default(self) -> None: ... class IconFactoryClass(GObject.GPointer): @@ -28666,11 +29006,17 @@ class IconInfo(GObject.Object): notify (GParam) """ + @deprecated("Attachment points are deprecated") def get_attach_points(self) -> Tuple[bool, list[Gdk.Point]]: ... def get_base_scale(self) -> int: ... def get_base_size(self) -> int: ... + @deprecated( + "This function is deprecated, use gtk_icon_theme_add_resource_path() instead of builtin icons." + ) def get_builtin_pixbuf(self) -> Optional[GdkPixbuf.Pixbuf]: ... + @deprecated("Display names are deprecated") def get_display_name(self) -> str: ... + @deprecated("Embedded rectangles are deprecated") def get_embedded_rect(self) -> Tuple[bool, Gdk.Rectangle]: ... def get_filename(self) -> Optional[str]: ... def is_symbolic(self) -> bool: ... @@ -28719,6 +29065,7 @@ class IconInfo(GObject.Object): def load_symbolic_for_context_finish( self, res: Gio.AsyncResult ) -> Tuple[GdkPixbuf.Pixbuf, bool]: ... + @deprecated("Use gtk_icon_info_load_symbolic_for_context() instead") def load_symbolic_for_style( self, style: Style, state: StateType ) -> Tuple[GdkPixbuf.Pixbuf, bool]: ... @@ -28726,6 +29073,7 @@ class IconInfo(GObject.Object): def new_for_pixbuf( cls, icon_theme: IconTheme, pixbuf: GdkPixbuf.Pixbuf ) -> IconInfo: ... + @deprecated("Embedded rectangles and attachment points are deprecated") def set_raw_coordinates(self, raw_coordinates: bool) -> None: ... class IconInfoClass(GObject.GPointer): ... @@ -28740,14 +29088,21 @@ class IconSet(GObject.GBoxed): new_from_pixbuf(pixbuf:GdkPixbuf.Pixbuf) -> Gtk.IconSet """ + @deprecated("Use #GtkIconTheme instead.") def add_source(self, source: IconSource) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def copy(self) -> IconSet: ... + @deprecated("Use #GtkIconTheme instead.") def get_sizes(self) -> list[int]: ... + @deprecated("Use #GtkIconTheme instead.") @classmethod def new(cls) -> IconSet: ... + @deprecated("Use #GtkIconTheme instead.") @classmethod def new_from_pixbuf(cls, pixbuf: GdkPixbuf.Pixbuf) -> IconSet: ... + @deprecated("Use #GtkIconTheme instead.") def ref(self) -> IconSet: ... + @deprecated("Use gtk_icon_set_render_icon_pixbuf() instead") def render_icon( self, style: Optional[Style], @@ -28757,9 +29112,11 @@ class IconSet(GObject.GBoxed): widget: Optional[Widget] = None, detail: Optional[str] = None, ) -> GdkPixbuf.Pixbuf: ... + @deprecated("Use #GtkIconTheme instead.") def render_icon_pixbuf( self, context: StyleContext, size: int ) -> GdkPixbuf.Pixbuf: ... + @deprecated("Use #GtkIconTheme instead.") def render_icon_surface( self, context: StyleContext, @@ -28767,6 +29124,7 @@ class IconSet(GObject.GBoxed): scale: int, for_window: Optional[Gdk.Window] = None, ) -> cairo.Surface: ... + @deprecated("Use #GtkIconTheme instead.") def unref(self) -> None: ... class IconSource(GObject.GBoxed): @@ -28778,27 +29136,48 @@ class IconSource(GObject.GBoxed): new() -> Gtk.IconSource """ + @deprecated("Use #GtkIconTheme instead.") def copy(self) -> IconSource: ... + @deprecated("Use #GtkIconTheme instead.") def free(self) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def get_direction(self) -> TextDirection: ... + @deprecated("Use #GtkIconTheme instead.") def get_direction_wildcarded(self) -> bool: ... + @deprecated("Use #GtkIconTheme instead.") def get_filename(self) -> str: ... + @deprecated("Use #GtkIconTheme instead.") def get_icon_name(self) -> str: ... + @deprecated("Use #GtkIconTheme instead.") def get_pixbuf(self) -> GdkPixbuf.Pixbuf: ... + @deprecated("Use #GtkIconTheme instead.") def get_size(self) -> int: ... + @deprecated("Use #GtkIconTheme instead.") def get_size_wildcarded(self) -> bool: ... + @deprecated("Use #GtkIconTheme instead.") def get_state(self) -> StateType: ... + @deprecated("Use #GtkIconTheme instead.") def get_state_wildcarded(self) -> bool: ... + @deprecated("Use #GtkIconTheme instead.") @classmethod def new(cls) -> IconSource: ... + @deprecated("Use #GtkIconTheme instead.") def set_direction(self, direction: TextDirection) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_direction_wildcarded(self, setting: bool) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_filename(self, filename: str) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_size(self, size: int) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_size_wildcarded(self, setting: bool) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_state(self, state: StateType) -> None: ... + @deprecated("Use #GtkIconTheme instead.") def set_state_wildcarded(self, setting: bool) -> None: ... class IconTheme(GObject.Object): @@ -28821,6 +29200,9 @@ class IconTheme(GObject.Object): parent_instance: GObject.Object = ... priv: IconThemePrivate = ... + @deprecated( + "Use gtk_icon_theme_add_resource_path() to add application-specific icons to the icon theme." + ) @staticmethod def add_builtin_icon( icon_name: str, size: int, pixbuf: GdkPixbuf.Pixbuf @@ -29835,9 +30217,11 @@ class Image(Misc, Atk.ImplementorIface, Buildable): def get_animation(self) -> Optional[GdkPixbuf.PixbufAnimation]: ... def get_gicon(self) -> Tuple[Gio.Icon, int]: ... def get_icon_name(self) -> Tuple[str, int]: ... + @deprecated("Use gtk_image_get_icon_name() instead.") def get_icon_set(self) -> Tuple[IconSet, int]: ... def get_pixbuf(self) -> Optional[GdkPixbuf.Pixbuf]: ... def get_pixel_size(self) -> int: ... + @deprecated("Use gtk_image_get_icon_name() instead.") def get_stock(self) -> Tuple[str, int]: ... def get_storage_type(self) -> ImageType: ... @classmethod @@ -29850,12 +30234,14 @@ class Image(Misc, Atk.ImplementorIface, Buildable): def new_from_gicon(cls, icon: Gio.Icon, size: int) -> Image: ... @classmethod def new_from_icon_name(cls, icon_name: Optional[str], size: int) -> Image: ... + @deprecated("Use gtk_image_new_from_icon_name() instead.") @classmethod def new_from_icon_set(cls, icon_set: IconSet, size: int) -> Image: ... @classmethod def new_from_pixbuf(cls, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> Image: ... @classmethod def new_from_resource(cls, resource_path: str) -> Image: ... + @deprecated("Use gtk_image_new_from_icon_name() instead.") @classmethod def new_from_stock(cls, stock_id: str, size: int) -> Image: ... @classmethod @@ -29864,9 +30250,11 @@ class Image(Misc, Atk.ImplementorIface, Buildable): def set_from_file(self, filename: Optional[str] = None) -> None: ... def set_from_gicon(self, icon: Gio.Icon, size: int) -> None: ... def set_from_icon_name(self, icon_name: Optional[str], size: int) -> None: ... + @deprecated("Use gtk_image_set_from_icon_name() instead.") def set_from_icon_set(self, icon_set: IconSet, size: int) -> None: ... def set_from_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... def set_from_resource(self, resource_path: Optional[str] = None) -> None: ... + @deprecated("Use gtk_image_set_from_icon_name() instead.") def set_from_stock(self, stock_id: str, size: int) -> None: ... def set_from_surface(self, surface: Optional[cairo.Surface] = None) -> None: ... def set_pixel_size(self, pixel_size: int) -> None: ... @@ -30456,22 +30844,33 @@ class ImageMenuItem(MenuItem, Atk.ImplementorIface, Actionable, Activatable, Bui related_action: Action = ..., use_action_appearance: bool = ..., ): ... + @deprecated("This method is deprecated") def get_always_show_image(self) -> bool: ... + @deprecated("This method is deprecated") def get_image(self) -> Widget: ... + @deprecated("This method is deprecated") def get_use_stock(self) -> bool: ... + @deprecated("Use gtk_menu_item_new() instead.") @classmethod def new(cls) -> ImageMenuItem: ... + @deprecated("Use gtk_menu_item_new_with_mnemonic() instead.") @classmethod def new_from_stock( cls, stock_id: str, accel_group: Optional[AccelGroup] = None ) -> ImageMenuItem: ... + @deprecated("Use gtk_menu_item_new_with_label() instead.") @classmethod def new_with_label(cls, label: str) -> ImageMenuItem: ... + @deprecated("Use gtk_menu_item_new_with_mnemonic() instead.") @classmethod def new_with_mnemonic(cls, label: str) -> ImageMenuItem: ... + @deprecated("This method is deprecated") def set_accel_group(self, accel_group: AccelGroup) -> None: ... + @deprecated("This method is deprecated") def set_always_show_image(self, always_show: bool) -> None: ... + @deprecated("This method is deprecated") def set_image(self, image: Optional[Widget] = None) -> None: ... + @deprecated("This method is deprecated") def set_use_stock(self, use_stock: bool) -> None: ... class ImageMenuItemClass(GObject.GPointer): @@ -31966,8 +32365,10 @@ class Layout(Container, Atk.ImplementorIface, Buildable, Scrollable): vscroll_policy: ScrollablePolicy = ..., ): ... def get_bin_window(self) -> Gdk.Window: ... + @deprecated("Use gtk_scrollable_get_hadjustment()") def get_hadjustment(self) -> Adjustment: ... def get_size(self) -> Tuple[int, int]: ... + @deprecated("Use gtk_scrollable_get_vadjustment()") def get_vadjustment(self) -> Adjustment: ... def move(self, child_widget: Widget, x: int, y: int) -> None: ... @classmethod @@ -31977,8 +32378,10 @@ class Layout(Container, Atk.ImplementorIface, Buildable, Scrollable): vadjustment: Optional[Adjustment] = None, ) -> Layout: ... def put(self, child_widget: Widget, x: int, y: int) -> None: ... + @deprecated("Use gtk_scrollable_set_hadjustment()") def set_hadjustment(self, adjustment: Optional[Adjustment] = None) -> None: ... def set_size(self, width: int, height: int) -> None: ... + @deprecated("Use gtk_scrollable_set_vadjustment()") def set_vadjustment(self, adjustment: Optional[Adjustment] = None) -> None: ... class LayoutClass(GObject.GPointer): @@ -34766,7 +35169,9 @@ class Menu(MenuShell, Atk.ImplementorIface, Buildable): def get_for_attach_widget(widget: Widget) -> list[Widget]: ... def get_monitor(self) -> int: ... def get_reserve_toggle_size(self) -> bool: ... + @deprecated("This method is deprecated") def get_tearoff_state(self) -> bool: ... + @deprecated("This method is deprecated") def get_title(self) -> str: ... @classmethod def new(cls) -> Menu: ... @@ -34800,6 +35205,9 @@ class Menu(MenuShell, Atk.ImplementorIface, Buildable): menu_anchor: Gdk.Gravity, trigger_event: Optional[Gdk.Event] = None, ) -> None: ... + @deprecated( + "Please use gtk_menu_popup_at_widget(), gtk_menu_popup_at_pointer(). or gtk_menu_popup_at_rect() instead" + ) def popup_for_device( self, device: Optional[Gdk.Device], @@ -34818,7 +35226,9 @@ class Menu(MenuShell, Atk.ImplementorIface, Buildable): def set_monitor(self, monitor_num: int) -> None: ... def set_reserve_toggle_size(self, reserve_toggle_size: bool) -> None: ... def set_screen(self, screen: Optional[Gdk.Screen] = None) -> None: ... + @deprecated("This method is deprecated") def set_tearoff_state(self, torn_off: bool) -> None: ... + @deprecated("This method is deprecated") def set_title(self, title: Optional[str] = None) -> None: ... class MenuAccessible(MenuShellAccessible, Atk.Component, Atk.Selection): @@ -36132,6 +36542,7 @@ class MenuItem(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): def get_accel_path(self) -> Optional[str]: ... def get_label(self) -> str: ... def get_reserve_indicator(self) -> bool: ... + @deprecated("See gtk_menu_item_set_right_justified()") def get_right_justified(self) -> bool: ... def get_submenu(self) -> Optional[Widget]: ... def get_use_underline(self) -> bool: ... @@ -36145,6 +36556,9 @@ class MenuItem(Bin, Atk.ImplementorIface, Actionable, Activatable, Buildable): def set_accel_path(self, accel_path: Optional[str] = None) -> None: ... def set_label(self, label: str) -> None: ... def set_reserve_indicator(self, reserve: bool) -> None: ... + @deprecated( + "If you insist on using it, use gtk_widget_set_hexpand() and gtk_widget_set_halign()." + ) def set_right_justified(self, right_justified: bool) -> None: ... def set_submenu(self, submenu: Optional[Menu] = None) -> None: ... def set_use_underline(self, setting: bool) -> None: ... @@ -37102,6 +37516,7 @@ class MenuToolButton( def new( cls, icon_widget: Optional[Widget] = None, label: Optional[str] = None ) -> MenuToolButton: ... + @deprecated("Use gtk_menu_tool_button_new() instead.") @classmethod def new_from_stock(cls, stock_id: str) -> MenuToolButton: ... def set_arrow_tooltip_markup(self, markup: str) -> None: ... @@ -37577,8 +37992,10 @@ class MessageDialog(Dialog, Atk.ImplementorIface, Buildable): def format_secondary_markup(self, message_format: str) -> None: ... # override def format_secondary_text(self, message_format: str) -> None: ... + @deprecated("Use #GtkDialog for dialogs with images") def get_image(self) -> Widget: ... def get_message_area(self) -> Widget: ... + @deprecated("Use #GtkDialog to create dialogs with images") def set_image(self, image: Widget) -> None: ... def set_markup(self, str: str) -> None: ... @@ -37864,9 +38281,15 @@ class Misc(Widget, Atk.ImplementorIface, Buildable): visible: bool = ..., width_request: int = ..., ): ... + @deprecated("Use #GtkWidget alignment and margin properties.") def get_alignment(self) -> Tuple[float, float]: ... + @deprecated("Use #GtkWidget alignment and margin properties.") def get_padding(self) -> Tuple[int, int]: ... + @deprecated( + "Use #GtkWidget's alignment (#GtkWidget:halign and #GtkWidget:valign) and margin properties or #GtkLabel's #GtkLabel:xalign and #GtkLabel:yalign properties." + ) def set_alignment(self, xalign: float, yalign: float) -> None: ... + @deprecated("Use #GtkWidget alignment and margin properties.") def set_padding(self, xpad: int, ypad: int) -> None: ... class MiscClass(GObject.GPointer): @@ -38768,11 +39191,13 @@ class Notebook(Container, Atk.ImplementorIface, Buildable): def get_show_border(self) -> bool: ... def get_show_tabs(self) -> bool: ... def get_tab_detachable(self, child: Widget) -> bool: ... + @deprecated("this function returns zero") def get_tab_hborder(self) -> int: ... def get_tab_label(self, child: Widget) -> Optional[Widget]: ... def get_tab_label_text(self, child: Widget) -> Optional[str]: ... def get_tab_pos(self) -> PositionType: ... def get_tab_reorderable(self, child: Widget) -> bool: ... + @deprecated("this function returns zero") def get_tab_vborder(self) -> int: ... def insert_page( self, child: Widget, tab_label: Optional[Widget], position: int @@ -39135,21 +39560,33 @@ class NumerableIcon(Gio.EmblemedIcon, Gio.Icon): style_context: StyleContext = ..., gicon: Gio.Icon = ..., ): ... + @deprecated("This method is deprecated") def get_background_gicon(self) -> Optional[Gio.Icon]: ... + @deprecated("This method is deprecated") def get_background_icon_name(self) -> Optional[str]: ... + @deprecated("This method is deprecated") def get_count(self) -> int: ... + @deprecated("This method is deprecated") def get_label(self) -> Optional[str]: ... + @deprecated("This method is deprecated") def get_style_context(self) -> Optional[StyleContext]: ... + @deprecated("This method is deprecated") @staticmethod def new(base_icon: Gio.Icon) -> Gio.Icon: ... + @deprecated("This method is deprecated") @staticmethod def new_with_style_context( base_icon: Gio.Icon, context: StyleContext ) -> Gio.Icon: ... + @deprecated("This method is deprecated") def set_background_gicon(self, icon: Optional[Gio.Icon] = None) -> None: ... + @deprecated("This method is deprecated") def set_background_icon_name(self, icon_name: Optional[str] = None) -> None: ... + @deprecated("This method is deprecated") def set_count(self, count: int) -> None: ... + @deprecated("This method is deprecated") def set_label(self, label: Optional[str] = None) -> None: ... + @deprecated("This method is deprecated") def set_style_context(self, style: StyleContext) -> None: ... class NumerableIconClass(GObject.GPointer): @@ -40968,6 +41405,9 @@ class PlacesSidebar(ScrolledWindow, Atk.ImplementorIface, Buildable): def get_location(self) -> Optional[Gio.File]: ... def get_nth_bookmark(self, n: int) -> Optional[Gio.File]: ... def get_open_flags(self) -> PlacesOpenFlags: ... + @deprecated( + "It is recommended to group this functionality with the drives and network location under the new 'Other Location' item" + ) def get_show_connect_to_server(self) -> bool: ... def get_show_desktop(self) -> bool: ... def get_show_enter_location(self) -> bool: ... @@ -40985,6 +41425,9 @@ class PlacesSidebar(ScrolledWindow, Atk.ImplementorIface, Buildable): def set_local_only(self, local_only: bool) -> None: ... def set_location(self, location: Optional[Gio.File] = None) -> None: ... def set_open_flags(self, flags: PlacesOpenFlags) -> None: ... + @deprecated( + "It is recommended to group this functionality with the drives and network location under the new 'Other Location' item" + ) def set_show_connect_to_server(self, show_connect_to_server: bool) -> None: ... def set_show_desktop(self, show_desktop: bool) -> None: ... def set_show_enter_location(self, show_enter_location: bool) -> None: ... @@ -41896,6 +42339,9 @@ class Popover(Bin, Atk.ImplementorIface, Buildable): def get_pointing_to(self) -> Tuple[bool, Gdk.Rectangle]: ... def get_position(self) -> PositionType: ... def get_relative_to(self) -> Widget: ... + @deprecated( + "You can show or hide the popover without transitions using gtk_widget_show() and gtk_widget_hide() while gtk_popover_popup() and gtk_popover_popdown() will use transitions." + ) def get_transitions_enabled(self) -> bool: ... @classmethod def new(cls, relative_to: Optional[Widget] = None) -> Popover: ... @@ -41911,6 +42357,9 @@ class Popover(Bin, Atk.ImplementorIface, Buildable): def set_pointing_to(self, rect: Gdk.Rectangle) -> None: ... def set_position(self, position: PositionType) -> None: ... def set_relative_to(self, relative_to: Optional[Widget] = None) -> None: ... + @deprecated( + "You can show or hide the popover without transitions using gtk_widget_show() and gtk_widget_hide() while gtk_popover_popup() and gtk_popover_popdown() will use transitions." + ) def set_transitions_enabled(self, transitions_enabled: bool) -> None: ... class PopoverAccessible(ContainerAccessible, Atk.Component): @@ -43290,9 +43739,13 @@ class RadioAction(ToggleAction, Buildable): visible_vertical: bool = ..., ): ... def do_changed(self, current: RadioAction) -> None: ... + @deprecated("This method is deprecated") def get_current_value(self) -> int: ... + @deprecated("This method is deprecated") def get_group(self) -> list[RadioAction]: ... + @deprecated("This method is deprecated") def join_group(self, group_source: Optional[RadioAction] = None) -> None: ... + @deprecated("This method is deprecated") @classmethod def new( cls, @@ -43302,7 +43755,9 @@ class RadioAction(ToggleAction, Buildable): stock_id: Optional[str], value: int, ) -> RadioAction: ... + @deprecated("This method is deprecated") def set_current_value(self, current_value: int) -> None: ... + @deprecated("This method is deprecated") def set_group(self, group: Optional[list[RadioAction]] = None) -> None: ... class RadioActionClass(GObject.GPointer): @@ -43321,6 +43776,7 @@ class RadioActionClass(GObject.GPointer): _gtk_reserved3: None = ... _gtk_reserved4: None = ... +@deprecated("This class is deprecated") class RadioActionEntry(GObject.GPointer): """ :Constructors: @@ -44731,6 +45187,7 @@ class RadioToolButton( def get_group(self) -> list[RadioButton]: ... @classmethod def new(cls, group: Optional[list[RadioButton]] = None) -> RadioToolButton: ... + @deprecated("Use gtk_radio_tool_button_new() instead.") @classmethod def new_from_stock( cls, group: Optional[list[RadioButton]], stock_id: str @@ -44739,6 +45196,7 @@ class RadioToolButton( def new_from_widget( cls, group: Optional[RadioToolButton] = None ) -> RadioToolButton: ... + @deprecated("gtk_radio_tool_button_new_from_widget") @classmethod def new_with_stock_from_widget( cls, group: Optional[RadioToolButton], stock_id: str @@ -45062,6 +45520,7 @@ class Range(Widget, Atk.ImplementorIface, Buildable, Orientable): def get_flippable(self) -> bool: ... def get_inverted(self) -> bool: ... def get_lower_stepper_sensitivity(self) -> SensitivityType: ... + @deprecated("Use the min-height/min-width CSS properties on the slider node.") def get_min_slider_size(self) -> int: ... def get_range_rect(self) -> Gdk.Rectangle: ... def get_restrict_to_fill_level(self) -> bool: ... @@ -45077,6 +45536,7 @@ class Range(Widget, Atk.ImplementorIface, Buildable, Orientable): def set_increments(self, step: float, page: float) -> None: ... def set_inverted(self, setting: bool) -> None: ... def set_lower_stepper_sensitivity(self, sensitivity: SensitivityType) -> None: ... + @deprecated("Use the min-height/min-width CSS properties on the slider node.") def set_min_slider_size(self, min_size: int) -> None: ... def set_range(self, min: float, max: float) -> None: ... def set_restrict_to_fill_level(self, restrict_to_fill_level: bool) -> None: ... @@ -45294,9 +45754,11 @@ class RcStyle(GObject.Object): rc_style_lists: list[None] = ... icon_factories: list[None] = ... engine_specified: int = ... + @deprecated("Use #GtkCssProvider instead.") def copy(self) -> RcStyle: ... def do_merge(self, src: RcStyle) -> None: ... def do_parse(self, settings: Settings, scanner: GLib.Scanner) -> int: ... + @deprecated("Use #GtkCssProvider instead.") @classmethod def new(cls) -> RcStyle: ... @@ -45441,7 +45903,9 @@ class RecentAction(Action, Buildable, RecentChooser): show_tips: bool = ..., sort_type: RecentSortType = ..., ): ... + @deprecated("This method is deprecated") def get_show_numbers(self) -> bool: ... + @deprecated("This method is deprecated") @classmethod def new( cls, @@ -45450,6 +45914,7 @@ class RecentAction(Action, Buildable, RecentChooser): tooltip: Optional[str] = None, stock_id: Optional[str] = None, ) -> RecentAction: ... + @deprecated("This method is deprecated") @classmethod def new_for_manager( cls, @@ -45459,6 +45924,7 @@ class RecentAction(Action, Buildable, RecentChooser): stock_id: Optional[str] = None, manager: Optional[RecentManager] = None, ) -> RecentAction: ... + @deprecated("This method is deprecated") def set_show_numbers(self, show_numbers: bool) -> None: ... class RecentActionClass(GObject.GPointer): @@ -49021,6 +49487,9 @@ class ScrolledWindow(Bin, Atk.ImplementorIface, Buildable): visible: bool = ..., width_request: int = ..., ): ... + @deprecated( + "gtk_container_add() will automatically add a #GtkViewport if the child doesn’t implement #GtkScrollable." + ) def add_with_viewport(self, child: Widget) -> None: ... def do_move_focus_out(self, direction: DirectionType) -> None: ... def do_scroll_child(self, scroll: ScrollType, horizontal: bool) -> bool: ... @@ -51321,17 +51790,23 @@ class Settings(GObject.Object, StyleProvider): def get_default() -> Optional[Settings]: ... @staticmethod def get_for_screen(screen: Gdk.Screen) -> Settings: ... + @deprecated("This function is not useful outside GTK+.") @staticmethod def install_property(pspec: GObject.ParamSpec) -> None: ... + @deprecated("This function is not useful outside GTK+.") @staticmethod def install_property_parser( pspec: GObject.ParamSpec, parser: Callable[[GObject.ParamSpec, GLib.String, Any], bool], ) -> None: ... def reset_property(self, name: str) -> None: ... + @deprecated("Use g_object_set() instead.") def set_double_property(self, name: str, v_double: float, origin: str) -> None: ... + @deprecated("Use g_object_set() instead.") def set_long_property(self, name: str, v_long: int, origin: str) -> None: ... + @deprecated("Use g_object_set() instead.") def set_property_value(self, name: str, svalue: SettingsValue) -> None: ... + @deprecated("Use g_object_set() instead.") def set_string_property(self, name: str, v_string: str, origin: str) -> None: ... class SettingsClass(GObject.GPointer): @@ -53066,12 +53541,18 @@ class SizeGroup(GObject.Object, Buildable): priv: SizeGroupPrivate = ... def __init__(self, ignore_hidden: bool = ..., mode: SizeGroupMode = ...): ... def add_widget(self, widget: Widget) -> None: ... + @deprecated( + "Measuring the size of hidden widgets has not worked reliably for a long time. In most cases, they will report a size of 0 nowadays, and thus, their size will not affect the other size group members. In effect, size groups will always operate as if this property was %TRUE. Use a #GtkStack instead to hide widgets while still having their size taken into account." + ) def get_ignore_hidden(self) -> bool: ... def get_mode(self) -> SizeGroupMode: ... def get_widgets(self) -> list[Widget]: ... @classmethod def new(cls, mode: SizeGroupMode) -> SizeGroup: ... def remove_widget(self, widget: Widget) -> None: ... + @deprecated( + "Measuring the size of hidden widgets has not worked reliably for a long time. In most cases, they will report a size of 0 nowadays, and thus, their size will not affect the other size group members. In effect, size groups will always operate as if this property was %TRUE. Use a #GtkStack instead to hide widgets while still having their size taken into account." + ) def set_ignore_hidden(self, ignore_hidden: bool) -> None: ... def set_mode(self, mode: SizeGroupMode) -> None: ... @@ -55799,46 +56280,144 @@ class StatusIcon(GObject.Object): ) -> bool: ... def do_scroll_event(self, event: Gdk.EventScroll) -> bool: ... def do_size_changed(self, size: int) -> bool: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, as the platform is responsible for the presentation of notifications" + ) def get_geometry(self) -> Tuple[bool, Gdk.Screen, Gdk.Rectangle, Orientation]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_gicon(self) -> Optional[Gio.Icon]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_has_tooltip(self) -> bool: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_icon_name(self) -> Optional[str]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_pixbuf(self) -> Optional[GdkPixbuf.Pixbuf]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, as notifications are managed by the platform" + ) def get_screen(self) -> Gdk.Screen: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, as the representation of a notification is left to the platform" + ) def get_size(self) -> int: ... + @deprecated("Use gtk_status_icon_get_icon_name() instead.") def get_stock(self) -> Optional[str]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, and #GNotification only supports #GIcon instances" + ) def get_storage_type(self) -> ImageType: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_title(self) -> str: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_tooltip_markup(self) -> Optional[str]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_tooltip_text(self) -> Optional[str]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_visible(self) -> bool: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def get_x11_window_id(self) -> int: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def is_embedded(self) -> bool: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications" + ) @classmethod def new(cls) -> StatusIcon: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications" + ) @classmethod def new_from_file(cls, filename: str) -> StatusIcon: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications" + ) @classmethod def new_from_gicon(cls, icon: Gio.Icon) -> StatusIcon: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications" + ) @classmethod def new_from_icon_name(cls, icon_name: str) -> StatusIcon: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications" + ) @classmethod def new_from_pixbuf(cls, pixbuf: GdkPixbuf.Pixbuf) -> StatusIcon: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications" + ) @classmethod def new_from_stock(cls, stock_id: str) -> StatusIcon: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; notifications do not have menus, but can have buttons, and actions associated with each button" + ) @staticmethod def position_menu(menu: Menu, user_data: StatusIcon) -> Tuple[int, int, bool]: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; you can use g_notification_set_icon() to associate a #GIcon with a notification" + ) def set_from_file(self, filename: str) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; you can use g_notification_set_icon() to associate a #GIcon with a notification" + ) def set_from_gicon(self, icon: Gio.Icon) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; you can use g_notification_set_icon() to associate a #GIcon with a notification" + ) def set_from_icon_name(self, icon_name: str) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; you can use g_notification_set_icon() to associate a #GIcon with a notification" + ) def set_from_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... + @deprecated("Use gtk_status_icon_set_from_icon_name() instead.") def set_from_stock(self, stock_id: str) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, but notifications can display an arbitrary amount of text using g_notification_set_body()" + ) def set_has_tooltip(self, has_tooltip: bool) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, as notifications are associated with a unique application identifier by #GApplication" + ) def set_name(self, name: str) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, as GTK typically only has one #GdkScreen and notifications are managed by the platform" + ) def set_screen(self, screen: Gdk.Screen) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; you should use g_notification_set_title() and g_notification_set_body() to present text inside your notification" + ) def set_title(self, title: str) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def set_tooltip_markup(self, markup: Optional[str] = None) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function" + ) def set_tooltip_text(self, text: str) -> None: ... + @deprecated( + "Use #GNotification and #GtkApplication to provide status notifications; there is no direct replacement for this function, as notifications are managed by the platform" + ) def set_visible(self, visible: bool) -> None: ... class StatusIconClass(GObject.GPointer): @@ -56303,6 +56882,7 @@ class StatusbarClass(GObject.GPointer): class StatusbarPrivate(GObject.GPointer): ... +@deprecated("This class is deprecated") class StockItem(GObject.GPointer): """ :Constructors: @@ -56317,6 +56897,7 @@ class StockItem(GObject.GPointer): modifier: Gdk.ModifierType = ... keyval: int = ... translation_domain: str = ... + @deprecated("This method is deprecated") def free(self) -> None: ... class Style(GObject.Object): @@ -56368,6 +56949,7 @@ class Style(GObject.Object): property_cache: list[None] = ... icon_factories: list[None] = ... def __init__(self, context: StyleContext = ...): ... + @deprecated("Use #GtkStyleContext instead") def apply_default_background( self, cr: cairo.Context[_SomeSurface], @@ -56378,7 +56960,9 @@ class Style(GObject.Object): width: int, height: int, ) -> None: ... + @deprecated("Use #GtkStyleContext instead") def copy(self) -> Style: ... + @deprecated("Use #GtkStyleContext instead") def detach(self) -> None: ... def do_copy(self, src: Style) -> None: ... def do_draw_arrow( @@ -56639,10 +57223,14 @@ class Style(GObject.Object): def do_unrealize(self) -> None: ... def get_style_property(self, widget_type: Type, property_name: str) -> Any: ... def has_context(self) -> bool: ... + @deprecated("Use gtk_style_context_lookup_color() instead") def lookup_color(self, color_name: str) -> Tuple[bool, Gdk.Color]: ... + @deprecated("Use gtk_style_context_lookup_icon_set() instead") def lookup_icon_set(self, stock_id: str) -> IconSet: ... + @deprecated("Use #GtkStyleContext") @classmethod def new(cls) -> Style: ... + @deprecated("Use gtk_render_icon_pixbuf() instead") def render_icon( self, source: IconSource, @@ -56652,6 +57240,7 @@ class Style(GObject.Object): widget: Optional[Widget] = None, detail: Optional[str] = None, ) -> GdkPixbuf.Pixbuf: ... + @deprecated("Use gtk_style_context_set_background() instead") def set_background(self, window: Gdk.Window, state_type: StateType) -> None: ... class StyleClass(GObject.GPointer): @@ -57028,14 +57617,22 @@ class StyleContext(GObject.Object): def add_provider_for_screen( screen: Gdk.Screen, provider: StyleProvider, priority: int ) -> None: ... + @deprecated("This method is deprecated") def add_region(self, region_name: str, flags: RegionFlags) -> None: ... + @deprecated("This function does nothing.") def cancel_animations(self, region_id: None) -> None: ... def do_changed(self) -> None: ... + @deprecated("Use gtk_render_background() instead.") def get_background_color(self, state: StateFlags) -> Gdk.RGBA: ... def get_border(self, state: StateFlags) -> Border: ... + @deprecated("Use gtk_render_frame() instead.") def get_border_color(self, state: StateFlags) -> Gdk.RGBA: ... def get_color(self, state: StateFlags) -> Gdk.RGBA: ... + @deprecated( + "Use gtk_style_context_get_state() and check for #GTK_STATE_FLAG_DIR_LTR and #GTK_STATE_FLAG_DIR_RTL instead." + ) def get_direction(self) -> TextDirection: ... + @deprecated('Use gtk_style_context_get() for "font" or subproperties instead.') def get_font(self, state: StateFlags) -> Pango.FontDescription: ... def get_frame_clock(self) -> Optional[Gdk.FrameClock]: ... def get_junction_sides(self) -> JunctionSides: ... @@ -57050,18 +57647,25 @@ class StyleContext(GObject.Object): def get_state(self) -> StateFlags: ... def get_style_property(self, property_name: str, value: Any) -> None: ... def has_class(self, class_name: str) -> bool: ... + @deprecated("This method is deprecated") def has_region(self, region_name: str) -> Tuple[bool, RegionFlags]: ... + @deprecated("Style contexts are invalidated automatically.") def invalidate(self) -> None: ... def list_classes(self) -> list[str]: ... + @deprecated("This method is deprecated") def list_regions(self) -> list[str]: ... def lookup_color(self, color_name: str) -> Tuple[bool, Gdk.RGBA]: ... + @deprecated("Use gtk_icon_theme_lookup_icon() instead.") def lookup_icon_set(self, stock_id: str) -> Optional[IconSet]: ... @classmethod def new(cls) -> StyleContext: ... + @deprecated("This function does nothing.") def notify_state_change( self, window: Gdk.Window, region_id: None, state: StateType, state_value: bool ) -> None: ... + @deprecated("This function does nothing.") def pop_animatable_region(self) -> None: ... + @deprecated("This function does nothing.") def push_animatable_region(self, region_id: None) -> None: ... def remove_class(self, class_name: str) -> None: ... def remove_provider(self, provider: StyleProvider) -> None: ... @@ -57069,13 +57673,21 @@ class StyleContext(GObject.Object): def remove_provider_for_screen( screen: Gdk.Screen, provider: StyleProvider ) -> None: ... + @deprecated("This method is deprecated") def remove_region(self, region_name: str) -> None: ... @staticmethod def reset_widgets(screen: Gdk.Screen) -> None: ... def restore(self) -> None: ... def save(self) -> None: ... + @deprecated("This function does nothing.") def scroll_animations(self, window: Gdk.Window, dx: int, dy: int) -> None: ... + @deprecated( + "Use gtk_render_background() instead. Note that clients still using this function are now responsible for calling this function again whenever @context is invalidated." + ) def set_background(self, window: Gdk.Window) -> None: ... + @deprecated( + "Use gtk_style_context_set_state() with #GTK_STATE_FLAG_DIR_LTR and #GTK_STATE_FLAG_DIR_RTL instead." + ) def set_direction(self, direction: TextDirection) -> None: ... def set_frame_clock(self, frame_clock: Gdk.FrameClock) -> None: ... def set_junction_sides(self, sides: JunctionSides) -> None: ... @@ -57084,6 +57696,7 @@ class StyleContext(GObject.Object): def set_scale(self, scale: int) -> None: ... def set_screen(self, screen: Gdk.Screen) -> None: ... def set_state(self, flags: StateFlags) -> None: ... + @deprecated("This function always returns %FALSE") def state_is_running(self, state: StateType) -> Tuple[bool, float]: ... def to_string(self, flags: StyleContextPrintFlags) -> str: ... @@ -57125,14 +57738,22 @@ class StyleProperties(GObject.Object, StyleProvider): parent_object: GObject.Object = ... priv: StylePropertiesPrivate = ... + @deprecated("#GtkStyleProperties are deprecated.") def clear(self) -> None: ... + @deprecated("#GtkStyleProperties are deprecated.") def get_property(self, property: str, state: StateFlags) -> Tuple[bool, Any]: ... + @deprecated("#GtkSymbolicColor is deprecated.") def lookup_color(self, name: str) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") def map_color(self, name: str, color: SymbolicColor) -> None: ... + @deprecated("#GtkStyleProperties are deprecated.") def merge(self, props_to_merge: StyleProperties, replace: bool) -> None: ... + @deprecated("#GtkStyleProperties are deprecated.") @classmethod def new(cls) -> StyleProperties: ... + @deprecated("#GtkStyleProperties are deprecated.") def set_property(self, property: str, state: StateFlags, value: Any) -> None: ... + @deprecated("#GtkStyleProperties are deprecated.") def unset_property(self, property: str, state: StateFlags) -> None: ... class StylePropertiesClass(GObject.GPointer): @@ -57157,7 +57778,11 @@ class StyleProvider(GObject.GInterface): Interface GtkStyleProvider """ + @deprecated("Will always return %NULL for all GTK-provided style providers.") def get_icon_factory(self, path: WidgetPath) -> Optional[IconFactory]: ... + @deprecated( + "Will always return %NULL for all GTK-provided style providers as the interface cannot correctly work the way CSS is specified." + ) def get_style(self, path: WidgetPath) -> Optional[StyleProperties]: ... def get_style_property( self, path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec @@ -57608,25 +58233,35 @@ class SymbolicColor(GObject.GBoxed): new_win32(theme_class:str, id:int) -> Gtk.SymbolicColor """ + @deprecated("#GtkSymbolicColor is deprecated.") @classmethod def new_alpha(cls, color: SymbolicColor, factor: float) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") @classmethod def new_literal(cls, color: Gdk.RGBA) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") @classmethod def new_mix( cls, color1: SymbolicColor, color2: SymbolicColor, factor: float ) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") @classmethod def new_name(cls, name: str) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") @classmethod def new_shade(cls, color: SymbolicColor, factor: float) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") @classmethod def new_win32(cls, theme_class: str, id: int) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") def ref(self) -> SymbolicColor: ... + @deprecated("#GtkSymbolicColor is deprecated.") def resolve( self, props: Optional[StyleProperties] = None ) -> Tuple[bool, Gdk.RGBA]: ... + @deprecated("#GtkSymbolicColor is deprecated.") def to_string(self) -> str: ... + @deprecated("#GtkSymbolicColor is deprecated.") def unref(self) -> None: ... class Table(Container, Atk.ImplementorIface, Buildable): @@ -57932,6 +58567,9 @@ class Table(Container, Atk.ImplementorIface, Buildable): xpadding: int, ypadding: int, ): ... + @deprecated( + "Use gtk_grid_attach() with #GtkGrid. Note that the attach arguments differ between those two functions." + ) def attach_defaults( self, widget: Widget, @@ -57940,19 +58578,40 @@ class Table(Container, Atk.ImplementorIface, Buildable): top_attach: int, bottom_attach: int, ) -> None: ... + @deprecated("#GtkGrid does not offer a replacement for this functionality.") def get_col_spacing(self, column: int) -> int: ... + @deprecated("Use gtk_grid_get_column_spacing() with #GtkGrid.") def get_default_col_spacing(self) -> int: ... + @deprecated("Use gtk_grid_get_row_spacing() with #GtkGrid.") def get_default_row_spacing(self) -> int: ... + @deprecated( + "Use gtk_grid_get_row_homogeneous() and gtk_grid_get_column_homogeneous() with #GtkGrid." + ) def get_homogeneous(self) -> bool: ... + @deprecated("#GtkGrid does not offer a replacement for this functionality.") def get_row_spacing(self, row: int) -> int: ... + @deprecated("#GtkGrid does not expose the number of columns and rows.") def get_size(self) -> Tuple[int, int]: ... + @deprecated("Use gtk_grid_new().") @classmethod def new(cls, rows: int, columns: int, homogeneous: bool) -> Table: ... + @deprecated("#GtkGrid resizes automatically.") def resize(self, rows: int, columns: int) -> None: ... + @deprecated( + "Use gtk_widget_set_margin_start() and gtk_widget_set_margin_end() on the widgets contained in the row if you need this functionality. #GtkGrid does not support per-row spacing." + ) def set_col_spacing(self, column: int, spacing: int) -> None: ... + @deprecated("Use gtk_grid_set_column_spacing() with #GtkGrid.") def set_col_spacings(self, spacing: int) -> None: ... + @deprecated( + "Use gtk_grid_set_row_homogeneous() and gtk_grid_set_column_homogeneous() with #GtkGrid." + ) def set_homogeneous(self, homogeneous: bool) -> None: ... + @deprecated( + "Use gtk_widget_set_margin_top() and gtk_widget_set_margin_bottom() on the widgets contained in the row if you need this functionality. #GtkGrid does not support per-row spacing." + ) def set_row_spacing(self, row: int, spacing: int) -> None: ... + @deprecated("Use gtk_grid_set_row_spacing() with #GtkGrid.") def set_row_spacings(self, spacing: int) -> None: ... class TableChild(GObject.GPointer): @@ -58376,6 +59035,9 @@ class TearoffMenuItem( related_action: Action = ..., use_action_appearance: bool = ..., ): ... + @deprecated( + "#GtkTearoffMenuItem is deprecated and should not be used in newly written code." + ) @classmethod def new(cls) -> TearoffMenuItem: ... @@ -58928,6 +59590,7 @@ class TextIter(GObject.GBoxed): def backward_visible_word_starts(self, count: int) -> bool: ... def backward_word_start(self) -> bool: ... def backward_word_starts(self, count: int) -> bool: ... + @deprecated("Use gtk_text_iter_starts_tag() instead.") def begins_tag(self, tag: Optional[TextTag] = None) -> bool: ... def can_insert(self, default_editability: bool) -> bool: ... def compare(self, rhs: TextIter) -> int: ... @@ -59891,6 +60554,7 @@ class TextView(Container, Atk.ImplementorIface, Buildable, Scrollable): def get_cursor_visible(self) -> bool: ... def get_default_attributes(self) -> TextAttributes: ... def get_editable(self) -> bool: ... + @deprecated("Use gtk_scrollable_get_hadjustment()") def get_hadjustment(self) -> Adjustment: ... def get_indent(self) -> int: ... def get_input_hints(self) -> InputHints: ... @@ -59910,6 +60574,7 @@ class TextView(Container, Atk.ImplementorIface, Buildable, Scrollable): def get_right_margin(self) -> int: ... def get_tabs(self) -> Optional[Pango.TabArray]: ... def get_top_margin(self) -> int: ... + @deprecated("Use gtk_scrollable_get_vadjustment()") def get_vadjustment(self) -> Adjustment: ... def get_visible_rect(self) -> Gdk.Rectangle: ... def get_window(self, win: TextWindowType) -> Optional[Gdk.Window]: ... @@ -60287,25 +60952,46 @@ class ThemingEngine(GObject.Object): height: float, orientation: Orientation, ) -> None: ... + @deprecated("This method is deprecated") def get_background_color(self, state: StateFlags) -> Gdk.RGBA: ... + @deprecated("This method is deprecated") def get_border(self, state: StateFlags) -> Border: ... + @deprecated("This method is deprecated") def get_border_color(self, state: StateFlags) -> Gdk.RGBA: ... + @deprecated("This method is deprecated") def get_color(self, state: StateFlags) -> Gdk.RGBA: ... + @deprecated( + "Use gtk_theming_engine_get_state() and check for #GTK_STATE_FLAG_DIR_LTR and #GTK_STATE_FLAG_DIR_RTL instead." + ) def get_direction(self) -> TextDirection: ... + @deprecated("Use gtk_theming_engine_get()") def get_font(self, state: StateFlags) -> Pango.FontDescription: ... + @deprecated("This method is deprecated") def get_junction_sides(self) -> JunctionSides: ... + @deprecated("This method is deprecated") def get_margin(self, state: StateFlags) -> Border: ... + @deprecated("This method is deprecated") def get_padding(self, state: StateFlags) -> Border: ... + @deprecated("This method is deprecated") def get_path(self) -> WidgetPath: ... + @deprecated("This method is deprecated") def get_property(self, property: str, state: StateFlags) -> Any: ... + @deprecated("This method is deprecated") def get_screen(self) -> Optional[Gdk.Screen]: ... + @deprecated("This method is deprecated") def get_state(self) -> StateFlags: ... + @deprecated("This method is deprecated") def get_style_property(self, property_name: str) -> Any: ... + @deprecated("This method is deprecated") def has_class(self, style_class: str) -> bool: ... + @deprecated("This method is deprecated") def has_region(self, style_region: str) -> Tuple[bool, RegionFlags]: ... + @deprecated("This method is deprecated") @staticmethod def load(name: str) -> Optional[ThemingEngine]: ... + @deprecated("This method is deprecated") def lookup_color(self, color_name: str) -> Tuple[bool, Gdk.RGBA]: ... + @deprecated("Always returns %FALSE") def state_is_running(self, state: StateType) -> Tuple[bool, float]: ... class ThemingEngineClass(GObject.GPointer): @@ -60506,8 +61192,11 @@ class ToggleAction(Action, Buildable): visible_vertical: bool = ..., ): ... def do_toggled(self) -> None: ... + @deprecated("This method is deprecated") def get_active(self) -> bool: ... + @deprecated("This method is deprecated") def get_draw_as_radio(self) -> bool: ... + @deprecated("This method is deprecated") @classmethod def new( cls, @@ -60516,8 +61205,11 @@ class ToggleAction(Action, Buildable): tooltip: Optional[str] = None, stock_id: Optional[str] = None, ) -> ToggleAction: ... + @deprecated("This method is deprecated") def set_active(self, is_active: bool) -> None: ... + @deprecated("This method is deprecated") def set_draw_as_radio(self, draw_as_radio: bool) -> None: ... + @deprecated("This method is deprecated") def toggled(self) -> None: ... class ToggleActionClass(GObject.GPointer): @@ -60536,6 +61228,7 @@ class ToggleActionClass(GObject.GPointer): _gtk_reserved3: None = ... _gtk_reserved4: None = ... +@deprecated("This class is deprecated") class ToggleActionEntry(GObject.GPointer): """ :Constructors: @@ -61390,6 +62083,7 @@ class ToggleToolButton( def get_active(self) -> bool: ... @classmethod def new(cls) -> ToggleToolButton: ... + @deprecated("Use gtk_toggle_tool_button_new() instead.") @classmethod def new_from_stock(cls, stock_id: str) -> ToggleToolButton: ... def set_active(self, is_active: bool) -> None: ... @@ -61741,18 +62435,23 @@ class ToolButton(ToolItem, Atk.ImplementorIface, Actionable, Activatable, Builda def get_icon_widget(self) -> Optional[Widget]: ... def get_label(self) -> Optional[str]: ... def get_label_widget(self) -> Optional[Widget]: ... + @deprecated("Use gtk_tool_button_get_icon_name() instead.") def get_stock_id(self) -> str: ... def get_use_underline(self) -> bool: ... @classmethod def new( cls, icon_widget: Optional[Widget] = None, label: Optional[str] = None ) -> ToolButton: ... + @deprecated( + "Use gtk_tool_button_new() together with gtk_image_new_from_icon_name() instead." + ) @classmethod def new_from_stock(cls, stock_id: str) -> ToolButton: ... def set_icon_name(self, icon_name: Optional[str] = None) -> None: ... def set_icon_widget(self, icon_widget: Optional[Widget] = None) -> None: ... def set_label(self, label: Optional[str] = None) -> None: ... def set_label_widget(self, label_widget: Optional[Widget] = None) -> None: ... + @deprecated("Use gtk_tool_button_set_icon_name() instead.") def set_stock_id(self, stock_id: Optional[str] = None) -> None: ... def set_use_underline(self, use_underline: bool) -> None: ... @@ -62752,9 +63451,11 @@ class ToolPalette(Container, Atk.ImplementorIface, Buildable, Orientable, Scroll def get_exclusive(self, group: ToolItemGroup) -> bool: ... def get_expand(self, group: ToolItemGroup) -> bool: ... def get_group_position(self, group: ToolItemGroup) -> int: ... + @deprecated("Use gtk_scrollable_get_hadjustment()") def get_hadjustment(self) -> Adjustment: ... def get_icon_size(self) -> int: ... def get_style(self) -> ToolbarStyle: ... + @deprecated("Use gtk_scrollable_get_vadjustment()") def get_vadjustment(self) -> Adjustment: ... @classmethod def new(cls) -> ToolPalette: ... @@ -63177,6 +63878,7 @@ class Tooltip(GObject.Object): def set_icon(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... def set_icon_from_gicon(self, gicon: Optional[Gio.Icon], size: int) -> None: ... def set_icon_from_icon_name(self, icon_name: Optional[str], size: int) -> None: ... + @deprecated("Use gtk_tooltip_set_icon_from_icon_name() instead.") def set_icon_from_stock(self, stock_id: Optional[str], size: int) -> None: ... def set_markup(self, markup: Optional[str] = None) -> None: ... def set_text(self, text: Optional[str] = None) -> None: ... @@ -64809,6 +65511,7 @@ class UIManager(GObject.Object, Buildable): parent: GObject.Object = ... private_data: UIManagerPrivate = ... def __init__(self, add_tearoffs: bool = ...): ... + @deprecated("This method is deprecated") def add_ui( self, merge_id: int, @@ -64818,7 +65521,9 @@ class UIManager(GObject.Object, Buildable): type: UIManagerItemType, top: bool, ) -> None: ... + @deprecated("This method is deprecated") def add_ui_from_file(self, filename: str) -> int: ... + @deprecated("This method is deprecated") def add_ui_from_resource(self, resource_path: str) -> int: ... def add_ui_from_string(self, buffer): ... # FIXME Function def do_actions_changed(self) -> None: ... @@ -64829,20 +65534,37 @@ class UIManager(GObject.Object, Buildable): def do_get_widget(self, path: str) -> Widget: ... def do_post_activate(self, action: Action) -> None: ... def do_pre_activate(self, action: Action) -> None: ... + @deprecated("This method is deprecated") def ensure_update(self) -> None: ... + @deprecated("This method is deprecated") def get_accel_group(self) -> AccelGroup: ... + @deprecated("This method is deprecated") def get_action(self, path: str) -> Action: ... + @deprecated("This method is deprecated") def get_action_groups(self) -> list[ActionGroup]: ... + @deprecated( + "Tearoff menus are deprecated and should not be used in newly written code." + ) def get_add_tearoffs(self) -> bool: ... + @deprecated("This method is deprecated") def get_toplevels(self, types: UIManagerItemType) -> list[Widget]: ... + @deprecated("This method is deprecated") def get_ui(self) -> str: ... + @deprecated("This method is deprecated") def get_widget(self, path: str) -> Widget: ... def insert_action_group(self, buffer, length=-1): ... # FIXME Function + @deprecated("This method is deprecated") @classmethod def new(cls) -> UIManager: ... + @deprecated("This method is deprecated") def new_merge_id(self) -> int: ... + @deprecated("This method is deprecated") def remove_action_group(self, action_group: ActionGroup) -> None: ... + @deprecated("This method is deprecated") def remove_ui(self, merge_id: int) -> None: ... + @deprecated( + "Tearoff menus are deprecated and should not be used in newly written code." + ) def set_add_tearoffs(self, add_tearoffs: bool) -> None: ... class UIManagerClass(GObject.GPointer): @@ -65153,6 +65875,9 @@ class VBox(Box, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated( + "You should use gtk_box_new() with a %GTK_ORIENTATION_VERTICAL #GtkOrientable:orientation instead" + ) @classmethod def new(cls, homogeneous: bool, spacing: int) -> VBox: ... @@ -65456,6 +66181,7 @@ class VButtonBox(ButtonBox, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_button_box_new() with %GTK_ORIENTATION_VERTICAL instead") @classmethod def new(cls) -> VButtonBox: ... @@ -65767,6 +66493,7 @@ class VPaned(Paned, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_paned_new() with %GTK_ORIENTATION_VERTICAL instead") @classmethod def new(cls) -> VPaned: ... @@ -66092,8 +66819,10 @@ class VScale(Scale, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_scale_new() with %GTK_ORIENTATION_VERTICAL instead") @classmethod def new(cls, adjustment: Adjustment) -> VScale: ... + @deprecated("Use gtk_scale_new_with_range() with %GTK_ORIENTATION_VERTICAL instead") @classmethod def new_with_range(cls, min: float, max: float, step: float) -> VScale: ... @@ -66397,6 +67126,7 @@ class VScrollbar(Scrollbar, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_scrollbar_new() with %GTK_ORIENTATION_VERTICAL instead") @classmethod def new(cls, adjustment: Optional[Adjustment] = None) -> VScrollbar: ... @@ -66660,6 +67390,7 @@ class VSeparator(Separator, Atk.ImplementorIface, Buildable, Orientable): width_request: int = ..., orientation: Orientation = ..., ): ... + @deprecated("Use gtk_separator_new() with %GTK_ORIENTATION_VERTICAL instead") @classmethod def new(cls) -> VSeparator: ... @@ -66957,8 +67688,10 @@ class Viewport(Bin, Atk.ImplementorIface, Buildable, Scrollable): vscroll_policy: ScrollablePolicy = ..., ): ... def get_bin_window(self) -> Gdk.Window: ... + @deprecated("Use gtk_scrollable_get_hadjustment()") def get_hadjustment(self) -> Adjustment: ... def get_shadow_type(self) -> ShadowType: ... + @deprecated("Use gtk_scrollable_get_vadjustment()") def get_vadjustment(self) -> Adjustment: ... def get_view_window(self) -> Gdk.Window: ... @classmethod @@ -66967,8 +67700,10 @@ class Viewport(Bin, Atk.ImplementorIface, Buildable, Scrollable): hadjustment: Optional[Adjustment] = None, vadjustment: Optional[Adjustment] = None, ) -> Viewport: ... + @deprecated("Use gtk_scrollable_set_hadjustment()") def set_hadjustment(self, adjustment: Optional[Adjustment] = None) -> None: ... def set_shadow_type(self, type: ShadowType) -> None: ... + @deprecated("Use gtk_scrollable_set_vadjustment()") def set_vadjustment(self, adjustment: Optional[Adjustment] = None) -> None: ... class ViewportClass(GObject.GPointer): @@ -67631,6 +68366,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def can_activate_accel(self, signal_id: int) -> bool: ... def child_focus(self, direction: DirectionType) -> bool: ... def child_notify(self, child_property: str) -> None: ... + @deprecated("Use gtk_widget_get_path() instead") def class_path(self) -> Tuple[int, str, str]: ... def compute_expand(self, orientation: Orientation) -> bool: ... def create_pango_context(self) -> Pango.Context: ... @@ -67759,6 +68495,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def do_unrealize(self) -> None: ... def do_visibility_notify_event(self, event: Gdk.EventVisibility) -> bool: ... def do_window_state_event(self, event: Gdk.EventWindowState) -> bool: ... + @deprecated("Use gtk_drag_begin_with_coordinates() instead") def drag_begin( self, targets: TargetList, @@ -67792,6 +68529,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): targets: Optional[Sequence[TargetEntry]], actions: Gdk.DragAction, ) -> None: ... + @deprecated("This method is deprecated") def drag_dest_set_proxy( self, proxy_window: Gdk.Window, @@ -67819,11 +68557,13 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def drag_source_set_icon_gicon(self, icon: Gio.Icon) -> None: ... def drag_source_set_icon_name(self, icon_name: str) -> None: ... def drag_source_set_icon_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ... + @deprecated("Use gtk_drag_source_set_icon_name() instead.") def drag_source_set_icon_stock(self, stock_id: str) -> None: ... def drag_source_set_target_list(self, target_list): ... # FIXME Function def drag_source_unset(self) -> None: ... def drag_unhighlight(self) -> None: ... def draw(self, cr: cairo.Context[_SomeSurface]) -> None: ... + @deprecated("Use #GtkStyleContext instead") def ensure_style(self) -> None: ... def error_bell(self) -> None: ... def event(self, event: Gdk.Event) -> bool: ... @@ -67840,14 +68580,19 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def get_app_paintable(self) -> bool: ... def get_can_default(self) -> bool: ... def get_can_focus(self) -> bool: ... + @deprecated("Use gtk_widget_get_preferred_size() instead.") def get_child_requisition(self) -> Requisition: ... def get_child_visible(self) -> bool: ... def get_clip(self) -> Gdk.Rectangle: ... def get_clipboard(self, selection: Gdk.Atom) -> Clipboard: ... + @deprecated("Use gtk_widget_class_set_template(), or don’t use this API at all.") def get_composite_name(self) -> str: ... def get_css_name(self) -> str: ... @staticmethod def get_default_direction() -> TextDirection: ... + @deprecated( + "Use #GtkStyleContext instead, and gtk_css_provider_get_default() to obtain a #GtkStyleProvider with the default widget style information." + ) @staticmethod def get_default_style() -> Style: ... def get_device_enabled(self, device: Gdk.Device) -> bool: ... @@ -67868,11 +68613,14 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def get_mapped(self) -> bool: ... def get_margin_bottom(self) -> int: ... def get_margin_end(self) -> int: ... + @deprecated("Use gtk_widget_get_margin_start() instead.") def get_margin_left(self) -> int: ... + @deprecated("Use gtk_widget_get_margin_end() instead.") def get_margin_right(self) -> int: ... def get_margin_start(self) -> int: ... def get_margin_top(self) -> int: ... def get_modifier_mask(self, intent: Gdk.ModifierIntent) -> Gdk.ModifierType: ... + @deprecated("Use #GtkStyleContext with a custom #GtkStyleProvider instead") def get_modifier_style(self) -> RcStyle: ... def get_name(self) -> str: ... def get_no_show_all(self) -> bool: ... @@ -67881,6 +68629,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def get_parent(self) -> Optional[Widget]: ... def get_parent_window(self) -> Optional[Gdk.Window]: ... def get_path(self) -> WidgetPath: ... + @deprecated("Use gdk_window_get_device_position() instead.") def get_pointer(self) -> Tuple[int, int]: ... def get_preferred_height(self) -> Tuple[int, int]: ... def get_preferred_height_and_baseline_for_width( @@ -67893,15 +68642,21 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def get_realized(self) -> bool: ... def get_receives_default(self) -> bool: ... def get_request_mode(self) -> SizeRequestMode: ... + @deprecated( + "The #GtkRequisition cache on the widget was removed, If you need to cache sizes across requests and allocations, add an explicit cache to the widget in question instead." + ) def get_requisition(self) -> Requisition: ... + @deprecated("Use gdk_screen_get_root_window() instead") def get_root_window(self) -> Gdk.Window: ... def get_scale_factor(self) -> int: ... def get_screen(self) -> Gdk.Screen: ... def get_sensitive(self) -> bool: ... def get_settings(self) -> Settings: ... def get_size_request(self) -> Tuple[int, int]: ... + @deprecated("Use gtk_widget_get_state_flags() instead.") def get_state(self) -> StateType: ... def get_state_flags(self) -> StateFlags: ... + @deprecated("Use #GtkStyleContext instead") def get_style(self) -> Style: ... def get_style_context(self) -> StyleContext: ... def get_support_multidevice(self) -> bool: ... @@ -67924,6 +68679,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def has_default(self) -> bool: ... def has_focus(self) -> bool: ... def has_grab(self) -> bool: ... + @deprecated("Use #GtkStyleContext instead") def has_rc_style(self) -> bool: ... def has_screen(self) -> bool: ... def has_visible_focus(self) -> bool: ... @@ -67940,6 +68696,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def install_style_property(self, pspec: GObject.ParamSpec) -> None: ... def intersect(self, area: Gdk.Rectangle) -> Tuple[bool, Gdk.Rectangle]: ... def is_ancestor(self, ancestor: Widget) -> bool: ... + @deprecated("Use gdk_screen_is_composited() instead.") def is_composited(self) -> bool: ... def is_drawable(self) -> bool: ... def is_focus(self) -> bool: ... @@ -67953,45 +68710,70 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def list_style_properties(self) -> list[GObject.ParamSpec]: ... def map(self) -> None: ... def mnemonic_activate(self, group_cycling: bool) -> bool: ... + @deprecated("Use gtk_widget_override_background_color() instead") def modify_base( self, state: StateType, color: Optional[Gdk.Color] = None ) -> None: ... + @deprecated("Use gtk_widget_override_background_color() instead") def modify_bg( self, state: StateType, color: Optional[Gdk.Color] = None ) -> None: ... + @deprecated("Use gtk_widget_override_cursor() instead.") def modify_cursor( self, primary: Optional[Gdk.Color] = None, secondary: Optional[Gdk.Color] = None ) -> None: ... + @deprecated("Use gtk_widget_override_color() instead") def modify_fg( self, state: StateType, color: Optional[Gdk.Color] = None ) -> None: ... + @deprecated("Use gtk_widget_override_font() instead") def modify_font( self, font_desc: Optional[Pango.FontDescription] = None ) -> None: ... + @deprecated("Use #GtkStyleContext with a custom #GtkStyleProvider instead") def modify_style(self, style: RcStyle) -> None: ... + @deprecated("Use gtk_widget_override_color() instead") def modify_text( self, state: StateType, color: Optional[Gdk.Color] = None ) -> None: ... + @deprecated( + "This function is not useful in the context of CSS-based rendering. If you wish to change the way a widget renders its background you should use a custom CSS style, through an application-specific #GtkStyleProvider and a CSS style class. You can also override the default drawing of a widget through the #GtkWidget::draw signal, and use Cairo to draw a specific color, regardless of the CSS style." + ) def override_background_color( self, state: StateFlags, color: Optional[Gdk.RGBA] = None ) -> None: ... + @deprecated("Use a custom style provider and style classes instead") def override_color( self, state: StateFlags, color: Optional[Gdk.RGBA] = None ) -> None: ... + @deprecated( + "This function is not useful in the context of CSS-based rendering. If you wish to change the color used to render the primary and secondary cursors you should use a custom CSS style, through an application-specific #GtkStyleProvider and a CSS style class." + ) def override_cursor( self, cursor: Optional[Gdk.RGBA] = None, secondary_cursor: Optional[Gdk.RGBA] = None, ) -> None: ... + @deprecated( + "This function is not useful in the context of CSS-based rendering. If you wish to change the font a widget uses to render its text you should use a custom CSS style, through an application-specific #GtkStyleProvider and a CSS style class." + ) def override_font( self, font_desc: Optional[Pango.FontDescription] = None ) -> None: ... + @deprecated( + "This function is not useful in the context of CSS-based rendering. If you wish to change the color used to render symbolic icons you should use a custom CSS style, through an application-specific #GtkStyleProvider and a CSS style class." + ) def override_symbolic_color( self, name: str, color: Optional[Gdk.RGBA] = None ) -> None: ... + @deprecated("Use gtk_widget_get_path() instead") def path(self) -> Tuple[int, str, str]: ... + @deprecated("Use gtk_widget_class_set_template(), or don’t use this API at all.") @staticmethod def pop_composite_child() -> None: ... + @deprecated( + "This API never really worked well and was mostly unused, now we have a more complete mechanism for composite children, see gtk_widget_class_set_template()." + ) @staticmethod def push_composite_child() -> None: ... def queue_allocate(self) -> None: ... @@ -68002,6 +68784,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def queue_resize(self) -> None: ... def queue_resize_no_redraw(self) -> None: ... def realize(self) -> None: ... + @deprecated( + "Use gtk_widget_get_allocation() and cairo_region_intersect_rectangle() to get the same behavior." + ) def region_intersect(self, region: cairo.Region) -> cairo.Region: ... def register_window(self, window: Gdk.Window) -> None: ... def remove_accelerator( @@ -68009,15 +68794,22 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): ) -> bool: ... def remove_mnemonic_label(self, label: Widget) -> None: ... def remove_tick_callback(self, id: int) -> None: ... + @deprecated("Use gtk_widget_render_icon_pixbuf() instead.") def render_icon( self, stock_id: str, size: int, detail: Optional[str] = None ) -> Optional[GdkPixbuf.Pixbuf]: ... + @deprecated("Use gtk_icon_theme_load_icon() instead.") def render_icon_pixbuf( self, stock_id: str, size: int ) -> Optional[GdkPixbuf.Pixbuf]: ... + @deprecated("Use gtk_container_remove() and gtk_container_add().") def reparent(self, new_parent: Widget) -> None: ... + @deprecated("Use #GtkStyleContext instead, and gtk_widget_reset_style()") def reset_rc_styles(self) -> None: ... def reset_style(self) -> None: ... + @deprecated( + "Application and widget code should not handle expose events directly; invalidation should use the #GtkWidget API, and drawing should only happen inside #GtkWidget::draw implementations" + ) def send_expose(self, event: Gdk.Event) -> int: ... def send_focus_change(self, event: Gdk.Event) -> bool: ... def set_accel_path( @@ -68031,6 +68823,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def set_can_focus(self, can_focus: bool) -> None: ... def set_child_visible(self, is_visible: bool) -> None: ... def set_clip(self, clip: Gdk.Rectangle) -> None: ... + @deprecated("Use gtk_widget_class_set_template(), or don’t use this API at all.") def set_composite_name(self, name: str) -> None: ... def set_connect_func( self, connect_func: Callable[..., None], *connect_data: Any @@ -68041,6 +68834,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def set_device_enabled(self, device: Gdk.Device, enabled: bool) -> None: ... def set_device_events(self, device: Gdk.Device, events: Gdk.EventMask) -> None: ... def set_direction(self, dir: TextDirection) -> None: ... + @deprecated( + "This function does not work under non-X11 backends or with non-native windows. It should not be used in newly written code." + ) def set_double_buffered(self, double_buffered: bool) -> None: ... def set_events(self, events: int) -> None: ... def set_focus_on_click(self, focus_on_click: bool) -> None: ... @@ -68054,7 +68850,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def set_mapped(self, mapped: bool) -> None: ... def set_margin_bottom(self, margin: int) -> None: ... def set_margin_end(self, margin: int) -> None: ... + @deprecated("Use gtk_widget_set_margin_start() instead.") def set_margin_left(self, margin: int) -> None: ... + @deprecated("Use gtk_widget_set_margin_end() instead.") def set_margin_right(self, margin: int) -> None: ... def set_margin_start(self, margin: int) -> None: ... def set_margin_top(self, margin: int) -> None: ... @@ -68068,8 +68866,10 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def set_redraw_on_allocate(self, redraw_on_allocate: bool) -> None: ... def set_sensitive(self, sensitive: bool) -> None: ... def set_size_request(self, width: int, height: int) -> None: ... + @deprecated("Use gtk_widget_set_state_flags() instead.") def set_state(self, state: StateType) -> None: ... def set_state_flags(self, flags: StateFlags, clear: bool) -> None: ... + @deprecated("Use #GtkStyleContext instead") def set_style(self, style: Optional[Style] = None) -> None: ... def set_support_multidevice(self, support_multidevice: bool) -> None: ... def set_template(self, template_bytes: GLib.Bytes) -> None: ... @@ -68091,7 +68891,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def size_allocate_with_baseline( self, allocation: Gdk.Rectangle, baseline: int ) -> None: ... + @deprecated("Use gtk_widget_get_preferred_size() instead.") def size_request(self) -> Requisition: ... + @deprecated("This step is unnecessary with #GtkStyleContext.") def style_attach(self) -> None: ... def style_get_property(self, property_name, value=None): ... # FIXME Function def thaw_child_notify(self) -> None: ... @@ -68364,8 +69166,10 @@ class WidgetPath(GObject.GBoxed): def has_parent(self, type: Type) -> bool: ... def is_type(self, type: Type) -> bool: ... def iter_add_class(self, pos: int, name: str) -> None: ... + @deprecated("The use of regions is deprecated.") def iter_add_region(self, pos: int, name: str, flags: RegionFlags) -> None: ... def iter_clear_classes(self, pos: int) -> None: ... + @deprecated("The use of regions is deprecated.") def iter_clear_regions(self, pos: int) -> None: ... def iter_get_name(self, pos: int) -> Optional[str]: ... def iter_get_object_name(self, pos: int) -> Optional[str]: ... @@ -68377,11 +69181,15 @@ class WidgetPath(GObject.GBoxed): def iter_has_name(self, pos: int, name: str) -> bool: ... def iter_has_qclass(self, pos: int, qname: int) -> bool: ... def iter_has_qname(self, pos: int, qname: int) -> bool: ... + @deprecated("The use of regions is deprecated.") def iter_has_qregion(self, pos: int, qname: int) -> Tuple[bool, RegionFlags]: ... + @deprecated("The use of regions is deprecated.") def iter_has_region(self, pos: int, name: str) -> Tuple[bool, RegionFlags]: ... def iter_list_classes(self, pos: int) -> list[str]: ... + @deprecated("The use of regions is deprecated.") def iter_list_regions(self, pos: int) -> list[str]: ... def iter_remove_class(self, pos: int, name: str) -> None: ... + @deprecated("The use of regions is deprecated.") def iter_remove_region(self, pos: int, name: str) -> None: ... def iter_set_name(self, pos: int, name: str) -> None: ... def iter_set_object_name(self, pos: int, name: Optional[str] = None) -> None: ... @@ -68844,6 +69652,7 @@ class Window(Bin, Atk.ImplementorIface, Buildable): def get_focus_visible(self) -> bool: ... def get_gravity(self) -> Gdk.Gravity: ... def get_group(self) -> WindowGroup: ... + @deprecated("Resize grips have been removed.") def get_has_resize_grip(self) -> bool: ... def get_hide_titlebar_when_maximized(self) -> bool: ... def get_icon(self) -> Optional[GdkPixbuf.Pixbuf]: ... @@ -68852,9 +69661,11 @@ class Window(Bin, Atk.ImplementorIface, Buildable): def get_mnemonic_modifier(self) -> Gdk.ModifierType: ... def get_mnemonics_visible(self) -> bool: ... def get_modal(self) -> bool: ... + @deprecated("Use gtk_widget_get_opacity instead.") def get_opacity(self) -> float: ... def get_position(self) -> Tuple[int, int]: ... def get_resizable(self) -> bool: ... + @deprecated("Resize grips have been removed.") def get_resize_grip_area(self) -> Tuple[bool, Gdk.Rectangle]: ... def get_role(self) -> Optional[str]: ... def get_screen(self) -> Gdk.Screen: ... @@ -68879,15 +69690,23 @@ class Window(Bin, Atk.ImplementorIface, Buildable): def move(self, x: int, y: int) -> None: ... @classmethod def new(cls, type: WindowType) -> Window: ... + @deprecated("Geometry handling in GTK is deprecated.") def parse_geometry(self, geometry: str) -> bool: ... def present(self) -> None: ... def present_with_time(self, timestamp: int) -> None: ... def propagate_key_event(self, event: Gdk.EventKey) -> bool: ... def remove_accel_group(self, accel_group: AccelGroup) -> None: ... def remove_mnemonic(self, keyval: int, target: Widget) -> None: ... + @deprecated( + "GUI builders can call gtk_widget_hide(), gtk_widget_unrealize() and then gtk_widget_show() on @window themselves, if they still need this functionality." + ) def reshow_with_initial_size(self) -> None: ... def resize(self, width: int, height: int) -> None: ... + @deprecated("Resize grips have been removed.") def resize_grip_is_visible(self) -> bool: ... + @deprecated( + "This function does nothing. Use gtk_window_resize() and compute the geometry yourself." + ) def resize_to_geometry(self, width: int, height: int) -> None: ... def set_accept_focus(self, setting: bool) -> None: ... def set_application(self, application: Optional[Application] = None) -> None: ... @@ -68896,6 +69715,9 @@ class Window(Bin, Atk.ImplementorIface, Buildable): def set_auto_startup_notification(setting: bool) -> None: ... def set_decorated(self, setting: bool) -> None: ... def set_default(self, default_widget: Optional[Widget] = None) -> None: ... + @deprecated( + "This function does nothing. If you want to set a default size, use gtk_window_set_default_size() instead." + ) def set_default_geometry(self, width: int, height: int) -> None: ... @staticmethod def set_default_icon(icon: GdkPixbuf.Pixbuf) -> None: ... @@ -68918,6 +69740,7 @@ class Window(Bin, Atk.ImplementorIface, Buildable): geom_mask: Gdk.WindowHints, ) -> None: ... def set_gravity(self, gravity: Gdk.Gravity) -> None: ... + @deprecated("Resize grips have been removed.") def set_has_resize_grip(self, value: bool) -> None: ... def set_has_user_ref_count(self, setting: bool) -> None: ... def set_hide_titlebar_when_maximized(self, setting: bool) -> None: ... @@ -68932,6 +69755,7 @@ class Window(Bin, Atk.ImplementorIface, Buildable): def set_mnemonic_modifier(self, modifier: Gdk.ModifierType) -> None: ... def set_mnemonics_visible(self, setting: bool) -> None: ... def set_modal(self, modal: bool) -> None: ... + @deprecated("Use gtk_widget_set_opacity instead.") def set_opacity(self, opacity: float) -> None: ... def set_position(self, position: WindowPosition) -> None: ... def set_resizable(self, resizable: bool) -> None: ... @@ -68945,6 +69769,7 @@ class Window(Bin, Atk.ImplementorIface, Buildable): def set_transient_for(self, parent: Optional[Window] = None) -> None: ... def set_type_hint(self, hint: Gdk.WindowTypeHint) -> None: ... def set_urgency_hint(self, setting: bool) -> None: ... + @deprecated("This method is deprecated") def set_wmclass(self, wmclass_name: str, wmclass_class: str) -> None: ... def stick(self) -> None: ... def unfullscreen(self) -> None: ... @@ -69402,6 +70227,7 @@ class TreeModelFlags(GObject.GFlags): ITERS_PERSIST = 1 LIST_ONLY = 2 +@deprecated("This class is deprecated") class UIManagerItemType(GObject.GFlags): ACCELERATOR = 256 AUTO = 0 @@ -69594,11 +70420,13 @@ class FileChooserError(GObject.GEnum): @staticmethod def quark() -> int: ... +@deprecated("This class is deprecated") class IMPreeditStyle(GObject.GEnum): CALLBACK = 1 NONE = 2 NOTHING = 0 +@deprecated("This class is deprecated") class IMStatusStyle(GObject.GEnum): CALLBACK = 1 NONE = 2 @@ -69767,6 +70595,7 @@ class PanDirection(GObject.GEnum): RIGHT = 1 UP = 2 +@deprecated("This class is deprecated") class PathPriorityType(GObject.GEnum): APPLICATION = 8 GTK = 4 @@ -69775,6 +70604,7 @@ class PathPriorityType(GObject.GEnum): RC = 12 THEME = 10 +@deprecated("This class is deprecated") class PathType(GObject.GEnum): CLASS = 2 WIDGET = 0 @@ -69850,6 +70680,7 @@ class PropagationPhase(GObject.GEnum): NONE = 0 TARGET = 3 +@deprecated("Use #GtkCssProvider instead.") class RcTokenType(GObject.GEnum): ACTIVE = 273 APPLICATION = 296 @@ -70054,6 +70885,9 @@ class StackTransitionType(GObject.GEnum): UNDER_RIGHT = 15 UNDER_UP = 12 +@deprecated( + "All APIs that are using this enumeration have been deprecated in favor of alternatives using #GtkStateFlags." +) class StateType(GObject.GEnum): ACTIVE = 1 FOCUSED = 6 @@ -70092,6 +70926,7 @@ class TextWindowType(GObject.GEnum): TOP = 5 WIDGET = 1 +@deprecated("This class is deprecated") class ToolbarSpaceStyle(GObject.GEnum): EMPTY = 0 LINE = 1 diff --git a/src/gi-stubs/repository/_Gtk4.pyi b/src/gi-stubs/repository/_Gtk4.pyi index 95cbbce7..3db69aee 100644 --- a/src/gi-stubs/repository/_Gtk4.pyi +++ b/src/gi-stubs/repository/_Gtk4.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + import cairo from gi.repository import Gdk from gi.repository import GdkPixbuf @@ -175,6 +180,7 @@ def print_run_page_setup_dialog_async( *data: Any, ) -> None: ... def recent_manager_error_quark() -> int: ... +@deprecated("This function is deprecated") def render_activity( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -183,6 +189,7 @@ def render_activity( width: float, height: float, ) -> None: ... +@deprecated("This function is deprecated") def render_arrow( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -191,6 +198,7 @@ def render_arrow( y: float, size: float, ) -> None: ... +@deprecated("This function is deprecated") def render_background( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -199,6 +207,7 @@ def render_background( width: float, height: float, ) -> None: ... +@deprecated("This function is deprecated") def render_check( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -207,6 +216,7 @@ def render_check( width: float, height: float, ) -> None: ... +@deprecated("This function is deprecated") def render_expander( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -215,6 +225,7 @@ def render_expander( width: float, height: float, ) -> None: ... +@deprecated("This function is deprecated") def render_focus( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -223,6 +234,7 @@ def render_focus( width: float, height: float, ) -> None: ... +@deprecated("This function is deprecated") def render_frame( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -231,6 +243,7 @@ def render_frame( width: float, height: float, ) -> None: ... +@deprecated("This function is deprecated") def render_handle( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -239,6 +252,7 @@ def render_handle( width: float, height: float, ) -> None: ... +@deprecated("This function is deprecated") def render_icon( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -246,6 +260,7 @@ def render_icon( x: float, y: float, ) -> None: ... +@deprecated("This function is deprecated") def render_layout( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -253,6 +268,7 @@ def render_layout( y: float, layout: Pango.Layout, ) -> None: ... +@deprecated("This function is deprecated") def render_line( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -261,6 +277,7 @@ def render_line( x1: float, y1: float, ) -> None: ... +@deprecated("This function is deprecated") def render_option( context: StyleContext, cr: cairo.Context[_SomeSurface], @@ -271,7 +288,13 @@ def render_option( ) -> None: ... def rgb_to_hsv(r: float, g: float, b: float) -> Tuple[float, float, float]: ... def set_debug_flags(flags: DebugFlags) -> None: ... +@deprecated( + "Use [method@Gtk.FileLauncher.launch] or [method@Gtk.UriLauncher.launch] instead" +) def show_uri(parent: Optional[Window], uri: str, timestamp: int) -> None: ... +@deprecated( + "Use [method@Gtk.FileLauncher.launch] or [method@Gtk.UriLauncher.launch] instead" +) def show_uri_full( parent: Optional[Window], uri: str, @@ -280,6 +303,9 @@ def show_uri_full( callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... +@deprecated( + "Use [method@Gtk.FileLauncher.launch_finish] or [method@Gtk.UriLauncher.launch_finish] instead" +) def show_uri_full_finish(parent: Window, result: Gio.AsyncResult) -> bool: ... def test_accessible_assertion_message_role( domain: str, @@ -304,11 +330,15 @@ def test_accessible_has_state( def test_list_all_types() -> list[Type]: ... def test_register_all_types() -> None: ... def test_widget_wait_for_draw(widget: Widget) -> None: ... +@deprecated("Use list models instead") def tree_create_row_drag_content( tree_model: TreeModel, path: TreePath ) -> Gdk.ContentProvider: ... +@deprecated("Use list models instead") def tree_get_row_drag_data(value: Any) -> Tuple[bool, TreeModel, TreePath]: ... +@deprecated("This function is deprecated") def tree_row_reference_deleted(proxy: GObject.Object, path: TreePath) -> None: ... +@deprecated("This function is deprecated") def tree_row_reference_inserted(proxy: GObject.Object, path: TreePath) -> None: ... def value_dup_expression(value: Any) -> Optional[Expression]: ... def value_get_expression(value: Any) -> Optional[Expression]: ... @@ -1184,6 +1214,9 @@ class AnyFilter(MultiFilter, Gio.ListModel, Buildable): class AnyFilterClass(GObject.GPointer): ... +@deprecated( + "The application selection widgets should be implemented according to the design of each platform and/or application requiring them." +) class AppChooser(GObject.GInterface): """ Interface GtkAppChooser @@ -1192,10 +1225,16 @@ class AppChooser(GObject.GInterface): notify (GParam) """ + @deprecated("This widget will be removed in GTK 5") def get_app_info(self) -> Optional[Gio.AppInfo]: ... + @deprecated("This widget will be removed in GTK 5") def get_content_type(self) -> str: ... + @deprecated("This widget will be removed in GTK 5") def refresh(self) -> None: ... +@deprecated( + "The application selection widgets should be implemented according to the design of each platform and/or application requiring them." +) class AppChooserButton(Widget, Accessible, AppChooser, Buildable, ConstraintTarget): """ :Constructors: @@ -1353,20 +1392,35 @@ class AppChooserButton(Widget, Accessible, AppChooser, Buildable, ConstraintTarg accessible_role: AccessibleRole = ..., content_type: str = ..., ): ... + @deprecated("This widget will be removed in GTK 5") def append_custom_item(self, name: str, label: str, icon: Gio.Icon) -> None: ... + @deprecated("This widget will be removed in GTK 5") def append_separator(self) -> None: ... + @deprecated("This widget will be removed in GTK 5") def get_heading(self) -> Optional[str]: ... + @deprecated("This widget will be removed in GTK 5") def get_modal(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") def get_show_default_item(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") def get_show_dialog_item(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new(cls, content_type: str) -> AppChooserButton: ... + @deprecated("This widget will be removed in GTK 5") def set_active_custom_item(self, name: str) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_heading(self, heading: str) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_modal(self, modal: bool) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_show_default_item(self, setting: bool) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_show_dialog_item(self, setting: bool) -> None: ... +@deprecated( + "The application selection widgets should be implemented according to the design of each platform and/or application requiring them." +) class AppChooserDialog( Dialog, Accessible, @@ -1614,18 +1668,26 @@ class AppChooserDialog( accessible_role: AccessibleRole = ..., content_type: str = ..., ): ... + @deprecated("This widget will be removed in GTK 5") def get_heading(self) -> Optional[str]: ... + @deprecated("This widget will be removed in GTK 5") def get_widget(self) -> Widget: ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new( cls, parent: Optional[Window], flags: DialogFlags, file: Gio.File ) -> AppChooserDialog: ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new_for_content_type( cls, parent: Optional[Window], flags: DialogFlags, content_type: str ) -> AppChooserDialog: ... + @deprecated("This widget will be removed in GTK 5") def set_heading(self, heading: str) -> None: ... +@deprecated( + "The application selection widgets should be implemented according to the design of each platform and/or application requiring them." +) class AppChooserWidget(Widget, Accessible, AppChooser, Buildable, ConstraintTarget): """ :Constructors: @@ -1788,19 +1850,32 @@ class AppChooserWidget(Widget, Accessible, AppChooser, Buildable, ConstraintTarg accessible_role: AccessibleRole = ..., content_type: str = ..., ): ... + @deprecated("This widget will be removed in GTK 5") def get_default_text(self) -> Optional[str]: ... + @deprecated("This widget will be removed in GTK 5") def get_show_all(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") def get_show_default(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") def get_show_fallback(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") def get_show_other(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") def get_show_recommended(self) -> bool: ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new(cls, content_type: str) -> AppChooserWidget: ... + @deprecated("This widget will be removed in GTK 5") def set_default_text(self, text: str) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_show_all(self, setting: bool) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_show_default(self, setting: bool) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_show_fallback(self, setting: bool) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_show_other(self, setting: bool) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_show_recommended(self, setting: bool) -> None: ... class Application(Gio.Application, Gio.ActionGroup, Gio.ActionMap): @@ -2365,6 +2440,7 @@ class AspectFrame(Widget, Accessible, Buildable, ConstraintTarget): def set_xalign(self, xalign: float) -> None: ... def set_yalign(self, yalign: float) -> None: ... +@deprecated("This widget will be removed in GTK 5") class Assistant( Window, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager ): @@ -2599,34 +2675,59 @@ class Assistant( width_request: int = ..., accessible_role: AccessibleRole = ..., ): ... + @deprecated("This widget will be removed in GTK 5") def add_action_widget(self, child: Widget) -> None: ... + @deprecated("This widget will be removed in GTK 5") def append_page(self, page: Widget) -> int: ... + @deprecated("This widget will be removed in GTK 5") def commit(self) -> None: ... + @deprecated("This widget will be removed in GTK 5") def get_current_page(self) -> int: ... + @deprecated("This widget will be removed in GTK 5") def get_n_pages(self) -> int: ... + @deprecated("This widget will be removed in GTK 5") def get_nth_page(self, page_num: int) -> Optional[Widget]: ... + @deprecated("This widget will be removed in GTK 5") def get_page(self, child: Widget) -> AssistantPage: ... + @deprecated("This widget will be removed in GTK 5") def get_page_complete(self, page: Widget) -> bool: ... + @deprecated("This widget will be removed in GTK 5") def get_page_title(self, page: Widget) -> str: ... + @deprecated("This widget will be removed in GTK 5") def get_page_type(self, page: Widget) -> AssistantPageType: ... + @deprecated("This widget will be removed in GTK 5") def get_pages(self) -> Gio.ListModel: ... + @deprecated("This widget will be removed in GTK 5") def insert_page(self, page: Widget, position: int) -> int: ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new(cls) -> Assistant: ... + @deprecated("This widget will be removed in GTK 5") def next_page(self) -> None: ... + @deprecated("This widget will be removed in GTK 5") def prepend_page(self, page: Widget) -> int: ... + @deprecated("This widget will be removed in GTK 5") def previous_page(self) -> None: ... + @deprecated("This widget will be removed in GTK 5") def remove_action_widget(self, child: Widget) -> None: ... + @deprecated("This widget will be removed in GTK 5") def remove_page(self, page_num: int) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_current_page(self, page_num: int) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_forward_page_func( self, page_func: Optional[Callable[..., int]] = None, *data: Any ) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_page_complete(self, page: Widget, complete: bool) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_page_title(self, page: Widget, title: str) -> None: ... + @deprecated("This widget will be removed in GTK 5") def set_page_type(self, page: Widget, type: AssistantPageType) -> None: ... + @deprecated("This widget will be removed in GTK 5") def update_buttons_state(self) -> None: ... +@deprecated("This object will be removed in GTK 5") class AssistantPage(GObject.Object): """ :Constructors: @@ -2660,6 +2761,7 @@ class AssistantPage(GObject.Object): page_type: AssistantPageType = ..., title: str = ..., ): ... + @deprecated("This widget will be removed in GTK 5") def get_child(self) -> Widget: ... class BinLayout(LayoutManager): @@ -3293,6 +3395,7 @@ class Builder(GObject.Object): def interface_install_property(self, *args, **kargs): ... # FIXME Function def interface_list_properties(self, *args, **kargs): ... # FIXME Function def is_floating(self) -> bool: ... + @deprecated("This method is deprecated") @classmethod def newv( cls, object_type: Type, parameters: Sequence[GObject.Parameter] @@ -3837,6 +3940,7 @@ class CallbackAction(ShortcutAction): class CallbackActionClass(GObject.GPointer): ... +@deprecated("List views use widgets for displaying their contents") class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): """ :Constructors: @@ -3869,6 +3973,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): props: Props = ... parent_instance: GObject.InitiallyUnowned = ... def __init__(self, focus_cell: Optional[CellRenderer] = ...): ... + @deprecated("This method is deprecated") def activate( self, context: CellAreaContext, @@ -3877,6 +3982,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): flags: CellRendererState, edit_only: bool, ) -> bool: ... + @deprecated("This method is deprecated") def activate_cell( self, widget: Widget, @@ -3885,10 +3991,13 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: Gdk.Rectangle, flags: CellRendererState, ) -> bool: ... + @deprecated("This method is deprecated") def add(self, renderer: CellRenderer) -> None: ... + @deprecated("This method is deprecated") def add_focus_sibling( self, renderer: CellRenderer, sibling: CellRenderer ) -> None: ... + @deprecated("This method is deprecated") def apply_attributes( self, tree_model: TreeModel, @@ -3896,18 +4005,25 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): is_expander: bool, is_expanded: bool, ) -> None: ... + @deprecated("This method is deprecated") def attribute_connect( self, renderer: CellRenderer, attribute: str, column: int ) -> None: ... + @deprecated("This method is deprecated") def attribute_disconnect(self, renderer: CellRenderer, attribute: str) -> None: ... + @deprecated("This method is deprecated") def attribute_get_column(self, renderer: CellRenderer, attribute: str) -> int: ... + @deprecated("This method is deprecated") def cell_get_property( self, renderer: CellRenderer, property_name: str, value: Any ) -> None: ... + @deprecated("This method is deprecated") def cell_set_property( self, renderer: CellRenderer, property_name: str, value: Any ) -> None: ... + @deprecated("This method is deprecated") def copy_context(self, context: CellAreaContext) -> CellAreaContext: ... + @deprecated("This method is deprecated") def create_context(self) -> CellAreaContext: ... def do_activate( self, @@ -3987,6 +4103,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): flags: CellRendererState, paint_focus: bool, ) -> None: ... + @deprecated("This method is deprecated") def event( self, context: CellAreaContext, @@ -3995,8 +4112,11 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: Gdk.Rectangle, flags: CellRendererState, ) -> int: ... + @deprecated("This method is deprecated") def find_cell_property(self, property_name: str) -> GObject.ParamSpec: ... + @deprecated("This method is deprecated") def focus(self, direction: DirectionType) -> bool: ... + @deprecated("This method is deprecated") def foreach(self, callback: Callable[..., bool], *callback_data: Any) -> None: ... def foreach_alloc( self, @@ -4007,6 +4127,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): callback: Callable[..., bool], *callback_data: Any, ) -> None: ... + @deprecated("This method is deprecated") def get_cell_allocation( self, context: CellAreaContext, @@ -4014,6 +4135,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): renderer: CellRenderer, cell_area: Gdk.Rectangle, ) -> Gdk.Rectangle: ... + @deprecated("This method is deprecated") def get_cell_at_position( self, context: CellAreaContext, @@ -4023,42 +4145,60 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): y: int, ) -> Tuple[CellRenderer, Gdk.Rectangle]: ... def get_current_path_string(self) -> str: ... + @deprecated("This method is deprecated") def get_edit_widget(self) -> Optional[CellEditable]: ... + @deprecated("This method is deprecated") def get_edited_cell(self) -> Optional[CellRenderer]: ... + @deprecated("This method is deprecated") def get_focus_cell(self) -> Optional[CellRenderer]: ... + @deprecated("This method is deprecated") def get_focus_from_sibling( self, renderer: CellRenderer ) -> Optional[CellRenderer]: ... + @deprecated("This method is deprecated") def get_focus_siblings(self, renderer: CellRenderer) -> list[CellRenderer]: ... + @deprecated("This method is deprecated") def get_preferred_height( self, context: CellAreaContext, widget: Widget ) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_preferred_height_for_width( self, context: CellAreaContext, widget: Widget, width: int ) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_preferred_width( self, context: CellAreaContext, widget: Widget ) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_preferred_width_for_height( self, context: CellAreaContext, widget: Widget, height: int ) -> Tuple[int, int]: ... def get_request_mode(self) -> SizeRequestMode: ... + @deprecated("This method is deprecated") def has_renderer(self, renderer: CellRenderer) -> bool: ... + @deprecated("This method is deprecated") def inner_cell_area( self, widget: Widget, cell_area: Gdk.Rectangle ) -> Gdk.Rectangle: ... + @deprecated("This method is deprecated") def install_cell_property( self, property_id: int, pspec: GObject.ParamSpec ) -> None: ... + @deprecated("This method is deprecated") def is_activatable(self) -> bool: ... + @deprecated("This method is deprecated") def is_focus_sibling( self, renderer: CellRenderer, sibling: CellRenderer ) -> bool: ... + @deprecated("This method is deprecated") def list_cell_properties(self) -> list[GObject.ParamSpec]: ... + @deprecated("This method is deprecated") def remove(self, renderer: CellRenderer) -> None: ... + @deprecated("This method is deprecated") def remove_focus_sibling( self, renderer: CellRenderer, sibling: CellRenderer ) -> None: ... + @deprecated("This method is deprecated") def request_renderer( self, renderer: CellRenderer, @@ -4066,7 +4206,9 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): widget: Widget, for_size: int, ) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def set_focus_cell(self, renderer: Optional[CellRenderer] = None) -> None: ... + @deprecated("This method is deprecated") def snapshot( self, context: CellAreaContext, @@ -4077,8 +4219,10 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): flags: CellRendererState, paint_focus: bool, ) -> None: ... + @deprecated("This method is deprecated") def stop_editing(self, canceled: bool) -> None: ... +@deprecated("List views use widgets for displaying their contents") class CellAreaBox(CellArea, Buildable, CellLayout, Orientable): """ :Constructors: @@ -4121,15 +4265,20 @@ class CellAreaBox(CellArea, Buildable, CellLayout, Orientable): focus_cell: Optional[CellRenderer] = ..., orientation: Orientation = ..., ): ... + @deprecated("This method is deprecated") def get_spacing(self) -> int: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellAreaBox: ... + @deprecated("This method is deprecated") def pack_end( self, renderer: CellRenderer, expand: bool, align: bool, fixed: bool ) -> None: ... + @deprecated("This method is deprecated") def pack_start( self, renderer: CellRenderer, expand: bool, align: bool, fixed: bool ) -> None: ... + @deprecated("This method is deprecated") def set_spacing(self, spacing: int) -> None: ... class CellAreaClass(GObject.GPointer): @@ -4199,12 +4348,16 @@ class CellAreaClass(GObject.GPointer): bool, ] = ... padding: list[None] = ... + @deprecated("This method is deprecated") def find_cell_property(self, property_name: str) -> GObject.ParamSpec: ... + @deprecated("This method is deprecated") def install_cell_property( self, property_id: int, pspec: GObject.ParamSpec ) -> None: ... + @deprecated("This method is deprecated") def list_cell_properties(self) -> list[GObject.ParamSpec]: ... +@deprecated("This object will be removed in GTK 5") class CellAreaContext(GObject.Object): """ :Constructors: @@ -4235,21 +4388,31 @@ class CellAreaContext(GObject.Object): props: Props = ... parent_instance: GObject.Object = ... def __init__(self, area: CellArea = ...): ... + @deprecated("This object will be removed in GTK 5") def allocate(self, width: int, height: int) -> None: ... def do_allocate(self, width: int, height: int) -> None: ... def do_get_preferred_height_for_width(self, width: int) -> Tuple[int, int]: ... def do_get_preferred_width_for_height(self, height: int) -> Tuple[int, int]: ... def do_reset(self) -> None: ... + @deprecated("This object will be removed in GTK 5") def get_allocation(self) -> Tuple[int, int]: ... + @deprecated("This object will be removed in GTK 5") def get_area(self) -> CellArea: ... + @deprecated("This object will be removed in GTK 5") def get_preferred_height(self) -> Tuple[int, int]: ... + @deprecated("This object will be removed in GTK 5") def get_preferred_height_for_width(self, width: int) -> Tuple[int, int]: ... + @deprecated("This object will be removed in GTK 5") def get_preferred_width(self) -> Tuple[int, int]: ... + @deprecated("This object will be removed in GTK 5") def get_preferred_width_for_height(self, height: int) -> Tuple[int, int]: ... + @deprecated("This object will be removed in GTK 5") def push_preferred_height( self, minimum_height: int, natural_height: int ) -> None: ... + @deprecated("This object will be removed in GTK 5") def push_preferred_width(self, minimum_width: int, natural_width: int) -> None: ... + @deprecated("This object will be removed in GTK 5") def reset(self) -> None: ... class CellAreaContextClass(GObject.GPointer): @@ -4274,6 +4437,9 @@ class CellAreaContextClass(GObject.GPointer): class CellAreaContextPrivate(GObject.GPointer): ... +@deprecated( + "List views use widgets for displaying their contents. See [iface@Gtk.Editable] for editable text widgets" +) class CellEditable(GObject.GInterface): """ Interface GtkCellEditable @@ -4282,7 +4448,9 @@ class CellEditable(GObject.GInterface): notify (GParam) """ + @deprecated("This method is deprecated") def editing_done(self) -> None: ... + @deprecated("This method is deprecated") def remove_widget(self) -> None: ... def start_editing(self, event: Optional[Gdk.Event] = None) -> None: ... @@ -4300,6 +4468,9 @@ class CellEditableIface(GObject.GPointer): remove_widget: Callable[[CellEditable], None] = ... start_editing: Callable[[CellEditable, Optional[Gdk.Event]], None] = ... +@deprecated( + "List views use widgets to display their contents. See [class@Gtk.LayoutManager] for layout manager delegate objects" +) class CellLayout(GObject.GInterface): """ Interface GtkCellLayout @@ -4308,16 +4479,25 @@ class CellLayout(GObject.GInterface): notify (GParam) """ + @deprecated("This method is deprecated") def add_attribute( self, cell: CellRenderer, attribute: str, column: int ) -> None: ... + @deprecated("This method is deprecated") def clear(self) -> None: ... + @deprecated("This method is deprecated") def clear_attributes(self, cell: CellRenderer) -> None: ... + @deprecated("This method is deprecated") def get_area(self) -> Optional[CellArea]: ... + @deprecated("This method is deprecated") def get_cells(self) -> list[CellRenderer]: ... + @deprecated("This method is deprecated") def pack_end(self, cell: CellRenderer, expand: bool) -> None: ... + @deprecated("This method is deprecated") def pack_start(self, cell: CellRenderer, expand: bool) -> None: ... + @deprecated("This method is deprecated") def reorder(self, cell: CellRenderer, position: int) -> None: ... + @deprecated("This method is deprecated") def set_cell_data_func( self, cell: CellRenderer, @@ -4345,6 +4525,7 @@ class CellLayoutIface(GObject.GPointer): get_cells: Callable[[CellLayout], list[CellRenderer]] = ... get_area: Callable[[CellLayout], Optional[CellArea]] = ... +@deprecated("List views use widgets for displaying their contents") class CellRenderer(GObject.InitiallyUnowned): """ :Constructors: @@ -4416,6 +4597,7 @@ class CellRenderer(GObject.InitiallyUnowned): yalign: float = ..., ypad: int = ..., ): ... + @deprecated("This method is deprecated") def activate( self, event: Gdk.Event, @@ -4465,37 +4647,61 @@ class CellRenderer(GObject.InitiallyUnowned): cell_area: Gdk.Rectangle, flags: CellRendererState, ) -> Optional[CellEditable]: ... + @deprecated("This method is deprecated") def get_aligned_area( self, widget: Widget, flags: CellRendererState, cell_area: Gdk.Rectangle ) -> Gdk.Rectangle: ... + @deprecated("This method is deprecated") def get_alignment(self) -> Tuple[float, float]: ... + @deprecated("This method is deprecated") def get_fixed_size(self) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_is_expanded(self) -> bool: ... + @deprecated("This method is deprecated") def get_is_expander(self) -> bool: ... + @deprecated("This method is deprecated") def get_padding(self) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_preferred_height(self, widget: Widget) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_preferred_height_for_width( self, widget: Widget, width: int ) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_preferred_size(self, widget: Widget) -> Tuple[Requisition, Requisition]: ... + @deprecated("This method is deprecated") def get_preferred_width(self, widget: Widget) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_preferred_width_for_height( self, widget: Widget, height: int ) -> Tuple[int, int]: ... + @deprecated("This method is deprecated") def get_request_mode(self) -> SizeRequestMode: ... + @deprecated("This method is deprecated") def get_sensitive(self) -> bool: ... + @deprecated("This method is deprecated") def get_state( self, widget: Optional[Widget], cell_state: CellRendererState ) -> StateFlags: ... + @deprecated("This method is deprecated") def get_visible(self) -> bool: ... + @deprecated("This method is deprecated") def is_activatable(self) -> bool: ... + @deprecated("This method is deprecated") def set_alignment(self, xalign: float, yalign: float) -> None: ... + @deprecated("This method is deprecated") def set_fixed_size(self, width: int, height: int) -> None: ... + @deprecated("This method is deprecated") def set_is_expanded(self, is_expanded: bool) -> None: ... + @deprecated("This method is deprecated") def set_is_expander(self, is_expander: bool) -> None: ... + @deprecated("This method is deprecated") def set_padding(self, xpad: int, ypad: int) -> None: ... + @deprecated("This method is deprecated") def set_sensitive(self, sensitive: bool) -> None: ... + @deprecated("This method is deprecated") def set_visible(self, visible: bool) -> None: ... + @deprecated("This method is deprecated") def snapshot( self, snapshot: Snapshot, @@ -4504,6 +4710,7 @@ class CellRenderer(GObject.InitiallyUnowned): cell_area: Gdk.Rectangle, flags: CellRendererState, ) -> None: ... + @deprecated("This method is deprecated") def start_editing( self, event: Optional[Gdk.Event], @@ -4513,8 +4720,12 @@ class CellRenderer(GObject.InitiallyUnowned): cell_area: Gdk.Rectangle, flags: CellRendererState, ) -> Optional[CellEditable]: ... + @deprecated("This method is deprecated") def stop_editing(self, canceled: bool) -> None: ... +@deprecated( + "Applications editing keyboard accelerators should provide their own implementation according to platform design guidelines" +) class CellRendererAccel(CellRendererText): """ :Constructors: @@ -4746,6 +4957,7 @@ class CellRendererAccel(CellRendererText): yalign: float = ..., ypad: int = ..., ): ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererAccel: ... @@ -4812,6 +5024,9 @@ class CellRendererClass(GObject.GPointer): class CellRendererClassPrivate(GObject.GPointer): ... +@deprecated( + "List views use widgets to display their contents. You should use [class@Gtk.DropDown] instead" +) class CellRendererCombo(CellRendererText): """ :Constructors: @@ -5039,9 +5254,13 @@ class CellRendererCombo(CellRendererText): yalign: float = ..., ypad: int = ..., ): ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererCombo: ... +@deprecated( + "List views use widgets to display their contents. You should use [class@Gtk.Image] for icons, and [class@Gtk.Picture] for images" +) class CellRendererPixbuf(CellRenderer): """ :Constructors: @@ -5135,11 +5354,15 @@ class CellRendererPixbuf(CellRenderer): yalign: float = ..., ypad: int = ..., ): ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererPixbuf: ... class CellRendererPrivate(GObject.GPointer): ... +@deprecated( + "List views use widgets to display their contents. You should use [class@Gtk.ProgressBar] instead" +) class CellRendererProgress(CellRenderer, Orientable): """ :Constructors: @@ -5232,9 +5455,13 @@ class CellRendererProgress(CellRenderer, Orientable): ypad: int = ..., orientation: Orientation = ..., ): ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererProgress: ... +@deprecated( + "List views use widgets to display their contents. You should use [class@Gtk.SpinButton] instead" +) class CellRendererSpin(CellRendererText): """ :Constructors: @@ -5459,9 +5686,13 @@ class CellRendererSpin(CellRendererText): yalign: float = ..., ypad: int = ..., ): ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererSpin: ... +@deprecated( + "List views use widgets to display their contents. You should use [class@Gtk.Spinner] instead" +) class CellRendererSpinner(CellRenderer): """ :Constructors: @@ -5543,9 +5774,13 @@ class CellRendererSpinner(CellRenderer): yalign: float = ..., ypad: int = ..., ): ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererSpinner: ... +@deprecated( + "List views use widgets to display their contents. You should use [class@Gtk.Inscription] or [class@Gtk.Label] instead" +) class CellRendererText(CellRenderer): """ :Constructors: @@ -5761,8 +5996,10 @@ class CellRendererText(CellRenderer): ypad: int = ..., ): ... def do_edited(self, path: str, new_text: str) -> None: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererText: ... + @deprecated("This method is deprecated") def set_fixed_height_from_font(self, number_of_rows: int) -> None: ... class CellRendererTextClass(GObject.GPointer): @@ -5778,6 +6015,9 @@ class CellRendererTextClass(GObject.GPointer): edited: Callable[[CellRendererText, str, str], None] = ... padding: list[None] = ... +@deprecated( + "List views use widgets to display their contents. You should use [class@Gtk.ToggleButton] instead" +) class CellRendererToggle(CellRenderer): """ :Constructors: @@ -5865,15 +6105,25 @@ class CellRendererToggle(CellRenderer): yalign: float = ..., ypad: int = ..., ): ... + @deprecated("This method is deprecated") def get_activatable(self) -> bool: ... + @deprecated("This method is deprecated") def get_active(self) -> bool: ... + @deprecated("This method is deprecated") def get_radio(self) -> bool: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellRendererToggle: ... + @deprecated("This method is deprecated") def set_activatable(self, setting: bool) -> None: ... + @deprecated("This method is deprecated") def set_active(self, setting: bool) -> None: ... + @deprecated("This method is deprecated") def set_radio(self, radio: bool) -> None: ... +@deprecated( + "List views use widgets to display their contents. You can use [class@Gtk.Box] instead" +) class CellView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Orientable): """ :Constructors: @@ -6033,23 +6283,36 @@ class CellView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Orie accessible_role: AccessibleRole = ..., orientation: Orientation = ..., ): ... + @deprecated("This method is deprecated") def get_displayed_row(self) -> Optional[TreePath]: ... + @deprecated("This method is deprecated") def get_draw_sensitive(self) -> bool: ... + @deprecated("This method is deprecated") def get_fit_model(self) -> bool: ... + @deprecated("This method is deprecated") def get_model(self) -> Optional[TreeModel]: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> CellView: ... + @deprecated("This method is deprecated") @classmethod def new_with_context(cls, area: CellArea, context: CellAreaContext) -> CellView: ... + @deprecated("This method is deprecated") @classmethod def new_with_markup(cls, markup: str) -> CellView: ... + @deprecated("This method is deprecated") @classmethod def new_with_text(cls, text: str) -> CellView: ... + @deprecated("This method is deprecated") @classmethod def new_with_texture(cls, texture: Gdk.Texture) -> CellView: ... + @deprecated("This method is deprecated") def set_displayed_row(self, path: Optional[TreePath] = None) -> None: ... + @deprecated("This method is deprecated") def set_draw_sensitive(self, draw_sensitive: bool) -> None: ... + @deprecated("This method is deprecated") def set_fit_model(self, fit_model: bool) -> None: ... + @deprecated("This method is deprecated") def set_model(self, model: Optional[TreeModel] = None) -> None: ... class CenterBox(Widget, Accessible, Buildable, ConstraintTarget, Orientable): @@ -6489,6 +6752,7 @@ class ClosureExpression(Expression): params: Optional[Sequence[Expression]] = None, ) -> ClosureExpression: ... +@deprecated("Use [class@Gtk.ColorDialogButton] instead") class ColorButton(Widget, Accessible, Buildable, ColorChooser, ConstraintTarget): """ :Constructors: @@ -6648,15 +6912,23 @@ class ColorButton(Widget, Accessible, Buildable, ColorChooser, ConstraintTarget) rgba: Gdk.RGBA = ..., use_alpha: bool = ..., ): ... + @deprecated("Use [class@Gtk.ColorDialogButton] instead") def get_modal(self) -> bool: ... + @deprecated("Use [class@Gtk.ColorDialogButton] instead") def get_title(self) -> str: ... + @deprecated("Use [class@Gtk.ColorDialogButton] instead") @classmethod def new(cls) -> ColorButton: ... @classmethod def new_with_rgba(cls, rgba: Gdk.RGBA) -> ColorButton: ... + @deprecated("Use [class@Gtk.ColorDialogButton] instead") def set_modal(self, modal: bool) -> None: ... + @deprecated("Use [class@Gtk.ColorDialogButton] instead") def set_title(self, title: str) -> None: ... +@deprecated( + "Use [class@Gtk.ColorDialog] and [class@Gtk.ColorDialogButton] instead of widgets implementing `GtkColorChooser`" +) class ColorChooser(GObject.GInterface): """ Interface GtkColorChooser @@ -6665,17 +6937,23 @@ class ColorChooser(GObject.GInterface): notify (GParam) """ + @deprecated("Use [class@Gtk.ColorDialog] instead") def add_palette( self, orientation: Orientation, colors_per_line: int, colors: Optional[Sequence[Gdk.RGBA]] = None, ) -> None: ... + @deprecated("Use [class@Gtk.ColorDialog] instead") def get_rgba(self) -> Gdk.RGBA: ... + @deprecated("Use [class@Gtk.ColorDialog] instead") def get_use_alpha(self) -> bool: ... + @deprecated("Use [class@Gtk.ColorDialog] instead") def set_rgba(self, color: Gdk.RGBA) -> None: ... + @deprecated("Use [class@Gtk.ColorDialog] instead") def set_use_alpha(self, use_alpha: bool) -> None: ... +@deprecated("Use [class@Gtk.ColorDialog] instead") class ColorChooserDialog( Dialog, Accessible, @@ -6924,6 +7202,7 @@ class ColorChooserDialog( rgba: Gdk.RGBA = ..., use_alpha: bool = ..., ): ... + @deprecated("Use [class@Gtk.ColorDialog] instead") @classmethod def new( cls, title: Optional[str] = None, parent: Optional[Window] = None @@ -6947,6 +7226,7 @@ class ColorChooserInterface(GObject.GPointer): color_activated: Callable[[ColorChooser, Gdk.RGBA], None] = ... padding: list[None] = ... +@deprecated("Direct use of `GtkColorChooserWidget` is deprecated.") class ColorChooserWidget(Widget, Accessible, Buildable, ColorChooser, ConstraintTarget): """ :Constructors: @@ -7775,6 +8055,7 @@ class ColumnViewSorterClass(GObject.GPointer): parent_class: SorterClass = ... +@deprecated("Use [class@Gtk.DropDown] instead") class ComboBox( Widget, Accessible, Buildable, CellEditable, CellLayout, ConstraintTarget ): @@ -7968,36 +8249,62 @@ class ComboBox( def do_activate(self) -> None: ... def do_changed(self) -> None: ... def do_format_entry_text(self, path: str) -> str: ... + @deprecated("Use [class@Gtk.DropDown]") def get_active(self) -> int: ... + @deprecated("Use [class@Gtk.DropDown]") def get_active_id(self) -> Optional[str]: ... def get_active_iter(self) -> Optional[TreeIter]: ... # CHECK Wrapped function + @deprecated("Use [class@Gtk.DropDown]") def get_button_sensitivity(self) -> SensitivityType: ... + @deprecated("Use [class@Gtk.DropDown]") def get_child(self) -> Optional[Widget]: ... + @deprecated("Use [class@Gtk.DropDown]") def get_entry_text_column(self) -> int: ... + @deprecated("Use [class@Gtk.DropDown]") def get_has_entry(self) -> bool: ... + @deprecated("Use [class@Gtk.DropDown]") def get_id_column(self) -> int: ... + @deprecated("Use [class@Gtk.DropDown]") def get_model(self) -> Optional[TreeModel]: ... + @deprecated("Use [class@Gtk.DropDown]") def get_popup_fixed_width(self) -> bool: ... + @deprecated("Use [class@Gtk.DropDown]") @classmethod def new(cls) -> ComboBox: ... + @deprecated("Use [class@Gtk.DropDown]") @classmethod def new_with_entry(cls) -> ComboBox: ... + @deprecated("Use [class@Gtk.DropDown]") @classmethod def new_with_model(cls, model: TreeModel) -> ComboBox: ... + @deprecated("Use [class@Gtk.DropDown]") @classmethod def new_with_model_and_entry(cls, model: TreeModel) -> ComboBox: ... + @deprecated("Use [class@Gtk.DropDown]") def popdown(self) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def popup(self) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def popup_for_device(self, device: Gdk.Device) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_active(self, index_: int) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_active_id(self, active_id: Optional[str] = None) -> bool: ... + @deprecated("Use [class@Gtk.DropDown]") def set_active_iter(self, iter: Optional[TreeIter] = None) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_button_sensitivity(self, sensitivity: SensitivityType) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_child(self, child: Optional[Widget] = None) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_entry_text_column(self, text_column: int) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_id_column(self, id_column: int) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_model(self, model: Optional[TreeModel] = None) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_popup_fixed_width(self, fixed: bool) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def set_row_separator_func( self, func: Optional[Callable[..., bool]] = None, *data: Any ) -> None: ... @@ -8017,6 +8324,7 @@ class ComboBoxClass(GObject.GPointer): activate: Callable[[ComboBox], None] = ... padding: list[None] = ... +@deprecated("Use [class@Gtk.DropDown] with a [class@Gtk.StringList] instead") class ComboBoxText( ComboBox, Accessible, Buildable, CellEditable, CellLayout, ConstraintTarget ): @@ -8208,18 +8516,29 @@ class ComboBoxText( accessible_role: AccessibleRole = ..., editing_canceled: bool = ..., ): ... + @deprecated("Use [class@Gtk.DropDown]") def append(self, id: Optional[str], text: str) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def append_text(self, text: str) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def get_active_text(self) -> Optional[str]: ... + @deprecated("Use [class@Gtk.DropDown]") def insert(self, position: int, id: Optional[str], text: str) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def insert_text(self, position: int, text: str) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") @classmethod def new(cls) -> ComboBoxText: ... + @deprecated("Use [class@Gtk.DropDown]") @classmethod def new_with_entry(cls) -> ComboBoxText: ... + @deprecated("Use [class@Gtk.DropDown]") def prepend(self, id: Optional[str], text: str) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def prepend_text(self, text: str) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def remove(self, position: int) -> None: ... + @deprecated("Use [class@Gtk.DropDown]") def remove_all(self) -> None: ... class ConstantExpression(Expression): @@ -8658,6 +8977,7 @@ class CustomSorterClass(GObject.GPointer): parent_class: SorterClass = ... +@deprecated("Use [class@Gtk.Window] instead") class Dialog( Window, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager ): @@ -8888,19 +9208,29 @@ class Dialog( width_request: int = ..., accessible_role: AccessibleRole = ..., ): ... + @deprecated("Use [class@Gtk.Window] instead") def add_action_widget(self, child: Widget, response_id: int) -> None: ... + @deprecated("Use [class@Gtk.Window] instead") def add_button(self, button_text: str, response_id: int) -> Widget: ... def add_buttons(self, *args): ... # FIXME Function def do_close(self) -> None: ... def do_response(self, response_id: int) -> None: ... + @deprecated("Use [class@Gtk.Window] instead") def get_content_area(self) -> Box: ... + @deprecated("Use [class@Gtk.Window] instead") def get_header_bar(self) -> HeaderBar: ... + @deprecated("Use [class@Gtk.Window] instead") def get_response_for_widget(self, widget: Widget) -> int: ... + @deprecated("Use [class@Gtk.Window] instead") def get_widget_for_response(self, response_id: int) -> Optional[Widget]: ... + @deprecated("Use [class@Gtk.Window] instead") @classmethod def new(cls) -> Dialog: ... + @deprecated("Use [class@Gtk.Window] instead") def response(self, response_id: int) -> None: ... + @deprecated("Use [class@Gtk.Window] instead") def set_default_response(self, response_id: int) -> None: ... + @deprecated("Use [class@Gtk.Window] instead") def set_response_sensitive(self, response_id: int, setting: bool) -> None: ... class DialogClass(GObject.GPointer): @@ -9730,6 +10060,7 @@ class DropTarget(EventController): ): ... def get_actions(self) -> Gdk.DragAction: ... def get_current_drop(self) -> Optional[Gdk.Drop]: ... + @deprecated("Use [method@Gtk.DropTarget.get_current_drop] instead") def get_drop(self) -> Optional[Gdk.Drop]: ... def get_formats(self) -> Optional[Gdk.ContentFormats]: ... def get_gtypes(self) -> Optional[list[Type]]: ... @@ -10513,6 +10844,7 @@ class Entry(Widget, Accessible, Buildable, CellEditable, ConstraintTarget, Edita def get_alignment(self) -> float: ... def get_attributes(self) -> Optional[Pango.AttrList]: ... def get_buffer(self) -> EntryBuffer: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_completion(self) -> Optional[EntryCompletion]: ... def get_current_icon_drag_source(self) -> int: ... def get_extra_menu(self) -> Optional[Gio.MenuModel]: ... @@ -10551,6 +10883,7 @@ class Entry(Widget, Accessible, Buildable, CellEditable, ConstraintTarget, Edita def set_alignment(self, xalign: float) -> None: ... def set_attributes(self, attrs: Pango.AttrList) -> None: ... def set_buffer(self, buffer: EntryBuffer) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_completion(self, completion: Optional[EntryCompletion] = None) -> None: ... def set_extra_menu(self, model: Optional[Gio.MenuModel] = None) -> None: ... def set_has_frame(self, setting: bool) -> None: ... @@ -10681,6 +11014,7 @@ class EntryClass(GObject.GPointer): activate: Callable[[Entry], None] = ... padding: list[None] = ... +@deprecated("This class is deprecated") class EntryCompletion(GObject.Object, Buildable, CellLayout): """ :Constructors: @@ -10737,31 +11071,55 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): popup_single_match: bool = ..., text_column: int = ..., ): ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def complete(self) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def compute_prefix(self, key: str) -> Optional[str]: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_completion_prefix(self) -> Optional[str]: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_entry(self) -> Widget: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_inline_completion(self) -> bool: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_inline_selection(self) -> bool: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_minimum_key_length(self) -> int: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_model(self) -> Optional[TreeModel]: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_popup_completion(self) -> bool: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_popup_set_width(self) -> bool: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_popup_single_match(self) -> bool: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def get_text_column(self) -> int: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def insert_prefix(self) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") @classmethod def new(cls) -> EntryCompletion: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") @classmethod def new_with_area(cls, area: CellArea) -> EntryCompletion: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_inline_completion(self, inline_completion: bool) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_inline_selection(self, inline_selection: bool) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_match_func(self, func: Callable[..., bool], *func_data: Any) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_minimum_key_length(self, length: int) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_model(self, model: Optional[TreeModel] = None) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_popup_completion(self, popup_completion: bool) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_popup_set_width(self, popup_set_width: bool) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_popup_single_match(self, popup_single_match: bool) -> None: ... + @deprecated("GtkEntryCompletion will be removed in GTK 5.") def set_text_column(self, column: int) -> None: ... class EventController(GObject.Object): @@ -11306,6 +11664,7 @@ class ExpressionWatch(GObject.GBoxed): def unref(self) -> None: ... def unwatch(self) -> None: ... +@deprecated("Use [class@Gtk.FileDialog] instead") class FileChooser(GObject.GInterface): """ Interface GtkFileChooser @@ -11314,6 +11673,7 @@ class FileChooser(GObject.GInterface): notify (GParam) """ + @deprecated("Use [class@Gtk.FileDialog] instead") def add_choice( self, id: str, @@ -11321,31 +11681,56 @@ class FileChooser(GObject.GInterface): options: Optional[Sequence[str]] = None, option_labels: Optional[Sequence[str]] = None, ) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def add_filter(self, filter: FileFilter) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def add_shortcut_folder(self, folder: Gio.File) -> bool: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_action(self) -> FileChooserAction: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_choice(self, id: str) -> Optional[str]: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_create_folders(self) -> bool: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_current_folder(self) -> Optional[Gio.File]: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_current_name(self) -> Optional[str]: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_file(self) -> Optional[Gio.File]: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_files(self) -> Gio.ListModel: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_filter(self) -> Optional[FileFilter]: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_filters(self) -> Gio.ListModel: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_select_multiple(self) -> bool: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_shortcut_folders(self) -> Gio.ListModel: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def remove_choice(self, id: str) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def remove_filter(self, filter: FileFilter) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def remove_shortcut_folder(self, folder: Gio.File) -> bool: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_action(self, action: FileChooserAction) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_choice(self, id: str, option: str) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_create_folders(self, create_folders: bool) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_current_folder(self, file: Optional[Gio.File] = None) -> bool: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_current_name(self, name: str) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_file(self, file: Gio.File) -> bool: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_filter(self, filter: FileFilter) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_select_multiple(self, select_multiple: bool) -> None: ... +@deprecated("Use [class@Gtk.FileDialog] instead") class FileChooserDialog( Dialog, Accessible, @@ -11592,6 +11977,7 @@ class FileChooserDialog( select_multiple: bool = ..., ): ... +@deprecated("Use [class@Gtk.FileDialog] instead") class FileChooserNative(NativeDialog, FileChooser): """ :Constructors: @@ -11647,8 +12033,11 @@ class FileChooserNative(NativeDialog, FileChooser): filter: FileFilter = ..., select_multiple: bool = ..., ): ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_accept_label(self) -> Optional[str]: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def get_cancel_label(self) -> Optional[str]: ... + @deprecated("Use [class@Gtk.FileDialog] instead") @classmethod def new( cls, @@ -11658,7 +12047,9 @@ class FileChooserNative(NativeDialog, FileChooser): accept_label: Optional[str] = None, cancel_label: Optional[str] = None, ) -> FileChooserNative: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_accept_label(self, accept_label: Optional[str] = None) -> None: ... + @deprecated("Use [class@Gtk.FileDialog] instead") def set_cancel_label(self, cancel_label: Optional[str] = None) -> None: ... class FileChooserNativeClass(GObject.GPointer): @@ -11672,6 +12063,7 @@ class FileChooserNativeClass(GObject.GPointer): parent_class: NativeDialogClass = ... +@deprecated("Direct use of `GtkFileChooserWidget` is deprecated") class FileChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FileChooser): """ :Constructors: @@ -11841,6 +12233,7 @@ class FileChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FileCho filter: FileFilter = ..., select_multiple: bool = ..., ): ... + @deprecated("Direct use of `GtkFileChooserWidget` is deprecated") @classmethod def new(cls, action: FileChooserAction) -> FileChooserWidget: ... @@ -12854,6 +13247,7 @@ class FlowBoxChildClass(GObject.GPointer): activate: Callable[[FlowBoxChild], None] = ... padding: list[None] = ... +@deprecated("Use [class@Gtk.FontDialogButton] instead") class FontButton(Widget, Accessible, Buildable, ConstraintTarget, FontChooser): """ :Constructors: @@ -13025,19 +13419,30 @@ class FontButton(Widget, Accessible, Buildable, ConstraintTarget, FontChooser): preview_text: str = ..., show_preview_entry: bool = ..., ): ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def get_modal(self) -> bool: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def get_title(self) -> str: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def get_use_font(self) -> bool: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def get_use_size(self) -> bool: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") @classmethod def new(cls) -> FontButton: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") @classmethod def new_with_font(cls, fontname: str) -> FontButton: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def set_modal(self, modal: bool) -> None: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def set_title(self, title: str) -> None: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def set_use_font(self, use_font: bool) -> None: ... + @deprecated("Use [class@Gtk.FontDialogButton] instead") def set_use_size(self, use_size: bool) -> None: ... +@deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") class FontChooser(GObject.GInterface): """ Interface GtkFontChooser @@ -13046,28 +13451,48 @@ class FontChooser(GObject.GInterface): notify (GParam) """ + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_font(self) -> Optional[str]: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_font_desc(self) -> Optional[Pango.FontDescription]: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_font_face(self) -> Optional[Pango.FontFace]: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_font_family(self) -> Optional[Pango.FontFamily]: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_font_features(self) -> str: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_font_map(self) -> Optional[Pango.FontMap]: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_font_size(self) -> int: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_language(self) -> str: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_level(self) -> FontChooserLevel: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_preview_text(self) -> str: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def get_show_preview_entry(self) -> bool: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_filter_func( self, filter: Optional[Callable[..., bool]] = None, *user_data: Any ) -> None: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_font(self, fontname: str) -> None: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_font_desc(self, font_desc: Pango.FontDescription) -> None: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_font_map(self, fontmap: Optional[Pango.FontMap] = None) -> None: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_language(self, language: str) -> None: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_level(self, level: FontChooserLevel) -> None: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_preview_text(self, text: str) -> None: ... + @deprecated("Use [class@Gtk.FontDialog] and [class@Gtk.FontDialogButton] instead") def set_show_preview_entry(self, show_preview_entry: bool) -> None: ... +@deprecated("Use [class@Gtk.FontDialog] instead") class FontChooserDialog( Dialog, Accessible, @@ -13320,6 +13745,7 @@ class FontChooserDialog( preview_text: str = ..., show_preview_entry: bool = ..., ): ... + @deprecated("Use [class@Gtk.FontDialog] instead") @classmethod def new( cls, title: Optional[str] = None, parent: Optional[Window] = None @@ -13344,6 +13770,7 @@ class FontChooserIface(GObject.GPointer): get_font_map: Callable[[FontChooser], Optional[Pango.FontMap]] = ... padding: list[None] = ... +@deprecated("Direct use of `GtkFontChooserWidget` is deprecated.") class FontChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FontChooser): """ :Constructors: @@ -13500,6 +13927,7 @@ class FontChooserWidget(Widget, Accessible, Buildable, ConstraintTarget, FontCho preview_text: str = ..., show_preview_entry: bool = ..., ): ... + @deprecated("Direct use of `GtkFontChooserWidget` is deprecated.") @classmethod def new(cls) -> FontChooserWidget: ... @@ -14148,6 +14576,7 @@ class GLArea(Widget, Accessible, Buildable, ConstraintTarget): def get_has_depth_buffer(self) -> bool: ... def get_has_stencil_buffer(self) -> bool: ... def get_required_version(self) -> Tuple[int, int]: ... + @deprecated("Use [method@Gtk.GLArea.get_api]") def get_use_es(self) -> bool: ... def make_current(self) -> None: ... @classmethod @@ -14159,6 +14588,7 @@ class GLArea(Widget, Accessible, Buildable, ConstraintTarget): def set_has_depth_buffer(self, has_depth_buffer: bool) -> None: ... def set_has_stencil_buffer(self, has_stencil_buffer: bool) -> None: ... def set_required_version(self, major: int, minor: int) -> None: ... + @deprecated("Use [method@Gtk.GLArea.set_allowed_apis]") def set_use_es(self, use_es: bool) -> None: ... class GLAreaClass(GObject.GPointer): @@ -14240,6 +14670,7 @@ class Gesture(EventController): def is_active(self) -> bool: ... def is_grouped_with(self, other: Gesture) -> bool: ... def is_recognized(self) -> bool: ... + @deprecated("Use [method@Gtk.Gesture.set_state]") def set_sequence_state( self, sequence: Gdk.EventSequence, state: EventSequenceState ) -> bool: ... @@ -15613,6 +16044,7 @@ class IMContext(GObject.Object): def reset(self) -> None: ... def set_client_widget(self, widget: Optional[Widget] = None) -> None: ... def set_cursor_location(self, area: Gdk.Rectangle) -> None: ... + @deprecated("Use [method@Gtk.IMContext.set_surrounding_with_selection] instead") def set_surrounding(self, text: str, len: int, cursor_index: int) -> None: ... def set_surrounding_with_selection( self, text: str, len: int, cursor_index: int, anchor_index: int @@ -15880,6 +16312,7 @@ class IconTheme(GObject.Object): def set_search_path(self, path: Optional[Sequence[str]] = None) -> None: ... def set_theme_name(self, theme_name: Optional[str] = None) -> None: ... +@deprecated("Use [class@Gtk.GridView] instead") class IconView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Scrollable): """ :Constructors: @@ -16089,96 +16522,156 @@ class IconView(Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Scro vadjustment: Optional[Adjustment] = ..., vscroll_policy: ScrollablePolicy = ..., ): ... + @deprecated("Use [class@Gtk.GridView] instead") def create_drag_icon(self, path: TreePath) -> Optional[Gdk.Paintable]: ... + @deprecated("Use [class@Gtk.GridView] instead") def enable_model_drag_dest( self, formats: Gdk.ContentFormats, actions: Gdk.DragAction ) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def enable_model_drag_source( self, start_button_mask: Gdk.ModifierType, formats: Gdk.ContentFormats, actions: Gdk.DragAction, ) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_activate_on_single_click(self) -> bool: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_cell_rect( self, path: TreePath, cell: Optional[CellRenderer] = None ) -> Tuple[bool, Gdk.Rectangle]: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_column_spacing(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_columns(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_cursor(self) -> Tuple[bool, TreePath, CellRenderer]: ... def get_dest_item_at_pos( self, drag_x: int, drag_y: int ) -> Optional[Tuple[TreePath, IconViewDropPosition]]: ... # CHECK Wrapped function + @deprecated("Use [class@Gtk.GridView] instead") def get_drag_dest_item(self) -> Tuple[TreePath, IconViewDropPosition]: ... def get_item_at_pos( self, x: int, y: int ) -> Optional[Tuple[TreePath, CellRenderer]]: ... # CHECK Wrapped function + @deprecated("Use [class@Gtk.GridView] instead") def get_item_column(self, path: TreePath) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_item_orientation(self) -> Orientation: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_item_padding(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_item_row(self, path: TreePath) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_item_width(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_margin(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_markup_column(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_model(self) -> Optional[TreeModel]: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_path_at_pos(self, x: int, y: int) -> Optional[TreePath]: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_pixbuf_column(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_reorderable(self) -> bool: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_row_spacing(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_selected_items(self) -> list[TreePath]: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_selection_mode(self) -> SelectionMode: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_spacing(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_text_column(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_tooltip_column(self) -> int: ... + @deprecated("Use [class@Gtk.GridView] instead") def get_tooltip_context( self, x: int, y: int, keyboard_tip: bool ) -> Tuple[bool, TreeModel, TreePath, TreeIter]: ... def get_visible_range( self, ) -> Optional[Tuple[TreePath, TreePath]]: ... # CHECK Wrapped function + @deprecated("Use [class@Gtk.GridView] instead") def item_activated(self, path: TreePath) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") @classmethod def new(cls) -> IconView: ... + @deprecated("Use [class@Gtk.GridView] instead") @classmethod def new_with_area(cls, area: CellArea) -> IconView: ... + @deprecated("Use [class@Gtk.GridView] instead") @classmethod def new_with_model(cls, model: TreeModel) -> IconView: ... + @deprecated("Use [class@Gtk.GridView] instead") def path_is_selected(self, path: TreePath) -> bool: ... + @deprecated("Use [class@Gtk.GridView] instead") def scroll_to_path( self, path: TreePath, use_align: bool, row_align: float, col_align: float ) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def select_all(self) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def select_path(self, path: TreePath) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_activate_on_single_click(self, single: bool) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_column_spacing(self, column_spacing: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_columns(self, columns: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_cursor( self, path: TreePath, cell: Optional[CellRenderer], start_editing: bool ) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_drag_dest_item( self, path: Optional[TreePath], pos: IconViewDropPosition ) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_item_orientation(self, orientation: Orientation) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_item_padding(self, item_padding: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_item_width(self, item_width: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_margin(self, margin: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_markup_column(self, column: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_model(self, model: Optional[TreeModel] = None) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_pixbuf_column(self, column: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_reorderable(self, reorderable: bool) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_row_spacing(self, row_spacing: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_selection_mode(self, mode: SelectionMode) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_spacing(self, spacing: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_text_column(self, column: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_tooltip_cell( self, tooltip: Tooltip, path: TreePath, cell: Optional[CellRenderer] = None ) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_tooltip_column(self, column: int) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def set_tooltip_item(self, tooltip: Tooltip, path: TreePath) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def unselect_all(self) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def unselect_path(self, path: TreePath) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def unset_model_drag_dest(self) -> None: ... + @deprecated("Use [class@Gtk.GridView] instead") def unset_model_drag_source(self) -> None: ... class Image(Widget, Accessible, Buildable, ConstraintTarget): @@ -16368,6 +16861,9 @@ class Image(Widget, Accessible, Buildable, ConstraintTarget): def new_from_icon_name(cls, icon_name: Optional[str] = None) -> Image: ... @classmethod def new_from_paintable(cls, paintable: Optional[Gdk.Paintable] = None) -> Image: ... + @deprecated( + "Use [ctor@Gtk.Image.new_from_paintable] and [ctor@Gdk.Texture.new_for_pixbuf] instead" + ) @classmethod def new_from_pixbuf(cls, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> Image: ... @classmethod @@ -16376,11 +16872,15 @@ class Image(Widget, Accessible, Buildable, ConstraintTarget): def set_from_gicon(self, icon: Gio.Icon) -> None: ... def set_from_icon_name(self, icon_name: Optional[str] = None) -> None: ... def set_from_paintable(self, paintable: Optional[Gdk.Paintable] = None) -> None: ... + @deprecated("Use [method@Gtk.Image.set_from_paintable] instead") def set_from_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... def set_from_resource(self, resource_path: Optional[str] = None) -> None: ... def set_icon_size(self, icon_size: IconSize) -> None: ... def set_pixel_size(self, pixel_size: int) -> None: ... +@deprecated( + 'There is no replacement in GTK for an "info bar" widget; you can use [class@Gtk.Revealer] with a [class@Gtk.Box] containing a [class@Gtk.Label] and an optional [class@Gtk.Button], according to your application\'s design.' +) class InfoBar(Widget, Accessible, Buildable, ConstraintTarget): """ :Constructors: @@ -16532,21 +17032,36 @@ class InfoBar(Widget, Accessible, Buildable, ConstraintTarget): width_request: int = ..., accessible_role: AccessibleRole = ..., ): ... + @deprecated("This method is deprecated") def add_action_widget(self, child: Widget, response_id: int) -> None: ... + @deprecated("This method is deprecated") def add_button(self, button_text: str, response_id: int) -> Button: ... + @deprecated("This method is deprecated") def add_child(self, widget: Widget) -> None: ... + @deprecated("This method is deprecated") def get_message_type(self) -> MessageType: ... + @deprecated("This method is deprecated") def get_revealed(self) -> bool: ... + @deprecated("This method is deprecated") def get_show_close_button(self) -> bool: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> InfoBar: ... + @deprecated("This method is deprecated") def remove_action_widget(self, widget: Widget) -> None: ... + @deprecated("This method is deprecated") def remove_child(self, widget: Widget) -> None: ... + @deprecated("This method is deprecated") def response(self, response_id: int) -> None: ... + @deprecated("This method is deprecated") def set_default_response(self, response_id: int) -> None: ... + @deprecated("This method is deprecated") def set_message_type(self, message_type: MessageType) -> None: ... + @deprecated("This method is deprecated") def set_response_sensitive(self, response_id: int, setting: bool) -> None: ... + @deprecated("This method is deprecated") def set_revealed(self, revealed: bool) -> None: ... + @deprecated("This method is deprecated") def set_show_close_button(self, setting: bool) -> None: ... class Inscription(Widget, Accessible, Buildable, ConstraintTarget): @@ -18150,6 +18665,7 @@ class ListItemClass(GObject.GPointer): ... class ListItemFactory(GObject.Object): ... class ListItemFactoryClass(GObject.GPointer): ... +@deprecated("Use [class@Gio.ListStore] instead") class ListStore( GObject.Object, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable ): @@ -18180,31 +18696,42 @@ class ListStore( parent: GObject.Object = ... priv: ListStorePrivate = ... def append(self, row=None): ... # FIXME Function + @deprecated("Use list models") def clear(self) -> None: ... def insert(self, position, row=None): ... # FIXME Function def insert_after(self, sibling, row=None): ... # FIXME Function def insert_before(self, sibling, row=None): ... # FIXME Function + @deprecated("Use list models") def insert_with_values( self, position: int, columns: Sequence[int], values: Sequence[Any] ) -> TreeIter: ... + @deprecated("Use list models") def insert_with_valuesv( self, position: int, columns: Sequence[int], values: Sequence[Any] ) -> TreeIter: ... + @deprecated("Use list models") def iter_is_valid(self, iter: TreeIter) -> bool: ... + @deprecated("Use list models") def move_after( self, iter: TreeIter, position: Optional[TreeIter] = None ) -> None: ... + @deprecated("Use list models") def move_before( self, iter: TreeIter, position: Optional[TreeIter] = None ) -> None: ... + @deprecated("Use [class@Gio.ListStore] instead") @classmethod def new(cls, types: Sequence[Type]) -> ListStore: ... def prepend(self, row=None): ... # FIXME Function + @deprecated("Use list models") def remove(self, iter: TreeIter) -> bool: ... + @deprecated("Use list models") def reorder(self, new_order: Sequence[int]) -> None: ... def set(self, treeiter, *args): ... # FIXME Function + @deprecated("Use list models") def set_column_types(self, types: Sequence[Type]) -> None: ... def set_value(self, treeiter, column, value): ... # FIXME Function + @deprecated("Use list models") def swap(self, a: TreeIter, b: TreeIter) -> None: ... class ListStoreClass(GObject.GPointer): @@ -18424,6 +18951,7 @@ class ListView( class ListViewClass(GObject.GPointer): ... +@deprecated("This widget will be removed in GTK 5") class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): """ :Constructors: @@ -18608,9 +19136,12 @@ class LockButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): action_name: Optional[str] = ..., action_target: GLib.Variant = ..., ): ... + @deprecated("This widget will be removed in GTK 5") def get_permission(self) -> Optional[Gio.Permission]: ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new(cls, permission: Optional[Gio.Permission] = None) -> LockButton: ... + @deprecated("This widget will be removed in GTK 5") def set_permission(self, permission: Optional[Gio.Permission] = None) -> None: ... class MapListModel(GObject.Object, Gio.ListModel, SectionModel): @@ -19269,6 +19800,7 @@ class MenuButton(Widget, Accessible, Buildable, ConstraintTarget): def set_primary(self, primary: bool) -> None: ... def set_use_underline(self, use_underline: bool) -> None: ... +@deprecated("Use [class@Gtk.AlertDialog] instead") class MessageDialog( Dialog, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager ): @@ -19520,7 +20052,9 @@ class MessageDialog( width_request: int = ..., accessible_role: AccessibleRole = ..., ): ... + @deprecated("Use [class@Gtk.AlertDialog] instead") def get_message_area(self) -> Widget: ... + @deprecated("Use [class@Gtk.AlertDialog] instead") def set_markup(self, str: str) -> None: ... class MessageDialogClass(GObject.GPointer): ... @@ -21653,6 +22187,9 @@ class Picture(Widget, Accessible, Buildable, ConstraintTarget): def get_can_shrink(self) -> bool: ... def get_content_fit(self) -> ContentFit: ... def get_file(self) -> Optional[Gio.File]: ... + @deprecated( + "Use [method@Gtk.Picture.get_content_fit] instead. This will now return `FALSE` only if [property@Gtk.Picture:content-fit] is `GTK_CONTENT_FIT_FILL`. Returns `TRUE` otherwise." + ) def get_keep_aspect_ratio(self) -> bool: ... def get_paintable(self) -> Optional[Gdk.Paintable]: ... @classmethod @@ -21665,6 +22202,9 @@ class Picture(Widget, Accessible, Buildable, ConstraintTarget): def new_for_paintable( cls, paintable: Optional[Gdk.Paintable] = None ) -> Picture: ... + @deprecated( + "Use [ctor@Gtk.Picture.new_for_paintable] and [ctor@Gdk.Texture.new_for_pixbuf] instead" + ) @classmethod def new_for_pixbuf(cls, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> Picture: ... @classmethod @@ -21674,8 +22214,12 @@ class Picture(Widget, Accessible, Buildable, ConstraintTarget): def set_content_fit(self, content_fit: ContentFit) -> None: ... def set_file(self, file: Optional[Gio.File] = None) -> None: ... def set_filename(self, filename: Optional[str] = None) -> None: ... + @deprecated( + "Use [method@Gtk.Picture.set_content_fit] instead. If still used, this method will always set the [property@Gtk.Picture:content-fit] property to `GTK_CONTENT_FIT_CONTAIN` if @keep_aspect_ratio is true, otherwise it will set it to `GTK_CONTENT_FIT_FILL`." + ) def set_keep_aspect_ratio(self, keep_aspect_ratio: bool) -> None: ... def set_paintable(self, paintable: Optional[Gdk.Paintable] = None) -> None: ... + @deprecated("Use [method@Gtk.Picture.set_paintable] instead") def set_pixbuf(self, pixbuf: Optional[GdkPixbuf.Pixbuf] = None) -> None: ... def set_resource(self, resource_path: Optional[str] = None) -> None: ... @@ -26771,15 +27315,19 @@ class Snapshot(Gdk.Snapshot): ) -> None: ... def push_rounded_clip(self, bounds: Gsk.RoundedRect) -> None: ... def push_shadow(self, shadow: Sequence[Gsk.Shadow]) -> None: ... + @deprecated("This method is deprecated") def render_background( self, context: StyleContext, x: float, y: float, width: float, height: float ) -> None: ... + @deprecated("This method is deprecated") def render_focus( self, context: StyleContext, x: float, y: float, width: float, height: float ) -> None: ... + @deprecated("This method is deprecated") def render_frame( self, context: StyleContext, x: float, y: float, width: float, height: float ) -> None: ... + @deprecated("This method is deprecated") def render_insertion_cursor( self, context: StyleContext, @@ -26789,6 +27337,7 @@ class Snapshot(Gdk.Snapshot): index: int, direction: Pango.Direction, ) -> None: ... + @deprecated("This method is deprecated") def render_layout( self, context: StyleContext, x: float, y: float, layout: Pango.Layout ) -> None: ... @@ -27863,6 +28412,7 @@ class StackSwitcher(Widget, Accessible, Buildable, ConstraintTarget, Orientable) def new(cls) -> StackSwitcher: ... def set_stack(self, stack: Optional[Stack] = None) -> None: ... +@deprecated("This widget will be removed in GTK 5") class Statusbar(Widget, Accessible, Buildable, ConstraintTarget): """ :Constructors: @@ -28003,12 +28553,18 @@ class Statusbar(Widget, Accessible, Buildable, ConstraintTarget): width_request: int = ..., accessible_role: AccessibleRole = ..., ): ... + @deprecated("This widget will be removed in GTK 5") def get_context_id(self, context_description: str) -> int: ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new(cls) -> Statusbar: ... + @deprecated("This widget will be removed in GTK 5") def pop(self, context_id: int) -> None: ... + @deprecated("This widget will be removed in GTK 5") def push(self, context_id: int, text: str) -> int: ... + @deprecated("This widget will be removed in GTK 5") def remove(self, context_id: int, message_id: int) -> None: ... + @deprecated("This widget will be removed in GTK 5") def remove_all(self, context_id: int) -> None: ... class StringFilter(Filter): @@ -28206,6 +28762,9 @@ class StringSorterClass(GObject.GPointer): parent_class: SorterClass = ... +@deprecated( + "The relevant API has been moved to [class@Gtk.Widget] where applicable; otherwise, there is no replacement for querying the style machinery. Stylable UI elements should use widgets." +) class StyleContext(GObject.Object): """ :Constructors: @@ -28228,33 +28787,51 @@ class StyleContext(GObject.Object): props: Props = ... parent_object: GObject.Object = ... def __init__(self, display: Gdk.Display = ...): ... + @deprecated("Use [method@Gtk.Widget.add_css_class] instead") def add_class(self, class_name: str) -> None: ... + @deprecated("Use style classes instead") def add_provider(self, provider: StyleProvider, priority: int) -> None: ... @staticmethod def add_provider_for_display( display: Gdk.Display, provider: StyleProvider, priority: int ) -> None: ... def do_changed(self) -> None: ... + @deprecated("This api will be removed in GTK 5") def get_border(self) -> Border: ... + @deprecated("Use [method@Gtk.Widget.get_color] instead") def get_color(self) -> Gdk.RGBA: ... + @deprecated("Use [method@Gtk.Widget.get_display] instead") def get_display(self) -> Gdk.Display: ... + @deprecated("This api will be removed in GTK 5") def get_margin(self) -> Border: ... + @deprecated("This api will be removed in GTK 5") def get_padding(self) -> Border: ... def get_scale(self) -> int: ... + @deprecated("Use [method@Gtk.Widget.get_state_flags] instead") def get_state(self) -> StateFlags: ... + @deprecated("Use [method@Gtk.Widget.has_css_class] instead") def has_class(self, class_name: str) -> bool: ... + @deprecated("This api will be removed in GTK 5") def lookup_color(self, color_name: str) -> Tuple[bool, Gdk.RGBA]: ... + @deprecated("Use [method@Gtk.Widget.remove_css_class] instead") def remove_class(self, class_name: str) -> None: ... + @deprecated("This method is deprecated") def remove_provider(self, provider: StyleProvider) -> None: ... @staticmethod def remove_provider_for_display( display: Gdk.Display, provider: StyleProvider ) -> None: ... + @deprecated("This API will be removed in GTK 5") def restore(self) -> None: ... + @deprecated("This API will be removed in GTK 5") def save(self) -> None: ... + @deprecated("You should not use this api") def set_display(self, display: Gdk.Display) -> None: ... + @deprecated("You should not use this api") def set_scale(self, scale: int) -> None: ... + @deprecated("You should not use this api") def set_state(self, flags: StateFlags) -> None: ... + @deprecated("This api will be removed in GTK 5") def to_string(self, flags: StyleContextPrintFlags) -> str: ... class StyleContextClass(GObject.GPointer): @@ -30078,6 +30655,9 @@ class ToggleButton(Button, Accessible, Actionable, Buildable, ConstraintTarget): def new_with_mnemonic(cls, label: str) -> ToggleButton: ... def set_active(self, is_active: bool) -> None: ... def set_group(self, group: Optional[ToggleButton] = None) -> None: ... + @deprecated( + "There is no good reason for an application ever to call this function." + ) def toggled(self) -> None: ... class ToggleButtonClass(GObject.GPointer): @@ -30115,12 +30695,17 @@ class Tooltip(GObject.Object): def set_text(self, text: Optional[str] = None) -> None: ... def set_tip_area(self, rect: Gdk.Rectangle) -> None: ... +@deprecated( + "List views use widgets to display their contents. You can use [class@Gtk.DropTarget] to implement a drop destination" +) class TreeDragDest(GObject.GInterface): """ Interface GtkTreeDragDest """ + @deprecated("Use list models instead") def drag_data_received(self, dest: TreePath, value: Any) -> bool: ... + @deprecated("Use list models instead") def row_drop_possible(self, dest_path: TreePath, value: Any) -> bool: ... class TreeDragDestIface(GObject.GPointer): @@ -30136,13 +30721,19 @@ class TreeDragDestIface(GObject.GPointer): drag_data_received: Callable[[TreeDragDest, TreePath, Any], bool] = ... row_drop_possible: Callable[[TreeDragDest, TreePath, Any], bool] = ... +@deprecated( + "List views use widgets to display their contents. You can use [class@Gtk.DragSource] to implement a drag source" +) class TreeDragSource(GObject.GInterface): """ Interface GtkTreeDragSource """ + @deprecated("Use list models instead") def drag_data_delete(self, path: TreePath) -> bool: ... + @deprecated("Use list models instead") def drag_data_get(self, path: TreePath) -> Optional[Gdk.ContentProvider]: ... + @deprecated("Use list models instead") def row_draggable(self, path: TreePath) -> bool: ... class TreeDragSourceIface(GObject.GPointer): @@ -30354,7 +30945,9 @@ class TreeIter(GObject.GBoxed): user_data: None = ... user_data2: None = ... user_data3: None = ... + @deprecated("This method is deprecated") def copy(self) -> TreeIter: ... + @deprecated("This method is deprecated") def free(self) -> None: ... class TreeListModel(GObject.Object, Gio.ListModel): @@ -30508,6 +31101,7 @@ class TreeListRowSorterClass(GObject.GPointer): parent_class: SorterClass = ... +@deprecated("Use [iface@Gio.ListModel] instead") class TreeModel(GObject.GInterface): """ Interface GtkTreeModel @@ -30516,24 +31110,34 @@ class TreeModel(GObject.GInterface): notify (GParam) """ + @deprecated("This method is deprecated") def filter_new(self, root: Optional[TreePath] = None) -> TreeModel: ... + @deprecated("This method is deprecated") def foreach(self, func: Callable[..., bool], *user_data: Any) -> None: ... def get(self, treeiter, *columns): ... # FIXME Function + @deprecated("This method is deprecated") def get_column_type(self, index_: int) -> Type: ... + @deprecated("This method is deprecated") def get_flags(self) -> TreeModelFlags: ... def get_iter(self, path): ... # FIXME Function def get_iter_first(self) -> Optional[TreeIter]: ... # CHECK Wrapped function def get_iter_from_string( self, path_string: str ) -> Optional[TreeIter]: ... # CHECK Wrapped function + @deprecated("This method is deprecated") def get_n_columns(self) -> int: ... + @deprecated("This method is deprecated") def get_path(self, iter: TreeIter) -> TreePath: ... + @deprecated("This method is deprecated") def get_string_from_iter(self, iter: TreeIter) -> Optional[str]: ... + @deprecated("This method is deprecated") def get_value(self, iter: TreeIter, column: int) -> Any: ... def iter_children( self, parent: Optional[TreeIter] = None ) -> Optional[TreeIter]: ... # CHECK Wrapped function + @deprecated("This method is deprecated") def iter_has_child(self, iter: TreeIter) -> bool: ... + @deprecated("This method is deprecated") def iter_n_children(self, iter: Optional[TreeIter] = None) -> int: ... def iter_next(self, aiter): ... # FIXME Function def iter_nth_child( @@ -30543,6 +31147,7 @@ class TreeModel(GObject.GInterface): self, child: TreeIter ) -> Optional[TreeIter]: ... # CHECK Wrapped function def iter_previous(self, aiter): ... # FIXME Function + @deprecated("This method is deprecated") def ref_node(self, iter: TreeIter) -> None: ... def row_changed(self, path, iter): ... # FIXME Function def row_deleted(self, path): ... # FIXME Function @@ -30551,8 +31156,10 @@ class TreeModel(GObject.GInterface): def rows_reordered(self, path, iter, new_order): ... # FIXME Function def set_row(self, treeiter, row): ... # FIXME Function def sort_new_with_model(self): ... # FIXME Function + @deprecated("This method is deprecated") def unref_node(self, iter: TreeIter) -> None: ... +@deprecated("Use [class@Gtk.FilterListModel] instead.") class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): """ :Constructors: @@ -30585,14 +31192,19 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): parent: GObject.Object = ... priv: TreeModelFilterPrivate = ... def __init__(self, child_model: TreeModel = ..., virtual_root: TreePath = ...): ... + @deprecated("This method is deprecated") def clear_cache(self) -> None: ... + @deprecated("This method is deprecated") def convert_child_iter_to_iter( self, child_iter: TreeIter ) -> Tuple[bool, TreeIter]: ... + @deprecated("This method is deprecated") def convert_child_path_to_path( self, child_path: TreePath ) -> Optional[TreePath]: ... + @deprecated("This method is deprecated") def convert_iter_to_child_iter(self, filter_iter: TreeIter) -> TreeIter: ... + @deprecated("This method is deprecated") def convert_path_to_child_path( self, filter_path: TreePath ) -> Optional[TreePath]: ... @@ -30600,12 +31212,16 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): self, child_model: TreeModel, iter: TreeIter, value: Any, column: int ) -> None: ... def do_visible(self, child_model: TreeModel, iter: TreeIter) -> bool: ... + @deprecated("This method is deprecated") def get_model(self) -> TreeModel: ... + @deprecated("This method is deprecated") def refilter(self) -> None: ... + @deprecated("This method is deprecated") def set_modify_func( self, types: Sequence[Type], func: Callable[..., Any], *data: Any ) -> None: ... def set_value(self, iter, column, value): ... # FIXME Function + @deprecated("This method is deprecated") def set_visible_column(self, column: int) -> None: ... def set_visible_func(self, func, data=None): ... # FIXME Function @@ -30673,6 +31289,7 @@ class TreeModelRow: class TreeModelRowIter: ... +@deprecated("Use [class@Gtk.SortListModel] instead") class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable): """ :Constructors: @@ -30707,21 +31324,28 @@ class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable): parent: GObject.Object = ... priv: TreeModelSortPrivate = ... def __init__(self, model: TreeModel = ...): ... + @deprecated("This method is deprecated") def clear_cache(self) -> None: ... + @deprecated("This method is deprecated") def convert_child_iter_to_iter( self, child_iter: TreeIter ) -> Tuple[bool, TreeIter]: ... + @deprecated("This method is deprecated") def convert_child_path_to_path( self, child_path: TreePath ) -> Optional[TreePath]: ... + @deprecated("This method is deprecated") def convert_iter_to_child_iter(self, sorted_iter: TreeIter) -> TreeIter: ... + @deprecated("This method is deprecated") def convert_path_to_child_path( self, sorted_path: TreePath ) -> Optional[TreePath]: ... def get_model(self) -> TreeModel: ... + @deprecated("This method is deprecated") def iter_is_valid(self, iter: TreeIter) -> bool: ... @classmethod def new_with_model(cls, child_model: TreeModel) -> TreeModelSort: ... + @deprecated("This method is deprecated") def reset_default_sort_func(self) -> None: ... class TreeModelSortClass(GObject.GPointer): @@ -30750,27 +31374,45 @@ class TreePath(GObject.GBoxed): new_from_string(path:str) -> Gtk.TreePath or None """ + @deprecated("This method is deprecated") def append_index(self, index_: int) -> None: ... + @deprecated("This method is deprecated") def compare(self, b: TreePath) -> int: ... + @deprecated("This method is deprecated") def copy(self) -> TreePath: ... + @deprecated("This method is deprecated") def down(self) -> None: ... + @deprecated("This method is deprecated") def free(self) -> None: ... + @deprecated("This method is deprecated") def get_depth(self) -> int: ... + @deprecated("This method is deprecated") def get_indices(self) -> Optional[list[int]]: ... + @deprecated("This method is deprecated") def is_ancestor(self, descendant: TreePath) -> bool: ... + @deprecated("This method is deprecated") def is_descendant(self, ancestor: TreePath) -> bool: ... + @deprecated("This method is deprecated") @classmethod def new(cls) -> TreePath: ... + @deprecated("This method is deprecated") @classmethod def new_first(cls) -> TreePath: ... + @deprecated("This method is deprecated") @classmethod def new_from_indices(cls, indices: Sequence[int]) -> TreePath: ... + @deprecated("This method is deprecated") @classmethod def new_from_string(cls, path: str) -> Optional[TreePath]: ... + @deprecated("This method is deprecated") def next(self) -> None: ... + @deprecated("This method is deprecated") def prepend_index(self, index_: int) -> None: ... + @deprecated("This method is deprecated") def prev(self) -> bool: ... + @deprecated("This method is deprecated") def to_string(self) -> Optional[str]: ... + @deprecated("This method is deprecated") def up(self) -> bool: ... class TreeRowData(GObject.GBoxed): ... @@ -30785,22 +31427,32 @@ class TreeRowReference(GObject.GBoxed): new_proxy(proxy:GObject.Object, model:Gtk.TreeModel, path:Gtk.TreePath) -> Gtk.TreeRowReference or None """ + @deprecated("This method is deprecated") def copy(self) -> TreeRowReference: ... + @deprecated("This method is deprecated") @staticmethod def deleted(proxy: GObject.Object, path: TreePath) -> None: ... + @deprecated("This method is deprecated") def free(self) -> None: ... + @deprecated("This method is deprecated") def get_model(self) -> TreeModel: ... + @deprecated("This method is deprecated") def get_path(self) -> Optional[TreePath]: ... + @deprecated("This method is deprecated") @staticmethod def inserted(proxy: GObject.Object, path: TreePath) -> None: ... + @deprecated("This method is deprecated") @classmethod def new(cls, model: TreeModel, path: TreePath) -> Optional[TreeRowReference]: ... + @deprecated("This method is deprecated") @classmethod def new_proxy( cls, proxy: GObject.Object, model: TreeModel, path: TreePath ) -> Optional[TreeRowReference]: ... + @deprecated("This method is deprecated") def valid(self) -> bool: ... +@deprecated("Use [iface@Gtk.SelectionModel] instead") class TreeSelection(GObject.Object): """ :Constructors: @@ -30825,27 +31477,45 @@ class TreeSelection(GObject.Object): mode: SelectionMode props: Props = ... def __init__(self, mode: SelectionMode = ...): ... + @deprecated("Use GtkListView or GtkColumnView") def count_selected_rows(self) -> int: ... + @deprecated("Use GtkListView or GtkColumnView") def get_mode(self) -> SelectionMode: ... def get_selected(self): ... # FIXME Function def get_selected_rows(self): ... # FIXME Function + @deprecated("Use GtkListView or GtkColumnView") def get_tree_view(self) -> TreeView: ... + @deprecated("Use GtkListView or GtkColumnView") def iter_is_selected(self, iter: TreeIter) -> bool: ... + @deprecated("Use GtkListView or GtkColumnView") def path_is_selected(self, path: TreePath) -> bool: ... + @deprecated("Use GtkListView or GtkColumnView") def select_all(self) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def select_iter(self, iter: TreeIter) -> None: ... def select_path(self, path): ... # FIXME Function + @deprecated("Use GtkListView or GtkColumnView") def select_range(self, start_path: TreePath, end_path: TreePath) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def selected_foreach(self, func: Callable[..., None], *data: Any) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def set_mode(self, type: SelectionMode) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def set_select_function( self, func: Optional[Callable[..., bool]] = None, *data: Any ) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def unselect_all(self) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def unselect_iter(self, iter: TreeIter) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def unselect_path(self, path: TreePath) -> None: ... + @deprecated("Use GtkListView or GtkColumnView") def unselect_range(self, start_path: TreePath, end_path: TreePath) -> None: ... +@deprecated( + "There is no replacement for this interface. You should use [class@Gtk.SortListModel] to wrap your list model instead" +) class TreeSortable(GObject.GInterface): """ Interface GtkTreeSortable @@ -30857,12 +31527,15 @@ class TreeSortable(GObject.GInterface): def get_sort_column_id( self, ) -> Tuple[int, SortType] | Tuple[None, None]: ... # CHECK Wrapped function + @deprecated("This method is deprecated") def has_default_sort_func(self) -> bool: ... def set_default_sort_func(self, sort_func, user_data=None): ... # FIXME Function + @deprecated("This method is deprecated") def set_sort_column_id(self, sort_column_id: int, order: SortType) -> None: ... def set_sort_func( self, sort_column_id, sort_func, user_data=None ): ... # FIXME Function + @deprecated("This method is deprecated") def sort_column_changed(self) -> None: ... class TreeSortableIface(GObject.GPointer): @@ -30882,6 +31555,7 @@ class TreeSortableIface(GObject.GPointer): set_default_sort_func: Callable[..., None] = ... has_default_sort_func: Callable[[TreeSortable], bool] = ... +@deprecated("Use [class@Gtk.TreeListModel] instead") class TreeStore( GObject.Object, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable ): @@ -30912,10 +31586,12 @@ class TreeStore( parent: GObject.Object = ... priv: TreeStorePrivate = ... def append(self, parent, row=None): ... # FIXME Function + @deprecated("Use [class@Gtk.TreeListModel] instead") def clear(self) -> None: ... def insert(self, parent, position, row=None): ... # FIXME Function def insert_after(self, parent, sibling, row=None): ... # FIXME Function def insert_before(self, parent, sibling, row=None): ... # FIXME Function + @deprecated("Use [class@Gtk.TreeListModel] instead") def insert_with_values( self, parent: Optional[TreeIter], @@ -30923,22 +31599,31 @@ class TreeStore( columns: Sequence[int], values: Sequence[Any], ) -> TreeIter: ... + @deprecated("Use [class@Gtk.TreeListModel] instead") def is_ancestor(self, iter: TreeIter, descendant: TreeIter) -> bool: ... + @deprecated("Use [class@Gtk.TreeListModel] instead") def iter_depth(self, iter: TreeIter) -> int: ... + @deprecated("Use [class@Gtk.TreeListModel] instead") def iter_is_valid(self, iter: TreeIter) -> bool: ... + @deprecated("Use [class@Gtk.TreeListModel] instead") def move_after( self, iter: TreeIter, position: Optional[TreeIter] = None ) -> None: ... + @deprecated("Use [class@Gtk.TreeListModel] instead") def move_before( self, iter: TreeIter, position: Optional[TreeIter] = None ) -> None: ... + @deprecated("Use [class@Gtk.TreeListModel] instead") @classmethod def new(cls, types: Sequence[Type]) -> TreeStore: ... def prepend(self, parent, row=None): ... # FIXME Function + @deprecated("Use [class@Gtk.TreeListModel] instead") def remove(self, iter: TreeIter) -> bool: ... def set(self, treeiter, *args): ... # FIXME Function + @deprecated("Use [class@Gtk.TreeListModel] instead") def set_column_types(self, types: Sequence[Type]) -> None: ... def set_value(self, treeiter, column, value): ... # FIXME Function + @deprecated("Use [class@Gtk.TreeListModel] instead") def swap(self, a: TreeIter, b: TreeIter) -> None: ... class TreeStoreClass(GObject.GPointer): @@ -30955,6 +31640,9 @@ class TreeStoreClass(GObject.GPointer): class TreeStorePrivate(GObject.GPointer): ... +@deprecated( + "Use [class@Gtk.ListView] for lists, and [class@Gtk.ColumnView] for tabular lists" +) class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): """ :Constructors: @@ -31171,24 +31859,35 @@ class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): vadjustment: Optional[Adjustment] = ..., vscroll_policy: ScrollablePolicy = ..., ): ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def append_column(self, column: TreeViewColumn) -> int: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def collapse_all(self) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def collapse_row(self, path: TreePath) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def columns_autosize(self) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def convert_bin_window_to_tree_coords( self, bx: int, by: int ) -> Tuple[int, int]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def convert_bin_window_to_widget_coords( self, bx: int, by: int ) -> Tuple[int, int]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def convert_tree_to_bin_window_coords( self, tx: int, ty: int ) -> Tuple[int, int]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def convert_tree_to_widget_coords(self, tx: int, ty: int) -> Tuple[int, int]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def convert_widget_to_bin_window_coords( self, wx: int, wy: int ) -> Tuple[int, int]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def convert_widget_to_tree_coords(self, wx: int, wy: int) -> Tuple[int, int]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def create_row_drag_icon(self, path: TreePath) -> Optional[Gdk.Paintable]: ... def do_columns_changed(self) -> None: ... def do_cursor_changed(self) -> None: ... @@ -31211,65 +31910,99 @@ class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): def do_test_expand_row(self, iter: TreeIter, path: TreePath) -> bool: ... def do_toggle_cursor_row(self) -> bool: ... def do_unselect_all(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def enable_model_drag_dest( self, formats: Gdk.ContentFormats, actions: Gdk.DragAction ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def enable_model_drag_source( self, start_button_mask: Gdk.ModifierType, formats: Gdk.ContentFormats, actions: Gdk.DragAction, ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def expand_all(self) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def expand_row(self, path: TreePath, open_all: bool) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def expand_to_path(self, path: TreePath) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_activate_on_single_click(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_background_area( self, path: Optional[TreePath] = None, column: Optional[TreeViewColumn] = None ) -> Gdk.Rectangle: ... def get_cell_area(self, path, column=None): ... # FIXME Function + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_column(self, n: int) -> Optional[TreeViewColumn]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_columns(self) -> list[TreeViewColumn]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_cursor(self) -> Tuple[TreePath, TreeViewColumn]: ... def get_dest_row_at_pos( self, drag_x: int, drag_y: int ) -> Optional[Tuple[TreePath, TreeViewDropPosition]]: ... # CHECK Wrapped function + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_drag_dest_row(self) -> Tuple[TreePath, TreeViewDropPosition]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_enable_search(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_enable_tree_lines(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_expander_column(self) -> Optional[TreeViewColumn]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_fixed_height_mode(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_grid_lines(self) -> TreeViewGridLines: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_headers_clickable(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_headers_visible(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_hover_expand(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_hover_selection(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_level_indentation(self) -> int: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_model(self) -> Optional[TreeModel]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_n_columns(self) -> int: ... def get_path_at_pos( self, x: int, y: int ) -> Optional[ Tuple[TreePath, TreeViewColumn, int, int] ]: ... # CHECK Wrapped function + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_reorderable(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_rubber_banding(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_search_column(self) -> int: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_search_entry(self) -> Optional[Editable]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_selection(self) -> TreeSelection: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_show_expanders(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_tooltip_column(self) -> int: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_tooltip_context( self, x: int, y: int, keyboard_tip: bool ) -> Tuple[bool, TreeModel, TreePath, TreeIter]: ... def get_visible_range( self, ) -> Optional[Tuple[TreePath, TreePath]]: ... # CHECK Wrapped function + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def get_visible_rect(self) -> Gdk.Rectangle: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def insert_column(self, column: TreeViewColumn, position: int) -> int: ... def insert_column_with_attributes( self, position, title, cell, **kwargs ): ... # FIXME Function + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def insert_column_with_data_func( self, position: int, @@ -31278,32 +32011,45 @@ class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): func: Callable[..., None], *data: Any, ) -> int: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def is_blank_at_pos( self, x: int, y: int ) -> Tuple[bool, TreePath, TreeViewColumn, int, int]: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def is_rubber_banding_active(self) -> bool: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def map_expanded_rows(self, func: Callable[..., None], *data: Any) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def move_column_after( self, column: TreeViewColumn, base_column: Optional[TreeViewColumn] = None ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") @classmethod def new(cls) -> TreeView: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") @classmethod def new_with_model(cls, model: TreeModel) -> TreeView: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def remove_column(self, column: TreeViewColumn) -> int: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def row_activated( self, path: TreePath, column: Optional[TreeViewColumn] = None ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def row_expanded(self, path: TreePath) -> bool: ... def scroll_to_cell( self, path, column=None, use_align=False, row_align=0.0, col_align=0.0 ): ... # FIXME Function + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def scroll_to_point(self, tree_x: int, tree_y: int) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_activate_on_single_click(self, single: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_column_drag_function( self, func: Optional[Callable[..., bool]] = None, *user_data: Any ) -> None: ... def set_cursor(self, path, column=None, start_editing=False): ... # FIXME Function + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_cursor_on_cell( self, path: TreePath, @@ -31311,31 +32057,51 @@ class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): focus_cell: Optional[CellRenderer], start_editing: bool, ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_drag_dest_row( self, path: Optional[TreePath], pos: TreeViewDropPosition ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_enable_search(self, enable_search: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_enable_tree_lines(self, enabled: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_expander_column(self, column: Optional[TreeViewColumn] = None) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_fixed_height_mode(self, enable: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_grid_lines(self, grid_lines: TreeViewGridLines) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_headers_clickable(self, setting: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_headers_visible(self, headers_visible: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_hover_expand(self, expand: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_hover_selection(self, hover: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_level_indentation(self, indentation: int) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_model(self, model: Optional[TreeModel] = None) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_reorderable(self, reorderable: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_row_separator_func( self, func: Optional[Callable[..., bool]] = None, *data: Any ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_rubber_banding(self, enable: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_search_column(self, column: int) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_search_entry(self, entry: Optional[Editable] = None) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_search_equal_func( self, search_equal_func: Callable[..., bool], *search_user_data: Any ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_show_expanders(self, enabled: bool) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_tooltip_cell( self, tooltip: Tooltip, @@ -31343,9 +32109,13 @@ class TreeView(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): column: Optional[TreeViewColumn] = None, cell: Optional[CellRenderer] = None, ) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_tooltip_column(self, column: int) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def set_tooltip_row(self, tooltip: Tooltip, path: TreePath) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def unset_rows_drag_dest(self) -> None: ... + @deprecated("Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead") def unset_rows_drag_source(self) -> None: ... class TreeViewClass(GObject.GPointer): @@ -31375,6 +32145,9 @@ class TreeViewClass(GObject.GPointer): start_interactive_search: Callable[[TreeView], bool] = ... _reserved: list[None] = ... +@deprecated( + "Use [class@Gtk.ColumnView] and [class@Gtk.ColumnViewColumn] instead of [class@Gtk.TreeView] to show a tabular list" +) class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): """ :Constructors: @@ -31456,14 +32229,18 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): visible: bool = ..., widget: Optional[Widget] = ..., ): ... + @deprecated("Use GtkColumnView instead") def add_attribute( self, cell_renderer: CellRenderer, attribute: str, column: int ) -> None: ... def cell_get_position( self, cell_renderer: CellRenderer ) -> Optional[Tuple[int, int]]: ... # CHECK Wrapped function + @deprecated("Use GtkColumnView instead") def cell_get_size(self) -> Tuple[int, int, int, int]: ... + @deprecated("Use GtkColumnView instead") def cell_is_visible(self) -> bool: ... + @deprecated("Use GtkColumnView instead") def cell_set_cell_data( self, tree_model: TreeModel, @@ -31471,56 +32248,101 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): is_expander: bool, is_expanded: bool, ) -> None: ... + @deprecated("Use GtkColumnView instead") def clear(self) -> None: ... + @deprecated("Use GtkColumnView instead") def clear_attributes(self, cell_renderer: CellRenderer) -> None: ... + @deprecated("Use GtkColumnView instead") def clicked(self) -> None: ... + @deprecated("Use GtkColumnView instead") def focus_cell(self, cell: CellRenderer) -> None: ... + @deprecated("Use GtkColumnView instead") def get_alignment(self) -> float: ... + @deprecated("Use GtkColumnView instead") def get_button(self) -> Widget: ... + @deprecated("Use GtkColumnView instead") def get_clickable(self) -> bool: ... + @deprecated("Use GtkColumnView instead") def get_expand(self) -> bool: ... + @deprecated("Use GtkColumnView instead") def get_fixed_width(self) -> int: ... + @deprecated("Use GtkColumnView instead") def get_max_width(self) -> int: ... + @deprecated("Use GtkColumnView instead") def get_min_width(self) -> int: ... + @deprecated("Use GtkColumnView instead") def get_reorderable(self) -> bool: ... + @deprecated("Use GtkColumnView instead") def get_resizable(self) -> bool: ... + @deprecated("Use GtkColumnView instead") def get_sizing(self) -> TreeViewColumnSizing: ... + @deprecated("Use GtkColumnView instead") def get_sort_column_id(self) -> int: ... + @deprecated("Use GtkColumnView instead") def get_sort_indicator(self) -> bool: ... + @deprecated("Use GtkColumnView instead") def get_sort_order(self) -> SortType: ... + @deprecated("Use GtkColumnView instead") def get_spacing(self) -> int: ... + @deprecated("Use GtkColumnView instead") def get_title(self) -> str: ... + @deprecated("Use GtkColumnView instead") def get_tree_view(self) -> Optional[Widget]: ... + @deprecated("Use GtkColumnView instead") def get_visible(self) -> bool: ... + @deprecated("Use GtkColumnView instead") def get_widget(self) -> Optional[Widget]: ... + @deprecated("Use GtkColumnView instead") def get_width(self) -> int: ... + @deprecated("Use GtkColumnView instead") def get_x_offset(self) -> int: ... + @deprecated("Use GtkColumnView instead") @classmethod def new(cls) -> TreeViewColumn: ... + @deprecated("Use GtkColumnView instead") @classmethod def new_with_area(cls, area: CellArea) -> TreeViewColumn: ... + @deprecated("Use GtkColumnView instead") def pack_end(self, cell: CellRenderer, expand: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def pack_start(self, cell: CellRenderer, expand: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def queue_resize(self) -> None: ... + @deprecated("Use GtkColumnView instead") def set_alignment(self, xalign: float) -> None: ... def set_attributes(self, cell_renderer, **attributes): ... # FIXME Function def set_cell_data_func( self, cell_renderer, func, func_data=None ): ... # FIXME Function + @deprecated("Use GtkColumnView instead") def set_clickable(self, clickable: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def set_expand(self, expand: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def set_fixed_width(self, fixed_width: int) -> None: ... + @deprecated("Use GtkColumnView instead") def set_max_width(self, max_width: int) -> None: ... + @deprecated("Use GtkColumnView instead") def set_min_width(self, min_width: int) -> None: ... + @deprecated("Use GtkColumnView instead") def set_reorderable(self, reorderable: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def set_resizable(self, resizable: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def set_sizing(self, type: TreeViewColumnSizing) -> None: ... + @deprecated("Use GtkColumnView instead") def set_sort_column_id(self, sort_column_id: int) -> None: ... + @deprecated("Use GtkColumnView instead") def set_sort_indicator(self, setting: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def set_sort_order(self, order: SortType) -> None: ... + @deprecated("Use GtkColumnView instead") def set_spacing(self, spacing: int) -> None: ... + @deprecated("Use GtkColumnView instead") def set_title(self, title: str) -> None: ... + @deprecated("Use GtkColumnView instead") def set_visible(self, visible: bool) -> None: ... + @deprecated("Use GtkColumnView instead") def set_widget(self, widget: Optional[Widget] = None) -> None: ... class UriLauncher(GObject.Object): @@ -31921,6 +32743,7 @@ class Viewport(Widget, Accessible, Buildable, ConstraintTarget, Scrollable): def set_child(self, child: Optional[Widget] = None) -> None: ... def set_scroll_to_focus(self, scroll_to_focus: bool) -> None: ... +@deprecated("This widget will be removed in GTK 5") class VolumeButton( ScaleButton, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable ): @@ -32085,6 +32908,7 @@ class VolumeButton( accessible_role: AccessibleRole = ..., orientation: Orientation = ..., ): ... + @deprecated("This widget will be removed in GTK 5") @classmethod def new(cls) -> VolumeButton: ... @@ -32296,9 +33120,15 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): ) -> bool: ... def error_bell(self) -> None: ... def get_activate_signal(self) -> int: ... + @deprecated("Use [method@Gtk.Widget.get_baseline] instead") def get_allocated_baseline(self) -> int: ... + @deprecated("Use [method@Gtk.Widget.get_height] instead") def get_allocated_height(self) -> int: ... + @deprecated("Use [method@Gtk.Widget.get_width] instead") def get_allocated_width(self) -> int: ... + @deprecated( + "Use [method@Gtk.Widget.compute_bounds], [method@Gtk.Widget.get_width] or [method@Gtk.Widget.get_height] instead." + ) def get_allocation(self) -> Gdk.Rectangle: ... def get_ancestor(self, widget_type: Type) -> Optional[Widget]: ... def get_baseline(self) -> int: ... @@ -32354,6 +33184,7 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def get_size(self, orientation: Orientation) -> int: ... def get_size_request(self) -> Tuple[int, int]: ... def get_state_flags(self) -> StateFlags: ... + @deprecated("Style contexts will be removed in GTK 5") def get_style_context(self) -> StyleContext: ... def get_template_child(self, widget_type: Type, name: str) -> GObject.Object: ... def get_tooltip_markup(self) -> Optional[str]: ... @@ -32368,6 +33199,7 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def has_default(self) -> bool: ... def has_focus(self) -> bool: ... def has_visible_focus(self) -> bool: ... + @deprecated("Use [method@Gtk.Widget.set_visible] instead") def hide(self) -> None: ... def in_destruction(self) -> bool: ... def init_template(self) -> None: ... @@ -32461,6 +33293,7 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def set_vexpand_set(self, set: bool) -> None: ... def set_visible(self, visible: bool) -> None: ... def should_layout(self) -> bool: ... + @deprecated("Use [method@Gtk.Widget.set_visible] instead") def show(self) -> None: ... def size_allocate(self, allocation: Gdk.Rectangle, baseline: int) -> None: ... def snapshot_child(self, child: Widget, snapshot: Snapshot) -> None: ... diff --git a/src/gi-stubs/repository/_GtkSource4.pyi b/src/gi-stubs/repository/_GtkSource4.pyi index 39c2f7c0..6bdff466 100644 --- a/src/gi-stubs/repository/_GtkSource4.pyi +++ b/src/gi-stubs/repository/_GtkSource4.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Atk from gi.repository import Gdk from gi.repository import GdkPixbuf diff --git a/src/gi-stubs/repository/_GtkSource5.pyi b/src/gi-stubs/repository/_GtkSource5.pyi index fff8d2fb..bbb6af30 100644 --- a/src/gi-stubs/repository/_GtkSource5.pyi +++ b/src/gi-stubs/repository/_GtkSource5.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gdk from gi.repository import GdkPixbuf from gi.repository import Gio diff --git a/src/gi-stubs/repository/_JavaScriptCore6.pyi b/src/gi-stubs/repository/_JavaScriptCore6.pyi index 61942a3a..b74d7707 100644 --- a/src/gi-stubs/repository/_JavaScriptCore6.pyi +++ b/src/gi-stubs/repository/_JavaScriptCore6.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import GLib from gi.repository import GObject diff --git a/src/gi-stubs/repository/_Soup2.pyi b/src/gi-stubs/repository/_Soup2.pyi index 4ac7a9c1..cb2619cb 100644 --- a/src/gi-stubs/repository/_Soup2.pyi +++ b/src/gi-stubs/repository/_Soup2.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject @@ -188,8 +193,11 @@ def tld_get_base_domain(hostname: str) -> str: ... def uri_decode(part: str) -> str: ... def uri_encode(part: str, escape_extra: Optional[str] = None) -> str: ... def uri_normalize(part: str, unescape_extra: Optional[str] = None) -> str: ... +@deprecated("Use #GVariant API instead.") def value_array_new() -> GObject.ValueArray: ... +@deprecated("Use #GVariant API instead.") def value_hash_insert_value(hash: dict[str, Any], key: str, value: Any) -> None: ... +@deprecated("Use #GVariant API instead.") def value_hash_new() -> dict[str, Any]: ... def websocket_client_prepare_handshake( msg: Message, @@ -229,9 +237,11 @@ def websocket_server_process_handshake_with_extensions( protocols: Optional[Sequence[str]] = None, supported_extensions: Optional[Sequence[GObject.TypeClass]] = None, ) -> Tuple[bool, list[WebsocketExtension]]: ... +@deprecated("Use soup_xmlrpc_build_request() instead.") def xmlrpc_build_method_call( method_name: str, params: Sequence[Any] ) -> Optional[str]: ... +@deprecated("Use soup_xmlrpc_build_response() instead.") def xmlrpc_build_method_response(value: Any) -> Optional[str]: ... def xmlrpc_build_request(method_name: str, params: GLib.Variant) -> str: ... def xmlrpc_build_response(value: GLib.Variant) -> str: ... @@ -239,9 +249,11 @@ def xmlrpc_error_quark() -> int: ... def xmlrpc_fault_quark() -> int: ... def xmlrpc_message_new(uri: str, method_name: str, params: GLib.Variant) -> Message: ... def xmlrpc_message_set_response(msg: Message, value: GLib.Variant) -> bool: ... +@deprecated("Use soup_xmlrpc_parse_request_full() instead.") def xmlrpc_parse_method_call( method_call: str, length: int ) -> Tuple[bool, str, GObject.ValueArray]: ... +@deprecated("Use soup_xmlrpc_parse_response() instead.") def xmlrpc_parse_method_response( method_response: str, length: int ) -> Tuple[bool, Any]: ... @@ -946,6 +958,9 @@ class CacheClass(GObject.GPointer): class CachePrivate(GObject.GPointer): ... class ClientContext(GObject.GBoxed): + @deprecated( + "Use soup_client_context_get_remote_address(), which returns a #GSocketAddress." + ) def get_address(self) -> Optional[Address]: ... def get_auth_domain(self) -> Optional[AuthDomain]: ... def get_auth_user(self) -> Optional[str]: ... @@ -953,6 +968,7 @@ class ClientContext(GObject.GBoxed): def get_host(self) -> Optional[str]: ... def get_local_address(self) -> Optional[Gio.SocketAddress]: ... def get_remote_address(self) -> Optional[Gio.SocketAddress]: ... + @deprecated("use soup_client_context_get_gsocket(), which returns a #GSocket.") def get_socket(self) -> Socket: ... def steal_connection(self) -> Gio.IOStream: ... @@ -1145,6 +1161,7 @@ class CookieJar(GObject.Object, SessionFeature): def is_persistent(self) -> bool: ... @classmethod def new(cls) -> CookieJar: ... + @deprecated("This is a no-op.") def save(self) -> None: ... def set_accept_policy(self, policy: CookieJarAcceptPolicy) -> None: ... def set_cookie(self, uri: URI, cookie: str) -> None: ... @@ -1328,6 +1345,7 @@ class Date(GObject.GBoxed): def new_from_time_t(cls, when: int) -> Date: ... def to_string(self, format: DateFormat) -> str: ... def to_time_t(self) -> int: ... + @deprecated("Do not use #GTimeVal, as it's not Y2038-safe.") def to_timeval(self) -> GLib.TimeVal: ... class HSTSEnforcer(GObject.Object, SessionFeature): @@ -1497,7 +1515,9 @@ class Logger(GObject.Object, SessionFeature): props: Props = ... parent: GObject.Object = ... def __init__(self, level: LoggerLogLevel = ..., max_body_size: int = ...): ... + @deprecated("Use soup_session_add_feature() instead.") def attach(self, session: Session) -> None: ... + @deprecated("Use soup_session_remove_feature() instead.") def detach(self, session: Session) -> None: ... @classmethod def new(cls, level: LoggerLogLevel, max_body_size: int) -> Logger: ... @@ -1678,6 +1698,9 @@ class Message(GObject.Object): @classmethod def new_from_uri(cls, method: str, uri: URI) -> Message: ... def restarted(self) -> None: ... + @deprecated( + "#SoupRequest provides a much simpler API that lets you read the response directly into your own buffers without needing to mess with callbacks, pausing/unpausing, etc." + ) def set_chunk_allocator( self, allocator: Callable[..., Optional[Buffer]], *user_data: Any ) -> None: ... @@ -1776,6 +1799,9 @@ class MessageHeaders(GObject.GBoxed): def foreach(self, func: Callable[..., None], *user_data: Any) -> None: ... def free(self) -> None: ... def free_ranges(self, ranges: Range) -> None: ... + @deprecated( + "Use soup_message_headers_get_one() or soup_message_headers_get_list() instead." + ) def get(self, name: str) -> Optional[str]: ... def get_content_disposition(self) -> Tuple[bool, str, dict[str, str]]: ... def get_content_length(self) -> int: ... @@ -1966,6 +1992,7 @@ class ProxyResolver(GObject.GInterface): notify (GParam) """ + @deprecated("Use SoupProxyURIResolver.get_proxy_uri_async instead") def get_proxy_async( self, msg: Message, @@ -1974,6 +2001,7 @@ class ProxyResolver(GObject.GInterface): callback: Callable[..., None], *user_data: Any, ) -> None: ... + @deprecated("Use SoupProxyURIResolver.get_proxy_uri_sync() instead") def get_proxy_sync( self, msg: Message, cancellable: Optional[Gio.Cancellable] = None ) -> Tuple[int, Address]: ... @@ -2036,6 +2064,7 @@ class ProxyURIResolver(GObject.GInterface): notify (GParam) """ + @deprecated("#SoupProxyURIResolver is deprecated in favor of #GProxyResolver") def get_proxy_uri_async( self, uri: URI, @@ -2044,6 +2073,7 @@ class ProxyURIResolver(GObject.GInterface): callback: Callable[..., None], *user_data: Any, ) -> None: ... + @deprecated("#SoupProxyURIResolver is deprecated in favor of #GProxyResolver") def get_proxy_uri_sync( self, uri: URI, cancellable: Optional[Gio.Cancellable] = None ) -> Tuple[int, URI]: ... @@ -2412,9 +2442,18 @@ class Server(GObject.Object): def do_request_finished(self, msg: Message, client: ClientContext) -> None: ... def do_request_read(self, msg: Message, client: ClientContext) -> None: ... def do_request_started(self, msg: Message, client: ClientContext) -> None: ... + @deprecated( + "If you are using soup_server_listen(), etc, then the server listens on the thread-default #GMainContext, and this property is ignored." + ) def get_async_context(self) -> Optional[GLib.MainContext]: ... + @deprecated( + "If you are using soup_server_listen(), etc, then use soup_server_get_listeners() to get a list of all listening sockets, but note that that function returns #GSockets, not #SoupSockets." + ) def get_listener(self) -> Socket: ... def get_listeners(self) -> list[Gio.Socket]: ... + @deprecated( + "If you are using soup_server_listen(), etc, then use soup_server_get_uris() to get a list of all listening addresses." + ) def get_port(self) -> int: ... def get_uris(self) -> list[URI]: ... def is_https(self) -> bool: ... @@ -2428,11 +2467,20 @@ class Server(GObject.Object): self, socket: Gio.Socket, options: ServerListenOptions ) -> bool: ... def pause_message(self, msg: Message) -> None: ... + @deprecated( + "When using soup_server_listen(), etc, the server will always listen for connections, and will process them whenever the thread-default #GMainContext is running." + ) def quit(self) -> None: ... def remove_auth_domain(self, auth_domain: AuthDomain) -> None: ... def remove_handler(self, path: str) -> None: ... def remove_websocket_extension(self, extension_type: Type) -> None: ... + @deprecated( + "When using soup_server_listen(), etc, the server will always listen for connections, and will process them whenever the thread-default #GMainContext is running." + ) def run(self) -> None: ... + @deprecated( + "When using soup_server_listen(), etc, the server will always listen for connections, and will process them whenever the thread-default #GMainContext is running." + ) def run_async(self) -> None: ... def set_ssl_cert_file(self, ssl_cert_file: str, ssl_key_file: str) -> bool: ... def unpause_message(self, msg: Message) -> None: ... @@ -2617,6 +2665,7 @@ class Session(GObject.Object): callback: Optional[Callable[..., None]] = None, *user_data: Any, ) -> None: ... + @deprecated("use soup_session_prefetch_dns() instead") def prepare_for_uri(self, uri: URI) -> None: ... def queue_message( self, @@ -2777,6 +2826,9 @@ class SessionAsync(Session): use_thread_context: bool = ..., user_agent: str = ..., ): ... + @deprecated( + '#SoupSessionAsync is deprecated; use a plain #SoupSession, created with soup_session_new(). See the porting guide.' + ) @classmethod def new(cls) -> SessionAsync: ... @@ -2966,6 +3018,9 @@ class SessionSync(Session): use_thread_context: bool = ..., user_agent: str = ..., ): ... + @deprecated( + '#SoupSessionSync is deprecated; use a plain #SoupSession, created with soup_session_new(). See the porting guide.' + ) @classmethod def new(cls) -> SessionSync: ... diff --git a/src/gi-stubs/repository/_Soup3.pyi b/src/gi-stubs/repository/_Soup3.pyi index ac80162e..74409337 100644 --- a/src/gi-stubs/repository/_Soup3.pyi +++ b/src/gi-stubs/repository/_Soup3.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject @@ -1579,6 +1584,7 @@ class Server(GObject.Object): def listen_socket( self, socket: Gio.Socket, options: ServerListenOptions ) -> bool: ... + @deprecated("Use soup_server_message_pause() instead.") def pause_message(self, msg: ServerMessage) -> None: ... def remove_auth_domain(self, auth_domain: AuthDomain) -> None: ... def remove_handler(self, path: str) -> None: ... @@ -1586,6 +1592,7 @@ class Server(GObject.Object): def set_tls_auth_mode(self, mode: Gio.TlsAuthenticationMode) -> None: ... def set_tls_certificate(self, certificate: Gio.TlsCertificate) -> None: ... def set_tls_database(self, tls_database: Gio.TlsDatabase) -> None: ... + @deprecated("Use soup_server_message_unpause() instead.") def unpause_message(self, msg: ServerMessage) -> None: ... class ServerClass(GObject.GPointer): diff --git a/src/gi-stubs/repository/_WebKit6.pyi b/src/gi-stubs/repository/_WebKit6.pyi index 7321de90..f0172918 100644 --- a/src/gi-stubs/repository/_WebKit6.pyi +++ b/src/gi-stubs/repository/_WebKit6.pyi @@ -7,6 +7,11 @@ from typing import Tuple from typing import Type from typing import TypeVar +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from gi.repository import Gdk from gi.repository import Gio from gi.repository import GLib @@ -1899,6 +1904,7 @@ class Settings(GObject.Object): def get_hardware_acceleration_policy(self) -> HardwareAccelerationPolicy: ... def get_javascript_can_access_clipboard(self) -> bool: ... def get_javascript_can_open_windows_automatically(self) -> bool: ... + @deprecated("This method is deprecated") def get_load_icons_ignoring_image_load_setting(self) -> bool: ... def get_media_content_types_requiring_hardware_support(self) -> str: ... def get_media_playback_allows_inline(self) -> bool: ... @@ -1959,6 +1965,7 @@ class Settings(GObject.Object): ) -> None: ... def set_javascript_can_access_clipboard(self, enabled: bool) -> None: ... def set_javascript_can_open_windows_automatically(self, enabled: bool) -> None: ... + @deprecated("This method is deprecated") def set_load_icons_ignoring_image_load_setting(self, enabled: bool) -> None: ... def set_media_content_types_requiring_hardware_support( self, content_types: Optional[str] = None