diff --git a/src/gi-stubs/repository/Adw.pyi b/src/gi-stubs/repository/Adw.pyi index d2227062..2844996f 100644 --- a/src/gi-stubs/repository/Adw.pyi +++ b/src/gi-stubs/repository/Adw.pyi @@ -13,12 +13,16 @@ from gi.repository import GLib from gi.repository import GObject from gi.repository import Gtk from gi.repository import Pango +from typing_extensions import Concatenate +from typing_extensions import ParamSpec + +_VarArgs = ParamSpec("_VarArgs") DURATION_INFINITE: int = 4294967295 MAJOR_VERSION: int = 1 -MICRO_VERSION: int = 2 +MICRO_VERSION: int = 4 MINOR_VERSION: int = 3 -VERSION_S: str = "1.3.2" +VERSION_S: str = "1.3.4" _lock = ... # FIXME Constant _namespace: str = "Adw" _version: str = "1" @@ -165,7 +169,6 @@ class AboutWindow( Signals from GObject: notify (GParam) - """ class Props: @@ -391,7 +394,6 @@ class AboutWindowClass(GObject.GPointer): :: AboutWindowClass() - """ parent_class: WindowClass = ... @@ -487,7 +489,6 @@ class ActionRow( Signals from GObject: notify (GParam) - """ class Props: @@ -617,12 +618,11 @@ class ActionRowClass(GObject.GPointer): :: ActionRowClass() - """ parent_class: PreferencesRowClass = ... activate: Callable[[ActionRow], None] = ... - padding: list[None] = ... + padding: list[Any] = ... class Animation(GObject.Object): """ @@ -646,7 +646,6 @@ class Animation(GObject.Object): Signals from GObject: notify (GParam) - """ class Props: @@ -752,7 +751,6 @@ class Application(Gtk.Application, Gio.ActionGroup, Gio.ActionMap): Signals from GObject: notify (GParam) - """ class Props: @@ -794,11 +792,10 @@ class ApplicationClass(GObject.GPointer): :: ApplicationClass() - """ parent_class: Gtk.ApplicationClass = ... - padding: list[None] = ... + padding: list[Any] = ... class ApplicationWindow( Gtk.ApplicationWindow, @@ -925,7 +922,6 @@ class ApplicationWindow( Signals from GObject: notify (GParam) - """ class Props: @@ -1062,11 +1058,10 @@ class ApplicationWindowClass(GObject.GPointer): :: ApplicationWindowClass() - """ parent_class: Gtk.ApplicationWindowClass = ... - padding: list[None] = ... + padding: list[Any] = ... class Avatar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): """ @@ -1139,7 +1134,6 @@ class Avatar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): Signals from GObject: notify (GParam) - """ class Props: @@ -1245,7 +1239,6 @@ class AvatarClass(GObject.GPointer): :: AvatarClass() - """ parent_class: Gtk.WidgetClass = ... @@ -1325,7 +1318,6 @@ class Banner( Signals from GObject: notify (GParam) - """ class Props: @@ -1428,7 +1420,6 @@ class BannerClass(GObject.GPointer): :: BannerClass() - """ parent_class: Gtk.WidgetClass = ... @@ -1500,7 +1491,6 @@ class Bin(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): Signals from GObject: notify (GParam) - """ class Props: @@ -1588,7 +1578,6 @@ class BinClass(GObject.GPointer): :: BinClass() - """ parent_class: Gtk.WidgetClass = ... @@ -1662,7 +1651,6 @@ class ButtonContent(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTar Signals from GObject: notify (GParam) - """ class Props: @@ -1757,7 +1745,6 @@ class ButtonContentClass(GObject.GPointer): :: ButtonContentClass() - """ parent_class: Gtk.WidgetClass = ... @@ -1775,12 +1762,11 @@ class CallbackAnimationTarget(AnimationTarget): Signals from GObject: notify (GParam) - """ @classmethod def new( - cls, callback: Callable[..., None], *user_data: Any + cls, callback: Callable[Concatenate[float, _VarArgs], None], *user_data: Any ) -> CallbackAnimationTarget: ... class CallbackAnimationTargetClass(GObject.GPointer): ... @@ -1870,7 +1856,6 @@ class Carousel( Signals from GObject: notify (GParam) - """ class Props: @@ -1994,7 +1979,6 @@ class CarouselClass(GObject.GPointer): :: CarouselClass() - """ parent_class: Gtk.WidgetClass = ... @@ -2068,7 +2052,6 @@ class CarouselIndicatorDots( Signals from GObject: notify (GParam) - """ class Props: @@ -2157,7 +2140,6 @@ class CarouselIndicatorDotsClass(GObject.GPointer): :: CarouselIndicatorDotsClass() - """ parent_class: Gtk.WidgetClass = ... @@ -2231,7 +2213,6 @@ class CarouselIndicatorLines( Signals from GObject: notify (GParam) - """ class Props: @@ -2320,7 +2301,6 @@ class CarouselIndicatorLinesClass(GObject.GPointer): :: CarouselIndicatorLinesClass() - """ parent_class: Gtk.WidgetClass = ... @@ -2396,7 +2376,6 @@ class Clamp( Signals from GObject: notify (GParam) - """ class Props: @@ -2493,7 +2472,6 @@ class ClampClass(GObject.GPointer): :: ClampClass() - """ parent_class: Gtk.WidgetClass = ... @@ -2515,7 +2493,6 @@ class ClampLayout(Gtk.LayoutManager, Gtk.Orientable): Signals from GObject: notify (GParam) - """ class Props: @@ -2543,7 +2520,6 @@ class ClampLayoutClass(GObject.GPointer): :: ClampLayoutClass() - """ parent_class: Gtk.LayoutManagerClass = ... @@ -2624,7 +2600,6 @@ class ClampScrollable( Signals from GObject: notify (GParam) - """ class Props: @@ -2729,7 +2704,6 @@ class ClampScrollableClass(GObject.GPointer): :: ClampScrollableClass() - """ parent_class: Gtk.WidgetClass = ... @@ -2835,7 +2809,6 @@ class ComboRow( Signals from GObject: notify (GParam) - """ class Props: @@ -2977,11 +2950,10 @@ class ComboRowClass(GObject.GPointer): :: ComboRowClass() - """ parent_class: ActionRowClass = ... - padding: list[None] = ... + padding: list[Any] = ... class EntryRow( PreferencesRow, @@ -3085,7 +3057,6 @@ class EntryRow( Signals from GObject: notify (GParam) - """ class Props: @@ -3229,7 +3200,6 @@ class EntryRowClass(GObject.GPointer): :: EntryRowClass() - """ parent_class: PreferencesRowClass = ... @@ -3251,7 +3221,6 @@ class EnumListItem(GObject.Object): Signals from GObject: notify (GParam) - """ class Props: @@ -3270,7 +3239,6 @@ class EnumListItemClass(GObject.GPointer): :: EnumListItemClass() - """ parent_class: GObject.ObjectClass = ... @@ -3294,7 +3262,6 @@ class EnumListModel(GObject.Object, Gio.ListModel): Signals from GObject: notify (GParam) - """ class Props: @@ -3313,7 +3280,6 @@ class EnumListModelClass(GObject.GPointer): :: EnumListModelClass() - """ parent_class: GObject.ObjectClass = ... @@ -3407,7 +3373,6 @@ class ExpanderRow( Signals from GObject: notify (GParam) - """ class Props: @@ -3541,11 +3506,10 @@ class ExpanderRowClass(GObject.GPointer): :: ExpanderRowClass() - """ parent_class: PreferencesRowClass = ... - padding: list[None] = ... + padding: list[Any] = ... class Flap( Gtk.Widget, @@ -3636,7 +3600,6 @@ class Flap( Signals from GObject: notify (GParam) - """ class Props: @@ -3781,7 +3744,6 @@ class FlapClass(GObject.GPointer): :: FlapClass() - """ parent_class: Gtk.WidgetClass = ... @@ -3857,7 +3819,6 @@ class HeaderBar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget) Signals from GObject: notify (GParam) - """ class Props: @@ -3963,7 +3924,6 @@ class HeaderBarClass(GObject.GPointer): :: HeaderBarClass() - """ parent_class: Gtk.WidgetClass = ... @@ -4054,7 +4014,6 @@ class Leaflet( Signals from GObject: notify (GParam) - """ class Props: @@ -4200,7 +4159,6 @@ class LeafletClass(GObject.GPointer): :: LeafletClass() - """ parent_class: Gtk.WidgetClass = ... @@ -4222,7 +4180,6 @@ class LeafletPage(GObject.Object): Signals from GObject: notify (GParam) - """ class Props: @@ -4249,7 +4206,6 @@ class LeafletPageClass(GObject.GPointer): :: LeafletPageClass() - """ parent_class: GObject.ObjectClass = ... @@ -4371,7 +4327,6 @@ class MessageDialog( Signals from GObject: notify (GParam) - """ class Props: @@ -4510,7 +4465,11 @@ class MessageDialog( def choose( self, cancellable: Optional[Gio.Cancellable] = None, - callback: Optional[Callable[..., None]] = None, + callback: Optional[ + Callable[ + Concatenate[Optional[GObject.Object], Gio.AsyncResult, _VarArgs], None + ] + ] = None, *user_data: Any, ) -> None: ... def choose_finish(self, result: Gio.AsyncResult) -> str: ... @@ -4554,12 +4513,11 @@ class MessageDialogClass(GObject.GPointer): :: MessageDialogClass() - """ parent_class: Gtk.WindowClass = ... response: Callable[[MessageDialog, str], None] = ... - padding: list[None] = ... + padding: list[Any] = ... class PasswordEntryRow( EntryRow, @@ -4668,7 +4626,6 @@ class PasswordEntryRow( Signals from GObject: notify (GParam) - """ class Props: @@ -4795,7 +4752,6 @@ class PasswordEntryRowClass(GObject.GPointer): :: PasswordEntryRowClass() - """ parent_class: EntryRowClass = ... @@ -4869,7 +4825,6 @@ class PreferencesGroup(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.Constraint Signals from GObject: notify (GParam) - """ class Props: @@ -4967,11 +4922,10 @@ class PreferencesGroupClass(GObject.GPointer): :: PreferencesGroupClass() - """ parent_class: Gtk.WidgetClass = ... - padding: list[None] = ... + padding: list[Any] = ... class PreferencesPage(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): """ @@ -5043,7 +4997,6 @@ class PreferencesPage(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintT Signals from GObject: notify (GParam) - """ class Props: @@ -5144,11 +5097,10 @@ class PreferencesPageClass(GObject.GPointer): :: PreferencesPageClass() - """ parent_class: Gtk.WidgetClass = ... - padding: list[None] = ... + padding: list[Any] = ... class PreferencesRow( Gtk.ListBoxRow, Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget @@ -5230,7 +5182,6 @@ class PreferencesRow( Signals from GObject: notify (GParam) - """ class Props: @@ -5340,11 +5291,10 @@ class PreferencesRowClass(GObject.GPointer): :: PreferencesRowClass() - """ parent_class: Gtk.ListBoxRowClass = ... - padding: list[None] = ... + padding: list[Any] = ... class PreferencesWindow( Window, @@ -5460,7 +5410,6 @@ class PreferencesWindow( Signals from GObject: notify (GParam) - """ class Props: @@ -5614,11 +5563,10 @@ class PreferencesWindowClass(GObject.GPointer): :: PreferencesWindowClass() - """ parent_class: WindowClass = ... - padding: list[None] = ... + padding: list[Any] = ... class PropertyAnimationTarget(AnimationTarget): """ @@ -5638,7 +5586,6 @@ class PropertyAnimationTarget(AnimationTarget): Signals from GObject: notify (GParam) - """ class Props: @@ -5741,7 +5688,6 @@ class SplitButton( Signals from GObject: notify (GParam) - """ class Props: @@ -5862,7 +5808,6 @@ class SplitButtonClass(GObject.GPointer): :: SplitButtonClass() - """ parent_class: Gtk.WidgetClass = ... @@ -5900,7 +5845,6 @@ class SpringAnimation(Animation): Signals from GObject: notify (GParam) - """ class Props: @@ -5966,7 +5910,6 @@ class SpringParams(GObject.GBoxed): new(damping_ratio:float, mass:float, stiffness:float) -> Adw.SpringParams new_full(damping:float, mass:float, stiffness:float) -> Adw.SpringParams - """ def get_damping(self) -> float: ... @@ -6063,7 +6006,6 @@ class Squeezer( Signals from GObject: notify (GParam) - """ class Props: @@ -6189,7 +6131,6 @@ class SqueezerClass(GObject.GPointer): :: SqueezerClass() - """ parent_class: Gtk.WidgetClass = ... @@ -6210,7 +6151,6 @@ class SqueezerPage(GObject.Object): Signals from GObject: notify (GParam) - """ class Props: @@ -6229,7 +6169,6 @@ class SqueezerPageClass(GObject.GPointer): :: SqueezerPageClass() - """ parent_class: GObject.ObjectClass = ... @@ -6305,7 +6244,6 @@ class StatusPage(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget Signals from GObject: notify (GParam) - """ class Props: @@ -6408,7 +6346,6 @@ class StatusPageClass(GObject.GPointer): :: StatusPageClass() - """ parent_class: Gtk.WidgetClass = ... @@ -6432,13 +6369,12 @@ class StyleManager(GObject.Object): Signals from GObject: notify (GParam) - """ class Props: color_scheme: ColorScheme dark: bool - display: Gdk.Display + display: Optional[Gdk.Display] high_contrast: bool system_supports_color_schemes: bool props: Props = ... @@ -6447,7 +6383,7 @@ class StyleManager(GObject.Object): def get_dark(self) -> bool: ... @staticmethod def get_default() -> StyleManager: ... - def get_display(self) -> Gdk.Display: ... + def get_display(self) -> Optional[Gdk.Display]: ... @staticmethod def get_for_display(display: Gdk.Display) -> StyleManager: ... def get_high_contrast(self) -> bool: ... @@ -6461,7 +6397,6 @@ class StyleManagerClass(GObject.GPointer): :: StyleManagerClass() - """ parent_class: GObject.ObjectClass = ... @@ -6492,7 +6427,6 @@ class SwipeTracker(GObject.Object, Gtk.Orientable): Signals from GObject: notify (GParam) - """ class Props: @@ -6532,7 +6466,6 @@ class SwipeTrackerClass(GObject.GPointer): :: SwipeTrackerClass() - """ parent_class: GObject.ObjectClass = ... @@ -6543,7 +6476,6 @@ class Swipeable(GObject.GInterface): Signals from GObject: notify (GParam) - """ def get_cancel_progress(self) -> float: ... @@ -6561,7 +6493,6 @@ class SwipeableInterface(GObject.GPointer): :: SwipeableInterface() - """ parent: GObject.TypeInterface = ... @@ -6572,7 +6503,7 @@ class SwipeableInterface(GObject.GPointer): get_swipe_area: Callable[ [Swipeable, NavigationDirection, bool], Gdk.Rectangle ] = ... - padding: list[None] = ... + padding: list[Any] = ... class TabBar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): """ @@ -6653,7 +6584,6 @@ class TabBar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): Signals from GObject: notify (GParam) - """ class Props: @@ -6771,7 +6701,6 @@ class TabBarClass(GObject.GPointer): :: TabBarClass() - """ parent_class: Gtk.WidgetClass = ... @@ -6849,7 +6778,6 @@ class TabButton( Signals from GObject: notify (GParam) - """ class Props: @@ -6940,7 +6868,6 @@ class TabButtonClass(GObject.GPointer): :: TabButtonClass() - """ parent_class: Gtk.WidgetClass = ... @@ -7027,7 +6954,6 @@ class TabOverview(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge Signals from GObject: notify (GParam) - """ class Props: @@ -7157,7 +7083,6 @@ class TabOverviewClass(GObject.GPointer): :: TabOverviewClass() - """ parent_class: Gtk.WidgetClass = ... @@ -7192,7 +7117,6 @@ class TabPage(GObject.Object, Gtk.Accessible): Signals from GObject: notify (GParam) - """ class Props: @@ -7269,7 +7193,6 @@ class TabPageClass(GObject.GPointer): :: TabPageClass() - """ parent_class: GObject.ObjectClass = ... @@ -7357,7 +7280,6 @@ class TabView(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): Signals from GObject: notify (GParam) - """ class Props: @@ -7495,7 +7417,6 @@ class TabViewClass(GObject.GPointer): :: TabViewClass() - """ parent_class: Gtk.WidgetClass = ... @@ -7532,7 +7453,6 @@ class TimedAnimation(Animation): Signals from GObject: notify (GParam) - """ class Props: @@ -7614,7 +7534,6 @@ class Toast(GObject.Object): Signals from GObject: notify (GParam) - """ class Props: @@ -7666,7 +7585,6 @@ class ToastClass(GObject.GPointer): :: ToastClass() - """ parent_class: GObject.ObjectClass = ... @@ -7738,7 +7656,6 @@ class ToastOverlay(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg Signals from GObject: notify (GParam) - """ class Props: @@ -7826,7 +7743,6 @@ class ToastOverlayClass(GObject.GPointer): :: ToastOverlayClass() - """ parent_class: Gtk.WidgetClass = ... @@ -7902,7 +7818,6 @@ class ViewStack(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget) Signals from GObject: notify (GParam) - """ class Props: @@ -8016,7 +7931,6 @@ class ViewStackClass(GObject.GPointer): :: ViewStackClass() - """ parent_class: Gtk.WidgetClass = ... @@ -8043,7 +7957,6 @@ class ViewStackPage(GObject.Object, Gtk.Accessible): Signals from GObject: notify (GParam) - """ class Props: @@ -8092,7 +8005,6 @@ class ViewStackPageClass(GObject.GPointer): :: ViewStackPageClass() - """ parent_class: GObject.ObjectClass = ... @@ -8165,7 +8077,6 @@ class ViewSwitcher(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarg Signals from GObject: notify (GParam) - """ class Props: @@ -8317,7 +8228,6 @@ class ViewSwitcherBar(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintT Signals from GObject: notify (GParam) - """ class Props: @@ -8408,7 +8318,6 @@ class ViewSwitcherBarClass(GObject.GPointer): :: ViewSwitcherBarClass() - """ parent_class: Gtk.WidgetClass = ... @@ -8420,7 +8329,6 @@ class ViewSwitcherClass(GObject.GPointer): :: ViewSwitcherClass() - """ parent_class: Gtk.WidgetClass = ... @@ -8498,7 +8406,6 @@ class ViewSwitcherTitle( Signals from GObject: notify (GParam) - """ class Props: @@ -8599,7 +8506,6 @@ class ViewSwitcherTitleClass(GObject.GPointer): :: ViewSwitcherTitleClass() - """ parent_class: Gtk.WidgetClass = ... @@ -8712,7 +8618,6 @@ class Window( Signals from GObject: notify (GParam) - """ class Props: @@ -8847,11 +8752,10 @@ class WindowClass(GObject.GPointer): :: WindowClass() - """ parent_class: Gtk.WindowClass = ... - padding: list[None] = ... + padding: list[Any] = ... class WindowTitle(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget): """ @@ -8921,7 +8825,6 @@ class WindowTitle(Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge Signals from GObject: notify (GParam) - """ class Props: @@ -9012,7 +8915,6 @@ class WindowTitleClass(GObject.GPointer): :: WindowTitleClass() - """ parent_class: Gtk.WidgetClass = ...