about summary refs log tree commit diff stats
path: root/xombrero.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a show_scrollbars option to disable showing of scrollbars. EnableJosh Rickmar2012-07-111-1/+32
| | | | | (keep current behavior) for gui_mode = normal, and disable for gui_mode = minimal. Requires GTK3.
* Use a DNPRINTF debugging macro for mutex warnings instead of show_oops.Josh Rickmar2012-07-111-2/+2
|
* Remove xterm_workaround as this has been fixed upstream, and make yJosh Rickmar2012-07-111-78/+21
| | | | | | and p work with CLIPBOARD in addition to PRIMARY. Yanking copies to both, and pasting tries PRIMARY first, and if empty, reads from CLIPBOARD. This should make y/p/P work on windows.
* Ran into a segfault, not 100% sure but this might provide a fix.Josh Rickmar2012-07-101-1/+2
|
* Support building again with ancient libsoup versions.Josh Rickmar2012-07-101-1/+1
|
* Kill the pixel border around show_oops. The changes in xombrero.cJosh Rickmar2012-07-101-3/+1
| | | | | give each t->vbox the "vbox" name, which is then used to style .entry classes that are direct descendants.
* Enable GTK3 as default on FreeBSD and Linux, and make attempts toJosh Rickmar2012-07-101-10/+15
| | | | | | improve coloring when using other invasive GTK3 themes. The URI bar should now be colored correctly, unless explicitly overridden in a user theme.
* Add for support for, and enable GTK3 as default.Josh Rickmar2012-07-091-28/+211
| | | | | | GTK2 is still supported. To build against GTK2, use: $ GTK_VERSION=gtk2 make
* Make the autofocus code a bit smarter by first saving the originalJosh Rickmar2012-07-051-0/+4
| | | | | | | | | text in the text box and seeing if it's any different from the new text before attempting to enter command mode. Before, there was only a check to see if there was any text. This also only sets t->active if it is not NULL, so only the page's default text entry box is ever used when entering insert_mode, instead of the last text box that was typed into.
* bring back notification of download startMarco Peereboom2012-07-041-3/+2
| | | | | | This restores the prior GUI behavior. Hide the asynchronous download complete message behind the download_notifications setting which is disruptive and racy.
* Show a warning message when executing run_script, and make sure %s inJosh Rickmar2012-07-041-3/+6
| | | | a format string actualy has something to print.
* print gerror when spawn failsMarco Peereboom2012-07-031-3/+5
|
* add PSC and only set defaults if not set yetMarco Peereboom2012-07-031-5/+7
|
* move init of resource_dir into unix specific codeMarco Peereboom2012-07-031-1/+0
|
* make this work again on windowsMarco Peereboom2012-07-031-1/+1
|
* init path to NULLMarco Peereboom2012-07-031-1/+1
|
* Prevent the use of an uninitialized variable. My earlier change inJosh Rickmar2012-07-031-2/+3
| | | | | f284a63967c1f5f349abdfbb7b3f8710b6c419fd was wrong due to some forgotten braces after the if statement.
* Check if a pointer points to some memory before blindly freeing it.Josh Rickmar2012-07-031-2/+3
|
* Add two new settings, allow_insecure_content andJosh Rickmar2012-07-021-0/+10
| | | | | | | | | | allow_insecure_scripts, which, if WebKitWebSettings has the enable-display-of-insecure-content and/or enable-running-of-insecure-content properties, sets those to enable or disable viewing or running of insecure content from secure websites. Make these default to 0 in whitelist mode, and 1 otherwise. * * * Document in manpage.
* Prevent the use a depreciated function (as of webkit 1.8), and onlyJosh Rickmar2012-06-291-2/+14
| | | | | | | | attempt to get the webview's pixbuf if the page is valid (has a non-null uri). This prevents glib warnings when attempting to load the webview's favicon. * * * Remove unnecessary braces.
* Do a g_object_set on the soup session so that ssl_strict_certs actually ↵Josh Rickmar2012-06-291-0/+2
| | | | changes behavior if set before ssl_ca_file in the configuration.
* Focus and highlight the current tab when viewing the buffers/ls list.Josh Rickmar2012-06-281-0/+13
| | | | Fixes FS#304.
* Implement a tabonly command that deletes all tabs except the currentlyJosh Rickmar2012-06-281-1/+7
| | | | focused one. Document in manpage.
* Modify the allocation of the scrollbar and GTK adjustment so they areJosh Rickmar2012-06-281-6/+5
| | | | | | | | allocated by the gtk_scrolled_window_new command instead of allocating them first and then passing them as args. I was seeing some segfaults from invalid t->adjust_h pointers earlier, and although I couldn't figure out why the pointers were invalid, I have not yet seen that crash after this change.
* Save a pointer to the text entry box that is focused when the page isJosh Rickmar2012-06-281-0/+5
| | | | | | | | | | load for each tab. Try to use this first when using the insert_mode command instead of just focusing on the first text box in the html. Don't switch to command mode if the currently-focused input box contains any text in it. This prevents an annoying switch to command after the page has focused a particular element and the user has already begun typing something.
* Respect the current tab's ordering when showing the drow down menuJosh Rickmar2012-06-281-4/+9
| | | | (clicking the arrow).
* Replace manual file:// insertions and removals with theJosh Rickmar2012-06-281-29/+81
| | | | | | g_filename_to_uri() and g_filename_from_uri() functions. These functions automatically encode/decode the urls or paths, which wasn't being done before.
* Use glib's g_spawn_async() function instead of OS-specific fork/execJosh Rickmar2012-06-281-70/+37
| | | | | or spawning functions. Remove the SIGCHLD handling as that is no longer required to stop zombie processes.
* Allocate the soup session before attempting to change its settingsJosh Rickmar2012-06-211-1/+3
| | | | when parsing the config file.
* Fix a possible segfault (null pointer dereference) and makeJosh Rickmar2012-06-211-0/+1
| | | | | userstyle_global = 1 work again on startup if userstyle isn't set to anything.
* Replace a manual tilde expansion with the expand_tilde function.Josh Rickmar2012-06-211-5/+1
|
* Change user_agent to rotate on a connection per tab (instead ofJosh Rickmar2012-06-191-8/+56
| | | | | globally for all connections), and implement http_accept which acts the same way but sets the HTTP Accept header.
* move statusbar initialisation to statusbar_create()Michal Mazurek2012-06-191-100/+101
|
* add statusbar_styleMichal Mazurek2012-06-161-5/+12
|
* rewrite set_statusMichal Mazurek2012-06-161-45/+28
|
* Kill a debugging printf I left in.Josh Rickmar2012-06-151-1/+0
|
* Remove the "Loading", "Downloading", and "Download Failed" tab titlesJosh Rickmar2012-06-151-17/+34
| | | | | | and rely on other already-implemented features for these notifications instead. This fixes a bug where Loading would remain in the tab title after requesting a download by following a link.
* Add an 'p' option to statusbar_elems to show if the http_proxy isJosh Rickmar2012-06-151-10/+27
| | | | currently enabled or disabled in the statusbar.
* Replace "%s" in alias and search_string manually with the encodedJosh Rickmar2012-06-151-11/+20
| | | | | | replacement instead of relying on a correct format string. This prevents directly passing a user-defined format string as the first arg to a printf-style function and avoids the format string exploit.
* Add a userstyle setting to change the default stylesheet that is usedJosh Rickmar2012-06-151-9/+35
| | | | | | | instead of the low-contrast one. Allow the userstyle and usersyle_global commands to take an optional argument to use a user-specified stylesheet instead of the default. Document in the manpage.
* Make the Copy Link Location, Copy Image Address, and Copy Video LinkJosh Rickmar2012-06-151-1/+43
| | | | | items of the context menu also copy to the PRIMARY clipboard. Slightly modified from a Patch by Lazaros Koromilas <lostd@2f30.org>.
* set progress unconditionally on both statusbar and url_entry given we don't ↵Todd T. Fries2012-06-131-7/+4
| | | | check on hide/show if we need to set the proper progress indicator
* show url fixesTodd T. Fries2012-06-131-5/+5
|
* add tab number statusbar element. for small displays that have the tab bar ↵Michal Mazurek2012-06-131-1/+39
| | | | disabled
* rewrite recolor_compact_tabsMichal Mazurek2012-06-131-11/+10
|
* normalise styleMichal Mazurek2012-06-131-5/+5
|
* add break in a for loop when switching tabsMichal Mazurek2012-06-131-0/+1
|
* Don't recolor the statusbar when opening the command prompt. ThisJosh Rickmar2012-06-081-1/+0
| | | | fixes FS#301.
* Unbreak some of the keybinding logic that I broke inJosh Rickmar2012-06-071-9/+13
| | | | 29e1c7496a0f6b7812e083aac8da186932fc8daf.
* Implement a warn_cert_changes setting to warn users when the remoteJosh Rickmar2012-06-071-40/+121
| | | | | | | ssl certificate is different from a previously cached certificate to help prevent against MITM attacks. Prompt the user with an action to take (show remote cert, allow for that session, or cache the new remote cert).