summaryrefslogtreecommitdiff
path: root/browser.c
AgeCommit message (Collapse)Author
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.
2014-06-15Don't fiddle with __NAME__ at runtimePeter Hofmann
2014-06-15User configuration using environment variablesPeter Hofmann
I think of these options (language, download dir, zoom) as user settings. The user does not change them all the time. He sets them once and for all in his shell rc. "-e" and friends, however, are considered runtime settings. "THIS TIME, I want my browser to debug all requests!"
2014-06-15Launch new tabbed windows relative to the current positionPeter Hofmann
2014-06-15Catch button-release-events, feels more naturalPeter Hofmann
2014-06-15Better ensure_http_prefix() -> ensure_url_scheme()Peter Hofmann
2014-06-15ensure_http_prefix knows about file://Peter Hofmann
2014-06-15Use ensure_http_prefix() in client_new()Peter Hofmann
2014-06-15Auto-add "http://" when typed in location barPeter Hofmann
2014-06-15Re-show URI in location bar on EscapePeter Hofmann
2014-06-15Open new windows on middle clickPeter Hofmann
2014-06-15Simplify key_web_view()Peter Hofmann
2014-06-15Support back/forward keys on micePeter Hofmann
2014-06-15Refactor: Declare variables at the beginning of functionsPeter Hofmann
2014-06-15Set WM_CLASSPeter Hofmann
2014-06-15Refactoring: Group and unify identifiersPeter Hofmann