forked from KolibriOS/kolibrios
Changes: - Added `search_engine` variable to `WebView.c` - Modified `EventSeachWeb()` to use configurable search engine - Added `LoadIniConfig( )` for `search_engine` in `settings.h` - Updated `app.ini` with default **Wiby** and alternatives (**Bing**, **DuckDuckGo**) - Added menu tab and hotkey for opening `app.ini` Co-authored-by: Burer <burer@kolibrios.org> Reviewed-on: KolibriOS/kolibrios#420 Reviewed-by: Burer <burer@noreply.localhost> Reviewed-by: Ivan B <dunkaist@noreply.localhost> Co-authored-by: jaskaran-singh-77 <jassijatt951@gmail.com> Co-committed-by: jaskaran-singh-77 <jassijatt951@gmail.com>
10 lines
300 B
C
10 lines
300 B
C
_ini ini;
|
|
|
|
void LoadIniConfig()
|
|
{
|
|
ini.path = GetIni(#settings_file, "app.ini");
|
|
ini.section = "WebView";
|
|
|
|
ini.GetString("proxy_address", #proxy_address, sizeof(proxy_address), NULL);
|
|
ini.GetString("search_engine", #search_engine, sizeof(search_engine), "http://bing.com/search?q=");
|
|
} |