aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-04-04 23:47:14 +1300
committerArslaan Pathan <[email protected]>2026-04-04 23:47:14 +1300
commit0f67af239a91ca8aa3d45e1e9ec4650daaf5a0cb (patch)
tree3026ac92adbcc24a3666ba3d659884714b23b2a8 /main.c
parent4d10b7dbc74fe607e6ec0dadc2d4dd12bd8f9db6 (diff)
downloadcinnamon-browser-0f67af239a91ca8aa3d45e1e9ec4650daaf5a0cb.tar.xz
cinnamon-browser-0f67af239a91ca8aa3d45e1e9ec4650daaf5a0cb.zip
useragent
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 55432ab..c8268ee 100644
--- a/main.c
+++ b/main.c
@@ -145,7 +145,8 @@ void tabopen(Cinnamon* cinnamon) {
GtkWidget *webview = webkit_web_view_new();
gtk_notebook_append_page(GTK_NOTEBOOK(cinnamon->notebook), webview, gtk_label_new("New Tab"));
g_signal_connect(webview, "notify::title", G_CALLBACK(on_title_changed), cinnamon->notebook);
- /* HOMEPAGE defined in config.h */
+ /* HOMEPAGE and USERAGENT defined in config.h */
+ webkit_web_view_set_settings(WEBKIT_WEB_VIEW(webview), g_object_new(WEBKIT_TYPE_SETTINGS, "user-agent", USERAGENT, NULL));
webkit_web_view_load_uri(WEBKIT_WEB_VIEW(webview), HOMEPAGE);
gtk_widget_show_all(cinnamon->notebook);
gtk_notebook_set_current_page(GTK_NOTEBOOK(cinnamon->notebook), -1);