VirtualBox

Changeset 97768 in vbox


Ignore:
Timestamp:
Dec 9, 2022 11:18:14 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154835
Message:

DnD/VBoxClient: Made the Enter desktop notification (verbose mode only) a bit better to read; most desktop notifications only allow or show only up to two lines of a single notification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r97764 r97768  
    18081808        if (g_cVerbosity)
    18091809        {
    1810             RTCString strMsg("Enter: Host -> Guest\n\n");
    1811             strMsg += RTCStringFmt("Allowed actions: %#x\n", dndListActionsAllowed);
    1812             strMsg += "Formats:\n";
     1810            RTCString strMsg("Enter: Host -> Guest\n");
     1811            strMsg += RTCStringFmt("Allowed actions: ");
    18131812            for (size_t i = 0; i < lstActions.size(); i++)
    18141813            {
    18151814                if (i > 0)
    1816                     strMsg += "\n";
    1817                 strMsg += lstActions.at(i);
     1815                    strMsg += ", ";
     1816                strMsg += DnDActionToStr(toHGCMAction(lstActions.at(i)));
     1817            }
     1818            strMsg += " - Formats: ";
     1819            for (size_t i = 0; i < lstFormats.size(); i++)
     1820            {
     1821                if (i > 0)
     1822                    strMsg += ", ";
     1823                strMsg += lstFormats.at(i);
    18181824            }
    18191825
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette