- Timestamp:
- Oct 21, 2009 7:04:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/hostversion.cpp
r23941 r23949 126 126 127 127 # ifdef VBOX_WITH_GUEST_PROPS 128 uint32_t uGuestPropSvcClientID; 128 129 if (RT_SUCCESS(rc)) 129 130 { 130 uint32_t uGuestPropSvcClientID;131 131 rc = VbglR3GuestPropConnect(&uGuestPropSvcClientID); 132 132 if (RT_FAILURE(rc)) … … 136 136 if (RT_SUCCESS(rc)) 137 137 { 138 char *pszHostVersion; 139 char *pszGuestVersion; 140 bool bUpdate; 141 142 rc = VbglR3HostVersionCheckForUpdate(uGuestPropSvcClientID, &bUpdate, &pszHostVersion, &pszGuestVersion); 138 143 if (RT_SUCCESS(rc)) 139 144 { 140 char *pszHostVersion; 141 char *pszGuestVersion; 142 bool bUpdate; 145 if (bUpdate) 146 { 147 char szMsg[256]; 148 char szTitle[64]; 143 149 144 rc = VbglR3HostVersionCheckForUpdate(uGuestPropSvcClientID, &bUpdate, &pszHostVersion, &pszGuestVersion); 145 if (RT_SUCCESS(rc)) 146 { 147 if (bUpdate) 148 { 149 char szMsg[256]; 150 char szTitle[64]; 150 /** @todo add some translation macros here */ 151 RTStrPrintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!"); 152 RTStrPrintf(szMsg, sizeof(szMsg), "Your guest is currently running the Guest Additions version %s. " 153 "We recommend updating to the latest version (%s) by choosing the " 154 "install option from the Devices menu.", pszGuestVersion, pszHostVersion); 155 rc = showNotify(szTitle, szMsg); 156 if (RT_FAILURE(rc)) 157 Log(("VBoxClient: Could not show version notifier tooltip! rc = %d\n", rc)); 158 } 151 159 152 /** @todo add some translation macros here */ 153 RTStrPrintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!"); 154 RTStrPrintf(szMsg, sizeof(szMsg), "Your guest is currently running the Guest Additions version %s. " 155 "We recommend updating to the latest version (%s) by choosing the " 156 "install option from the Devices menu.", pszGuestVersion, pszHostVersion); 157 rc = showNotify(szTitle, szMsg); 158 if (RT_FAILURE(rc)) 159 Log(("VBoxClient: Could not show version notifier tooltip! rc = %d\n", rc)); 160 } 160 /* Store host version to not notify again */ 161 rc = VbglR3HostVersionLastCheckedStore(uGuestPropSvcClientID, pszHostVersion); 161 162 162 /* Store host version to not notify again */ 163 rc = VbglR3HostVersionLastCheckedStore(uGuestPropSvcClientID, pszHostVersion); 164 165 VbglR3GuestPropReadValueFree(pszHostVersion); 166 VbglR3GuestPropReadValueFree(pszGuestVersion); 167 } 163 VbglR3GuestPropReadValueFree(pszHostVersion); 164 VbglR3GuestPropReadValueFree(pszGuestVersion); 168 165 } 169 166 VbglR3GuestPropDisconnect(uGuestPropSvcClientID);
Note:
See TracChangeset
for help on using the changeset viewer.