Commit graph

72 commits

Author SHA1 Message Date
Christian Dywan ca8d181329 Unify opening URIs externally with good fallbacks 2009-04-20 19:10:13 +02:00
Christian Dywan 192084d48e Unify how search URI and keywords are combined
This handles the presence of a %1 and encoding the keywords.
2009-04-20 00:39:36 +02:00
Christian Dywan d7d6edbff3 Percent encode search terms, so '+' actually ends up as a '+' 2009-04-19 00:47:02 +02:00
Christian Dywan ad82a73ab8 Show only image buttons in Statusbar Features in statusbar 2009-04-17 03:16:37 +02:00
Christian Dywan c27642e912 Display the news feed icon again
The code for looking up news feeds on websites was disabled
and is now back in simplified form. 'liferea-add-feed' is
hardcoded for the moment.
2009-04-13 22:40:57 +02:00
Christian Dywan 89698772bb Try to decide what an @ in a location refers to
We assume the usual case is that you intend to search for an
email address, a host with a login isn't recognized.
2009-04-12 14:00:32 +02:00
Jordan Callicoat 52ab540db5 Teach magic_uri that hostnames don't contain spaces
New test cases included. Two of them are commented out since
they are not supported but should logcially be.
2009-04-11 12:24:43 +02:00
Christian Dywan a9ea07389a Implement Clear Private Data dialogue 2009-04-11 05:14:53 +02:00
Christian Dywan ddf2f60e3f Implement "-c" or "--config" to specify a different config folder
If this option is specified the folder is used in place of the
default ~/.config/midori including extension settings.
2009-04-09 19:28:36 +02:00
Enrico Tröger ad8558ab4c Implement stock items for Tab Panel and plugin panel 2009-04-05 00:13:09 +02:00
Christian Dywan 406942594a Allow opening data URIs from the location entry 2009-04-02 22:48:07 +02:00
Christian Dywan 3ecfecb555 Optimize sokoke_magic_uri for better performance 2009-03-31 03:28:01 +02:00
Christian Dywan 73b26c53f9 Support mailto: by passing it to gtk_show_uri or Exo 2009-03-26 23:46:36 +01:00
Enrico Tröger 498232b805 Fix memory leaks in IDN handling and exclude file:// URIs 2009-02-27 20:59:23 +01:00
Christian Dywan d9bdaf0f8c Restrict IDN conversion to hostname 2009-02-23 23:44:30 +01:00
Christian Dywan 5f52e0d21f Move stock item registrations to sokoke so it can be tested 2009-02-21 22:36:03 +01:00
Christian Dywan bbe809cacf Support IDN by decoding domain names in magic_uri 2009-02-17 00:16:14 +01:00
Christian Dywan 60e81f734b Tweak magic URI and add a test string 2009-02-09 22:03:04 +01:00
Christian Dywan 7d3ac8fa37 Move {sokoke,katze}_tree_view_get_selected_iter proper 2009-01-28 01:08:51 +01:00
Dale Whittaker fb2a962ad4 Store the 'day' of history items to reduce even more calls to localtime
By storing the timestamp of the day in the database we can significantly
reduce the calls to localtime, which should result in a noticible
speedup.

We are changing the database format. For the convenience of the user
the code automatically converts from the old format.
2009-01-23 22:38:39 +01:00
Christian Dywan 2083433739 Merge two g_file_test calls into one 2009-01-23 21:43:28 +01:00
Dale Whittaker 6753a9ade3 Store history dates in 'token' to avoid locatime() and revamp deleting
Loading history items used to involve frequent calls to
localtime() and g_memdup(). We avoid this by storing the
date strings in parent items now, which can even be used to
display items in the treeview.
Deleting of treeview items was also reworked so it should
work from menu items and the panel.
2009-01-11 19:30:43 +01:00
Nick Schermer 626c5c904f Make Xfce headers look like the real thing 2009-01-09 23:59:39 +01:00
Nick Schermer b6e33e5399 Implement 'full' debug-level and fix according warnings 2009-01-09 23:56:00 +01:00
Christian Dywan 6bb3fb442e Various string changes and additions 2009-01-04 19:25:48 +01:00
Christian Dywan ac146cbd78 Append the search term if a search lacks a '%s' 2009-01-02 23:16:38 +01:00
Christian Dywan 0b066778a5 Refactor main.c and move _eval_script to sokoke
The diagnostic dialog actually performs better now
because we do the extension loading and session setup
in idle callbacks, aside from the code being more
easily readable in smaller units.
2008-12-25 00:41:11 +01:00
Arnaud Renevier 993fb52644 Allow relative localhost URIs 2008-12-20 00:24:35 +01:00
Christian Dywan 08af3f6773 Allow xfce_header_new to use a default icon 2008-12-12 10:11:45 +01:00
Christian Dywan aeb71dd7b4 Add support for javascript: bookmarklets 2008-12-09 00:02:38 +01:00
Enrico Tröger 417493caa3 Don't use grep in sokoke_get_desktop and fix memory leaks 2008-11-29 00:16:57 +01:00
Christian Dywan 418f4dac12 Remove unused sokoke completion helpers 2008-11-21 02:46:47 +01:00
Christian Dywan 600423de4e Take special care of spaces in search strings 2008-11-21 02:44:03 +01:00
Christian Dywan 58cb93d900 Use katze_object_get_foo instead of sokoke_object_get_foo 2008-11-18 23:10:21 +01:00
Christian Dywan 56d26b02e5 Allow "g cache:127.0.0.1" to search from the location 2008-11-18 06:37:11 +01:00
Christian Dywan 24ca48cc1e Move variable declarations to the beginnings of blocks 2008-11-16 02:00:17 +01:00
Christian Dywan b9a183c316 Allow ":" as in "foo:bar" to search from the location 2008-11-16 00:36:32 +01:00
Christian Dywan 7863d0f7fd Introduce unit tests for automated testing
The first one is a test for sokoke_magic_uri and
it already helped improving the function.
2008-11-14 02:46:23 +01:00
Brian Vuyk 0b16997f1a Fix some compiler warnings 2008-11-12 02:15:52 +01:00
Christian Dywan dad59bf505 Remove unused gdk_pixbuf_new_from_stream and sokoke_web_icon 2008-11-06 01:36:57 +01:00
Christian Dywan b931e1bf53 Improve OSX adjustments in various places 2008-10-26 00:54:57 +02:00
Dale Whittaker 307050c42a Display relative dates in History panel 2008-10-24 01:35:34 +02:00
Brandon Mercer 43b1959762 Don't search if there's a colon (:) in a domain 2008-10-16 20:29:58 +02:00
Dale Whittaker 49a4b00b71 Implement number of days history is saved
Note that this will 'break' any existing history
and all dates will suddenly jump the beginning
of the unix epoch.
2008-10-16 01:31:47 +02:00
Christian Dywan ae14651145 Implement OSX Preferences style on OSX 2008-10-16 00:58:22 +02:00
Christian Dywan 7597e2026d Undo tabs-in-processes, it didn't work out
We are not literally undoing in the sense of
reverting, this is actually about undoing
the individual parts of the last refactoring
that implemented the socket/ plug logic.

As turned out, the idea was nice but the
implementation was absolutely not, embedding
of processes in a graphical way is not
at all reliable enough for complex use cases.

Naturally this change should solve all sorts
of peculiar issues, including actual
regressions in functionality. Relieving.
2008-10-15 03:07:38 +02:00
Christian Dywan 36a99b9d22 Allow hiding the menubar and showing it again 2008-10-12 22:09:49 +02:00
Christian Dywan e1b828edf2 Finish refactoring the toolbar to use only actions
Finally the trash, which was the last item that
needed to be implemented as an action, is an
action, a KatzeArrayAction to be exact.

This simplifies more code and also makes Window
and RecentlyVisited generically implementable.

Incidentally this change also fixes a bug where
the browser tried to add a new tab when the last
one was closed, even while destroying itself.

Furthermore sokoke_image_menu_item_ellipsized
and sokoke_widget_popup were promoted to Katze.
We're still keeping the old functions for now.
2008-10-10 22:31:37 +02:00
Christian Dywan 62838fdf58 Implement tabs in individual processes
The approach is rather plump, Midori can be
run in a plug mode that creates a GtkPlug,
while the normal instance knows how to embed it.

Communication between browser and tabs is
done via named pipes which are portable.

The feature is not complete right now, there
are expected regressions, but it works.

As a bonus, we implement Not found pages.
2008-09-26 23:30:52 +02:00
Christian Dywan 30cbc635d6 Ellipsize menu items referring to websites or bookmarks.
Originally menu items could in some cases become as wide as
the whole screen, making working with menus rather hard.

Now we ellipsize at 50 characters in the middle of the string.
2008-09-07 03:39:25 +02:00