summaryrefslogtreecommitdiff
path: root/frontends/gtk/cookies.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-07-25 21:55:03 +0100
committerVincent Sanders <vince@kyllikki.org>2016-07-25 21:59:17 +0100
commit2d41d6c933cec1a0660bc71aaa115b41dcfdfbed (patch)
treea6f8091e9742b0a9672ac2be44d505e460440aed /frontends/gtk/cookies.h
parent0c7649d030d980755d9659574214f104368fc6a0 (diff)
downloadnetsurf-2d41d6c933cec1a0660bc71aaa115b41dcfdfbed.tar.gz
netsurf-2d41d6c933cec1a0660bc71aaa115b41dcfdfbed.tar.bz2
cleanup gtk cookie interface
use gtk_window_present instead of gdk_window_raise and reduce exposed variables and interfaces.
Diffstat (limited to 'frontends/gtk/cookies.h')
-rw-r--r--frontends/gtk/cookies.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/frontends/gtk/cookies.h b/frontends/gtk/cookies.h
index 2d5c56d52..2af05e154 100644
--- a/frontends/gtk/cookies.h
+++ b/frontends/gtk/cookies.h
@@ -23,15 +23,19 @@
#ifndef __NSGTK_COOKIES_H__
#define __NSGTK_COOKIES_H__
-extern GtkWindow *wndCookies;
-
/**
- * Creates the window for the cookies tree.
+ * make the cookie window visible.
*
* \return NSERROR_OK on success else appropriate error code on faliure.
*/
-nserror nsgtk_cookies_init(void);
+nserror nsgtk_cookies_present(void);
+/**
+ * Free any resources allocated for the cookie window.
+ *
+ * \return NSERROR_OK on success else appropriate error code on faliure.
+ */
void nsgtk_cookies_destroy(void);
+
#endif /* __NSGTK_COOKIES_H__ */