commit: 208d2976c977f1e81da1907657e496a841ae8662
parent: 920e97bd6f070862d31982c0481598194ffc8197
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 17 May 2019 11:43:51 +0200
new_browser(): Add comments on each signal_connect section
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/badwolf.c b/badwolf.c
@@ -616,10 +616,13 @@ new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web
gtk_entry_set_placeholder_text(GTK_ENTRY(browser->search), _("search in current page"));
gtk_entry_set_has_frame(GTK_ENTRY(browser->search), FALSE);
+ /* signals for location entry widget */
g_signal_connect(browser->location, "activate", G_CALLBACK(locationCb_activate), browser);
+ /* signals for javacript toggle widget */
g_signal_connect(browser->javascript, "toggled", G_CALLBACK(javascriptCb_toggled), browser);
+ /* signals for WebView widget */
g_signal_connect(browser->webView,
"web-process-terminated",
G_CALLBACK(WebViewCb_web_process_terminated),
@@ -654,6 +657,7 @@ new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web
browser->search, "search-changed", G_CALLBACK(SearchEntryCb_search__changed), browser);
g_signal_connect(browser->search, "stop-search", G_CALLBACK(SearchEntryCb_stop__search), browser);
+ /* signals for box container */
g_signal_connect(browser->box, "key-press-event", G_CALLBACK(boxCb_key_press_event), browser);
if(related_web_view == NULL) webkit_web_view_load_uri(browser->webView, target_url);