diff options
| author | Arslaan Pathan <[email protected]> | 2026-04-04 23:47:14 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-04-04 23:47:14 +1300 |
| commit | 0f67af239a91ca8aa3d45e1e9ec4650daaf5a0cb (patch) | |
| tree | 3026ac92adbcc24a3666ba3d659884714b23b2a8 /main.c | |
| parent | 4d10b7dbc74fe607e6ec0dadc2d4dd12bd8f9db6 (diff) | |
| download | cinnamon-browser-0f67af239a91ca8aa3d45e1e9ec4650daaf5a0cb.tar.xz cinnamon-browser-0f67af239a91ca8aa3d45e1e9ec4650daaf5a0cb.zip | |
useragent
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
