summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-22 18:38:08 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-22 18:38:08 (EDT)
commit42bb81c25713086d541ee999b8b659c324542d6b (patch)
treea24975fa4ae5594b64ff1514caa47e6da70f295f /src
parent49c1fda6ee9059192e3400521ebb13f3e34f7426 (diff)
downloadmarquee-42bb81c25713086d541ee999b8b659c324542d6b.zip
marquee-42bb81c25713086d541ee999b8b659c324542d6b.tar.gz
marquee-42bb81c25713086d541ee999b8b659c324542d6b.tar.bz2
src/tab*.h: Forward declare types
Diffstat (limited to 'src')
-rw-r--r--src/tab-body.h6
-rw-r--r--src/tab-chrome.h6
-rw-r--r--src/tab.h6
3 files changed, 12 insertions, 6 deletions
diff --git a/src/tab-body.h b/src/tab-body.h
index 60d0975..e38f97c 100644
--- a/src/tab-body.h
+++ b/src/tab-body.h
@@ -19,16 +19,18 @@
* along with Marquee. If not, see <http://www.gnu.org/licenses/>.
*/
+typedef struct MqTabBody MqTabBody;
+
#ifndef MQ_TAB_BODY_H
#define MQ_TAB_BODY_H
#include <gtk/gtk.h>
#include <webkit2/webkit2.h>
-typedef struct {
+struct MqTabBody {
GtkWidget *container;
WebKitWebView *web_view;
-} MqTabBody;
+};
MqTabBody *
mq_tab_body_new(gchar *uri);
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index cda67ad..20e086c 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -19,13 +19,15 @@
* along with Marquee. If not, see <http://www.gnu.org/licenses/>.
*/
+typedef struct MqTabChrome MqTabChrome;
+
#ifndef MQ_TAB_CHROME_H
#define MQ_TAB_CHROME_H
#include <gtk/gtk.h>
#include <webkit2/webkit2.h>
-typedef struct {
+struct MqTabChrome {
GtkWidget *container;
GtkWidget *back_forward_box;
GtkWidget *back_button;
@@ -40,7 +42,7 @@ typedef struct {
GtkWidget *back_forward_popover;
gint back_items;
GtkToolItem *menu_button;
-} MqTabChrome;
+};
MqTabChrome *
mq_tab_chrome_new(gchar *uri);
diff --git a/src/tab.h b/src/tab.h
index 38e8828..3166fb9 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -19,6 +19,8 @@
* along with Marquee. If not, see <http://www.gnu.org/licenses/>.
*/
+typedef struct MqTab MqTab;
+
#ifndef MQ_TAB_H
#define MQ_TAB_H
@@ -28,7 +30,7 @@
#include "tab-chrome.h"
#include "tab-body.h"
-typedef struct {
+struct MqTab {
MqApplication *application;
GtkWidget *container;
MqTabChrome *chrome;
@@ -41,7 +43,7 @@ typedef struct {
guint tab_position;
WebKitWebView *web_view;
GtkWidget *popover;
-} MqTab;
+};
MqTab *
mq_tab_new(MqApplication *application, gchar *uri);