summaryrefslogtreecommitdiff
path: root/browser.c
AgeCommit message (Collapse)Author
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.
2014-06-22No URLs specified? Open about:blank!Peter Hofmann
2014-06-21Fix crash when closing a tab that's still loadingPeter Hofmann
Disconnect the handler for "notify::progress" because that signal might get fired after "c" has been free'd which resulted in a reproducible crash.
2014-06-21Warn when the XID from tabbed is 0Peter Hofmann
2014-06-21Always close tabbed's stdout when finished readingPeter Hofmann
2014-06-21Fix some NULL pointersPeter Hofmann
GLib catched these errors but it's wrong nevertheless.
2014-06-19Keep the changed_* scheme for notify::*Peter Hofmann
2014-06-19Code stylePeter Hofmann
2014-06-19Download manager: Show the real file namePeter Hofmann
2014-06-19Use -Wno-unused-parameter instead of void castsPeter Hofmann
2014-06-19Add "toggle view source mode"Peter Hofmann
2014-06-19Move reading _FIFO_SUFFIX to the right placePeter Hofmann
2014-06-19adblock_load(): Fix invalid regexes, support commentsPeter Hofmann
- Invalid regexes are no longer added to the list. - Lines starting with a "#" are ignored.
2014-06-19Shorten some codePeter Hofmann
2014-06-19Small costmetic fixPeter Hofmann
2014-06-19Mouse wheel zoomPeter Hofmann
2014-06-19The FIFO filename can have a suffixPeter Hofmann
This allows for launching lariza like this: $ LARIZA_FIFO_SUFFIX=1 lariza file:///home/void/bookmarks.xhtml And another instance like this: $ LARIZA_FIFO_SUFFIX=2 lariza http://www.startpage.com
2014-06-19Implement keyword based searchingPeter Hofmann
2014-06-19Rework and extend hotkeysPeter Hofmann
hjkl is nice in a terminal, but it poses a problem in GUI programs: If your program is not ENTIRELY controlled via keyboard, your right hand has to reach from the mouse to the keyboard to the mouse to the keyboard... That's nasty. Now, all hotkeys can be hit using your left hand. I also think that using Control as a modifier is uncomfortable. Your pinkie has to do a lot of work and stays in an uncomfortable position. Using Alt/Mod1 feels better. Secondly, there's no need for scrolling hotkeys. This only makes sense if your program has keyboard-only usage. I can scroll using the mouse (plus, I have screen barriers to support this). Furthermore, there's a hotkey now that enters search mode and hotkeys to create or destroy windows/tabs. I also differentiate between single-handed hotkeys and dual-handed hotkeys. When you enter the location bar or search mode, you are going to begin typing -- thus, your right hand MUST move from the mouse to the keyboard. As a result, it doesn't make sense to make these hotkeys reachable using only your left hand. Mod1+l to enter the location bar is totally fine and so is Mod1+k for searching. Of course, it's more comfortable if you can also close the download manager using Mod1+q. Reloading is useful as well and I NEVER want to have "reload WITH using the cache" (major annoyance of other browsers). To sum it up, your left hand can stay relaxed over q, w, e, d.
2014-06-19Close the adblock file handlePeter Hofmann
2014-06-19Download ManagerPeter Hofmann
Hit ^D to open it. According to sloccount, we have reached 731 lines of code now.
2014-06-19GUI tweaksPeter Hofmann
2014-06-19An indicator that shows when a download has startedPeter Hofmann
2014-06-18Sort "struct Client"Peter Hofmann
2014-06-18Kick the lousy status barPeter Hofmann
- It didn't show the load progress. - It destroyed the browser's usability. When there's a horizontal scroll bar, it MUST be placed at the bottom of the screen. There MUST NOT be any widget below it.
2014-06-17Built-in download featurePeter Hofmann
Downloading via an external tool poses a problem: You have to pass the current "web context" from the browser to your tool. This context comprises cookies, the referrer, the user agent and information about HTTP basic auth. With some effort, you can pass most of this to your tool -- except for HTTP basic auth. tl;dr: Downloading via wget is pretty complicated. With this commit, WebKit handles the downloads. What's missing, are some GUI elements to monitor and cancel downloads.
2014-06-17Fix and enhance creation/destruction of tabsPeter Hofmann
Websites can now open or close tabs/windows if requested by the user. - We must not destroy the window in its destroy handler. - WebKit's "new-window-policy-decision-requested" is totally irrelevant. - Handle WebKit's "create-web-view" by allocating a new window and an "empty" WebView. - Handle WebKit's "close-web-view" by destroying the window, which will call client_destroy(), which will do exactly the same as closing the window manually.
2014-06-16Nitpicking: ht_uri is a gchar *Peter Hofmann
2014-06-16Fix missing URI in ^GPeter Hofmann
2014-06-16Also log the URI that the user actually requestedPeter Hofmann
2014-06-15Code style: Fix whitespace and a wrapPeter Hofmann
2014-06-15Shorten grab_environment_configuration()Peter Hofmann
2014-06-15Full content zoom is buggy... -_-Peter Hofmann
2014-06-15Revert "Catch button-release-events, feels more natural"Peter Hofmann
This reverts commit 26713eb349b4c8b7d2fb22a5973e898ea43e1b7f. It's a break between lariza and tabbed -- the latter responds to button-press-events.