Commit Graph

42136 Commits

Author SHA1 Message Date
Alexander von Gluck IV
3e0b63a489 glteapot: Fix missing Mesa dependency 2012-04-08 21:13:53 +00:00
Alexander von Gluck IV
dc68ff8627 haiku3d: Fix missing Mesa dependency 2012-04-08 21:12:01 +00:00
Alexander von Gluck IV
05779cd9e3 glife: Enhance controls
* Re-organize controls to fit small ScreenSaver window
* Add life delay factor slider
* Make control labels more dynamic
* Style cleanup
2012-04-08 00:38:58 -05:00
Alexander von Gluck IV
c81caff900 glife: Redesign control layout
* Use BGroupLayoutBuilder vs static BRect's
2012-04-08 00:38:55 -05:00
Alexander von Gluck IV
09e2df87ba glife: Style cleanup
* BScreenSaver control view cleanup
* Style cleanup some variable names
2012-04-08 00:38:53 -05:00
Alexander von Gluck IV
4b66f476de glife: Style cleanup. Spaces. No functional change. 2012-04-08 00:38:50 -05:00
Alexander von Gluck IV
f6dff25576 glife: Style cleanup. Class var names. No functional change. 2012-04-08 00:38:48 -05:00
Alexander von Gluck IV
cfe5c09adf glife: Ensure viewport isn't null.
* Ensure we don't dereference a null pointer.
* Fixes GLife crash
2012-04-08 00:38:46 -05:00
John Scipione
d0a4932863 Fix a few more bugs in Deskbar, find a new one too.
Hiding in horizontal mode was leaving behind a white bar because the
window was getting hidden but the view not resized. Now fixed.

Moved simple state and member access function implementations from
BarView.cpp to BarView.h. Always use the local variable in BarView.cpp
to avoid a function call.

Rename Expando() to ExpandoState() and add FullState() and MiniState()
methods to BarView.h.

Call just PlaceApplicationBar() in vertical expando mode when resizing
icons. Call the full UpdatePlacement() in horizontal mode because I need
to update the height of the status tray when icons resize. Do not call
any method in MiniState because the icons will get resized when the
menu gets opened later.

The new bug I found is a little subtle. If you hide the clock by right
clicking on the clock and selecting Hide clock then quit deskbar with
'hey Deskbar QUIT' and restart Deskbar with 'Deskbar' the Show seconds
checkbox in the preference is disabled correctly, however, right clicking
Show Clock doesn't undisable the checkbox so you can no longer hide
seconds anymore. I'll fix this in a bit.
2012-04-07 23:37:33 -04:00
John Scipione
8ff49ae316 Use != B_OK, not < B_OK to indicate an error.
Apparently error codes are allowed to be positive.
2012-04-07 21:32:44 -04:00
John Scipione
c7bb0d08da Fix the rest of the settings 2012-04-07 21:23:39 -04:00
John Scipione
e73a037077 Fixes a bug in Deskbar not using default icon size
My recent changes to Deskbar to support different icon sizes
checks your settings file for an icon size setting and resizes
to that. Unfortunately if your existing settings file doesn't
have that setting it sets the icon size to 0. I followed the example
of other integer settings when I wrote the code, unfortunately
they were broken too so I copied an error. I have fixed that setting
and a couple others to use the reset back to default if the setting
is not found in your settings file.
2012-04-07 21:01:57 -04:00
John Scipione
363a49a64e Fix memory leak and an optimization in Deskbar
When resizing Deskbar icons, delete the icon bitmap before rebuilding
it with a new icon, was leaking the bitmap.

For several actions including:
 - Sorting running apps
 - Setting Tracker first
 - Showing/hiding application expander
 - Expanding new applications
 - Resizing icons
 - Hiding and showing application names

It is not necessary to rebuild all of Deskbar, just rebuild the
application bar. Should also help but not complete fix Ticket #532.
2012-04-07 20:37:38 -04:00
Rene Gollent
3da13b8038 Fix typeahead cancellation in file panels.
- Add accessor to PoseView that reports whether the view is currently
  typeahead filtering.
- Use said accessor in the file panel's filter in order to detect whether
  to tell the latter to cancel filtering vs closing the panel.

Fixes #8140.
2012-04-07 20:20:39 -04:00
Oliver Tappe
eb78be9b27 Fix 8172: Time preflet being too slow to start.
* looking at the profile info kindly supplied by diver hinted at
  getting the timezones for each country individually being part of the
  problem, using BLocaleRoster::GetAvailableTimeZonesWithRegionInfo()
  helps considerably
* further improve the situation by only requesting the localized display
  name of a timezone when it is actually needed (i.e. when there are
  more than a single timezone in the current country)
Testing with VMware on my slowest machine, this brings down the start
time of the Time preflet from 5 seconds to 1.5 seconds.
2012-04-07 20:51:43 +02:00
Oliver Tappe
635df64352 Add BLocaleRoster::GetAvailableTimeZonesWithRegionInfo()
* allow locale kit clients to get all timezones with their corresponding
  country/region ID piecemeal
2012-04-07 20:51:43 +02:00
Pawel Dziepak
3c1afd351d Fix #8420: NetFS does not compile with DEBUG
Debug macros like PRINT, ERROR, etc. are defined differently in NetFS
and UserlandFS. In NetFS they use single parentheses while in UserlandFS
double parentheses are required. Somehow this got mixed up in NetFS and
there were both styles of calling these macros what caused the incorrect
one to produce compilation errors.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-04-07 19:10:52 +02:00
Niels Sascha Reedijk
0c38373fff Update translations from Pootle 2012-04-07 16:39:25 +02:00
Pawel Dziepak
96944cbb3c Fix #4125: NULL device is translated to '//'
The problem appeared to be on the request creating side (i.e. in the
kernel add-on) which did not support NULL pointers properly.

Relocation of addresses in request when it is received translates
offset = 0, size = 0 to pointer NULL so that no change in that part
of code was required.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-04-07 15:57:53 +02:00
John Scipione
7c369a4b3f Fix gcc2 build on Mac OS X Lion.
The gcc2 cross-compiler built on Mac OS X Lion has a bug in it
where it is erroring with 'cast specifies signature type' when
assigning 0 or NULL to a pointer to a member fuction. NULL in this
instance is correctly converted to 0 since it is illegal to assign
((void*)0) to a pointer to a member function. However, it should
be legal to assign 0 to a pointer to a member function. Thus, there
is a bug.  Since I can't fix the gcc2 compiler I am working around
this bug by assigning the pointer to a do nothing function instead.

My host compiler version is
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)

The same error occurs using the default gcc-llvm compiler and
a standard gcc 4.61 built from source. This bug does not occur on
Mac OS X 10.6 gcc2 or gcc4, nor does it occur on Mac OS X 10.7 with
the gcc4 cross-compiler.

If and when we decide to finally leave gcc2 behind we can revert this
change.
2012-04-07 06:21:26 -04:00
Alexander von Gluck IV
7d0f6bd08c Merge branch 'glife' 2012-04-06 20:11:27 -05:00
Alexander von Gluck IV
8bc51bee4c glife: Initial style cleanup 2012-04-06 20:04:26 -05:00
Alexander von Gluck IV
3c94b5cb05 glife: Rename *.hpp to *.h 2012-04-06 19:43:48 -05:00
Alexander von Gluck IV
9339eb2063 glife: Enable in Jamfiles / build system 2012-04-06 19:31:58 -05:00
Alexander von Gluck IV
51f9263bf2 glife: Pass const char* for name vs char*
* Upgrades to Mesa vs Be BGLView
2012-04-06 19:30:39 -05:00
Alexander von Gluck IV
0b4c5624c6 screen_savers: Initial import of GLife
* Donated to Haiku by author (Aaron Hill) under
  the MIT license.
* Resources conveted to rdef
* Headers cleaned up
* Jamfile created
2012-04-06 19:18:50 -05:00
John Scipione
3ea5972eb5 Style fix. Take out 3 sets of unneeded curly braces. 2012-04-06 19:58:59 -04:00
John Scipione
e6874452d0 Revert change to TimeView.cpp regarding
updating the tooltip. I committed it accidentally.
2012-04-06 19:55:35 -04:00
John Scipione
2ce9bab873 Fisher Price Deskbar icon support
Implements the feature described in #7132
Also fixes #2387 (menu items too big in horizontal mode when font size > 12)

Adds a slider to Deskbar preferences which allows you to resize your Deskbar
team icons from 16x16 to 96x96. The default is 16x16. This works both in vertical
and horizontal mode.

In vertical mode when icon sizes are greater than 32x32 the label moves
underneath the icon where there is more room. In horizontal mode the width of
the menu item increases to make room for the icon while keeping room for the
label the same. As many applications are added the labels are truncated as usual.

This patch also adds a checkbox to the Deskbar preferences to hide application
names to make more room for icons if you wish. It doesn't make a lot of sense
at 16x16 but does >32x32.

If the kResizeTeamIcons message gets dropped, don't resize to current value,
just do nothing. This fixes a bug where sometimes the slider wouldn't trigger
a resize. Fix a spelling error in a comment. Take out a redundant paren pair.
2012-04-06 19:16:50 -04:00
Alexander von Gluck IV
ece8e7a857 radeon_hd: Fix pll DisplayPort endian bug. 2012-04-06 10:30:50 -05:00
John Scipione
6c09d41ccf Clean up comment a bit, meant to do this in last push
There was a trailing space at the end of the line.
2012-04-06 16:59:44 -04:00
John Scipione
f7b9606639 Patch by ahenriksson to fix a computation bug in Deskcalc
Ticket #8389 Signed off by John Scipione

When trimming trailing 0's to make the number fit in the window,
make sure to only trim trailing 0's AFTER the decimal point, not before.
2012-04-06 16:54:46 -04:00
Alexander von Gluck IV
9e4967aa9d dp common: Build Fix, use get_pixel_size_for.
* Thanks DeadYak for the tip
2012-04-06 15:11:33 -05:00
Alexander von Gluck IV
19574417cb radeon_hd: Better handle external encoders 2012-04-06 14:54:34 -05:00
Alexander von Gluck IV
0de9d6cdef radeon_hd: Move out some DisplayPort common code
* General DisplayPort functions in common dp.cpp
* DP port information struct in common header
* Please don't use this private accelerant common DP
  code just yet as it is very early.
2012-04-06 13:43:09 -05:00
Alexander von Gluck IV
33629ffdd3 radeon_hd: Add some missing PCIID's. FireStream / HD 7800 2012-04-06 10:49:43 -05:00
Oliver Tappe
6d2186615f Fix access to system catalog strings.
* fix regression introduced in hrev43950:
  HashMapCatalog::GetString() didn't return the non-translated
  string in case there was no translation found, which e.g.
  caused AboutWindows to trigger a debugger message about the
  alert not having any buttons.
Thanks to diver for the hint.
2012-04-06 13:54:50 +02:00
John Scipione
3cee15aac2 Keymap changes from recent activity. No AltGr yet.
Below is a mostly complete summary of the changes in this commit.

* Set the DeadKeys for the US-International Keymap to use the Option map.
* Rename American keymap to US
* Update the US, US-International, and United-Kingdom keymaps to take
  out unneeded spaces in the option layer. Also updated the dead keys
  and some other keys on the US-International keyboard to use UTF-8
  characters rather than there ASCII equivalents when different.
* Make the Option key fall-through when there is no mapping in the Option
  table. Option is for special characters, if none, print the regular one.
  This is mostly meant for the US keymap which has an empty option map. But
  also so that you don't have to repeat the normal, shift, and caps maps in
  the option map needlessly. Although the keymaps are still not empty in
  some cases that it could be like numpad keys and space.
* Update the /bin/keymap app to use fputs() instead of printf() when there
  is no actual formatting taking place. I've gotten into trouble for doing
  this before and it is faster to not process the string unnecessarily.
* Also several 80-char limit style fixes and updated comments.
* In Keymap class Reorder the modifier keys to match the keymap files.
  Put B_CONTROL_KEY check above B_OPTION_KEY. Neither change has any effect,
  they are purely aesthetic.
* Update DumpKeymap() method to use the abbreviated modifier letters so it
  will fit in your 80-char wide terminal.
* Tiny style fix in InputServer
* 80-char limit style fix in BWindow and add a comment that the shortcut
  gets eaten in the case of Cmd+Q
* Implement IndexForModifier() in KeyboardLayout, although I am not using it.
* Take Caps Lock out of the Modifier keys window because I couldn't get
  it to work the way I wanted it to.
* Move key roles to the left column, and the key label on the left. Add column
  header labels. Thanks Rimas!
* Add validation and improve marking menu options. Add a 'Disabled' option
  to control, option, and command menus to disable the key. Make the key
  role text grey if the key roles is disabled. Validation ensures that you
  cannot repeat the same key twice in the Modifier keys window since that
  won't work. You can't define 2 sets of option keys even if you really want
  to. You can disable your control, option, and command keys if you
  want, but that is not recommended.
* Rename kUpdateModifiers to kUpdateModifierKeys message to differetiate
  it from kUpdateModifier.
* Add shift key to Modifier keys window, use the stop icon instead of the
  warning icon to indicate conflicts.
* Allow the Layout system to control the size of the Modifier keys window
  again, set the width's of the key role lables to the widest, set the width
  of the menu fields to take up the rest of the space minus room for the
  conflict views. I didn't like it that the Modifier keys window would change
  size based on what options you had selected in the menu fields. Now it
  doesn't, but, the layout system still makes it all fit.
2012-04-06 02:42:54 -04:00
Ingo Weinhold
c83bde410a switch_sem_etc(): Unbreak the actual switch case
The scheduler lock was still being held when release_sem_etc() was
called. The bug was introduced in
24df65921b. Fixes #8448.
2012-04-05 17:35:59 +02:00
Alex Smith
81eb68f280 Fixed a compilation failure for the x86_64 toolchain.
This appears to be a problem with GCC's build system: it defaults to having
multilib enabled, but if it is explicitly enabled with --enable-multilib,
the build fails.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-04-05 13:15:24 +02:00
Hamish Morrison
43e7b1c2b0 Fix dladdr behaviour
* If dladdr can't find an exact match, it returns the nearest symbol
  less than the given address.
* If no suitable symbol can be found, but the address is within a
  loaded library, dladdr returns the library name and base address.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-04-05 12:32:31 +02:00
Matt Madia
71cfb0c8d0 Updated BeZillaBrowser. Built on hrev43937. Fixes #8417. 2012-04-04 18:46:49 +00:00
Oliver Tappe
84c93bfba0 Attempt at #1586 (queries not being case-insensitive for umlauts):
* adjust corresponding query predicate to use BUnicodeChar instead
  of ctype-functions

Alas, this does not help as of now, since BUnicodeChar is missing
support for any codepoints above 0x9f ...
2012-04-04 22:54:08 +02:00
Oliver Tappe
60f75e901c Merge liblocale.so into libbe.so.
* Make the locale kit a part of libbe.
* Drop the LocaleBackend kludge used from within libbe (and from
  other places, too) in order to access system catalog strings. 
  This is now done via gSystemCatalog, which is provided and initialized
  by libbe.
* Drop all references to liblocale.so from all Jamfiles.
* Add legacy symlink liblocale.so in order to keep optional packages
  that rely on it in a working state.

TODO: the documentation hasn't been updated.
2012-04-04 22:44:42 +02:00
Ingo Weinhold
06114afc50 userlandfs: Remove superfluous driver_settings.c
It probably dates back to a time before our libroot exported the driver
settings API as well.
2012-04-04 21:53:00 +02:00
Jérôme Duval
bc11edcdb5 wpa_supplicant: updated to 0.7.3 2012-04-03
* compiles against updated FreeBSD compat layer headers.
2012-04-04 19:40:55 +02:00
Alexander von Gluck IV
bf70fcd9cc radeon_hd: Add missing 4650 PCIID 2012-04-04 12:06:52 -05:00
Alexander von Gluck IV
8dfc5dbb26 radeon_hd: Complete move to common DisplayPort header
* Non-spec DP stuff in accelerant displayport.h
* Common DisplayPort header still has TODO's however
2012-04-04 10:41:34 -05:00
Alexander von Gluck IV
43c6828704 NetworkStatus: Simplify state change notification code 2012-04-03 22:41:10 -05:00
Alexander von Gluck IV
608826f578 swrast: Remove fNewWidth/fNewHeight 2012-04-03 12:15:38 -05:00