summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2014-01-16 18:12:41 +0100
committerFran├žois Revol <revol@free.fr>2014-01-16 18:12:41 +0100
commitc74bf433c3357935a150ccc617d593eb1f673194 (patch)
tree825a2014550e09babca6d61f00cb646cfb9c3a65 /beos
parent90742e6b4bb39b8821c08c95022fcdbee9e81557 (diff)
downloadnetsurf-c74bf433c3357935a150ccc617d593eb1f673194.tar.gz
netsurf-c74bf433c3357935a150ccc617d593eb1f673194.tar.bz2
beos: Fix updating system colors
Diffstat (limited to 'beos')
-rw-r--r--beos/gui.cpp10
-rw-r--r--beos/scaffolding.cpp3
-rw-r--r--beos/window.cpp3
3 files changed, 9 insertions, 7 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp
index 9e730a0c8..feac53a29 100644
--- a/beos/gui.cpp
+++ b/beos/gui.cpp
@@ -128,6 +128,7 @@ NSBrowserApplication::MessageReceived(BMessage *message)
{
switch (message->what) {
case B_REFS_RECEIVED:
+ case B_UI_SETTINGS_CHANGED:
// messages for top-level
// we'll just send them to the first window
case 'back':
@@ -468,6 +469,11 @@ static nserror set_defaults(struct nsoption_s *defaults)
return NSERROR_OK;
}
+void nsbeos_update_system_ui_colors(void)
+{
+ set_defaults(nsoptions);
+}
+
/**
* Ensures output logging stream is correctly configured
*/
@@ -511,9 +517,7 @@ static void gui_init(int argc, char** argv)
return;
}
- // ui_color() gives hardcoded values before BApplication is created.
- //FIXME:
- //nsbeos_update_system_ui_colors();
+ nsbeos_update_system_ui_colors();
fetch_rsrc_register();
diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp
index aede7aec4..c673f19a5 100644
--- a/beos/scaffolding.cpp
+++ b/beos/scaffolding.cpp
@@ -929,8 +929,7 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m
break;
}
case B_UI_SETTINGS_CHANGED:
- //FIXME:
- //nsbeos_update_system_ui_colors();
+ nsbeos_update_system_ui_colors();
nsbeos_scaffolding_update_colors(scaffold);
break;
case B_NETPOSITIVE_OPEN_URL:
diff --git a/beos/window.cpp b/beos/window.cpp
index 5863c06ae..0040a1d0c 100644
--- a/beos/window.cpp
+++ b/beos/window.cpp
@@ -643,8 +643,7 @@ void nsbeos_dispatch_event(BMessage *message)
case B_MOUSE_WHEEL_CHANGED:
break;
case B_UI_SETTINGS_CHANGED:
- //FIXME:
- //nsbeos_update_system_ui_colors();
+ nsbeos_update_system_ui_colors();
break;
case 'nsLO': // login
{