summaryrefslogtreecommitdiff
path: root/browser.c
AgeCommit message (Collapse)Author
2017-01-27Change search prefix to ":/"Peter Hofmann
I want to change ensure_uri_scheme() so it automatically adds "file://" if we're dealing with a valid local file path. However, this clashes with "/" as a search prefix. CC #27.
2017-01-27Add launching of an external script for selected URLsPeter Hofmann
2016-12-14Clip return value of webkit_download_get_estimated_progress() to [0, 1]Peter Hofmann
Closes #23.
2016-11-16Remove call to gtk_window_set_wmclass()Peter Hofmann
2016-07-30Look for web extensions in ~/.config/lariza/web_extensionsPeter Hofmann
~/.local/share isn't really an appropriate place because it's meant to contain "data", possibly written by the application. Usually, lariza's web extensions (.so files) are not placed in your home directory anyway. Instead, they are installed somewhere in /usr. The home directory only contains symlinks. So, in a way, those symlinks can be considered "configuration items". Hence, ~/.config is where they should live.
2016-06-14Remove size request for the progress barPeter Hofmann
I'm not comfortable with having pixel values in here. The 100px were mostly personal taste. HiDPI screens might not be happy with 100px anyway.
2016-06-14Get rid of Gtk warningPeter Hofmann
Fixes this: (lariza:675): Gtk-WARNING **: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node block, owner GtkLevelBar) Funny enough, even without calling gtk_level_bar_set_value(), I get this warning. Almost feels like a Gtk bug? Closes #20.
2016-03-19Add new control binding for history browsing - Fix #16Étienne Deparis
Edited to retain Mod1+* and just add F2/F3.
2016-01-04Don't set empty string as window titlePeter Hofmann
2015-12-06"Keypad enter" now registers as "commit"Peter Hofmann
Closes #14.
2015-12-06Strip G_DIR_SEPARATOR from local file namesPeter Hofmann
Closes #15.
2015-11-28Remove $LARIZA_WEB_EXTENSIONS_DIRPeter Hofmann
For the sake of consistency. There is no reason why this particular directory can be configured at runtime.
2015-08-29RetabPeter Hofmann
For years, I've been using a tab size of 4. This, however, conflicts with the idea of limiting the line length: You can only limit the line length in a meaningful way if you're using the default tab size of 8. But 8 is a huge waste of space... So let's just do this. Retab to 4 spaces and limit the line length to about 80 characters.
2015-08-29No need for a GtkScrolledWindowPeter Hofmann
2015-08-29GtkBox: Don't manually specify a paddingPeter Hofmann
This might look good on my display, but on a display with a different DPI value, it's probably garbage. Specifying space in pixels is meaningless today. Yes, this applies to the level bar and the window size as well. I have not yet found a better way to control those, though.
2015-05-02Bring back gtk_window_set_default_size()Peter Hofmann
I always use a tiling WM, so I never noticed that, when lariza is floating, the window is unusably tiny and you always have to resize it first.
2015-05-02Fix "-C": Don't listen on FIFOPeter Hofmann
"-C" was kind of broken. It only prevented lariza from writing to the FIFO which "worked fine" as long as you only had one "-C" instance running.
2015-01-19Change default download directory to /var/tmpPeter Hofmann
Why? See #13. This commit closes #13.
2015-01-05Kick usage() since it's only used in one placePeter Hofmann
2015-01-05Implement a simple certificate trust storePeter Hofmann
The WebKit1 version of lariza simply ignored certificate errors. I could have turned off validation in WebKit2 as well, but I wanted to try to do it right. :-) Closes #12.
2015-01-01Automatically recover from WebKit crashesPeter Hofmann
2014-12-14Show the download manager when a download startsPeter Hofmann
This is kind of a quickfix as well (related to #10). I'll have to use this for a while to see if I'm happy with it.
2014-12-14Quickfix for crashes when downloads startPeter Hofmann
Every new window added download_handle_start() as a signal handler to the global WebKitWebContext. This is wrong anway, because the signal handler sets the destination path; this should not be done multiple times. The actual crash happened when a window was closed and *then* a download started. The window's signal handler still existed with a pointer to the window's "struct Client". This struct, however, is now free'd and invalid. Hence the crash. To get rid of the crashes, only add the signal handler once. Sad thing is, this makes the "status" level bar useless: It would only work for the very first window ever created -- if it still existed. If that window has been closed as well, we would still crash. Thus, remove "status" completely. We'll have to find a new way to announce the start of a download. Closes #10.
2014-11-30Tell WebKit where to look for web extensionsPeter Hofmann
2014-11-09Improve mouse wheel zoom and update READMEPeter Hofmann
2014-11-09Fix interactive mouse wheel zoom (GTK+ 3)Peter Hofmann
2014-11-09Remove remaining stuff about "view source mode"Peter Hofmann
2014-11-09Fix deprecation warning about gtk_scrolled_window_add_with_viewport()Peter Hofmann
2014-11-09Fix deprecation warning about stock IDsPeter Hofmann
2014-11-09Remove obsolete comment: Full content zoom is always enabled nowPeter Hofmann
... because it's WebKit2's default.
2014-11-09Prettify accepted_languagePeter Hofmann
2014-11-09"-r" is useless without the adblock hookPeter Hofmann
2014-11-09Reactivate $LARIZA_USER_AGENT and use WebKit's defaultPeter Hofmann
2014-11-09Port searching for text to WebKit2Peter Hofmann
2014-11-09Port opening of new tabs to WebKit2Peter Hofmann
2014-11-09Completely remove adblock for nowPeter Hofmann
With WebKit2, adblock is no longer a trivial task. It must be realized as a "web extension" in WebKit2. See, for example: http://blogs.igalia.com/carlosgc/2013/09/10/webkit2gtk-web-process-extensions/ We need to connect to the "send-request" signal and stop the request from being sent in the first place.
2014-11-09Port downloads to WebKit2Peter Hofmann
2014-11-08Port the most basic stuff to WebKit2Peter Hofmann
2014-11-08Port to GTK+ 3 firstPeter Hofmann
2014-08-09Code style: Allow more than 80 chars to avoid uglinessPeter Hofmann
Plus, my "80 characters" only work with 4-spaced-tabs anyway. I might rethink that.
2014-08-09Show size of downloads in megabytePeter Hofmann
MB is good enough, I don't care about byte, kilobyte, megabyte, gigabyte, ... Yes, SI units.
2014-08-09Minor improvement to changed_download_progress()Peter Hofmann
I checked WebKit's source code: webkit_download_get_destination_uri() never returns NULL in lariza. It's because we set the destination URI in the signal handler for the download request. If g_filename_from_uri() really returned NULL for some reason, then it'd be just plain wrong to announce the "suggested file name", because we might be saving the download ... somewhere else. I doubt this function ever returns NULL in lariza, though, but you never know. So, now, the download manager will correctly show the URI if the destination URI is "unknown".
2014-07-26User Agent: s/UPPERCASE/CAPITALIZED/Peter Hofmann
CC #6.
2014-07-26Steal surf's user agentPeter Hofmann
Ugly hackaround. Closes #6, though.
2014-07-24Fix loading of keywordsPeter Hofmann
CC #5.
2014-07-24Always free "tokens" in keywords_load()Peter Hofmann
Closes #5.
2014-07-10Introduce $LARIZA_HOME_URIPeter Hofmann
As suggested by @okraits in #2.
2014-07-04Mod1 + d closes the download managerPeter Hofmann
While Mod1 + q is consistent with the main window, it also poses the risk of accidentally closing the main window. With Mod1 + d it's more like a "toggle the download manager".
2014-06-22Fix a very important typoPeter Hofmann
2014-06-22Only talk about URIsPeter Hofmann
Let's stick to WebKit's and GNOME's terminology.