Commit Graph

42190 Commits

Author SHA1 Message Date
Alex Wilson
cbdd108a09 In NotificationWindow, delete AppGroupViews when closed.
This is preferable to having them kick around for as long as the server
is running. They don't yet close when all of the notifications for the
view time out, that's coming next.
2012-04-01 11:54:13 +12:00
Oliver Tappe
94cefc8f79 Fix target folder of libgutenberg data.
* as pointed out by diver: libgutenberg has been configured to
  expect its data files in /system/data, but we used to install them
  into common.
This way, the Gutenberg printer add-on actually shows some printers.
2012-04-01 18:47:16 +02:00
Oliver Tappe
ee374beebf Reset ICU converter pointer after closing it.
* The pointer to the ICU converter that's kept in TLS needs to be
  reset (to NULL) immediately after closing it, as opening a new
  container may fail, leaving a dangling pointer to a now closed
  container in the TLS value.

Fixes #8361 & the userland cause of #8430.
2012-04-01 17:38:44 +02:00
Oliver Tappe
a91e17db42 Cleanup: drop unused implementation file. 2012-04-01 17:22:59 +02:00
Axel Dörfler
5868dfb989 Reverted r43922, and instead improved bfs_block_runs command.
* Calling FindBlockRun() would only work for the direct range anyway, as it
  would need to call into the block cache for anything else.
* bfs_block_runs now accepts a few more arguments that make finding an offset
  much easier.
2012-04-01 00:43:49 +02:00
Axel Dörfler
b5310b1638 Fixed another bug I introduced with r43837.
* Really the same thing, just for fragment nodes this time.
2012-04-01 00:43:48 +02:00
Rene Gollent
cf0769649e Fix crashing corner case in screen prefs.
If the refresh limits only allowed a single refresh, the menu item constructed
had no BMessage. This caused _UpdateRefreshControls() to crash when attempting
to match the current refresh rate to the item. For simplicity, give it a message
containing the fixed refresh rate just as in all other cases. Should finally
fix #8431.
2012-03-31 17:31:21 -04:00
Axel Dörfler
dcfb930a98 Improved bfs_inode KDL command. 2012-03-31 23:13:05 +02:00
Axel Dörfler
e109dcf97b Don't bail out just because a node couldn't be read.
* Added a new CachedNode::SetTo() variant that actually returns an error code.
* Only bail out if there was an actual I/O error, not already if the offset
  was invalid.
* This should help fixing some corruption corner cases.
2012-03-31 21:57:55 +02:00
Axel Dörfler
bae8d9ab83 Reset the counter after each pass. 2012-03-31 21:57:14 +02:00
Axel Dörfler
7a085ce095 Fixed debug build of the kernel emulation. 2012-03-31 21:27:55 +02:00
Rene Gollent
484afd3a08 Updated Web+ package.
Fixes an oversight in yesterday's bug fix.
2012-03-31 14:21:04 -04:00
Axel Dörfler
cb8941c48f We must not check the node here.
* The node might not be a normal tree node, so we must not check it before
  writing.
* Also, it's always a good idea to check if the function you called didn't
  succeed.
* This fixes a crashing bug when running checkfs in some rare circumstances.
2012-03-31 17:00:02 +02:00
Axel Dörfler
e0927e2c44 Improved debug output. 2012-03-31 16:46:07 +02:00
François Revol
28b813df23 Move callbackFunction type declaration into the class to avoid a name clash with future code. 2012-03-31 16:12:17 +02:00
François Revol
6371cd4dea Fix uninitialized warning. 2012-03-31 16:12:17 +02:00
Axel Dörfler
624b5ef3e6 Minor cleanup. 2012-03-31 15:49:02 +02:00
Axel Dörfler
657e62d222 Fixed the invalid duplicate left over nodes.
* Accidently introduced that bug in r43837; the arrayCount variable was not
  being updated after the value got removed.
2012-03-31 15:45:21 +02:00
Axel Dörfler
55e5a42d73 Fixed misuse of Transaction::Split().
* This would cause "transaction too large" messages, and repairing the index
  would actually be thrown away.
* We now properly finish/restart transactions instead which is actually
  working.
* Removed the misleading Split() method altogether, as it's not even used
  anywhere (not very surprising given that it doesn't do what its name
  suggests).
2012-03-31 15:14:46 +02:00
Axel Dörfler
0f94d73aaa Make PrepareIndices() fail if there isn't anything left to do. 2012-03-31 15:14:09 +02:00
Axel Dörfler
97b80db250 Fixed a possible KDL; the inode might be NULL.
* This happens in case the inode could not be opened in the first place.
2012-03-31 14:25:43 +02:00
Axel Dörfler
439495d8d4 Inode was leaking its small data lock.
* This should not have harmed normal operation (as an Inode is only destroyed
  when it is no longer being used), but the fs_shell could run out of
  semaphores easily.
2012-03-31 14:25:42 +02:00
Axel Dörfler
09ec0ad9c3 Also report errors when the free list is broken.
* This will cause the whole B+tree to be rewritten in that case, too.
* Added a TODO comment that describes an alternative solution for this.
2012-03-31 14:25:42 +02:00
JackBurton
577265d14f Avoid calling BMenu::HitTestItems() if the cursor is over a submenu. 2012-03-31 13:30:21 +02:00
Jerome Duval
0efb8b6639 Screen: fixed a warning and gcc2 build. 2012-03-31 10:43:37 +02:00
Axel Dörfler
a300055ed7 Minor cleanup. 2012-03-31 10:36:36 +02:00
Axel Dörfler
ce17af69dc Implemented repairing index b+trees.
* There are now two passes in case a corrupted index tree has been found.
* The second pass will clear the affected indices at first, and will then walk
  over all inodes again to fill them.
* As a side effect, this will also defragment the indices; ie. the same
  mechanism could be used for this some day.
2012-03-31 10:36:35 +02:00
Rene Gollent
ab2948538e Update Web+ optional package.
- Fixes a problem in Web+'s autocompletion handler that would
  result in it eating things like workspace switching shortcuts
  if Web+'s URL input had focus.
2012-03-30 22:23:58 -04:00
Rene Gollent
294a85aa68 Fix build. 2012-03-30 20:58:18 -04:00
Rene Gollent
7e44de362f Fix several issues in Screen preflet.
- Always initialize other menu item data member.
- Always use refresh_rate_to_string() to generate item labels.
- When searching for the item matching the selected refresh rate,
  look for it by the actual refresh rate stored in the item's message
  rather than by string comparisons of the label.
- Don't assume the Other menu item exists, since it doesn't in cases
  where the refresh rate constraints only allow a single rate.
- Update copyright year.

Fixes #8431.
2012-03-30 18:17:01 -04:00
Axel Dörfler
1674a53a45 Added recursive_lock_transfer_lock() to the fs_shell. 2012-03-31 00:09:47 +02:00
Axel Dörfler
225e1b1190 Minor cleanup. 2012-03-31 00:09:46 +02:00
Axel Dörfler
aed54a9a46 Use ID() instead of BlockNumber() for the debug output. 2012-03-31 00:09:46 +02:00
Axel Dörfler
b81ce43017 Made fLock a recursive lock instead of a mutex.
* This should fix bug #8069.
2012-03-31 00:09:45 +02:00
Axel Dörfler
fd8b9d4326 Added a recursive_lock_transfer() function. 2012-03-31 00:09:45 +02:00
Axel Dörfler
17f695029a No need for 'else' after return. 2012-03-31 00:09:45 +02:00
Alexander von Gluck IV
948be77f87 swrast: Cleanup, no functional change 2012-03-30 16:50:28 -05:00
Alexander von Gluck IV
d0df888925 swrast: Fix inverted rendering
* Override swrast RenderBuffer mapping function
  so we can invert Y at rendertime.
2012-03-30 16:43:21 -05:00
Alexander von Gluck IV
df82ad659d swrast: Style cleanup, no functional change 2012-03-30 15:28:28 -05:00
Alexander von Gluck IV
cd0ba1c23a swrast: Header comment cleanup
* Clean up header information and dates
* We can safely remove this Mesa blurb now
2012-03-30 15:02:27 -05:00
Alexander von Gluck IV
1044ebb29c swrast: Set RowStride, remove Viewport hook 2012-03-30 14:43:27 -05:00
Alexander von Gluck IV
ca55f49062 swrast: remove unneeded component ordering 2012-03-30 14:00:24 -05:00
Alexander von Gluck IV
db8c0f96f6 swrast: Remove unused clear code 2012-03-30 13:09:09 -05:00
Alexander von Gluck IV
21e0911b7d swrast: Header style cleanup
* Functions are pushed out one tab due to
  very long types
2012-03-30 13:07:53 -05:00
Alexander von Gluck IV
065cba5314 swrast: Initial rewrite for new Mesa
* Stop using internal fb and rb wrappers
* Stop doing Get/Put Row
* Stop malloc'ing buffers
* Tons of other changes
2012-03-30 13:02:40 -05:00
Alexander von Gluck IV
a37e0c23c8 swrast: Remove Get/Put Row/Value code as it no longer exists 2012-03-30 10:43:14 -05:00
Alexander von Gluck IV
67fd0d069c mesa: Use updated gcc4 Mesa build 2012-03-30 10:38:48 -05:00
Alexander von Gluck IV
b318ebee97 mesa: Add stock Mesa diffs for mainline mesa
* rtasm symbol collision fix.
  There is older Mesa rtasm code, and newer Gallium3D
  rtasm code. There are colliding symbols only seen when
  you link Mesa and Gallium into the same shared library.
  This diff makes Mesa use the Gallium3D rtasm code.
* Mesa target architecture fix.
  This ensures the generated Mesa binaries work under
  Pentium or higher processors. Fix for #8318
2012-03-30 10:09:08 -05:00
Hamish Morrison
8d40592821 mmap should try to honour the address hint 2012-03-29 20:02:37 +02:00
Alexander von Gluck IV
6aaadd60dd radeon_hd: Fix bytes per row passed to app_server
* Video modes with widths that are not multiples of
  32 were failing to set
* Should solve analog "skewed display"
* Add debugging on adjusted framebuffer pitch
* Thanks go out to AMD open source developers for
  the help tracking this one down!
2012-03-29 07:00:37 -05:00