Commit Graph

57610 Commits

Author SHA1 Message Date
Alexander von Gluck IV
acf75a66d6 3rdparty/kallisti5: Update iommu guide for vfio 2017-09-25 18:37:20 -05:00
Humdinger
65ff9f27e1 Fix sentence-casing in Repositories prefs
Spotted by Diver. Thanks!
2017-09-25 19:39:25 +02:00
Rene Gollent
456342ca99 Debugger: Reimplement #10671.
- Rather than the previous (reverted) approach of tracking the last selected
  stack frame from within the StackTraceView, we now do so from the TeamWindow,
  where the selection can be mapped by thread. This fixes a subtle issue where,
  due to a lack of contextual information, the stack trace view would restore
  the remembered last selected frame rather than an explicitly chosen one. This
  was most noticeable upon selecting a function that had a corresponding stack
  frame in the current stack trace, where, instead of selecting that frame,
  the existing one would remain highlighted, even though the state of all other
  views had updated. Found while investigating the cause of #13710.
2017-09-24 20:23:34 -04:00
Rene Gollent
93f521060e Revert "Debugger: Implement #10671."
This reverts commit 02c7127cb9.
2017-09-24 15:51:41 -04:00
Rene Gollent
e7b5894981 Update FreeBSD case for libsolv build. 2017-09-24 15:32:59 -04:00
Brian Hill
a657e677d9 Notification preflet and server changes
Remove unneeded classes from preflet jamfile
Fix some notification layout and bold text issues
2017-09-24 14:49:25 -04:00
Brian Hill
6aa0587222 Notifications preflet and notification_server
Notifications preflet:
-Use sliders instead of text fields for width and timeout
-Remove icon size choice (mini icon looks horrible)
-Consolidate both "Enable" checkboxes into one
-Fix Revert button, remove Apply button, add Defaults button
-All changes to settings saved immediately
-Live example notification message shown when settings changes are made
-Add setting for individual apps to specify whether their notifications
	should be muted
-Remove history list (to be implemented later)

BNotification class:
-BNotification records the signature and name of application that
	created it
-New functions to get source application signature and name

Notification Server:
-Notification pop up view layout fixes and bold font size fix
-Remove notifications history from AppUsage class (will be saved in
	cache instead)
-Remove vector of NotificationView objects which isn't needed
-Get source application info from notification object, not the received
	message which is not reliable
2017-09-23 11:41:33 -04:00
Adrien Destugues
7cb920e579 Fix crash in 256-color setup parsing
Applications can control the 256-color mode and change the palette. This
was not much used until now, but our terminal is now advertising itself
as xterm-256color. Mutt noticed this, tried to use the escape sequence,
and crashed Terminal here.
2017-09-23 16:46:37 +02:00
Alexander von Gluck IV
1a472d01fd servers/app: html5/remote drawing 64-bit fixes
* Still doesn't seem to work anymore.
* Documentation: TARGET_SCREEN="html5:127.0.0.1:80" DeskCalc
2017-09-23 08:46:12 -05:00
Adrien Destugues
6103c9d186 Fix top border for modal windows.
Patch by "Ben" in #9498.
2017-09-23 09:10:28 +02:00
Adrien Destugues
af960311c0 DiskUsage: ignore files from other volumes
This allows us to get meaningful result for the system volume, which
would otherwise scan both hpkg files, and their whole contents as
mounted in the system/ hierarchy. Now only the packages are seen.
Directories are not ignored, so system/ (which is a different mount
point) will still be browsed, and system/packages (which is a
shine-through) will be found and counted in the used space.
2017-09-23 08:59:18 +02:00
Alexander von Gluck IV
4bcba8a84f radeon_hd: Add missing FirePro, Add vega, cleanup names.
* Vega is 100% untested.
* I think AMD is doing away with the DCE version numbers.
2017-09-22 15:58:49 -05:00
Humdinger
9d30b95ab3 BCalendarView: change visuals for 'today'
Only using the keyboard navigation colour to indicate the current day isn't that
nice in all situations. When using custom system colours, like white on blue
for selected items, it can become barely readable.

Now we
* use bold type face for 'today',
* tint 'today's background (lighten for dark, darken for bright bgColor),
* use B_LIST_SELECTED_BACKGROUND_COLOR and B_LIST_SELECTED_ITEM_TEXT_COLOR
  for the selected day,
* keyboard navigation colour only for the frame and text when doing keyboard
  navigation

Fixes #13714
2017-09-22 18:27:43 +02:00
Jessica Hamilton
916d4f5d75 rust (x86_64): updated with working cargo.
* Note that this is a cross-compiled version from git
  master, so may run into bugs.

ref: https://github.com/haikuports/haikuports/89c999e9e
2017-09-22 03:35:47 +00:00
Automatic Committer
8c02ae937f Update pci.ids from pciids.sourceforge.net 2017-09-21 05:20:28 +02:00
Akshay Agarwal
9dc7875818 Time Preferences: Update CalendarView day name header on locale preferences change.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-09-16 17:45:24 +02:00
Akshay Agarwal
42745b94f8 BDateFormat: Properly map day values to ICU day-of-week.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-09-16 17:42:54 +02:00
autonielx
958b7451be Update translations from Pootle 2017-09-16 06:53:33 +02:00
Jérôme Duval
2976cf85a4 libroot.so: make first parameter of dladdr() const.
This follows up on a mail from 2011:
https://www.freelists.org/post/haiku-development/Changing-dladdr-to-take-const-void-for-first-parameter
2017-09-15 23:09:24 +02:00
John Scipione
938fd26fbb Fix infinite loop bug, take 2
... by calling TBarView::UpdatePlacement() in
TBarWindow::FramedResized() only if the width has changed.

Explanation from take 1:
    TBarWindow::FrameResized() calls TBarView::UpdatePlacement() to
    resize the ExpandoMenuBar, however, UpdatePlacement() as part of its
    work also resizes the window, which calls TBarWindow::FrameResized()
    which in turn calls TBarView::UpdatePlacement() and so on.

    To get out of this mess remove TBarView::UpdatePlacement() from
    TBarWindow::FrameResized() but that leaves ExpandoMenuBar the
    wrong size initially.

    (now call UpdatePlacement() conditionally instead of removing it)

    To fix this call SizeWindow() on AllAttached() which resizes
    ExpandoMenuBar along with the rest of the window, but, just once not in
    an infinite loop. Use AllAttached() rather than AttachedToWindow() so that
    we are assured that ExpandoMenuBar and all of its children have been
    attached thus avoiding the potential for an embarrasing Deskbar crash.

    (we still need to call SizeWindow() on AllAttached())

Fixes #13706
2017-09-14 10:32:46 -07:00
John Scipione
037df92938 Revert "Revert "Deskbar: eliminate infinite loop bug""
This reverts commit 032a3f45f7.
2017-09-14 10:32:46 -07:00
Automatic Committer
d3499f24a7 Update usb.ids from www.linux-usb.org 2017-09-14 05:20:26 +02:00
Rene Gollent
cdf821eb2a Debugger: Fix #13710.
TeamWindow:
- When changing the active function, we would also attempt to select a stack
  frame matching that function. However, in the case where the active function
  was set via changing stack frames, this logic would break if the function was
  recursive, and would cause the topmost frame to be selected instead of one at
  the desired recursion depth.
2017-09-13 21:20:18 -04:00
John Scipione
032a3f45f7 Revert "Deskbar: eliminate infinite loop bug"
This reverts commit 6d7890478b.

Fixed the bug, but, causes another bug, will revisit.
2017-09-13 15:48:24 -07:00
John Scipione
6d7890478b Deskbar: eliminate infinite loop bug
TBarWindow::FrameResized() calls TBarView::UpdatePlacement() to
resize the ExpandoMenuBar, however, UpdatePlacement() as part of its
work also resizes the window, which calls TBarWindow::FrameResized()
which in turn calls TBarView::UpdatePlacement() and so on.

To get out of this mess remove TBarView::UpdatePlacement() from
TBarWindow::FrameResized() but that leaves ExpandoMenuBar the
wrong size initially.

To fix this call SizeWindow() on AllAttached() which resizes
ExpandoMenuBar along with the rest of the window, but, just once not in
an infinite loop. Use AllAttached() rather than AttachedToWindow() so that
we are assured that ExpandoMenuBar and all of its children have been
attached thus avoiding the potential for an embarrasing Deskbar crash.

Fixes #13706
2017-09-13 15:26:02 -07:00
John Scipione
ff8f17e7ef Deskbar: minor style fix
minor whitespace fix in ExpandoMenuBar
2017-09-13 15:25:57 -07:00
Augustin Cavalier
e03db9304f Terminal: Specify ourselves as xterm-256color.
This was originally instated back in 2013, but was reverted then
due to #9636 because most other systems did not yet recognize that
terminal type.

Nowadays, nearly all Linux terminals specify themselves as being
"xterm-256color" by default, so reinstating this should be fine.
2017-09-12 14:36:28 -04:00
Augustin Cavalier
0ed0bc5384 termcap: Update from 2011/02/20 to 2017/08/26.
Note that this reverts a Haiku-specific patch to mark "xterm"
as supporting 256-color mode.
2017-09-12 14:34:42 -04:00
Augustin Cavalier
e736356cfa Revert "tcp: slow start@rfc5681 : updated rules for congestion window"
This reverts commit 05743f6a13
(and the portions of following commits that were layered on top of it.)
2017-09-12 14:10:30 -04:00
Jérôme Duval
ccd42320c4 libroot: add posix_spawn(). 2017-09-12 19:42:57 +02:00
Jérôme Duval
854c63b57b ipro1000: remove ids already declared in if_lem or if_igb.
* should fix #13698.
2017-09-12 18:37:33 +02:00
Jérôme Duval
e53a95baad ipro1000: Revert part of e32c64c113.
driver.c is part of the beos driver.
2017-09-12 17:39:36 +02:00
Alexander von Gluck IV
b82657abfb radeon_hd: Improve tracing; implement older DCE3 DP training.
* Implement older DCE 3 DisplayPort Training Service.
2017-09-12 10:15:59 -05:00
Alexander von Gluck IV
ce1ac42908 radeon_hd: Fix logic bug in transmitter init.
* Don't use any functions requiring knowledge of
  attached displays before they are probed.
* ucDigMode un-needed on INIT action.
2017-09-11 22:24:20 -05:00
Alexander von Gluck IV
e5f5c3c4ce radeon_hd: Cosmetic cleanups. No functional change 2017-09-11 22:24:20 -05:00
John Scipione
00171c6f43 Deskbar: fix a crash holding window over drag area
state: Call (Calling BeginLineArray with a count <= 0)

Thanks diver
2017-09-11 13:48:05 -07:00
John Scipione
e4cb43d506 Deskbar: constrain width setting within limits
... on settings load. This will prevent 0 in the width setting from setting
Deskbar's width to 0.

This should make the Desktop appear again.
2017-09-11 13:35:30 -07:00
John Scipione
378aa08b54 Deskbar: refactor, no functional change
* Split int32 declarations into own lines.
* Merge if and return stmts into single return stmt using ternary operator.
2017-09-11 10:23:25 -07:00
John Scipione
3641948f78 Deskbar: better checking on string comparison
Check if both strings are NULL before passing to strcmp().

It would be bad if view->Name() were NULL and we tried to dereference it.

Thanks Jérôme for noticing this.
2017-09-11 10:18:32 -07:00
Jérôme Duval
9b80d1767a Set the image size for the debug minimum profile to 450MB. 2017-09-11 18:12:53 +02:00
John Scipione
1bb2e6239d Deskbar: variable width Deskbar in vertical mode
Feature to make Deskbar width variable via a dragger.

Resize Deskbar by clicking and dragging the mouse on the
horizontal side of Deskbar opposite the screen's edge.
(left side for default top right).

The resize dragger is hidden in horizontal mode.

Details below:
* ExpandoMenuBar is resized with rest of window.
* Rename where to whereScreen to make it clear that the variable
  is in screen coordinates.
* Lock focus on window while resizing
* Resize via TResizeControl class which is based on TDragRegion
* Set default width to minimum so everything stays the same.
  - don't set the width setting to 0 on quit, use the new setting.
* Set max tray width based on setting
* Make clock area a bit wider preventing replicant icons from
  overrunning the clock area.
* Leave more room left of clock makes replicants wrap earlier,
  leaving icon gap width between replicants and clock. Before it
  would butt flush against the clock before moving down a row.
* Remove FrameMoved from TDragRegion, we are already doing this
  in BarView -- no reason to do it twice.
* Need to redraw the drag region after moving or it will be half
  drawn.
* Hide resize control in horizontal mode
* Add room for resize dragger when placing replicants
* Update width setting unless window is hidden
  - This prevents Deskbar from being set to minimum width after it
    is hidden.

Also, constrain width setting within limits but not width of the
BarView which we want to track the window width. In practice they
should be the same but it is possible for them to get out of sync
and that's okay. Obvious example of the setting and actual width
of the window being out of sync is in the hidden case.

unify dragger width and kDragWidth vars

Make drag regions pixel perfect:
* Vertical mode status tray reduced in height by 1px to match height
  in horizontal mode exactly.
* move icons over by 2px in horizontal mode so that there is a bit more space
  on the left and so that it matches pixel perfect with vertical mode.
  - to see this quickly switch between bottom right vertical at the minimum width
    and horizontal mode then notice how the icons don't move

Draw drag background then menu color when not active to get rid of drawing
glitches in horizontal mode on the top pixel.

Add some more room between last icon and clock in horizontal mode.
2017-09-10 18:33:30 -07:00
John Scipione
a6be6c4d67 Deskbar: Minor functional changes
Use std::min() over min_c in TimeView.cpp
Check for NULL view before dereferencing
Return B_BAD_VALUE for bad inputs
2017-09-10 17:08:48 -07:00
John Scipione
e4d65fe7ae Deskbar: Style fixes to StatusView
Deskbar: Minor style fixes in TimeView.cpp
2017-09-10 17:08:48 -07:00
Jessica Hamilton
9533c3e921 docker: tools for creating a container with Haiku cross-compilers.
* This also includes the package tool for easy use of installing
  dependencies in a container.
* Pre-built docker images are also available at
  https://hub.docker.com/r/haiku/cross-compiler/
2017-09-11 07:06:52 +12:00
Jessica Hamilton
c5e77784a8 compatibility/bsd: add endian.h for BSD extensions. 2017-09-11 07:06:52 +12:00
Jessica Hamilton
f995cdcc5f Revert "endian.h: add BSD extensions when _BSD_SOURCE is defined."
This reverts commit b8cfd96db1.
2017-09-11 07:06:52 +12:00
Augustin Cavalier
bfbb965580 Interface Kit: Remove more non-BControlLook code. 2017-09-10 14:58:35 -04:00
John Scipione
3b9755d72f Webpositive: unset tool tip over tab close button
Tool tip reads tab name or "New tab" for new tab, making it sometimes
appear that the close button would produce a new tab instead. Removing
the tooltip over the close button eliminates this confusion.

An alternative suggested in hrev45298 was to make the tool tip say
"Close tab" instead but some felt it unneccessary and so was reverted.

"A tool-tip for the close buttons is completely unnecessary. The
prevailing thought for items where the action is easy to grasp (or easy to
grasp upon clicking the first time), is that a tool tip is not necessary."

This method fixes the confusion w/o adding uneccessary clutter.
2017-09-09 13:20:37 -07:00
John Scipione
ec7c3ff311 Webpositive: Refactor
... to make variables available in outer scope,
eliminate now redundant nested if and reorder condition
variables to avoid function call in common case.

all prep for next commit...
2017-09-09 13:09:07 -07:00
Jessica Hamilton
b8cfd96db1 endian.h: add BSD extensions when _BSD_SOURCE is defined. 2017-09-10 07:37:32 +12:00