Commit Graph

35945 Commits

Author SHA1 Message Date
czeidler
40c34878fa Reconnect BPicture to the app_server.
* maintain a list of all BPictures to do so
* BView downloads the BPicture data after recording the picture. This could probably done more efficiently using shared memory in the first place.
2012-01-22 15:30:15 +13:00
czeidler
577f58763b Make it possible to reconnect BBitmap to the app_server.
* maintain a list of all BBitmaps
* refactor the client memory allocator class, its possible now to just clone existing client area
2012-01-22 15:30:15 +13:00
czeidler
04209cdd81 Catch a app_server crash in the debug server. Let the registrar restart the app_server and notify all apps. 2012-01-22 15:30:14 +13:00
Jérôme Duval
403e134862 CID 10629: use of sizeof(this) instead of sizeof(*this). 2012-01-21 16:27:03 +01:00
czeidler
dee44e8b18 Fix build. 2012-01-21 18:57:19 +13:00
czeidler
124759d0df This makes keyboard input working when leaving the consoled debugger.
* Fix trace.
* Try to read key input again when the device is just B_BUSY.
2012-01-21 18:38:29 +13:00
czeidler
268dde32de Always cleanup the debug reader flags when closing the keyboard device, not only when the very last device ist closed. 2012-01-21 18:38:29 +13:00
czeidler
da6ab904f8 Fix leaks. 2012-01-21 18:38:28 +13:00
Alexander von Gluck IV
bf2b0138fe radeon_hd: Fill in a few missing PCIIDs, #8289 2012-01-20 21:32:57 -06:00
Alexander von Gluck IV
8dd1e875c1 kernel: Fix FPU SSE + MMX instruction usage.
* Rename init_sse to init_fpu and handle FPU setup.
* Stop trying to set up FPU before VM init.
  We tried to set up the FPU before VM init, then
  set it up again after VM init with SSE extensions,
  this caused SSE and MMX applications to crash.
* Be more logical in FPU setup by detecting CPU flag prior
  to enabling FPU. (it's unlikely Haiku will run on
  a processor without a fpu... but lets be consistant)
* SSE2 gcc code now runs (faster even) without GPF
* tqh confirms his previously crashing mmx code now works
* The non-SSE FPU enable after VM init needs tested!
2012-01-20 15:06:01 -06:00
Alexander von Gluck IV
67f45bfdf2 opengl add-on: Remove dead code 2012-01-20 11:33:52 -06:00
Jérôme Duval
c59b279b71 Added workarounds and options for gcc 4.6.2
* add -Wno-unused-but-set-variable for gcc 4.6.x with a TODO
* fix warnings about wrong size of pointer cast in ioapic.cpp and AudioBuffer.cpp
2012-01-19 19:44:42 +01:00
Jérôme Duval
c40f31867b Fix with enabled tracing. 2012-01-19 18:28:34 +01:00
czeidler
e4ff57c33f Use correct ALM variable index.
There is list of all variables and a list of variables used by contraints. When editing the min, max variable constraints access the
correct list.
2012-01-19 09:31:48 +13:00
Alexander von Gluck IV
2a14f70ce8 opengl: Remove unneeded visibility flag 2012-01-17 14:59:04 +00:00
Alexander von Gluck IV
3c0d5dcaf1 opengl: Improve libGL linking and Mesa optional package
* Move compiled binaries into lib.haiku within Mesa optional
  pacakge, this enables us to use Make or scons to build Mesa
* Untangle libGL linking and order library inclusion
* Remove zmuldef hacks
* Compile libgallium into the libGL on Mesa 8.0 / gcc4 images
* Don't Mesa calculate cpu optimizations due to visibility
  issues, use Mesa cpu functions for this.
* Don't allow undefined symbols in libGL.so to ensure sanity.
* Move Mesa optional packages to haiku-files
2012-01-17 14:57:49 +00:00
Siarzhuk Zharski
caacf4d9e7 Remove unused variable TMailWindow::fStartingText
* Looks like this variable has no functional load anymore. The last case
  of filling it was dismissed by hrev43664 modification.
2012-01-15 22:12:18 +01:00
Siarzhuk Zharski
414dacd2f5 Some GCI2011 Students added into the Credits
* Aleksas Pantechovskis added into contributors list for his work on
  setmime and writembr tools, and many patches provided for Mail
  application during completing about 12 GCI tasks;
* Peter Poláčik added into contributors list for his work on adding
  localization support into Jamfile engine and documenting
  using of makefile/jamfile engines;
* Mariya Pilipchuk added into translators list for her work on Ukrainian
  translation;

  Thank you for the contribution!
2012-01-15 21:41:52 +01:00
Aleksas Pantechovskis
7df4b41328 Improve the auto-signature insertion algorithm
* Append the signature only after the e-mail Reader thread will finish
  it's work. This prevent from inserting the signature in wrong place;
* Added extra lines between original e-mail quote and the signature for
  more comfortable editing of replies.
* This fix was made during GCI2011;
* This fixes #4590.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-01-15 20:54:21 +01:00
Siarzhuk Zharski
db3aecc840 Fix gcc2 build - remove iusing of ios:exceptions
* Fixing gcc2 build by removing exceptions using, that are looking like
  not supported by our version of compiler.
* Thanks to Alexander von Gluck for pointing the problem out.
2012-01-15 17:38:41 +00:00
Siarzhuk Zharski
68450f5d44 Remove debug syslog call.
* Remove debug code introduced by reading pos improvements. Sorry for
  the noise. :-\
2012-01-15 15:17:01 +00:00
Aleksas Pantechovskis
1a7322a09e Command line 'writembr' tool implemented
* Implemented writembr tool used to update MBR area with easy boot
  loader starting the system from currently active partition;
* This work fixes #5595;
* This is result of GCI2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-01-15 15:03:24 +00:00
Aleksas Pantechovskis
cd8bd6fa3f Preserve/Restore e-mail reading position
* Introduce the "MAIL:read_pos" attribute of e-mail file node to
  store the latest scroll position of the mail text view;
* Fixes #4302 (Mail should store and restore scroll offset);
* This feature was implemented during completing GCI2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-01-15 15:03:17 +00:00
Humdinger
dc6929d817 Sorted language blocks, re-formatted names, added translators.
* Sorted translation language blocks alphabetically

* Re-formatted peoples names as discussed in thread
  http://www.freelists.org/post/haiku-development/Nonlatin-names-in-AboutSystem
  -> "localized name (transliterated name) - optional nickname"

* Added Giannis Konstantinidis, Vaggelis Mamalakis and Alex-P. Natsios
  as Greek translators
2012-01-14 15:16:45 +01:00
Alexander von Gluck IV
65705aca9a radeon_hd: Fix DisplayPort connector check, #8282 2012-01-13 17:56:03 -06:00
Alexander von Gluck IV
58dbd25f6b mesa: Whitespace, style cleanup. No functional change 2012-01-12 18:04:34 -06:00
Alexander von Gluck IV
0c99c75edf mesa: Always check color space before deciding to reconfigure
* Gives a slight performance boost
* Variable name cleanup
2012-01-12 17:54:03 -06:00
Alexander von Gluck IV
3df3057e3c mesa: Code cleanup and optimization
* Rename _SetSpan to _SetupRenderBuffer to perform more general
  render buffer setup and consolidate code
* Remove CMAP8 calls. Mesa no longer supports CMAP8. CMAP8 GL
  use cases are non-existent
2012-01-12 17:49:12 -06:00
Alexander von Gluck IV
67f3236e6a glut: Ensure Mesa dependency is met before compiling 2012-01-11 22:01:12 -06:00
Alexander von Gluck IV
7b2c1ed631 glut: build and link into libGL 2012-01-11 16:55:15 -06:00
Alexander von Gluck IV
8e4cdaae8d haiku3d: Fix haiku3d build
* Add GL header include path
* Remove strange GL include path from sources
2012-01-11 00:20:02 -06:00
Alexander von Gluck IV
683e7cc845 Merge branch 'mesabetter' 2012-01-10 20:54:26 -06:00
Axel Dörfler
af8b1b77fa Fixed RemoteDesktop build that has been broken with hrev43319.
* Or more specifically, in 323b65468e, part of that revision (ie. the initial
  import from Oliver).
2012-01-10 23:05:01 +01:00
Axel Dörfler
7532547c06 Also hide the full screen controls when the mouse is over them.
* We just wait a little longer in this case, like 4.5s.
* Changed the code to only send the messages when needed, before they were
  being sent every 1.5s.
* However, this is untested as of yet, as the layout changes didn't allow me
  to run the MediaPlayer on my system. Will do so in a minute on another one.
2012-01-10 22:02:03 +01:00
Alexander von Gluck IV
7dde214bc0 radeon_hd: Fix accelerant regression in 4e9e029
* After 4e9e029, radeon_hd functionality became erratic.
* I think failing to lock the encoder bios scratch on
  encoder changes was causing it.
2012-01-10 13:07:15 -06:00
Alexander von Gluck IV
3e0c69a0e6 Add hacks for older gcc2 Mesa 7.8.2 support
* Call different functions depending on Mesa version
* The --no-warnings is for the GL headers which produce
  large numbers of attribute directive ignored warnings
  that cannot be disabled on gcc2
2012-01-10 05:13:19 +00:00
Aleksas Pantechovskis
1516a674a2 Placement of user splell_check directories fixed
* User collected dictionaries and indexes are moved under
  ~/config/data/spell_check/ folder. Fixes #7887.
* This fix was made during completing GCI 2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-01-09 23:00:00 +00:00
Aleksas Pantechovskis
975f024407 Fix [Read|Unread] buttons behaviour
* Allow displaying of "Read" button only for Incoming e-mails.
  Fixes #4773;
* Move to the next message after pressing "Unread" button that
  is consistent with corresponding "Unread" button case.
  Fixes #4774;
* Those problems were fixed during completing GCI 2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-01-09 22:56:16 +00:00
Aleksas Pantechovskis
a7c3ac5527 "Close and Leave As ***" menu handling improved.
* Check for real e-mail status before activating corresponding
  "Close and Leave as <Status>" popup menu entries and modifying them
  correspondently;
* That was implemented as GCI 2011 task. Fixes #5251.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-01-09 22:55:29 +00:00
Alexander von Gluck IV
27fdeae9e1 Use optional package gl headers 2012-01-08 01:42:10 -06:00
Alexander von Gluck IV
77d663c3ea Remove the Haiku Mesa fork 2012-01-08 01:12:54 -06:00
Alexander von Gluck IV
41020a0f1a Make mesa_software_renderer work with latest mesa
* Some of these changes may be pulled back with the NEW_MESA
  define so this works across older and newer Mesa versions
* NEW_MESA defines and checks should be removed when gcc2 is
  no longer a supported platform
2012-01-08 01:07:57 -06:00
Alexander von Gluck IV
f6a611ebf0 Use Mesa optional package to build opengl kit 2012-01-08 00:31:03 -06:00
Alexander von Gluck IV
da46520777 Break glut out from mesa lib
As glut is no longer in upstream Mesa and no longer developed
we will need to keep a fork.
2012-01-08 00:15:58 -06:00
Philippe Saint-Pierre
74983a5f69 shortcut_catcher: memory leak fixes
memory allocated in get_key_map(..) wasn't released.

CID 5696, CID 5697, CID 1699, CID 1700
2012-01-07 20:42:19 -05:00
Philippe Saint-Pierre
a5a013ca40 MediaPlayer: Fix movement of items in playlist
In Playlist, whenever a move of items occured causing the
currently playing song to change its position, so :
1. Importing files (D&D for example) before its position
2. Removings files before it
3. Moving files before it

was causing the currently playing song to restart because
it was thinking a new entry was asked (it had a different
index number suddently).

Also adjusted the behaviour when you delete the currently
playing track.

Should fix ticket #6689.
2012-01-07 17:29:46 -05:00
Oliver Tappe
174676503b Drop now unneeded glibc wchar-files (plus others). 2012-01-07 22:03:24 +01:00
Oliver Tappe
b7417fbec1 Switch wchar from glibc to our own implementations. 2012-01-07 22:02:48 +01:00
Oliver Tappe
7efc2e3a0e Add our own implementations for all wchar.h functions.
* add implementation for wcpcpy(), wcpncpy(), wcscasecmp(), wcscat(),
  wcschr(), wcscmp(), wcscpy(), wcscspn(), wcsdup(), wcslcat(),
  wcslcpy(), wcslen(), wcsncasecmp(), wcsncat(), wcsncmp(), wcsncpy(),
  wcsnlen(), wcspbrk(), wcsrchr(), wcsspn(), wcsstr(), wcstok(),
  wmemchr(), wmemcmp(), wmemcpy(), wmemmove(), wmemset
* add implementations for GNU-extensions used by our glibc and some
  other programs/libs: wcschrnul(), wmempcpy()
* add stub for wcsftime()
2012-01-07 22:01:40 +01:00
Oliver Tappe
d8ef8ef48b Add wcs_test, a testsuite for all wchar-related functions. 2012-01-07 21:59:28 +01:00
Oliver Tappe
d7965519f2 Cleanup: LocaleBackend.h is not a local header for wchar. 2012-01-07 21:48:39 +01:00
Oliver Tappe
bd55dcbefb Add our implementation for wcscoll() and wcsxfrm().
* add Wcscoll() and Wcsxfrm() ICU locale backend
* provide implementations of wcscoll() and wcsxfrm() that are using
  the respective methods of the locale backend
2012-01-07 21:47:31 +01:00
Humdinger
286ffc48c3 Added Hungarian translators Kálmán Kéménczy and Bence Nagy 2012-01-07 15:37:11 +01:00
Michael Lotz
4506b3385f Use static inline instead of extern inline to fix DEBUG build.
Fixing this directly even though it is technically vendor code as it
has been modified rather heavily (as per #8252).
2012-01-07 03:27:03 +01:00
Michael Lotz
d26f88068b Add xfreopen.c to the library build, fixes DEBUG build.
The actual xfreopen function is only relevant if O_BINARY != 0 and all
places invoking it are surrounded by if statements that are always
false if O_BINARY == 0. The compiler therefore stripped all the calls
out at the default -O2, but this obviously breaks down with DEBUG on.
2012-01-07 03:13:01 +01:00
Michael Lotz
ecea46bcfd Unconditionally add debug.c. Fixes DEBUG build.
The file is guarded with DEBUG so this doesn't change anything for
non-debug builds. Inspired by patch in #8252 by Urias McCullough.
2012-01-07 02:27:16 +01:00
Michael Lotz
423affc209 Fix warnings for DEBUG build. Build with tracing still broken.
This is a modified version of a patch in #8252 by Urias McCullough.
2012-01-07 02:18:44 +01:00
Michael Lotz
91d012366c Avoid warning on certain debug builds.
The variable is used in the TRACE(), but that is only enabled for
DEBUG >= 2. This therefore avoids a warning on DEBUG=1 builds.

Inspired by patch in #8252 by Urias McCullough.
2012-01-07 02:04:56 +01:00
Philippe Saint-Pierre
581a96616a Tracker: Fix inconsistent "Open parent" behaviour
1. When in /boot, you couldn't go to the parent (which is fine by itself),
but the menu item wasn't disabled.

2. In Single Window Browsing, doing "Open parent" wasn't respecting that
setting and was opening new windows.

3. In filepanel, when navigating to Desktop folder, the "Go to parent" was
still proposed even though it would do nothing choosing it.

4. Opening a Pose in Single Window Browsing was repopulating the menus and
putting the shortcuts again.  That was an issue if Navigator bar was used
since it conflicts with its shortcuts.

Fixing ticket #6851.
2012-01-05 21:44:11 -05:00
Philippe Saint-Pierre
bac3774d59 MediaPlayer: Double-click on playlist item to restart it
Double-clicking on the currently playing playlist item restart that
item's playback from the beginning.

Ticket #6560.
2012-01-05 18:28:21 -05:00
Philippe Saint-Pierre
8df5e79d2c Tracker: FSMoveToTrash(): needless check and possible crash fix
In an earlier commit, I removed a memleak, but it was covering more cases
than intended.  Thanks to Alex Wilson's insight, it seems that simply removing
the check is better (since that check is essentially redone in FSMoveToTrash()).
2012-01-05 17:55:12 -05:00
Philippe Saint-Pierre
f91a2037a5 intel accelerant: NULL dereferences (overlays)
Rather than checking if "window" AND "view" are NULL, check if
"window" OR "view" are NULL, since neither could be null and deferenced later
on.

From the Matrox accelerant, it seems that such event occurs when a
"Workspace switch, screen prefs change, or overlay app shutdown occurs"

Might be interesting to revisit tickets related to intel accelerant.

CID 205.
2012-01-04 20:48:15 -05:00
Philippe Saint-Pierre
97f16764c7 Tracker: Memory leak fix
The leak occured everytime a folder, or queries where opened while
navigating.

CID 5848.
2012-01-04 19:51:26 -05:00
François Revol
8e977a874f M68K: Only enumerate ST modes as fallback. 2012-01-05 01:44:38 +01:00
François Revol
595938e710 M68K: Don't trace mmu boot code anymore 2012-01-05 01:44:37 +01:00
Philippe Saint-Pierre
dafbb16406 Tracker (FSUtils): negative passed to unsigned parameter
BVolume::BlockSize() might return a negative value (error code) and it
was passed as parameter of CalcItemsAndSize() as a size_t (unsigned).

Thus the check for an error code failed.

CID 4171.
2012-01-04 19:31:17 -05:00
Philippe Saint-Pierre
aa11dcae4d Tracker (InfoWindow): small memory leak fix
In the case of a broken symlink, a Model object was leaked when trying
to get the icon of the target.

CID 5844.
2012-01-04 19:23:12 -05:00
François Revol
68aea33966 Try another load address for PPC CFE loader.
This is the address the OpenFirmware is loaded to by CFE on the Amiga X-1000.
Doesn't seem to help much though.
2012-01-05 01:03:28 +01:00
Philippe Saint-Pierre
c56f0ce1c3 FindPanel: Avoid NULL deference; CID 352. 2012-01-04 18:44:21 -05:00
Michael Lotz
f13be4928b Pad the transfer buffer to prevent out of bounds access.
The HIDReportItem reads 32 bit chunks from the report buffer. To avoid
having to check the remaining buffer space on each extraction, we pad
the buffer so it is always valid to read 32 bits at a time. Also add
a comment explaining why we do it that way.

Thanks to Johannes Anderwald for pointing out the potential out of
bound access!
2012-01-04 23:33:07 +01:00
Philippe Saint-Pierre
d390c06551 PoseView: Fix assertion in InitDirentIterator
The dynamic_cast was called twice, and the assert was
done on the first attempt. Now it just cast once, assert on this
and pass it further as before.

CID 3122.
2012-01-04 18:11:12 -05:00
Philippe Saint-Pierre
fcfd687380 Tracker: memory leak fix
In MoveRefsToTrash(), the srcList wasn't deleted after usage.

CID 5849.
2012-01-04 00:01:26 -05:00
Philippe Saint-Pierre
f30530e387 ffmpeg (gif codec): Init len variable
It was already fixed upstream. CID 9309.
2012-01-03 23:35:14 -05:00
Philippe Saint-Pierre
1923ea178d ffmpeg: infinite loop (als decoder)
CID 3176.  Patch proposed upstream.
2012-01-03 22:49:01 -05:00
Philippe Saint-Pierre
9d991e3c99 Firewire: uninit buffers returned
Probably a copy-paste error caused the wrong variables being returned
in fw_xfer_alloc_buf() for the received transfers.

CID 10746.
2012-01-03 20:24:17 -05:00
Philippe Saint-Pierre
f08709bbea No functional change; invert the order of includes. 2012-01-03 18:51:25 -05:00
Philippe Saint-Pierre
82556487af MediaConverter: Move a NULL check
To avoid a NULL dereference, moving a NULL check earlier.

CID 5955.
2012-01-02 23:27:59 -05:00
Philippe Saint-Pierre
7cd8f5f9b9 TextView: initialize buttons variable
CID 10751.
2012-01-02 22:46:30 -05:00
Philippe Saint-Pierre
f54fc2dcfe Terminal: NULL dereference fix
An inversion in a condition could lead to a NULL dereference.

CID 11039.
2012-01-02 22:30:28 -05:00
Philippe Saint-Pierre
4040b622f4 VM: Memory leak fix in case of bad driver settings file
CID 5891.
2012-01-02 22:12:09 -05:00
Philippe Saint-Pierre
7d0a351c0a Wonderbrush translator: memory leak fix
A Buffer in archive_bitmap wasn't free'd upon completion. CID 5751.
2012-01-02 21:29:02 -05:00
Philippe Saint-Pierre
c5e599ac1a IconUtils: memory leak fix
The intermediate step BBitmap in scale2x wasn't deleted. CID 10692.
2012-01-02 21:07:55 -05:00
Philippe Saint-Pierre
0891b95e63 Installer: Resource leak fix (CID 10693). 2012-01-02 20:54:49 -05:00
Philippe Saint-Pierre
fccd8899fc People: memory leak fix. CID 10694. 2012-01-02 19:27:21 -05:00
Philippe Saint-Pierre
be6c4d6a5d mail kit: fix memory leak.
CID 896.
2012-01-02 19:13:28 -05:00
Philippe Saint-Pierre
728d429e7d spamdbm: use the std::nothrow variant of new operator. 2012-01-02 18:55:19 -05:00
Philippe Saint-Pierre
d79ded8a44 Mail: various checks of malloc returns + memory leak fix
CID 891.
2012-01-02 18:32:38 -05:00
Urias McCullough
de9c457a38 Disabled DEBUG=1 in several of the 3rd party ffmpeg subdirs
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-01-02 17:15:28 -05:00
Urias McCullough
f1b76720ea Disable DEBUG build of 3rd party libgutenprint
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-01-02 17:15:27 -05:00
Philippe Saint-Pierre
0106325bc4 Time preference: Fix a memory leak
Accidentally introduced with an earlier commit.
2012-01-02 16:52:52 -05:00
Philippe Saint-Pierre
93f68d97bf ProcessController: fix a small resource leak
fSettingsFile wasn't deleted in the destructor.  CID 1414.
2012-01-02 14:55:55 -05:00
Philippe Saint-Pierre
9e4224613c SoundFile.cpp: do a NULL check before deferencing.
CID 296.
2012-01-02 14:26:07 -05:00
Philippe Saint-Pierre
e9132cc34c Time preferences: use std::nothrow variant of new operator
Also make sure to avoid an eventual negative array size. CID 10934.
2012-01-02 13:54:39 -05:00
Philippe Saint-Pierre
9668d19918 echo driver: replace usage of strncpy by strlcpy
Usage of strncpy in this context could lead to a non null terminated string.
various coding style fix.

CID 2217.
2012-01-02 13:19:30 -05:00
Matt Madia
d1b515136e Fixed typo in the comment of the default mail charset string.
Spotted by RQ and mentioned on #8147. Thanks!
2012-01-02 12:44:29 -05:00
Philippe Saint-Pierre
e480c1b658 echo driver: replace strncpy by strlcpy
using strncpy could possibly lead to a non null terminated string.
also some coding style fix.

CID 2216.
2012-01-01 19:42:16 -05:00
Philippe Saint-Pierre
12892428fc cmedia driver: coding style fix 2011-12-31 17:07:30 -05:00
Philippe Saint-Pierre
848762a7d4 firewire: unchecked return of acquire_sem_etc, coding style 2011-12-31 16:41:01 -05:00
Fredrik Holmqvist
9aec8e8424 Remove strlen from PPC glibc as well.
This should fix the PPC build. Sorry for that, k thx bye.
2011-12-31 21:32:57 +01:00
Humdinger
feaa147442 Added GCI student Harsh Vardhan as French translator. 2011-12-31 08:01:14 +01:00