Commit Graph

53615 Commits

Author SHA1 Message Date
Michael Lotz
bdf0418f5c input_server: Fix handling of received -q argument.
BApplication::ArgvReceived() is called in the already running app in
case of a silent relaunch. It is therefore enough to just post a quit
message.
2015-04-20 23:40:34 +02:00
François Revol
ae65896a9f paths.h: fix some paths
We don't have /sbin so...
2015-04-20 23:33:29 +02:00
François Revol
110600c698 paths.h: remove the _BSD_SOURCE guard
It seems like glibc also has paths.h and m4 fails to bootstrap
without _PATH_BSHELL.

This file really needs some cleanup btw, since most is actually
irrelevant or incorrect for Haiku.
2015-04-20 23:31:20 +02:00
Michael Lotz
9b3be14015 BApplication: Fix B_ARGV_* handling on silent relaunch.
In hrev47355 a logic reversal was introduced as part of a cleanup
commit which caused B_ARGV_RECEIVED to be sent only to apps with the
B_ARGV_ONLY flag set instead of clear.

In addition to that, don't send the B_SILENT_RELAUNCH message for apps
with B_ARGV_ONLY either, as they are not supposed to receive messages
after launch. This is in line with the documentation and what BRoster
does.
2015-04-20 23:27:52 +02:00
François Revol
06ba99b08a shutdown: handle 'halt' and 'reboot' as argv[0]
In both cases ask confirmation to the user.
2015-04-20 23:23:56 +02:00
François Revol
1eb23951c3 HaikuPortsCross: Update some PPC bootstrap packages 2015-04-20 18:35:36 +02:00
François Revol
d508fd4c33 PPC: leave all atomic ops as gcc inlines
I'm not sure the 64bit versions are really implemented though...
2015-04-20 17:52:39 +02:00
François Revol
10e57f6e58 PPC: fix handler type cast 2015-04-20 17:19:33 +02:00
Alexander von Gluck IV
f178e4a248 arm: bcm2835 framebuffer
* Drop some messy mmu externs
* Set proper page flags
2015-04-19 20:13:24 -05:00
Alexander von Gluck IV
f427a82d48 arm: Add debug function to dump mmu state
* We don't change the data cache (and other) settings.
  Interesting to know their state on each platform.
* Not used by default as it needs called after
  serial-init in u-boot
2015-04-19 20:13:23 -05:00
Michael Lotz
62d30d9e49 libmedia: Put AddOnManager into BPrivate::media namespace.
The AddOnManager was in the global namespace, clashing with application
classes with the same name.

The input_server has an AddOnManager of its own. When the
shortcut_catcher filter was loaded by said AddOnManager, it in turn
loaded libgame.so, which in turn loaded libmedia.so, where an
AddOnManager was created for the global AddOnManager instance in
libmedia.so. Unfortunately the wrong AddOnManager, the one from the
input_server, was created. This lead to two AddOnManagers being active
in the input_server which very well could be responsible for #11049
and #11280.

This was a regression since the move of the AddOnManager from the
media_server to libmedia.so in hrev47086. This also fits with the two
tickets.

I actually noticed the problem when debugging the shutdown process of
the input_server, where the destruction of the wrong AddOnManager
caused a deadlock with itself.
2015-04-19 23:47:05 +02:00
Adrien Destugues
5265e873af Add more vlc dependncies + Fix Caya and add paragui
* libdvdread, libdvdnav, faac
* Caya built in release mode (much smaller package)
* Paragui and dependencies: libsigc++ and physfs.
2015-04-19 18:14:59 +02:00
Adrien Destugues
eaa1235c26 53c8xx: build fixes. 2015-04-19 17:29:55 +02:00
Janus
2a1583cbc0 Preferences: Consistent buttons position and spacing.
* Appearance fix spacing.
* Keyboard fix spacing.
* Mouse fix spacing.
* Notifications fix spacing.
* Fixes #5230.
2015-04-19 13:02:10 +00:00
Adrien Destugues
ee93a8f4a1 Fixed goonies package. 2015-04-19 11:23:41 +02:00
Adrien Destugues
67334c1a29 More dependencies for VLC
libcddb, libcdio, libdvbpsi, libdvdcss, vcdimager.
2015-04-19 11:23:31 +02:00
Michael Lotz
eebdc855b8 userlandfs: Fix 64 bit debug build. 2015-04-18 22:31:11 +02:00
Janus
197dbe5313 WebPositive: Address bar list uses user colors.
* Before this commit address bar used:
 B_MENU, B_LIST, B_DOCUMENT colors.
 With strange results during customization.
* Now the address uses list user colors.
* Partialy fixes #10840.
2015-04-18 18:47:44 +00:00
Alexander von Gluck IV
d3d976b08c cubieboard4: Add 32k alignment fix
* haiku_loader now starts on the cubieboard4
  with a working uart!
2015-04-18 10:38:02 -05:00
Adrien Destugues
3cd56e6356 Add packages for some VLC dependencies
a52dec, libmatroska, libebml, gnutls, libgcrypt, musepack_tools,
libreplaygain, libcuefile.
2015-04-18 17:35:03 +02:00
François Revol
1c91ed03fa Build binutils with different extra targets depending on arch
EFI support isn't much useful for ARM.

Also add some targets to help debugging binutils on PPC.
2015-04-18 15:14:24 +02:00
Michael Lotz
859686a51c Tracker: Fix use-after-free in info window attribute view dtor.
The model was owned by the info window and is gone at the point where
the AttributeView is destroyed. Since the extra check whether the model
is a symlink isn't really needed at all, I opted to just remove it
instead of destroying the AttributeView sooner or unsetting its model.
2015-04-18 14:19:03 +02:00
Michael Lotz
359d64ed66 network stack: Style fix of constant name. 2015-04-18 14:09:27 +02:00
Michael Lotz
ebea950b2d BLayout: Don't delete the layout of the view in RemoveView().
The layout item representing the layout of the view to be removed is
owned by the view and must not be deleted. The layout only owns the
item if a new layout item was created when adding the view, i.e. when
it did not have a layout.

Fixes the underlying issue that triggered #11976.
2015-04-18 13:32:19 +02:00
autonielx
1f1df3671c Update translations from Pootle 2015-04-18 06:27:31 +02:00
Adrien Destugues
8bbe44dd63 Add package for libmpeg2 2015-04-16 22:07:21 +02:00
Michael Lotz
56a63697ae notification_server: Don't remove the views from the layout.
Removing the view from the window and deleting it is fine. This is a
quick fix for #11976. The underlaying issue of how BLayout::RemoveView
should work still needs to be fixed.
2015-04-16 21:44:59 +02:00
Jessica Hamilton
c7ad68f08c assert.h: add comments explaining the omission of include guards 2015-04-17 07:03:40 +12:00
Jessica Hamilton
e4de39c4e4 libs/bsd: also define _BSD_SOURCE for C files 2015-04-16 23:40:23 +12:00
Jessica Hamilton
9f17027980 assert.h: remove include guards
* including assert.h multiple times with NDEBUG varying is
  perfectly legal, and required by POSIX.
2015-04-16 23:03:40 +12:00
Adrien Destugues
091a80aeed Protect all BSD extensions with _BSD_SOURCE
* Do not define the symbols by default, as they are not in the default
libraries.
* Adjust jamfiles of all code using BSD extensions to define
_BSD_SOURCE.
* This makes Haiku slightly more compliant to standard C/POSIX.
2015-04-16 07:33:06 +02:00
Automatic Committer
e2ceb857d4 Update pci.ids from pciids.sourceforge.net 2015-04-16 05:20:26 +02:00
Michael Lotz
b598325acc BView: Move tooltip release and fix small coding style issues.
This is only an optical change.
2015-04-15 00:34:09 +02:00
Michael Lotz
e837ee8bc6 BView: Fix destruction order of layout items.
Because of the virtual hooks a BLayout must never be destroyed while it
still has layout items. If these items are only removed from the layout
in its destructor, the subclass version of hooks like ItemRemoved() are
not called anymore. This lead to leaks because many BLayout subclasses
use the ItemRemoved() hook to clean up associated data (as is suggested
explicitly in the BLayout documentation).

In the same line of thought, a BLayoutItem must never be deleted when it
is still attached to a layout, as it similarly has virtual hooks like
DetachedFromLayout() that can not be called at this point anymore.

The destructors of BLayout and BLayoutItem now have debugger calls in
case these conditions are not met which should help to avoid
accidentally introducing such hard to debug issues.

To ensure the correct destruction order the sequence is now:

* Destroy the child views first. This cleans up their layout items while
  the layout tree is still intact.
* Unset the view layout before removing layout items so it can properly
  detach from the layout instead of just deleting it.
2015-04-15 00:34:07 +02:00
Michael Lotz
0cc8c71bba BLayoutItem: Add RemoveSelf() convenience method.
It works analoguous to BView::RemoveSelf(), i.e. it removes itself from
the parent (layout in this case) and returns whether or not it had and
was successfully removed from said parent.
2015-04-15 00:34:05 +02:00
Michael Lotz
19bb9ef937 BView: Remove old TODO comment.
The BShelf is not owned by the BView (nor the BWindow for that matter)
and so must not be deleted on destruction.
2015-04-15 00:34:04 +02:00
Michael Lotz
32e627a7fb BTwoDimensionalLayout: Fix leak of CompoundLayouter layout[er]. 2015-04-15 00:32:54 +02:00
Michael Lotz
814393e641 BGridLayout: Fix leak of grid. 2015-04-15 00:30:57 +02:00
Michael Lotz
4198ccecf3 Whitespace cleanup only. 2015-04-15 00:30:56 +02:00
Michael Lotz
0bba9b9752 Fix some typos and whitespace in BLayout docs. 2015-04-15 00:30:55 +02:00
Adrien Destugues
83571947d1 Set the corret ID when unregistering the buffer.
Follow-up fix to hrev49035.
2015-04-14 07:19:56 +02:00
Rene Gollent
2e82cb8dd6 x86: Update BePDF, Pe,Vision packages. Add libsanta package. 2015-04-13 22:28:32 -04:00
Janus
3000afd7b1 ShowImage: Remember save location
* Fixes #6766.
2015-04-13 20:08:58 +00:00
Dario Casalinuovo
384ae40aa5 Correctly check when the BBuffer failed the registration with the server.
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-04-13 19:22:26 +02:00
Dario Casalinuovo
4232706dc8 Clean SharedBufferList.h.
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-04-13 19:21:35 +02:00
Dario Casalinuovo
8290e8d3e5 BBuffer: Unregister buffer when clone_area fail, fixes #6188.
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-04-13 19:20:43 +02:00
Dario Casalinuovo
edcc37c64a ProcessController and VolumeControl: solve BMessage kind of memory leak.
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-04-13 19:18:12 +02:00
Dario Casalinuovo
0fc30d8934 Deskbar: Sanitize the usage of BMessage
... especially for SendMessage and SendReply.
* Delete the item's message if AddItem does not return successfully.
* Fixes #11934.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-04-13 19:11:45 +02:00
Dario Casalinuovo
9e11c3adb1 Deskbar: No need to use dynamic allocation, remove unused headers.
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-04-13 19:10:38 +02:00
Alexander von Gluck IV
c0af54cc3b cubieboard4: Update SPL bin url to official source
* Our pull request was accepted
2015-04-13 09:15:38 -05:00