Commit Graph

55350 Commits

Author SHA1 Message Date
John Scipione 5b2aa7f856 ControlLook: style changes only
whitespace
indent fix (tiny)
2016-03-22 12:00:35 -07:00
John Scipione 59e1b2f4ce BMenuField: Change label to panel text color
...instead of menu item text color when the label is unselected.

Menu item text color seems to make sense when the control is unselected
because we use selected menu item text color when the control is
selected, but, this isn't the case. We color the label background using
the menu item color because we are reproducing similar behavior of
BeOS R5. However, when the menu field is unselected the label needs to
draw so that it goes on the panel bg color.
2016-03-22 11:59:15 -07:00
Zoltan Mizsei 846a5b0272 printf's converted to TRACE
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-03-20 18:12:45 +01:00
Humdinger 7bdf408e99 Fixed gphoto2_x86 package
There was a typo in the PROVIDES of the recipe that left the package
un-installable. Thanks vidrep for reporting and Diver for spotting
the issue! Closes #12694.
2016-03-20 17:13:07 +01:00
Rene Gollent 8c524c608d Debugger: Add more information to image list.
ImageListView:
- Add columns for the respective start and end addresses of the text and data
  segments  of each image. Correspondingly, adjust the table model to return
  the appropriate fields from the image's info. This can come in handy for
  quickly determining the approximate location of an otherwise unknown memory
  address, among other things.
2016-03-19 23:13:18 -04:00
Rene Gollent 20122a6a77 LegacyPackageInstaller: Fix x86_64 build. 2016-03-19 16:30:53 -04:00
Rene Gollent b679d8afa0 Debugger: Fix #12693.
DwarfImageDebugInfo:
- When resolving the address of a PIC function that a value was
  returned by, check if the resulting address actually belongs to
  the same image as the caller. If not, find the appropriate image
  for the new address. Combined with the previous commits, this fixes
  the issue that functions called indirectly by PLT entry that jumped
  to another image entirely wouldn't be mapped back to their
  corresponding FunctionDebugInfo instance, and thus would be skipped
  since we  couldn't determine a type to associate the return value with.
2016-03-19 16:30:52 -04:00
Rene Gollent 4f21e03d09 Debugger: Avoid unnecessary work in ThreadHandler.
ThreadHandler:
- When stepping over a function call, ensure that we actually have a valid
  value for the stepped over function address before adding a return value
  info entry. While this had no visible adverse effect, it did result in
  unnecessary work when creating the list of variables to display later,
  since such entries would have no valid function to resolve to, and thus
  had to be ignored/thrown away.
2016-03-19 16:30:50 -04:00
Rene Gollent 06c2f877e6 Debugger: Fix udis86 usage for resolving target address.
DisassemblerX86{64}:
- Fix problematic usage of udis86 that was broken during an update.
  Rather than calling the appropriate udis86 function to retrieve the
  operand, we were accessing it directly on the ud struct, which was
  fully filled in implicitly in previous versions of the library. However,
  in the updated version of udis86, the operands are only lazily decoded on
  request, and as such this data was invalid, leading to us not resolving
  target addresses properly. This primarily affected determining the location
  of return values.
2016-03-19 16:30:49 -04:00
Rene Gollent 6e97df31a0 Debugger: Add team event handling to expression window.
ExpressionEvaluationWindow:
- Add team listener hooks for the various thread state changes.
- Implement these to react accordingly and keep the thread/frame menus
  up to date with running program changes, whether due to user interaction
  in the main team window, or background activities of the debugged app.
  Previously the evaluation window needed to be closed and reopened to
  refresh these appropriately.
2016-03-19 16:30:47 -04:00
Humdinger 26c7e032ec Update gphoto2_x86 and libgphoto2_x86 packages. 2016-03-19 19:00:07 +01:00
autonielx 2d38e8a9cb Update translations from Pootle 2016-03-19 06:44:07 +01:00
John Scipione b001655640 BWindow & WebPostive: Move TextView detection code
... from WebPositive to BWindow. This way every window will detect
Command+Arrows and send them to BTextView if a BTextView has focus
instead of just WebPositive.

https://www.freelists.org/post/haiku-development/Wordwise-jumping-with-CTRL-in-BTextView

This trick doesn't work in Vision though...

Fixes #9913
2016-03-17 17:54:20 -07:00
John Scipione 3c1bde87b6 WebPostive: Tiny style fix
new lines between case statements that don't fall-through

I'm sorry for the noise. I just wanted to get rid of these very old commits.
2016-03-17 16:04:37 -07:00
John Scipione 105a543e3d BWindow: Rename string to bytes 2016-03-17 15:19:45 -07:00
John Scipione 2ab6ca298a BWindow: Style fixes 2016-03-17 15:19:32 -07:00
John Scipione a99b9010f8 BWindow: Reorder includes 2016-03-17 15:18:14 -07:00
Jérôme Duval 1da0fe09b6 Updated gcc4 packages for x86_gcc2. 2016-03-17 19:08:40 +01:00
Jérôme Duval 05d7726e57 Updated x86_gcc2 packages for llvm/clang. 2016-03-16 18:59:38 +01:00
Jérôme Duval f474368c4f Added x86 packages for llvm/clang. 2016-03-16 06:32:46 +01:00
Jérôme Duval 7d7ec782dd Updated x86 packages for llvm/clang. 2016-03-16 06:30:23 +01:00
Julian Harnath 4fab1ac618 ifconfig: add "[-]ht" control option for WLAN devices
* "ht" and "-ht" enable or disable the use of HT mode
  (high throughput, 802.11n) for the wireless network device

* Analogous to the option with the same name in FreeBSD's ifconfig

* Disabling HT before associating with an AP is a workaround for
  connection instability issues encountered with iprowifi4965
  driver
2016-03-15 21:59:03 +01:00
Julian Harnath 310238937c Network Kit: add BNetworkDevice::Control
* Allows to do an arbitrary ioctl on the network device

* For ifreq and ieee80211req requests
2016-03-15 21:59:03 +01:00
François Revol 1e3ca5cef9 libusb_compat: add gcc4 package 2016-03-15 01:01:48 +01:00
John Scipione 53f75ce5d6 BColorControl: Remove fOffscreenView pointer
...and rename fBitmap to fOffscreenBitmap to make it more clear what it is.

We don't need to save a pointer to both the offscreen bitmap and
the offscreen view, just the bitmap. We can access the view by calling
fOffscreenBitmap->ChildAt((int32)0). This gives us back a _reserved private
variable slot.

In the (unlikely) case that _InitData() is called with offscreen = false but
the fOffscreenBitmap is not NULL, delete fOffscreenBitmap before
setting it to NULL so that memory is not leaked.
2016-03-12 19:14:26 -08:00
John Scipione 76b9d53bd0 BColorControl: Rebuild control after mode switch
App Server sends each window a message that the screen has changed:
https://www.haiku-os.org/legacy-docs/bebook/BWindow.html#BWindow_ScreenChanged
Propegate B_SCREEN_CHANGED message to all child views first

Tell BColorControl to read the B_SCREEN_CHANGED message and reinitialize itself.

* Only reinit if switching to or from B_CMAP8
* Initialize all pointers to NULL in constructor
* Don't destroy and rebuild offscreen view (and text views) on reinit
* Reinitialize offscreen view on reinit.

Fixes #8035

Also initialzing the pointers to NULL in constructor fixes #12673
2016-03-12 19:13:35 -08:00
John Scipione 0e3b3f92ef BColorControl: Awesome style fixes 2016-03-12 19:10:58 -08:00
John Scipione c5fe2948ba BColorControl docs: pointer style
(really minor change that doesn't affect output)
2016-03-12 19:10:39 -08:00
John Scipione 8db20d05cb BColorControl: Standardize on useOffscreen
...instead of doubleBuffered for the flag that specifies whether or not to
draw using an offscreen buffer.

Also remove the (not currently used) text from the docs since the parameter
is being used.
2016-03-12 19:10:38 -08:00
Michael Lotz 3108c9bed0 ioapic: Fix 64 bit build with tracing enabled, some cleanup.
* Use print format macros to fix the 64 bit build.
* Correct a typo in the shift of the trigger mode definition. As the
  value is 0 either way, this does not make a functional difference.
* Use macros instead of values in comparisons.
2016-03-12 13:34:01 +01:00
Michael Lotz 91ea4fb48a usb_ecm: Use the current configuration instead of a fixed one.
This allows usb_ecm to work in case it is part of a device using
different configurations for different types of interfaces and ECM is
not the first configuration.
2016-03-12 13:15:49 +01:00
Michael Lotz b62bb24fe4 USB: Force spec mandated control pipe max packet sizes.
While the USB descriptors are specifically built in such a way that it's
always possible to correctly query the max packet size, some devices
unfortunatley use bogus values in their descriptors and rely on the
stack to use the mandated values.

This fixes USB devices in VirtualBox when EHCI emulation is used. This
really is a bug in their descriptor emulation though.
2016-03-12 13:13:04 +01:00
Michael Lotz 3da7be22fb EHCI: Current qtd field in qh overlay has no terminate bit.
Don't initialize the current qtd field with the terminate bit as it does
not exist in this field. While the lower 5 bits are documented as being
ignored anyway, this is more correct. Should cause no functional change.
2016-03-12 13:12:35 +01:00
Michael Lotz ad72f4caed EHCI: Fix alignment check, the mask wasn't wide enough.
As this is only an assert that shouldn't ever be triggered, this doesn't
change anything in normal operation.
2016-03-12 13:12:11 +01:00
Michael Lotz 3648dc8709 EHCI: Style cleanup only, no functional change.
Change < B_OK to != B_OK for status_t results and to < 0 for ids.
2016-03-12 13:11:54 +01:00
autonielx e3338b15f5 Update translations from Pootle 2016-03-12 06:36:41 +01:00
Jérôme Duval d2e9e40cbb Updated x86_64 packages for llvm/clang. 2016-03-11 18:38:55 +01:00
John Scipione 27c801a130 BTabView: Draw right border even if 1 tab
The right border is seen on active tabs giving them a bit of a shadow.
2016-03-10 18:57:38 -08:00
John Scipione a0ea818b3f BTabView: Move first tab over by B_WINDOW_SPACING
BTabView::DrawTabs() got a makeover:
Draw the tab background across the whole view, then draw the tabs,
finally draw the rightmost tab's right border.
2016-03-10 18:14:58 -08:00
John Scipione 31c8f7b193 BTabView: Style fixes 2016-03-10 18:14:40 -08:00
Jérôme Duval cdd8523736 Update openssl packages. 2016-03-10 17:38:34 +01:00
Automatic Committer 5663c4ad12 Update usb.ids from www.linux-usb.org 2016-03-10 05:20:17 +01:00
Augustin Cavalier 9bd7e4014f Tracker: Restore original PoseView/TitleView names except in BFilePanel.
Should've fixed #12635, but it doesn't. No idea why; perhaps
	request.AddSpecifier("Window", "/boot/home/Desktop");
doesn't work anymore?
2016-03-07 18:04:49 -05:00
Augustin Cavalier 80bc632afd BStatusBar: Restore the old blue-ish color from before the Set*Color changes. 2016-03-07 16:08:00 -05:00
Augustin Cavalier 361738c0ad Revert "PackageInstaller: Attempt to fix 64-bit build."
This reverts commit bb4cd92eae.

We probably should change this API before R2.
2016-03-07 15:52:22 -05:00
Augustin Cavalier 6a5f8112cd PackageInstaller: Make it x86(32-bit) only.
So people aren't tempted to make .pkg files for x86_64/ARM/etc, and
because there should be no reason to have it there.

Discussed with PulkoMandy on IRC.
2016-03-07 15:44:44 -05:00
Augustin Cavalier bb4cd92eae PackageInstaller: Attempt to fix 64-bit build. 2016-03-07 15:38:24 -05:00
Augustin Cavalier d3626243b0 PackageInstaller: Fix layout in UninstallView, use BLayoutBuilder. 2016-03-07 15:19:42 -05:00
Augustin Cavalier eaf0a567c5 PackageInstaller: Merge "InstalledPackages" and "PackageInstaller".
Now if you start LegacyPackageInstaller with no filenames passed, you get
the "installed packages" window, from which you can uninstall stuff.

Fixes #10612.
2016-03-07 15:08:58 -05:00
Augustin Cavalier f2df0cfe93 interface_guidelines: Add a Haiku-esque stylesheet.
Fixes #11782.
2016-03-07 14:29:24 -05:00