summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-10-14 23:10:09 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-10-14 23:10:09 +0100
commit1fd2e1effafb3ddf45d5a42624e137958776ac70 (patch)
treea9b2ce640fe527215174a092b171fe6bc3dd5324 /amiga
parentb7c9b5706403c7e5e9a999b6e91a2aa969a47c4d (diff)
downloadnetsurf-1fd2e1effafb3ddf45d5a42624e137958776ac70.tar.gz
netsurf-1fd2e1effafb3ddf45d5a42624e137958776ac70.tar.bz2
Add ARexx commands HOTLIST OPEN and HOTLIST CLOSE
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/arexx.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/amiga/arexx.c b/amiga/arexx.c
index 06e82acfa..c3279ad3d 100755
--- a/amiga/arexx.c
+++ b/amiga/arexx.c
@@ -21,8 +21,9 @@
#include "amiga/arexx.h"
#include "amiga/download.h"
#include "amiga/gui.h"
-#include "desktop/options.h"
+#include "amiga/hotlist.h"
#include "amiga/theme.h"
+#include "desktop/options.h"
#include "desktop/browser_private.h"
@@ -58,7 +59,8 @@ enum
RX_RELOAD,
RX_WINDOWS,
RX_ACTIVE,
- RX_CLOSE
+ RX_CLOSE,
+ RX_HOTLIST
};
STATIC char result[100];
@@ -78,6 +80,7 @@ STATIC VOID rx_reload(struct ARexxCmd *, struct RexxMsg *);
STATIC VOID rx_windows(struct ARexxCmd *, struct RexxMsg *);
STATIC VOID rx_active(struct ARexxCmd *, struct RexxMsg *);
STATIC VOID rx_close(struct ARexxCmd *, struct RexxMsg *);
+STATIC VOID rx_hotlist(struct ARexxCmd *, struct RexxMsg *);
STATIC struct ARexxCmd Commands[] =
{
@@ -96,6 +99,7 @@ STATIC struct ARexxCmd Commands[] =
{"WINDOWS", RX_WINDOWS, rx_windows, "W=WINDOW/K/N", 0, NULL, 0, 0, NULL },
{"ACTIVE", RX_ACTIVE, rx_active, "T=TAB/S", 0, NULL, 0, 0, NULL },
{"CLOSE", RX_CLOSE, rx_close, "W=WINDOW/K/N,T=TAB/K/N", 0, NULL, 0, 0, NULL },
+ {"HOTLIST", RX_HOTLIST, rx_hotlist, "A=ACTION/A", 0, NULL, 0, 0, NULL },
{ NULL, 0, NULL, NULL, 0, NULL, 0, 0, NULL }
};
@@ -572,3 +576,14 @@ STATIC VOID rx_close(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((un
if(bw) browser_window_destroy(bw);
}
+
+STATIC VOID rx_hotlist(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unused)))
+{
+ cmd->ac_RC = 0;
+
+ if(strcasecmp((char *)cmd->ac_ArgList[0], "OPEN") == 0) {
+ ami_tree_open(hotlist_window, AMI_TREE_HOTLIST);
+ } else if(strcasecmp((char *)cmd->ac_ArgList[0], "CLOSE") == 0) {
+ ami_tree_close(hotlist_window);
+ }
+}