Commit graph

30 commits

Author SHA1 Message Date
Christian Dywan
edce7d348b Reflect completion selection directly in the entry 2009-02-24 23:56:28 +01:00
Christian Dywan
33e5bb7134 Make LocationAction properties readable 2009-02-19 22:27:19 +01:00
Dale Whittaker
75c83f1224 Differentiate hash table/ frozen and manual/ normal completion
Adding and looking up items based on a hash table is incredibly
fast, so it's vital for startup, however at runtime we want
to prepend which invalidates the contents of the hash table. So
now we use the hash based lookup only for frozen operation,
which is used at startup and has to be fast, but manual string
comparisons are used at runtime.
2009-02-09 21:37:10 +01:00
Dale Whittaker
18537ec134 Always insert completion addresses with a trailing slash 2009-02-01 19:38:17 +01:00
Dale Whittaker
3c75e9eb20 Prevent duplicate entries by looking for trailing slashes 2009-01-27 18:56:21 +01:00
Nick Schermer
f02f9fd118 Make property strings static to save some memory 2009-01-16 05:19:43 +01:00
Nick Schermer
b6e33e5399 Implement 'full' debug-level and fix according warnings 2009-01-09 23:56:00 +01:00
Christian Dywan
43f48a9b43 Let glib-genmarshal write our marshallers 2009-01-08 02:29:07 +01:00
Christian Dywan
b8c2139d3f Revamp clearing of the history 2008-12-21 19:21:04 +01:00
Christian Dywan
c6865304ba Simplify the completion and make it work properly again 2008-12-18 05:02:52 +01:00
Christian Dywan
1dc1744f7d Move location action iters completely to hash lookups
The startup of Midori is now about 10 times as fast
as it was without any hash table lookups.
2008-12-15 23:17:12 +01:00
Christian Dywan
58b40bce38 Optimize location action, so Midori starts up twice as fast 2008-12-12 21:06:33 +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
166a7e48e0 Malloc in bytes, not characters, and don't copy freed memory
This was teamwork of Brian, Enrico and me.
2008-11-18 22:00:38 +01:00
Dale Whittaker
e505942314 Highlight completion matches while preserving the case 2008-11-18 03:01:33 +01:00
Enrico Tröger
c49ed67ab0 Correct usage of datatypes in a number of places 2008-11-16 01:04:12 +01:00
Christian Dywan
9e997e4c90 Update location icon even if it's not in the history 2008-11-11 00:51:28 +01:00
Christian Dywan
1b148cca67 Repair completion popup to actually open the selection 2008-11-10 03:03:36 +01:00
Christian Dywan
87092babef Move completion logic from LocationEntry to LocationAction
This resolves various indirections, and since we are always
using the action anyway, we finally move all logic to one
place. There should be room for optimizations now.
Incidentally this also keeps the completion intact if
the entry needs to be recreated.
2008-11-09 19:09:35 +01:00
Dale Whittaker
0246eeb124 Implement sorting location items by the number of visits
For the moment, a define in the code decides whether items
are sorted based on when they were added or how often
a page was visited. The 'visits' property and respective
database column is unused (we keep it for compatibility).
It turns out it's enough to store that information in
the tree model.

The visit based sorting is not enabled because it is
simply delaying startup incredibly. It will have to be
decided whether to introduce a preference, or always use
a visited based sorting once the startup delay is fixed.

History items are also deleted from the tree model now
if they are too old, according to the preference.
2008-11-08 02:39:45 +01:00
Christian Dywan
f5f1946c89 Preserve location entry model beyond widget lifetime 2008-10-27 03:35:37 +01:00
Dale Whittaker
70516f1f5b First stab at integration history with the location
For starters, the location contains items from the
history and not only from the current session.
2008-10-27 03:12:09 +01:00
Enrico Tröger
3f78fc132e Compare strings with strcmp, this fixes icons in the location 2008-10-19 01:32:38 +02:00
Christian Dywan
58255d19aa Do not localize object properties, except WebSettings
Property name localization is only useful if the
strings are meant to be used in a user interface,
such as is the case with WebSettings, or for
graphical interface builders, which are not of
our concern, since we don't use Glade and friends
and nobody else is going to use our widgets.

In short, make translation work much easier.
2008-10-15 03:32:11 +02:00
Christian Dywan
d72579711c Implement the Remeber last visited pages preference 2008-10-13 18:29:46 +02:00
Christian Dywan
131b911ab5 Rename main.h to midori-stock.h 2008-09-03 02:39:25 +02:00
Dale Whittaker
8025d129a1 Alt + Enter in the location should issue a new tab 2008-08-31 03:21:29 +02:00
Christian Dywan
cad440fa33 Show progress in location entry if statusbar is hidden 2008-08-31 02:45:13 +02:00
Christian Dywan
e62ca7a8c0 Don't implicitly change the URI when adding to LocationAction 2008-08-21 21:49:16 +02:00
Christian Dywan
97793d88cb Actually commit MidoriLocationAction this time 2008-08-15 10:07:51 +02:00