refactor: make PortalRemoteDesktop:handleSessionOwnerChanged a const

This commit is contained in:
sithlord48 2026-06-18 19:48:14 -04:00 committed by Chris Rizzitello
parent 710aae5f3f
commit a42b6cf897
2 changed files with 2 additions and 2 deletions

View file

@ -245,7 +245,7 @@ void PortalRemoteDesktop::handleSelectionTransfer(XdpSession *session, const cha
#endif #endif
} }
void PortalRemoteDesktop::handleSelectionOwnerChanged(XdpSession *session, char **mimeTypes, gboolean isOwner) void PortalRemoteDesktop::handleSelectionOwnerChanged(XdpSession *session, char **mimeTypes, gboolean isOwner) const
{ {
#ifdef HAVE_LIBPORTAL_CLIPBOARD #ifdef HAVE_LIBPORTAL_CLIPBOARD
if (isOwner) { if (isOwner) {

View file

@ -33,7 +33,7 @@ private:
void handleSessionStarted(GObject *object, GAsyncResult *res); void handleSessionStarted(GObject *object, GAsyncResult *res);
void handleSessionClosed(XdpSession *session); void handleSessionClosed(XdpSession *session);
void handleSelectionTransfer(XdpSession *session, const char *mimeType, uint32_t serial); void handleSelectionTransfer(XdpSession *session, const char *mimeType, uint32_t serial);
void handleSelectionOwnerChanged(XdpSession *session, char **mimeTypes, gboolean isOwner); void handleSelectionOwnerChanged(XdpSession *session, char **mimeTypes, gboolean isOwner) const;
void reconnect(unsigned int timeout = 1000); void reconnect(unsigned int timeout = 1000);
static void handleSessionClosedCallback(XdpSession *session, gpointer data) static void handleSessionClosedCallback(XdpSession *session, gpointer data)