Commit graph

313 commits

Author SHA1 Message Date
Christian Dywan
5806954562 Add katze_object_has_property 2008-12-01 23:33:47 +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
2bc42bfd8d Remove the page holder from the core 2008-11-25 23:55:54 +01:00
Christian Dywan
03ffd05e0a Do not load icons other than in tabs 2008-11-20 01:41:58 +01:00
Brian Vuyk
dc59d66eb9 Print file saving errors to the standard output 2008-11-18 23:18:53 +01:00
Christian Dywan
1e6c22d94a Add more katze_object_get_foo functions 2008-11-18 23:06:02 +01:00
Christian Dywan
3cd50f419b Introduce a C extension interface 2008-11-18 02:07:53 +01:00
Christian Dywan
d60166aa02 Add katze_get_object 2008-11-18 01:57:33 +01:00
Christian Dywan
4e8236c95c Use gint64 instead of goffset, the latter is too new 2008-11-18 01:55:49 +01:00
Enrico Tröger
c49ed67ab0 Correct usage of datatypes in a number of places 2008-11-16 01:04:12 +01:00
Enrico Tröger
744f9ce56f Save files with permissions of 0700 instead of 0755 2008-11-16 00:21:22 +01:00
Brian Vuyk
e019c677bb Arrange file saving for error handling to fix warnings 2008-11-16 00:10:39 +01:00
Christian Dywan
0c093cb335 Do not load icons automatically everywhere
KatzeNet won't attempt to load icons that are not
cached unless the caller provides an icon callback.
For the moment, this means much less loading
for items that are not actually visible, but for
visiting pages or looking at bookmark menus.
2008-11-08 03:24:02 +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
d1b64e6d48 Fix tab icon alignment and hiding throbber fallback when needed 2008-10-30 22:17:19 +01:00
Christian Dywan
27d5b35f1d Ellipsize bookmarkbar items reasonably 2008-10-29 04:07:37 +01:00
Enrico Tröger
86af851d4c Don't doublicate the "." in cached filenames 2008-10-27 22:36:41 +01:00
Christian Dywan
0ca873cb08 Cache icons in memory and fix a redirection crasher bug 2008-10-27 03:03:20 +01:00
Christian Dywan
dc8e8891e7 Correct a missing differentiation between proxy widgets 2008-10-27 03:01:52 +01:00
Christian Dywan
23e784922e Revamp bookmarkbar items based on KatzeArrayAction
Some refactoring in KatzeArrayAction and the addition
of a function to create arbitrary bookmark tool items
allows us to easily revamp the bookmarkbar so that
it finally reflectls changes to the bookmarks,
including adding and removing items.
2008-10-26 22:22:26 +01:00
Christian Dywan
cefcb42eef Recognize favicons in domains with no trailing slash 2008-10-25 16:16:48 +02:00
Christian Dywan
b53a2ebb37 Finish soup messaging cleanly and free private data 2008-10-24 19:58:58 +02: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
53c5bd3c9c Use fallback stock icon if there is no throbber animation 2008-10-22 00:46:53 +02:00
Christian Dywan
ee3b7a3b51 Finish essential KatzeArrayAction functionality 2008-10-17 23:14:21 +02:00
Christian Dywan
a12f3d10e0 Hitting Return or Enter in a Preferences entry applies it 2008-10-16 20:36:42 +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
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
c1aff9030f Add license note to lots of files and add EXPAT file. 2008-10-11 07:27:52 +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
63fc20b6f4 Assign KatzeItem property strings properly 2008-10-07 03:24:27 +02:00
Dale Whittaker
d445745787 Implement navigation history backed by sqlite
The implementation relies on KatzeArray for the
most part and only does the storage with sqlite
behind the scenes. The change includes a working
History panel. Changes to the database are
committed in realtime.
2008-10-07 02:19:33 +02:00
Christian Dywan
fb320cc0b6 Finally obsolete KatzeXbelItem 2008-10-01 04:00:16 +02:00
Christian Dywan
4d4df1ed09 Make spin buttons smaller 2008-09-11 01:49:50 +02:00
Arnaud Renevier
cecce23061 Fix doc domment for katze_array_remove_item 2008-09-07 20:31:09 +02:00
Christian Dywan
1d047c4ab5 Factor out katze_xbel_folder_from_data_dirs and _to_data 2008-09-04 00:35:15 +02:00
Christian Dywan
efab194b63 First move towards superseding KatzeXbelItem by KatzeItem
The idea is, since we have KatzeItem, KatzeList and KatzeArray
now, except for KatzeXbelItem's loading and saving XBEL the
interface is obsolete.

As a bonus, we actually save the trash again.
2008-08-31 20:48:13 +02:00
Christian Dywan
bf28e1097b Rework MidoriWebList into KatzeList and KatzeArray 2008-08-26 01:19:38 +02:00
Christian Dywan
af2e90a4b1 Rename MidoriWebItem to KatzeItem 2008-08-23 18:32:53 +02:00
Christian Dywan
a41a0e008e Move MidoriWebList and MidoriWebItem to Katze 2008-08-05 05:03:05 +02:00
Christian Dywan
f210b90ff9 Tidy up redrawing and notifications in KatzeThrobber 2008-08-02 04:21:38 +02:00
Christian Dywan
970be0bc83 Sort the font combo by font name 2008-07-19 06:15:47 +02:00
Christian Dywan
74dcc3c4db Fix file choosers for GTk+ < 2.12 2008-07-15 20:01:46 +02:00
Christian Dywan
8600c2591d Turn KatzeXbelItem into a gobject 2008-06-24 21:47:41 +02:00
Christian Dywan
f9fdf1af63 Merge KatzeThrobberPrivate with KatzeThrobber and hide it 2008-06-12 23:44:34 +02:00
Christian Dywan
13f8171e24 Add Zoom Stepping Value to Preferences 2008-06-08 18:42:39 +02:00
Christian Dywan
95cbba2548 First attempt at a waf build system 2008-05-31 12:04:52 +02:00
Christian Dywan
944defafeb Use value-changed instead of changed for spin buttons 2008-05-07 19:25:43 +02:00
Christian Dywan
133cd688b9 Initial addon panel feature, only userscripts for now. 2008-04-28 22:38:57 +02:00
Christian Dywan
62cbafe12a Attempt to fix handling of background and foreground tabs. 2008-04-25 00:20:43 +02:00
Arnaud Renevier
a2aa737677 Add string allocations to avoid freeing of constant strings. 2008-04-24 00:42:41 +02:00
Christian Dywan
1264eb0667 Implement a font combobox and use it for Default Font Family. 2008-04-20 18:13:20 +02:00
Christian Dywan
f98b652996 Fix background tabs, strings and new tab focus. 2008-04-18 02:40:53 +02:00
Christian Dywan
fae6058c26 Focus the web view when opening an URL via the location 2008-04-17 01:58:02 +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
e91d077a84 Enhance Web Settings greatly with new properties.
A lot of new properties are added, which are going to
be the basis of the coming configuration replacement.

Also a little cleanup is done in a few places.
2008-04-13 11:36:42 +02:00
Christian Dywan
be89221aea Implement localization via Gettext.
Based on the implementation of localization via Gettext
contributed by Enrico Tröger, a few adjustments were made
to allow Midori to be properly localized. Initially
German is fully supported.
2008-03-22 03:38:23 +01:00
Christian Dywan
e1f62329f1 Initial refactoring work, regressions expected
The 'browser' struct is superseded by MidoriBrowser, which actually
represents a window that holds pages, i.e. tabs. The tabs are currently
of the type MidoriWebView, which is a slightly enhanced WebView. Also
MidoriWebSettings is introduced to hold additional settings that Midori
needs.

The other two new classes are MidoriTrash, representing closed tabs and
windows and MidoriPanel, representing the side panel.

The refactoring allows for several features to be much more easily
implemented, such as full support for multiple windows and instant
saving of modified files, such as bookmarks or the session. Regressions
are expected and not everything is done yet.
2008-03-10 22:26:09 +01:00
Christian Dywan
22b277d94b Implement Add Bookmark and a small panel toolbar
Initially new bookmarks can be added. The panel gains a small
toolbar to Add, Edit and Delete items.

Besides a serious bug in the XBEL implementation is fixed and
a number of error checks is added..
2008-01-20 23:07:01 +01:00
Christian Dywan
e94d8c74e8 Cleanup and WebKit API update 2008-01-20 18:05:16 +01:00
Sven Herzberg
2c08ccbef5 Fixed the header of the KatzeThrobber 2008-01-07 16:25:58 +01:00
Christian Dywan
d5a4f4cfd7 Move XBEL implementation to katze.
The implementation of XBEL is moved to katze, including the
appropriate api prefix and coding style changes. All relevant
uses are updated.
2008-01-06 01:44:37 +01: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