From 42bb81c25713086d541ee999b8b659c324542d6b Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 22 Sep 2017 18:38:08 -0400 Subject: src/tab*.h: Forward declare types --- (limited to 'src') 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 . */ +typedef struct MqTabBody MqTabBody; + #ifndef MQ_TAB_BODY_H #define MQ_TAB_BODY_H #include #include -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 . */ +typedef struct MqTabChrome MqTabChrome; + #ifndef MQ_TAB_CHROME_H #define MQ_TAB_CHROME_H #include #include -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 . */ +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); -- cgit v0.9.1