From 6e3d9752e7faa0c83adc7a5021a951a94690f56d Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Sun, 7 Sep 2003 03:17:33 +0000 Subject: [PATCH] Implemented a couple more functions git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4521 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Globals.cpp | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/src/kits/interface/Globals.cpp b/src/kits/interface/Globals.cpp index 48637ffce1..02f02eb880 100644 --- a/src/kits/interface/Globals.cpp +++ b/src/kits/interface/Globals.cpp @@ -32,6 +32,7 @@ #include #include #include +#include // Private definitions not placed in public headers @@ -64,31 +65,17 @@ set_screen_space(int32 index, uint32 res, bool stick) } -_IMPEXP_BE status_t -get_scroll_bar_info(scroll_bar_info *info) -{ - PortMessage pmsg; - - BAppServerLink link; - link.SetOpCode(AS_GET_SCROLLBAR_INFO); - link.FlushWithReply(&pmsg); - - pmsg.Read(info, sizeof(scroll_bar_info)); - - //TODO: Read back the status from the app_server's reply - return B_OK; -} - - _IMPEXP_BE status_t set_scroll_bar_info(scroll_bar_info *info) { BAppServerLink link; + PortMessage msg; link.SetOpCode(AS_SET_SCROLLBAR_INFO); link.Attach(info, sizeof(scroll_bar_info)); - link.Flush(); + link.FlushWithReply(&msg); //TODO: Read back the status from the app_server's reply + msg.Read(info,sizeof(scroll_bar_info)); return B_OK; } @@ -334,7 +321,7 @@ _IMPEXP_BE void run_select_printer_panel() { // Launches the Printer prefs app via the Roster - // TODO: Implement + be_roster->Launch("application/x-vnd.Be-PRNT"); }