Commit graph

23 commits

Author SHA1 Message Date
Christian Dywan
5bb1c5025f Avoid allocations in _action_location_submit_uri
Skip whitespace without changing the string.

And take advantage of the fact that _find_token now
can deal with a complete URI.
2012-02-10 23:31:42 +01:00
Christian Dywan
b3344bf6f7 Define H and V widget functions for GTK+3
The horizontal variants are gone from the API.

gtk_rc_get_theme_dir has been deprecated, there is
no replacement so we do the equivalent lookup.

Right-aligned menu items are deprecated.

For now defining gtk_widget_render_icon and
gtk_widget_set_size_request gets rid of warnings.
2011-11-28 23:37:34 +01:00
Christian Dywan
583c5be7ef Add simple regexp unit test to Addons extension 2011-11-18 00:54:32 +01:00
Christian Dywan
f97395dab1 Validate URIs and render entry red if invalid
Fixes: https://bugs.launchpad.net/midori/+bug/710855
2011-05-15 16:46:23 +02:00
Christian Dywan
016b6a6306 Remove unused katze_collfold and katze_utf8_stristr 2010-09-18 01:48:55 +02:00
Christian Dywan
d0e2433f86 Simplify definitions of katze assignment macros 2010-09-18 01:45:17 +02:00
Alexander Butenko
a49f1f7814 Introduce katze_bookmark_populate_tree_view() and rename ITEM_IS* macros 2010-07-01 23:37:13 +02:00
Christian Dywan
b1ee80d55e Implement katze_utf8_stristr, katze_collfold and use in completion
Evidently normalizing any whole string is too slow for completion,
so we need to even out case and composition while iterating through
the strings.

The decompositing version of katze_utf8_stristr is disabled, since
it is too slow, and an ascii only version is used, for now.

A unit test 'compare' is added that solely measures performance of
katze_collfold and katze_utf8_stristr.
2009-12-28 23:59:54 +01:00
Christian Dywan
9eefb25bb6 Refactor loading cached page icon into katze_load_cached_icon
The function is optimized for loading icons and independant from
a KatzeNet instance.
2009-11-17 23:22:08 +01:00
Christian Dywan
6a297dd4b3 Introduce MIDORI_TOUCHSCREEN and katze_widget_has_touchscreen_mode 2009-10-28 21:07:13 +01:00
Alexander Butenko
90a4acfc6e Check the non-existence of folders before creating them 2009-10-20 18:24:24 +02:00
Christian Dywan
3fec0a0265 Adjust katze_(foo_)assign to work inside one-line if's 2009-10-16 20:41:35 +02:00
Christian Dywan
25da412215 Add katze_strip_mnemonics (formerly known as elide_underscores) 2009-07-17 21:29:57 +02:00
Dale Whittaker
ffd58a06a8 Implement katze_strv_assign 2009-04-25 16:01:28 +02:00
Christian Dywan
7d3ac8fa37 Move {sokoke,katze}_tree_view_get_selected_iter proper 2009-01-28 01:08:51 +01:00
Christian Dywan
5806954562 Add katze_object_has_property 2008-12-01 23:33:47 +01:00
Christian Dywan
1e6c22d94a Add more katze_object_get_foo functions 2008-11-18 23:06:02 +01:00
Christian Dywan
d60166aa02 Add katze_get_object 2008-11-18 01:57:33 +01:00
Christian Dywan
5c69e0269d Implement KatzeNet as a generic URI loader
KatzeNet can from now on be used where
URIs are handled and one would have used
libSoup and/ or local file handling as
appropriate, whereas KatzeNet does both.

Since we are displaying icons in several
places KatzeNet also provides an icon
loader that saves us from doublicating
even more code.

All bookmarks and also history items have
icons now, since KatzeNet makes that
incredibly easy.

Search engines are also using favicons
now, and right now custom icons don't
work, we still need to fix that.

Note that only icons are cached, nothing
else and the code is known to have a
hidden, hard to reproduce crasher which
may appear when an icon is newly loaded.
2008-10-24 00:09:12 +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
133cd688b9 Initial addon panel feature, only userscripts for now. 2008-04-28 22:38:57 +02:00
Christian Dywan
a9eb81a016 Implement property proxy widget creation.
The functions katze_property_proxy and katze_propery_label
can intelligently create widgets that represent properties
of a particular object. This allows for building up a
configuration interface with few to no code dealing with
specific settings.
2008-04-13 21:21:39 +02:00
Christian Dywan
e2328a4bfc Implement a throbber widget.
The throbber is used in the menubar and individual tabs.

Clean infrastructure for private G* extensions is added.
2008-01-05 06:24:38 +01:00