Skip to content

Commit 7b3b72d

Browse files
committed
Add event listening stubs to TrayIcon for Linux
Introduces StartEventListening and StopEventListening methods to TrayIcon on Linux. These methods are placeholders, as AppIndicator manages events automatically and no additional setup or cleanup is required.
1 parent 248a429 commit 7b3b72d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/platform/linux/tray_icon_linux.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,4 +252,14 @@ void* TrayIcon::GetNativeObjectInternal() const {
252252
return static_cast<void*>(pimpl_->app_indicator_);
253253
}
254254

255+
void TrayIcon::StartEventListening() {
256+
// Called automatically when first listener is added
257+
// AppIndicator handles events automatically, no platform-specific setup needed
258+
}
259+
260+
void TrayIcon::StopEventListening() {
261+
// Called automatically when last listener is removed
262+
// AppIndicator handles events automatically, no platform-specific cleanup needed
263+
}
264+
255265
} // namespace nativeapi

0 commit comments

Comments
 (0)