Changeset 45521 in vbox
- Timestamp:
- Apr 12, 2013 2:30:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp
r45516 r45521 207 207 208 208 uint64_t u64Timestamp = 0; 209 char *pszValTemp ;209 char *pszValTemp = NULL; 210 210 char *pszFlags = NULL; 211 211 /* The buffer for storing the data and its initial size. We leave a bit … … 220 220 for (unsigned i = 0; i < 10; i++) 221 221 { 222 void *pvTmpBuf = RTMemRealloc(pvBuf, cbBuf); 223 if (pvTmpBuf) 224 { 225 pvBuf = pvTmpBuf; 222 pvBuf = RTMemRealloc(pvBuf, cbBuf); 223 if (pvBuf) 224 { 226 225 rc = VbglR3GuestPropRead(uClientID, pszKey, pvBuf, cbBuf, 227 226 &pszValTemp, &u64Timestamp, &pszFlags, … … 253 252 if (pszFlags) 254 253 { 255 if ( fReadOnly254 if ( fReadOnly 256 255 && !RTStrStr(pszFlags, "RDONLYGUEST")) 257 256 { … … 274 273 } 275 274 } 275 276 #ifdef DEBUG 277 vboxGreeterLog("Read guest property \"%s\"=\"%s\" (Flags: %s, TS: %RU64): %Rrc\n", 278 pszKey, pszValTemp ? pszValTemp : "<None>", 279 pszFlags ? pszFlags : "<None>", u64Timestamp, rc); 280 #endif 281 282 if (pvBuf) 283 RTMemFree(pvBuf); 276 284 277 285 return rc; … … 471 479 #ifdef VBOX_WITH_FLTK 472 480 AssertPtr(pCtx->pLblInfo); 473 pCtx->pLblInfo-> label(pszText);481 pCtx->pLblInfo->copy_label(pszText); 474 482 #else 475 483 GtkLabel *pLblInfo = GTK_LABEL(gtk_builder_get_object(pCtx->pBuilder, "lbl_info")); … … 735 743 # ifdef VBOX_WITH_FLTK 736 744 AssertPtr(pCtx->pLblInfo); 737 pCtx->pLblInfo-> label(szVal);745 pCtx->pLblInfo->copy_label(szVal); 738 746 # else 739 747 GtkLabel *pLblInfo = GTK_LABEL(gtk_builder_get_object(pCtx->pBuilder, VBOX_GREETER_UI_LBL_INFO)); … … 778 786 # ifdef VBOX_WITH_FLTK 779 787 AssertPtr(pCtx->pLblInfo); 780 pCtx->pLblInfo-> label(szVal);788 pCtx->pLblInfo->copy_label(szVal); 781 789 # else 782 790 GtkLabel *pLblInfo = GTK_LABEL(gtk_builder_get_object(pCtx->pBuilder, VBOX_GREETER_UI_LBL_INFO)); … … 1257 1265 RTStrPrintf(szLabel, sizeof(szLabel), "Oracle VM VirtualBox Guest Additions %sr%s", 1258 1266 RTBldCfgVersion(), RTBldCfgRevisionStr()); 1259 Fl_Box *pLblInfo = new Fl_Box(FL_NO_BOX , 90, uOffsetY + 150,1260 300, 20, szLabel);1267 Fl_Box *pLblInfo = new Fl_Box(FL_NO_BOX , 50, uOffsetY + 150, 1268 400, 20, szLabel); 1261 1269 AssertPtr(pLblInfo); 1262 1270 ctx.pLblInfo = pLblInfo; … … 1375 1383 szVal, sizeof(szVal), NULL /* Timestamp. */); 1376 1384 if (RT_SUCCESS(rc2)) 1377 #ifdef VBOX_WITH_FLTK 1378 pLblInfo->label(szVal); 1385 { 1386 #ifdef VBOX_WITH_FLTK 1387 Assert(pLblInfo); 1388 pLblInfo->copy_label(szVal); 1379 1389 #else 1380 1390 gtk_label_set_text(pLblInfo, szVal); 1381 1391 #endif 1392 } 1393 1382 1394 /* Get initial timestamp so that we can compare the time 1383 1395 * whether the value has been changed or not in our event callback. */ … … 1425 1437 FALSE /* No blocking */); 1426 1438 Fl::check(); 1427 } 1428 1439 /** @todo Abort condition? */ 1440 } 1441 1442 /** @todo Never reached so far. */ 1429 1443 g_main_context_unref(pMainCtx); 1430 1444
Note:
See TracChangeset
for help on using the changeset viewer.