Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aa85743

Browse files
committedFeb 25, 2024·
Update stubs after deprecation
1 parent a116bcd commit aa85743

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2964
-3
lines changed
 

‎src/gi-stubs/repository/Adw.pyi

+356
Large diffs are not rendered by default.

‎src/gi-stubs/repository/AppIndicator3.pyi

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ from typing import Tuple
77
from typing import Type
88
from typing import TypeVar
99

10+
try:
11+
from warnings import deprecated
12+
except ImportError:
13+
from typing_extensions import deprecated
14+
1015
from gi.repository import Gdk
1116
from gi.repository import GObject
1217
from gi.repository import Gtk
@@ -142,8 +147,10 @@ class Indicator(GObject.Object):
142147
def new_with_path(
143148
cls, id: str, icon_name: str, category: IndicatorCategory, icon_theme_path: str
144149
) -> Indicator: ...
150+
@deprecated("Use app_indicator_set_attention_icon_full() instead.")
145151
def set_attention_icon(self, icon_name: str) -> None: ...
146152
def set_attention_icon_full(self, icon_name: str, icon_desc: str) -> None: ...
153+
@deprecated("Use app_indicator_set_icon_full()")
147154
def set_icon(self, icon_name: str) -> None: ...
148155
def set_icon_full(self, icon_name: str, icon_desc: str) -> None: ...
149156
def set_icon_theme_path(self, icon_theme_path: str) -> None: ...

0 commit comments

Comments
 (0)
Please sign in to comment.