57313 Commits

Author SHA1 Message Date
Akshay Agarwal
ffdbd12882 Fix BDateFormatTest: Consider timezone in test cases.
* Issue: A time_t value of say '12345678' results into different timestamps
in different timezones. So the expected output will not match the result of
BDateFormat::Format() if the calendar's timezone is different from the
timezone of the expected output, and the tests 'TestFormat' and
'TestCustomFormat' will fail.

* Fix: Add timezone information in the test cases and pass the timezone
while calling BDateFormat::Format() in order to set the calendar's
timezone same as that of the expected output.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev51376
2017-08-26 12:19:59 +02:00
Akshay Agarwal
cf91123041 Add unit tests for BRelativeDateTimeFormat.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev51375
2017-08-26 09:02:52 +02:00
Akshay Agarwal
1e4ab34cd7 Implement a formatter for relative dates.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

It can give results such as "in 2 hours", "2 days ago", etc.
This is different from BDurationFormat which will just say "1 hour, 2
minute and 36 seconds"
hrev51374
2017-08-25 21:14:27 +02:00
Jérôme Duval
31e6a56fb3 kernel/fs: fix warning on x86_64. hrev51373 2017-08-24 18:01:12 +02:00
Jérôme Duval
26740b2889 POSIX: F_DUPFD_CLOEXEC support (POSIX.1-2008).
* fix #12187.
hrev51372
2017-08-24 17:54:50 +02:00
Adrien Destugues
a74f88cf8f Build fix. hrev51371 2017-08-21 18:52:28 +02:00
Adrien Destugues
faef86335b BTabView: fix binary compatibility.
Re-introduce missing symbol so that old apps can still be used.
hrev51370
2017-08-21 18:21:21 +02:00
Adrien Destugues
0d1bb791fc BControlLook: remove broken intersection check
When using BAffineTransform, the update rect is not in the same
coordinate space as the drawing rectangle. Hence, testing them for
intersection does not work, and leads to not drawing buttons which are
in fact visible.

Moreover, the code in BControlLook does not perform only drawing, it is
also expected to update the drawing rect, so other functions may reuse
it later (for example, drawing a button border also computes the
rectangle for the button background). Because of this, it is not
possible to skip the drawing completely, or we could break the layout of
the client.

Fixes #13664
hrev51369
2017-08-20 15:55:56 +02:00
Adrien Destugues
dd582ff9d5 Add a test for #13664
Interaction between ConstrainClippingRegion and transforms leads to
button frames and background not being drawn at all.

Also shows another problem with rounded corner buttons when mixed with
transforms.
2017-08-20 14:59:21 +02:00
Adrien Destugues
d47dec9356 Make gcc2 happy. hrev51368 2017-08-20 09:48:29 +02:00
Adrien Destugues
1e80caa309 Add a white background version of the sticker
- Uses the Haiku URL instead of "inspired by the BeOS"
- Tweaked dimensions to match lastickerie.com templates (45x80mm + cutting margin)
2017-08-20 09:10:05 +02:00
Kacper Kasper
cb13fce878 BTabView: implement drawing tabs on all sides.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-20 09:04:05 +02:00
Kacper Kasper
173e8195a4 BTabView: remove dead code.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-20 09:04:05 +02:00
Kacper Kasper
a34769a0cc BTabView: cleanup draw function.
* Slightly changes how tabs look.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-20 09:03:52 +02:00
Adrien Destugues
dd64582866 HaikuwebKit 1.6.2. hrev51367 2017-08-19 11:20:32 +02:00
Adrien Destugues
b8d9fcbeb3 Revert "ControlLook: remove some bogus clipping"
This reverts commit b277177477148c83d79ba7f0b4737709f023f068.
2017-08-16 17:48:58 +02:00
Adrien Destugues
b277177477 ControlLook: remove some bogus clipping
ConstrainClippingRegion was used in BControlLook to limit drawing to
inside the update rect. There are two problems with that:
- It would ignore any other clipping set by the application, as calls to
ConstrainClippingRegion are not cumulative,
- ConstrainClippingRegion ignores transforms on the view, so on a
transformed view, we would not draw anything in most cases.

If constrained clipping is needed here, it should be achieved using
ClipToPicture instead.
2017-08-16 17:44:45 +02:00
Adrien Destugues
2c1c78ae26 iwn: add missing PCI ID
Let's see if this is enough to get an extra card working?
This device ID is supported in the FreeBSD driver.
hrev51366
2017-08-16 14:37:58 +02:00
Adrien Destugues
b32b2f9028 DeskBar: remove app name from expanded window items
Expanded window items are listed right under the team item. So, it is
not needed (and a waste of space) to repeat the team name there.

Detect two common patterns for adding the application name to windows:

AppName: Window

and

Window - AppName

Remove both from the item labels, leaving a little more space for useful
information in DeskBar.
hrev51365
2017-08-15 10:55:50 +02:00
Adrien Destugues
43d60df2b0 Web+: avoid empty tab title
Use file name, if no title is provided by the page

Fixes #13663
2017-08-15 10:34:35 +02:00
Adrien Destugues
acad802d56 XModem: fix start of CRC transfer
We can send the first block immediately when we receive the "C" for the
first time.
hrev51364
2017-08-15 08:58:19 +02:00
Adrien Destugues
2566b22cd7 Fix Web+ crash if session file is corrupt. hrev51363 2017-08-15 08:55:30 +02:00
Humdinger
ec90bfd866 Re-built Album package
Needed a rebuild due to changes in the locale kit (NumberFormat).
hrev51362
2017-08-14 08:57:04 +02:00
Jérôme Duval
c35666602f libroot: mktemp.c: fix gcc5 warnings. hrev51361 2017-08-13 22:32:39 +02:00
Adrien Destugues
05d9795db3 Add some docs for BLayoutBuilder::Grid. hrev51360 2017-08-13 09:05:29 +02:00
Adrien Destugues
433447be21 WebPositive: hangs when cookie jar is corrupt.
Missing error check led to endless loop trying to extract cookies from
an invalid message. Now the cookie jar is left empty instead.
hrev51359
2017-08-13 08:02:16 +02:00
Jérôme Duval
d784225237 tcp: Subsequent connect() call should return EALREADY.
* should fix #13662.
hrev51358
2017-08-11 15:51:56 +02:00
Wiktor
abb297f5db InterfaceKit: fixed BSpinner's label rendering.
A '&' (reference) was missing on a specific line, causing
font information to never be updated. Also removed extra padding
dependent on a constant variable - if it is used, the label will
be render too far down.
Fixes #12981.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev51357
2017-08-10 20:23:15 +02:00
Philippe Houdoin
22b7e29bc6 libroot: mktemp.c: use rand_r() and set seed only on first call
This avoid to break caller's own srand() and having the same seed
if called twice very quickly.
Thanks david.given for a better fix for #13660.
hrev51356
2017-08-10 10:33:41 +00:00
Automatic Committer
f7052a54cc Update pci.ids from pciids.sourceforge.net hrev51355 2017-08-10 05:20:23 +02:00
Philippe Houdoin
c7a3a80cc6 libroot: make mktemp() more random
... by seeding rand() with process id, user id and current time.
This fix #13660
hrev51354
2017-08-09 19:33:36 +00:00
Jérôme Duval
ed8aae4664 Update haikuwebkit package for x86_64. hrev51353 2017-08-07 22:50:18 +02:00
Philippe Houdoin
9854a9d3d6 virtio_net: set/get actual frame size
works OK under VirtualBox now, but no robustness and performance
tests were made yet.
hrev51352
2017-08-07 18:12:21 +00:00
Adrien Destugues
a911a53fa6 HIG: Fix missing closing tag. hrev51351 2017-08-07 18:05:58 +02:00
Owen
d64c7746c7 Add B_TRANSLATE_MARK_CONTEXT to Catalog.h and tools/CollectingCatalog.h
Fixes #13656

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev51350
2017-08-07 06:55:28 +02:00
Humdinger
7c86c4573f Minor changes to interface guidelines
* Sentence casing for the examples of menus etc.
* Use elipses instead of "..."
* As originally proposed in ticket #5010 [1], we went with removing
  dynamic menu item labels, e.g. "Show grid" <-> "Hide grid" from
  our apps (ProcessController, Magnify, etc.)

 [1] https://dev.haiku-os.org/ticket/5010
hrev51349
2017-08-06 20:25:05 +02:00
Jérôme Duval
e272017e2f Update binutils package for x86. hrev51348 2017-08-06 16:29:10 +02:00
Jérôme Duval
03820c114a Update binutils_x86 and binutils for x86_gcc2 and x86_64.
* starting with 2.27, binutils defaults to initfini-array instead of init and fini,
this leads to problems in Haiku, just disable for the time being.
hrev51347
2017-08-06 14:12:28 +02:00
Philippe Houdoin
2a081b42a9 fifo: revert broken fix hrev51346 2017-08-03 16:53:17 +00:00
Philippe Houdoin
4a531db1f2 networkstatus: test explicit boolean expression 2017-08-03 16:53:17 +00:00
Humdinger
337e3285ab Update CatKeysEditor package for gcc2h
Among other fixes and more translations, there's now an "Import"
feature to merge in another catkeys file.
Handy when the en.catkeys changed and you want to import the translated
catkeys file for the previous version, which already contains the
translations for the strings that haven't changed.
Hmm... hope what I wrote there is decipherable...
hrev51345
2017-08-03 14:49:43 +02:00
Philippe Houdoin
cb7833c724 networkstatus: add no NoLink and LinkNoConfig status
An interface that fail to configure due to link lost will be
reported to have "No Link" instead of to be still "Configuring...",
which was not the actual state.
hrev51344
2017-08-03 14:40:48 +00:00
Philippe Houdoin
65abebfaa7 fifo: wakeup readers not checking POLLHUP/B_SELECT_DISCONNECTED
For readers waiting in select() or simply in read(),
B_SELECT_DISCONNECTED notification didn't wake them anymore.
Now, cascade notifications to be sure to wake them, either
on POLLHUP, POOLERR/B_SELECT_ERROR or, at worst, from read().

See #7859 for details.
hrev51343
2017-08-03 11:48:02 +00:00
Philippe Houdoin
57b87ea9c3 virtio_net: add rx & tx support
Rx see lots of errors, though, but at least DHCP works now and
the interface goes up.
hrev51342
2017-08-03 09:17:46 +00:00
Automatic Committer
ddf853297f Update usb.ids from www.linux-usb.org hrev51341 2017-08-03 05:20:25 +02:00
Jérôme Duval
4d5934a2f7 xhci: handle 64 bytes context structures.
* it shouldn't harm controllers with 32-bytes context size.
hrev51340
2017-08-02 22:45:18 +02:00
Jérôme Duval
6454164d8d Include mesa_swrast on x86_gcc2, mesa_swpipe otherwise. hrev51339 2017-08-02 19:29:54 +02:00
Jérôme Duval
0b18b79ce4 libpackage Jamfile: DoCatalogs rule needs to find sources.
SubInclude should stay at the end.
hrev51338
2017-08-02 18:29:03 +02:00
Murai Takashi
8119ed92ef libpackage Jamfile: Add missing ':'
Signed-off-by: Humdinger <humdingerb@gmail.com>
hrev51337
2017-08-02 14:31:19 +02:00
Humdinger
06b345331b Re-add accidentally removed blank line
Removed in hrev51327, spotted by axeld. Thanks!
hrev51336
2017-08-02 08:56:55 +02:00