logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: a59a8246ef335ece888c8f5183133fb428c6933a
parent 1f82848e4aca29abd70dd8f248d922c5f9268e11
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 11 Apr 2019 01:48:15 +0200

badwolf.c: Fix function statements

Diffstat:

Mbadwolf.c15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -36,6 +36,7 @@ static gboolean WebViewCb_web_process_terminated(WebKitWebView *webView, WebKitWebProcessTerminationReason reason); static gboolean WebViewCb_notify__uri(WebKitWebView *webView, GParamSpec *pspec, gpointer user_data); +GtkWidget *badwolf_new_tab_box(const gchar *title, struct Client *browser); static gboolean WebViewCb_notify__title(WebKitWebView *webView, GParamSpec *pspec, gpointer user_data); static gboolean @@ -48,7 +49,7 @@ static gboolean WebViewCb_mouse_target_changed(WebKitWebView *webView, WebKitHitTestResult *hit, guint modifiers, gpointer user_data); -static WebKitWebView *WebViewCb_create(WebKitWebView *webView, +static WebKitWebView *WebViewCb_create(WebKitWebView *related_web_view, WebKitNavigationAction *navigation_action, gpointer user_data); static gboolean locationCb_activate(GtkEntry *location, gpointer user_data); @@ -59,12 +60,12 @@ static gboolean SearchEntryCb_search__changed(GtkSearchEntry *search, gpointer u static gboolean SearchEntryCb_stop__search(GtkSearchEntry *search, gpointer user_data); struct Client * new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web_view); -void new_tabCb_clicked(GtkButton *new_tab, gpointer user_data); -void closeCb_clicked(GtkButton *close, gpointer user_data); int badwolf_new_tab(GtkNotebook *notebook, struct Client *browser); -GtkWidget *badwolf_new_tab_box(const gchar *title, struct Client *browser); +static void new_tabCb_clicked(GtkButton *new_tab, gpointer user_data); +static void closeCb_clicked(GtkButton *close, gpointer user_data); +static void +notebookCb_switch__page(GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer user_data); gint get_tab_position(GtkContainer *notebook, GtkWidget *child); -int main(int argc, char *argv[]); static gboolean WebViewCb_close(WebKitWebView *webView, gpointer user_data) @@ -455,7 +456,7 @@ badwolf_new_tab(GtkNotebook *notebook, struct Client *browser) return 0; } -void +static void new_tabCb_clicked(GtkButton *new_tab, gpointer user_data) { (void)new_tab; @@ -465,7 +466,7 @@ new_tabCb_clicked(GtkButton *new_tab, gpointer user_data) badwolf_new_tab(GTK_NOTEBOOK(window->notebook), browser); } -void +static void closeCb_clicked(GtkButton *close, gpointer user_data) { (void)close;