Make GTKHandleUnrealize() virtual too

No real changes yet, but this member function should also be virtual if
only for consistency with GTKHandleRealized(): if the latter can be
overridden, it should be also to override the former.
This commit is contained in:
Vadim Zeitlin
2026-04-05 17:00:30 +02:00
parent 14ca383902
commit 7bb87de27c
+4 -3
View File
@@ -203,10 +203,11 @@ public:
void GTKHandleFocusOutNoDeferring();
void GTKHandleDeferredFocusOut();
// Called when m_widget becomes realized. Derived classes must call the
// base class method if they override it.
// Called when m_widget becomes realized or unrealized (may be called
// multiple times). Derived classes must call the base class version if
// they override these functions.
virtual void GTKHandleRealized();
void GTKHandleUnrealize();
virtual void GTKHandleUnrealize();
// Apply the widget style to the given window. Should normally only be
// called from the overridden DoApplyWidgetStyle() implementation in