summaryrefslogtreecommitdiff
path: root/amiga/gui.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-31 17:58:27 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-31 17:58:27 +0000
commitcd0bcc421a2ae5a4bf64f4e21c92a0004ef7ece8 (patch)
tree95c40cb2c6907de7eae5b3507e77c69d1c9c104d /amiga/gui.h
parentcc0abb66b092f2198e1931ee6921fe79da4ed94d (diff)
downloadnetsurf-cd0bcc421a2ae5a4bf64f4e21c92a0004ef7ece8.tar.gz
netsurf-cd0bcc421a2ae5a4bf64f4e21c92a0004ef7ece8.tar.bz2
Add an option to close inactive tabs to the tab bar context menu
Diffstat (limited to 'amiga/gui.h')
-rw-r--r--amiga/gui.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/amiga/gui.h b/amiga/gui.h
index 38eee52bf..92ede2a45 100644
--- a/amiga/gui.h
+++ b/amiga/gui.h
@@ -169,7 +169,6 @@ struct gui_window
};
void ami_get_msg(void);
-void ami_close_all_tabs(struct gui_window_2 *gwin);
void ami_try_quit(void);
void ami_quit_netsurf(void);
void ami_schedule_redraw(struct gui_window_2 *gwin, bool full_redraw);
@@ -189,6 +188,21 @@ char *ami_gui_get_cache_favicon_name(nsurl *url, bool only_if_avail);
int ami_gui_count_windows(int window, int *tabs);
void ami_gui_set_scale(struct gui_window *gw, float scale);
+
+/**
+ * Close a window and all tabs attached to it.
+ *
+ * @param gwin gui_window_2 to act upon.
+ */
+void ami_gui_close_window(struct gui_window_2 *gwin);
+
+/**
+ * Close all tabs in a window except the active one.
+ *
+ * @param gwin gui_window_2 to act upon.
+ */
+void ami_gui_close_inactive_tabs(struct gui_window_2 *gwin);
+
/**
* Compatibility function to get space.gadget render area.
*