summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-02-01 10:45:20 +0000
committerVincent Sanders <vince@kyllikki.org>2014-02-01 10:45:20 +0000
commit1f62b5a980020b0e5df0e68cb476083ba2dc1fe5 (patch)
treee74b757de8b64f2ea53f1916840e58ae105c2d7a /riscos/gui.c
parent356461244e9a31d9c22fab358cdf95cb3f22364f (diff)
downloadnetsurf-1f62b5a980020b0e5df0e68cb476083ba2dc1fe5.tar.gz
netsurf-1f62b5a980020b0e5df0e68cb476083ba2dc1fe5.tar.bz2
make the clipboard operation table and members static to textselection module and cleanup unnecessary includes
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index e862e9345..a5a9c94c2 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -50,7 +50,13 @@
#include "oslib/wimpspriteop.h"
#include "oslib/uri.h"
#include "rufl.h"
+
#include "utils/config.h"
+#include "utils/filename.h"
+#include "utils/log.h"
+#include "utils/messages.h"
+#include "utils/url.h"
+#include "utils/utils.h"
#include "content/content.h"
#include "content/hlcache.h"
#include "content/urldb.h"
@@ -61,6 +67,7 @@
#include "desktop/save_complete.h"
#include "desktop/treeview.h"
#include "render/font.h"
+
#include "riscos/content-handlers/artworks.h"
#include "riscos/bitmap.h"
#include "riscos/buffer.h"
@@ -92,11 +99,6 @@
#include "riscos/wimp_event.h"
#include "riscos/wimputils.h"
#include "riscos/window.h"
-#include "utils/filename.h"
-#include "utils/log.h"
-#include "utils/messages.h"
-#include "utils/url.h"
-#include "utils/utils.h"
@@ -2348,10 +2350,6 @@ static bool path_add_part(char *path, int length, const char *newpart)
return true;
}
-static struct gui_clipboard_table riscos_clipboard_table = {
- .get = gui_get_clipboard,
- .set = gui_set_clipboard,
-};
static struct gui_fetch_table riscos_fetch_table = {
.filename_from_path = filename_from_path,
@@ -2388,7 +2386,7 @@ int main(int argc, char** argv)
struct gui_table riscos_gui_table = {
.browser = &riscos_browser_table,
.window = riscos_window_table,
- .clipboard = &riscos_clipboard_table,
+ .clipboard = riscos_clipboard_table,
.download = riscos_download_table,
.fetch = &riscos_fetch_table,
};