Commit Graph

56150 Commits

Author SHA1 Message Date
Adrien Destugues
32afcc5cc5 Style fix in Locale Kit headers.
As pointed out by Axel, the wrong style was used in these headers we
inherited from OpenTracker days.
2016-09-27 19:34:52 +02:00
Adrien Destugues
a95053ddb7 TextEncoding: Style fixes to header.
As pointed out by Axel.
2016-09-27 07:20:47 +02:00
Sergei Reznikov
766191919d Added stub for get_nth_pci_info.
BeRometer works now.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

This is a private API, but some apps used it anyway. We don't need a
complete implementation to at least make BeRoMeter run.

Fixes #5146.
2016-09-26 21:44:21 +02:00
Pete Goodeve
999c255ac5 fix for older Wacom tablet
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

This spent enough years waiting on the bugtracker for someone willing to
test it. The style looks mostly ok, so let's have it in trunk and see if
it breaks someone's tablet.

The patch restores the older behavior found in early versions of the
driver published for BeOS. It does so only for the "intuos" tablets, so
newer devices won't be affected.

ticket : #4847
2016-09-26 20:33:59 +02:00
Adrien Destugues
08e5249142 TextEncoding: add Encode/Decode methods.
This replaces convert_from/to_utf8 in a way that doesn't leak memory.

Use the new method in StyledEdit.

Fixes #6252, #3065.
2016-09-25 23:16:19 +02:00
Adrien Destugues
fbb725bbdc Add text encoding detection to the Locale Kit.
As usual we ask ICU to do the actual work. The TextEncoding constructor
is fed with a sample of the text to identify (ICU docs recommend a few
hundred bytes). The text is analyzed in various ways (bytes patterns
such as UTF-8 escaping schemes, common letter sequences from known
languages, byte order marks) and an encoding is determined.

Replace code in StyledEdit by this new implementation.

Note that ICU seems to always return some valid encoding, even with fed
with obviously non-text data. This makes StyledEdit open the files no
matter what, where it would error out before.

Fixes #9395.
2016-09-25 18:50:29 +02:00
Adrien Destugues
aec3e63ed1 Revert "LegacyPackageInstaller: Override fPathType when the path begins with /boot/."
This reverts commit 8cf0752f1b.
This reverts commit af3057423c.

This change fixed one package, and broke everything else. Please find a
proper fix and actually test it before committing.

Fixes #12909
2016-09-25 18:49:30 +02:00
Adrien Destugues
09bb8269ac Tracker: localize RegExp errors.
These were left out because the same RegExp.cpp file is also used by
collectcatkeys. This needed some jam file changes to get collectcatkeys
to build on both the host and target.

Fixes the last remaining part of #6374.
2016-09-25 15:10:12 +02:00
Adrien Destugues
ccb55f969c Tracker: localize query templates.
Tracker can create query templates when they don't exist yet. This was
done with an hardcoded archive of BColumns for the pose view, which did
not allow for an easy way to replace the strings. Now the archive is
created on the fly when the function is run, which makes it possible to
build it with localized strings (and in the system's endianness, which
will make it load faster).

Based on patch by mt, but with a lot of rework.

Fixes part of #6374.
2016-09-25 13:20:18 +02:00
Adrien Destugues
29089fe2e8 Workspaces: style fixes
As pointed out by Axel.
2016-09-25 11:20:32 +02:00
Adrien Destugues
43caca9680 Workspaces: fix the auto-raise functionality
- Remove hardcoded decorator border size, and get it from the system.
- Move the window at the right place when using the "zoom" button
  (if the auto-raise setting is enabled).
- Make the auto-raise work even when the mouse is above the window
  borders, not the active area. This works similarly to LaunchBox
  auto-raise feature.

fixes #8188, #8194.

Manual rework of patches by Daniel Devine which were never merged and
didn't apply cleanly anymore.
2016-09-24 23:18:42 +02:00
Stefano Ceccherini
fa3f84b78c MediaSettings: Don't change the active soundfont
if the user clicked on empty space
2016-09-24 22:06:52 +02:00
Stefano Ceccherini
873a8ad914 MediaPreferences: midi: added a BStringView with the currently active soundfont 2016-09-24 20:36:02 +02:00
X512
806ccfda6c Remove replicant handle from input_server; remove obsolete comment
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #8531.

Anyone remembers why a replicant dragger was added there on the first
place?
2016-09-24 20:18:12 +02:00
Automatic Committer
867e22bd8f Update pci.ids from pciids.sourceforge.net 2016-09-22 05:20:22 +02:00
Alexander von Gluck IV
bccc693277 BeDecorator: Reintroduce to image 2016-09-18 14:44:18 -05:00
Alexander von Gluck IV
d60b3b1b98 BeDecorator: Fix build post S&T 2016-09-18 14:38:43 -05:00
Humdinger
9a828bfeb8 Updated mail provider info for gmx.de
Activated SSL encrption for POP3 and changed server name for SMTP to
mail.gmx.net. The first change is vital to get it to work, the latter
seems to be only cosmetic.

I still get a "503 Bad sequence of commands" when sending a mail, but
it is sent nonetheless. See ticket: #12960.
2016-09-18 10:48:10 +02:00
Murai Takashi
c90d3c9d9f Revert 64-bit fixes for input_server.
This patch reverts http://cgit.haiku-os.org/haiku/diff/?id=57ab0395ad31761e27ef6d5aa3af68cc3e4d71b2
It may fix #661. Thanks to kcg369 for pointing it out.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

The initial issue was the storage of a pointer in an int32 for
input method cookies. This was fixed in two ways:

- The int32 was initally replaced with a void*, which allowed to store a
  complete pointer, but changed the format of the BMessages used for
  communication, breaking Canna.
- Then, the code was changed to not use a pointer and instead use an
  int32 for the cookie (see #8831). However, the int32 was still cast
  into a void* when putting it into a BMessage, so the problem was still
  there for Canna.

This commit reverts the remaining parts of the initial solution and
restores the ABI to use int32 everywhere.

Fixes #661.
2016-09-17 19:35:32 +02:00
Humdinger
f8c5cdace0 Use new Device_NAS vector icon for shared volumes
...and remove old bitmap icons.
2016-09-17 18:24:44 +02:00
Adrien Destugues
3c08adef21 Add architecture to prompt when in getarch context.
Fixes #10687.
2016-09-17 18:06:41 +02:00
Murai Takashi
a1de0f035b pci-header.awk: remove unused variable.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #12919
2016-09-17 18:06:41 +02:00
Humdinger
4d67c6d9cf Update Einsteinium package. 2016-09-17 14:20:14 +02:00
Gabriel Maia
1bf0271fa0 DiskProbe: select Find window text
Select the text to find as the Find window is opened.
This makes the behavior more consistent with other apps.
Fixes the main subject of #10844.

Also removes trailing whitespace.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2016-09-17 11:33:54 +02:00
Adrien Destugues
ed1b81b72b Boot loader VFS: fix string termination error.
The code was resetting the pointer to NULL, instead of setting the
pointed char to null-terminate the string. The result was resolving the
current directory later on, instead of the parent as requested.

This only happened when calling open_from with O_CREAT, and a name with
sub-directories inside it. The boot loader never does that, so the code
wasn't used until now.

Fixes #12941.

Thanks to mt for spotting the problem.
2016-09-17 11:15:00 +02:00
Humdinger
99750e3182 Added icon for NAS device 2016-09-16 18:03:38 +02:00
Automatic Committer
f9273defca Update pci.ids from pciids.sourceforge.net 2016-09-15 05:20:19 +02:00
Rene Gollent
b65adbdfbc Debugger: Fix #12940.
- Add new interface TeamFunctionSourceInformation. Currently this
  exposes a single function allowing one to query for the currently
  active source code given a FunctionDebugInfo instance.
- Implement TeamFunctionSourceInformation on TeamDebugInfo.
- Pass TeamFunctionSourceInformation to Dwarf{Team,Image}DebugInfo.
  In turn, make use of it in DwarfImageDebugInfo::GetStatement() in
  order to determine whether to return the corresponding assembly
  or source statement.

With this piece of information, the debugger is now correctly able to
determine that the user is currently looking at disassembly despite debug
info being available, and consequently adjust its stepping behavior based on
that. Previously, the source code statement was always used, leading to it
not being possible to single step assembly lines in such a circumstance
without manually using run to cursor.

Other related cleanups:
- TeamDebugInfo now inherits BReferenceable directly, rather than relying on
  indirectly inheriting it from TeamTypeInformation.
- Remove BReferenceable from TeamTypeInformation. The latter is only an
  interface anyways, and inheriting that base class from multiple locations
  was causing GCC5 trouble when resolving BReference<TeamDebugInfo>, even
  when virtual inheritance was used.
2016-09-13 22:14:10 -04:00
Automatic Committer
7079e52233 Update usb.ids from www.linux-usb.org 2016-09-08 05:20:26 +02:00
Automatic Committer
f540a0fc86 Update pci.ids from pciids.sourceforge.net 2016-09-08 05:20:24 +02:00
Dario Casalinuovo
ac8ca41623 Fix StreamerPlugin reference counting
* BReferenceable deleted itself when the latest
reference was released causing a double free.
* The code now avoid to call the function when
we are about to delete the object.
2016-09-07 20:42:43 +02:00
Dario Casalinuovo
3ff901ac71 http_streamer: Fix different issues
* Cleanup object management.
* Remove Close() and use the destructor in place.
* Release listener sem on exit.
* Return when there's a request mismatch.
* Add some debugging.
* MediaPlayer crashes are fixed as result of the patchset.
2016-09-07 18:30:34 +02:00
Dario Casalinuovo
e3f2079964 AdapterIO: Remove unuseful Close() 2016-09-07 18:21:13 +02:00
Dario Casalinuovo
79bd3b4837 StreamerPlugin: Add reference count
* Keep the Streamer around until everyone released it.
2016-09-07 18:19:10 +02:00
Dario Casalinuovo
95a5e62515 MediaFile: Correctly delete the source on exit
* The delete flag of BUrl constructors was reset by _Init,
this lead to a zombie thread on the background under certain
conditions.
2016-09-07 18:02:34 +02:00
Gabriel Maia
c6b4e47a50 Screenshot: create destination folder if it doesn't exist
This ensures the artwork folder is created if it doesn't exist,
fixing the remainder of #10928.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2016-09-07 07:15:31 +02:00
Rene Gollent
584fd9619c libdebugger: Fix #12944.
LocatableFile:
- If there is no parent path, don't insert a path separator between parent
  and filename. This may be the case depending on how the source file was
  specified during compilation.

FileManager:
- When constructing an EntryPath from a LocatableEntry, ensure that the
  parent folder actually has a path string that isn't simply empty to ensure
  consistency with the raw dir/file case. Otherwise, hash lookups that are
  dependent on the parent dir being NULL if not specified will fail, causing
  us to not locate the file successfully. This was preventing us from updating
  source location information for make 4.2's main.c, as the latter was
  specified in such a way that the above combination of conditions would
  occur, and consequently when asking the FileManager to update the source
  location with the actual file, the entry couldn't be found in the table,
  and no information would be updated.
2016-09-06 22:56:52 -04:00
John Scipione
ed99a95f35 Tracker: Add list view menu to virtual directory window 2016-09-03 12:06:45 -07:00
John Scipione
8fdd2629eb Tracker: 32x32 icon size option in list mode
16x16 is same old default
32x32 is new and fun

Adjust start offset to depend on icon size

Remove the kColumnStart variable and instead use StartOffset()
method which calculates the column start offset based on the icon
size. When you switch between icon sizes in list mode recalculate
the first column width to make room for the icon or more text.

Add some padding to list height in large icon mode.
2016-09-03 12:06:44 -07:00
John Scipione
41b9b4ad9d Tracker: Remove some left behind code
A couple of lines of code were left behind in a previous
refactor. Code just checked some list items.
2016-09-02 22:01:08 -07:00
John Scipione
b339ee18c5 Tracker: Make mini mode default for list mode
but if you are in icon mode (like Desktop) use large icons instead.

This change will be important going forwards.
2016-09-02 21:59:49 -07:00
John Scipione
ee20ff95a4 Tracker: Style fixes
More style fixes
2016-09-02 21:02:06 -07:00
Humdinger
bb5847906b Updated rdesktop package
Old one wasn't installable because of outdated libcrypto dependence.
2016-09-02 17:01:11 +02:00
Automatic Committer
a8b89fbd8a Update pci.ids from pciids.sourceforge.net 2016-09-01 05:20:21 +02:00
John Scipione
8f3b807d64 A few more PRI macro substitutions
Tested on x86_64 build thanks to jessicah.

Should fix x86_64 build.
2016-08-30 16:54:03 -07:00
John Scipione
22fa1929e0 Use appropriate format macros in ERROR macro
(hopefully fixing x86_64 build)
2016-08-30 15:43:23 -07:00
John Scipione
5cf9407148 Revert "Tracker: Add some zoom padding in list mode"
This reverts commit f76147aa9a.
2016-08-30 13:40:48 -07:00
John Scipione
27c911e8bb Revert "Tracker: Add zoom padding in list mode take 2"
This reverts commit 7d009616aa.
2016-08-30 13:40:35 -07:00
Kacper Kasper
020362191a PowerStatus: Show extended info window on middle button click.
* Fixes #7473.
* Minor style cleanup.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2016-08-28 10:50:22 +02:00
Adrien Destugues
915ff0f535 intel_extreme: fix a warning on 64bit platform. 2016-08-27 09:38:06 +02:00