42051 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.
hrev43934
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.
hrev43933
2012-04-01 17:38:44 +02:00
Oliver Tappe
a91e17db42 Cleanup: drop unused implementation file. 2012-04-01 17:22:59 +02:00
Jerome Duval
8ea0100184 es1370: build fix hrev43932 2012-04-01 14:50:31 +02:00
Jerome Duval
57c324a753 arm: added some missing arch bits and changed asm section for arm compat. hrev43931 2012-04-01 14:03:36 +02:00
Axel Dörfler
8175a2c342 Fixed warning. hrev43930 2012-04-01 13:06:59 +02:00
Axel Dörfler
8f7ec006cb We need to remove the tree from the transaction. Fixes #3159.
* The tree does keep a reference to the inode as well as long as it is part
  of a transaction.
* Even if it wouldn't have done it (and would not have triggered the panic),
  Haiku would likely have crashed, as the inode (and therefore its tree) was
  already deleted at the time when the transaction discarded its listeners.
2012-04-01 13:04:36 +02:00
Axel Dörfler
15f4dcd831 The inode must be write locked. Dunno how that could work before. hrev43929 2012-04-01 11:30:58 +02:00
Axel Dörfler
7fef0374fe Make sure it isn't part of a transaction upon destruction. 2012-04-01 11:30:58 +02:00
Axel Dörfler
8cf89e5cd3 Minor cleanup. 2012-04-01 11:30:57 +02:00
François Revol
8d33dc2971 An html5 <canvas> based drawing engine
This implements an html5 rendering engine.
Inspired by the Broadway GDK backend for Gnome.
Work in progress. For now it just connects and dumps debug output.
hrev43928
2012-04-01 11:04:41 +02:00
Adrien Destugues - PulkoMandy
d1abffcaa2 Force read/write mode for "removable media" devices as well. This makes
it possible to write files to my MP3 player.
hrev43927
2012-04-01 10:29:15 +02:00
François Revol
2c3d4bf64a Change accessor name for consistency. hrev43926 2012-04-01 09:05:07 +02:00
scottmc2@gmail.com
c106a6bc2e Updated optionalpackages for texinfo, sqlite and bzr. hrev43925 2012-03-31 17:58:24 -07: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.
hrev43924
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.
hrev43923
2012-03-31 17:31:21 -04:00
Axel Dörfler
dcfb930a98 Improved bfs_inode KDL command. hrev43922 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.
hrev43921
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. hrev43920 2012-03-31 21:27:55 +02:00
Rene Gollent
484afd3a08 Updated Web+ package.
Fixes an oversight in yesterday's bug fix.
hrev43919
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.
hrev43918
2012-03-31 17:00:02 +02:00
Axel Dörfler
e0927e2c44 Improved debug output. hrev43917 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. hrev43916 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. hrev43915 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).
hrev43914
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.
hrev43913
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. hrev43912 2012-03-31 13:30:21 +02:00
Jerome Duval
0efb8b6639 Screen: fixed a warning and gcc2 build. hrev43911 2012-03-31 10:43:37 +02:00
Axel Dörfler
a300055ed7 Minor cleanup. hrev43910 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.
hrev43909
2012-03-30 22:23:58 -04:00
Rene Gollent
294a85aa68 Fix build. hrev43908 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.
hrev43907
2012-03-30 18:17:01 -04:00
Axel Dörfler
1674a53a45 Added recursive_lock_transfer_lock() to the fs_shell. hrev43906 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 hrev43905 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.
hrev43904
2012-03-30 16:43:21 -05:00
Alexander von Gluck IV
df82ad659d swrast: Style cleanup, no functional change hrev43903 2012-03-30 15:28:28 -05:00