Commit Graph

37996 Commits

Author SHA1 Message Date
Oliver Tappe
bd2a7a1a44 Closing #3145:
* apply a patch by hamish (as part of GCI) that lets fseek() discard 
  characters pushed onto the stream via ungetc()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 19:04:32 +00:00
Oliver Tappe
cda7f65b32 * add fseek_test, which exposes a problem described in #3145
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 18:56:06 +00:00
Stefano Ceccherini
27573dedcc Fix build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 16:53:23 +00:00
Stefano Ceccherini
c4b9b7dbe5 (pointers) style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 16:46:58 +00:00
Stefano Ceccherini
903625ee29 Extract the code to copy the bacbuffer to the direct window.
When in nondirect mode, SwapBuffers() wasn't respecting the vsync parameter.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 16:37:21 +00:00
Joachim Seemer
0c58e90caa Apparently I have to relearn the alphabet... hi before hu... Sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 16:09:11 +00:00
Joachim Seemer
c621662845 Added GCI students/mentor Abhishek Arora, Jayneil Dalal, Atharva Lath for Hindi localization.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 15:54:09 +00:00
Stephan Aßmus
d1b6305cd9 Forward important properties and setters of the private BSplitLayout
in the BSplitView class, related to getting and setting item weights
programatically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 12:08:49 +00:00
Matt Madia
76e9533e9e Add a trailing whitespace to the sed filtering of package names. Fixes #7409.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-31 20:02:48 +00:00
Rene Gollent
6997467eea Fix an instance where an allocation wasn't checked for success.
Wrap call to SymbolLookup::Init() in a try/catch block since it could
potentially throw an exception. This was causing the debugger to terminate
in some instances.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-31 17:17:19 +00:00
Scott McCreary
357eb4e314 Added build of vorbis-tools for gcc4, previous one was missing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-31 02:22:43 +00:00
Joachim Seemer
9639885450 Update to user guide. A few new pages and many translations by Google Code-In students. ShowImage, MediaPlayer and WebPositive are not yet ready for translation. Thanks everyone.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-30 19:10:45 +00:00
Bruno G. Albuquerque
2eb5e77d9b - Fix reference to GCC4 lib FLAC.
Note that the reference to GCC4 Vorbis Tools is also broken but I did not fix
it as there is no GCC4 vorbis Tools package available where all the other
optional packages are.
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-30 18:22:20 +00:00
Scott McCreary
209727818f Updated build of curl, with openssl-1.0.0c in place, should fix #7045
Fixed the filename of smpeg gcc4 build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-30 04:36:47 +00:00
François Revol
2fd3b8b9c5 Style. Very odd as I despise space-before-( anyway, I should got to sleep.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-30 00:02:11 +00:00
Adrien Destugues
87ff4c051b Early work on a package manager GUI.
There is nothing functional yet, I just wanted to try some ideas from the GCI results.

Code is mostly based on Web+ download window, which hapenned to match the mockups pretty well.
Icon is derived from Zumi's work (mix of two different icons)
Icon handling for apps themselves and categories is not done yet, because it depends on how they will be handled by the backend we chose
The install/remove/info buttons don't do anything yet.

Things I'm not sure about :
 * What to put in the menu ? Should it replicate the icons at the bottom ?
 * How to browse categories ? Is a "go up" button enough ? Should we have a BPopupMenu with all categories in a tree (I don't like menutrees in BPopupMenus...) ? A BOutlineListView would be wasting space... any other idea ?
 * Should we keep textual buttons like this, or graphical ones like in the mockup ? Or maybe both ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 22:01:16 +00:00
François Revol
d074928c03 Avoid leaking a file descriptor on error. Thanks PovAddict for running cppcheck.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 20:05:24 +00:00
Ryan Leavengood
4517bee6c0 Use strlcpy not strncopy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 20:04:58 +00:00
Ryan Leavengood
9c34e0e302 Revert most of r40007. I also will mark CID 2393 as ignored.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 20:01:49 +00:00
François Revol
49ad9afbbe Need array delete operator here.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 19:56:33 +00:00
Adrien Destugues
267479782d Various build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 17:02:32 +00:00
Adrien Destugues
58a25e2114 Missing part of MediaConverter patch. Was a problem with svn getting lost.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 15:57:26 +00:00
Adrien Destugues
a27a534c3b Fix build. Waiting for a proper solution to translate these strings from GCI student.
Sorry for the problems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 14:54:34 +00:00
Adrien Destugues
10e2c9e012 Patch by Mike Roll:localize DataTranslations. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:45:14 +00:00
Adrien Destugues
f2758b750b Patch by Mike Roll: localize Mail preferences.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:44:39 +00:00
Adrien Destugues
4915d3ef43 Patch by Mike Roll: localize Notifications
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:43:54 +00:00
Adrien Destugues
c9e8f97a95 Patch by Mike Roll as part of GCI: localize Screen.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:43:12 +00:00
Adrien Destugues
2813f49667 Pathc by Dziadek: localize Poorman. thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:42:21 +00:00
Adrien Destugues
518852fca7 Patch by Dziadek: localize IconOMatic
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:41:46 +00:00
Adrien Destugues
54526b1534 Patch by Dziadek: localize People.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:41:14 +00:00
Adrien Destugues
ae0f70fc69 Patch by Dziadek : localize MediaConverter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:40:46 +00:00
Adrien Destugues
d462be1157 Patch by dziadek: localize Magnify
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:39:59 +00:00
Adrien Destugues
238df8fb85 Patch by Dziadek as part of GCI : localize MediaPlayer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:38:58 +00:00
Michael Lotz
c3dab48ba4 Add a way to cancel a started message.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 08:30:25 +00:00
Michael Lotz
49e57f098a Add support for the screen offset and scale to remote shape drawing. This brings
back scrollbar icons and menu markers for example after they got broken when
the offset was introduced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 08:19:59 +00:00
Stefano Ceccherini
f95b5003de Style changes, some more error checks, removed ifdeffed broken
behaviour.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 08:10:25 +00:00
Michael Lotz
566d89aec9 Forgot that in r40016, needed for utf8_functions.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 07:54:10 +00:00
Michael Lotz
8b600b7cb7 Implement RP_DRAW_STRING_WITH_OFFSETS. Untested though, especially the bounding
box part should be validated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 07:53:21 +00:00
Michael Lotz
c4b45a0c4d Implement RP_DRAW_BITMAP_RECTS on the client side.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 07:04:01 +00:00
Michael Lotz
7162595e84 Implement a new RP_DRAW_BITMAP_RECTS which splits up bitmaps to be sent into the
relevant parts (i.e. removes clipped or out of bounds parts) and does local
scaling in case the view rect is smaller than the bitmap rect. This avoids
sending the full blown bitmaps across when they are in the end scaled to a much
smaller representation. It's nowhere near perfect yet, but it's useable and
improves the network traffic heaviness quite a bit depending on the application.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 07:03:03 +00:00
Ryan Leavengood
65cd35f0cb CID 9916 and 9917: initialize fSpaceNeeded.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 05:58:39 +00:00
Ryan Leavengood
5b9003c79e CID 5899: Move a variable so it does not go out of scope when a pointer to it
is used. In my testing this did not seem to be a problem but it doesn't hurt to
fix it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 05:34:50 +00:00
Ryan Leavengood
ccb228004c CID 6931 and 8076: use strncpy for the extremely unlikely case that
B_TRANSLATE("???") returns something larger than the size of name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 05:16:42 +00:00
Ryan Leavengood
5d67e2ba05 CID 10412: remove assignments for unused variables.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 04:53:05 +00:00
Ryan Leavengood
9617074c9b CID 5273: Don't hide the message parameter with a local variable. Not critical
but good coding practice.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 04:26:32 +00:00
Ryan Leavengood
43d3fdf3b1 CID 6925: Use snprintf. Also sizeof(size) is kind of funny.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 04:20:39 +00:00
Ryan Leavengood
39aa9ae199 CID 2393: Check the return value of GetDecoratorSettings (though this is
probably not needed.)

Another problem fixed here is that the border width value is in "border width"
not "border" so this code wasn't really working before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 04:15:14 +00:00
Ryan Leavengood
7058291b1a CID 6924: Use safe coding practices to avoid buffer overflow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 04:00:25 +00:00
Ryan Leavengood
7f6caa088c CID 5772: Delete the unneeded (and leaked) ref on the loop end case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 03:54:07 +00:00
Ryan Leavengood
97d3d5a1d3 CID 9936: Uninitialized members.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 03:47:21 +00:00