summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-22 15:12:10 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-22 15:12:10 +0000
commita3c00c71922f258f2a4a7129dfa51eb1a2838e4e (patch)
treef6282fc680f914af4a3e0074900b033667979eb6 /beos
parent8445bc166bbebc4bf0abc90a8878eae7e1c4258b (diff)
downloadnetsurf-a3c00c71922f258f2a4a7129dfa51eb1a2838e4e.tar.gz
netsurf-a3c00c71922f258f2a4a7129dfa51eb1a2838e4e.tar.bz2
Fixup for core selection change.
Diffstat (limited to 'beos')
-rw-r--r--beos/gui.cpp2
-rw-r--r--beos/gui.h2
-rw-r--r--beos/scaffolding.cpp6
3 files changed, 4 insertions, 6 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp
index a5833365a..ff9b92dda 100644
--- a/beos/gui.cpp
+++ b/beos/gui.cpp
@@ -728,7 +728,7 @@ gui_window_save_link(struct gui_window *g, const char *url, const char *title)
* Send the source of a content to a text editor.
*/
-void nsbeos_gui_view_source(struct hlcache_handle *content, struct selection *selection)
+void nsbeos_gui_view_source(struct hlcache_handle *content)
{
char *temp_name;
bool done = false;
diff --git a/beos/gui.h b/beos/gui.h
index 6f158ca2f..b9d66320c 100644
--- a/beos/gui.h
+++ b/beos/gui.h
@@ -60,7 +60,7 @@ extern BFilePanel *wndOpenFile;
void nsbeos_pipe_message(BMessage *message, BView *_this, struct gui_window *gui);
void nsbeos_pipe_message_top(BMessage *message, BWindow *_this, struct beos_scaffolding *scaffold);
-void nsbeos_gui_view_source(struct hlcache_handle *content, struct selection *selection);
+void nsbeos_gui_view_source(struct hlcache_handle *content);
image_id nsbeos_find_app_path(char *path);
void nsbeos_update_system_ui_colors(void);
diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp
index da83d5898..873c9e870 100644
--- a/beos/scaffolding.cpp
+++ b/beos/scaffolding.cpp
@@ -57,7 +57,6 @@ extern "C" {
#include "desktop/netsurf.h"
#include "desktop/plotters.h"
#include "desktop/options.h"
-#include "desktop/selection.h"
#include "desktop/textinput.h"
#include "render/font.h"
#include "render/form.h"
@@ -743,7 +742,7 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m
break;
case B_SELECT_ALL:
LOG(("Selecting all text"));
- selection_select_all(browser_window_get_selection(bw));
+ browser_window_key_press(bw, KEY_SELECT_ALL);
break;
case B_NETPOSITIVE_BACK:
case BROWSER_NAVIGATE_BACK:
@@ -923,8 +922,7 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m
{
if (!bw || !bw->current_content)
break;
- nsbeos_gui_view_source(bw->current_content,
- browser_window_get_selection(bw));
+ nsbeos_gui_view_source(bw->current_content);
break;
}
case BROWSER_OBJECT: