Commit graph

31 commits

Author SHA1 Message Date
Christian Dywan
b511f12b9b Rename folder 'src' to 'midori' 2008-06-01 23:47:27 +02:00
Christian Dywan
84036dc39e Change a few strings, particularly New Bookmark => Add Bookmark 2008-06-01 16:40:44 +02:00
Christian Dywan
a61568c16a Add zoom functionality, if webkit supports it 2008-06-01 11:26:10 +02:00
Christian Dywan
8e494ba206 Provide action signals as javascript functions
From javscript C functions cannot be called, but signals
are available through the GObject type system. So
we allow javascript to call action signals like functions.

At the same time we modify a few browser functions, so
that they are functions that are available as signals.
2008-06-01 00:21:08 +02:00
Christian Dywan
4a488da7b1 Implement MidoriApp singleton and improve multiple window support
The new singleton holds the shared settings and trash. It is
further more used to keep track of all open windows and quits
when the last window was closed. It also watches the focus in
case you need something like a "current" browser.
2008-05-23 00:17:10 +02:00
Christian Dywan
6982b226b8 Do not call setlocale, let gtk handle this. 2008-05-22 14:30:52 +02:00
Christian Dywan
7474e41abd Provide a javascript style Gtk.binding and add g_return_if_fail 2008-05-07 03:05:22 +02:00
Christian Dywan
4a829b0ab0 Make javascript gobject bindings independant.
Moving the bindings into a single file makes them independant
of addons and midori, requiring only JavaScriptCore and GObject.

This allows for standalone scripts to run independant from
Midori itself. Also extensions will run independant from a
browser instance.
This change removes the 'midori' object.
2008-05-06 00:51:04 +02:00
Christian Dywan
133cd688b9 Initial addon panel feature, only userscripts for now. 2008-04-28 22:38:57 +02:00
Christian Dywan
a580cf281b Fix focus in location if starting up with a Blank page
At the point of loading the first page the web view
hasn't loaded anything, so we need to manually focus
the Location if the page is blank.

Incidentally midori_browser_activate_action can activate
any action, so it will probably be much more useful
in the future.
2008-04-25 21:31:57 +02:00
Christian Dywan
68e0e521f4 Resolve helpers and globals into sokoke. 2008-04-20 21:44:56 +02:00
Enrico Tröger
3811549791 Fix crash on startup caused by invalid settings. 2008-04-20 18:29:14 +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
d1b085f61a Update German localisation plus a tiny string fix. 2008-04-19 14:19:37 +02:00
Christian Dywan
169973f3fe Remove old configuration logic entirely
Almost all uses of the old system were superseded
by the use of MidoriWebSettings now, the
migration is almost finished.
2008-04-17 01:38:22 +02:00
Christian Dywan
cdde1293ab Switch configuration to MidoriWebSettings.
Switch configuration logic from a custom structure to
fully rely on MidoriWebSettings. This includes revamping
the preferences dialog. The old logic is not yet
replaced completely, this will follow soon, thus several
settings will have no effect right now.
2008-04-13 21:51:43 +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
f261464c90 Use an empty URI if Load on Startup is Blank page. 2008-04-05 15:33:54 +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
44bc12c305 Add common context menu items and cleanup.
Add the actions UndoTabClose, BookmarkNew, SaveAs, SourceView and Print
to the context menu. Also add UndoTabClose to the Go menu, remove
STOCK_SOURCE_VIEW and remove ui.h which is obsolete.
2008-03-19 14:46:08 +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
25ac3e9932 Build fix: Webkit's header and pkgconfig name have changed. 2008-02-03 10:51:35 +01:00
Christian Dywan
1522f47002 Implement Fullscreen mode
A new menuitem toggles Fullscreen mode, which means that the
menubar is hidden, the window is maximized and window manager
decoration is removed. A new button appears in the navibar
which reverts this process.

Fullscreen relies entirely on the window manager, which has the
advantage that window manager keybindings have the same effect
as activating the Fullscreen menuitem. At the same time this
means that Fullscreen won't work at all without it.
2008-01-26 08:49:48 +01:00
Christian Dywan
184b54e311 Add more preferences and Middle click goto
Add default font name and size, minimum font size and encoding
preferences. And implement Middle click goto with a preference.

Also the preferences dialog is a bit cleaned up.
2008-01-26 06:44:28 +01:00
Christian Dywan
6477032a6d Add a preference to choose a user stylesheet. 2008-01-23 05:27:54 +01:00
Christian Dywan
b2c0363cb4 Implement a few preferences with new settings API in WebKit
Allow changing a few preferences that WebKit now has API for
and clear the way for more to come.
2008-01-23 04:28:50 +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
Ori Bernstein
75b0dc6735 Open the default page only if there is no session and no uri on the cli.
We only want to open a default homepage or blank page if neither
sessions are in use nor any uri is passed on the command line.
2008-01-02 07:34:58 +01:00
Christian Dywan
b6f248f344 Implement the bookmarks panel with editing capabilities.
The bookmarks panel can display a tree of bookmarks and allows
editing and deleting of bookmarks via a context menu.

The XBEL implementation has been altered to work with a
reference count model to allow panels to update on their own.
2007-12-31 23:53:02 +01:00
Christian Dywan
3f4c2e3c14 Command line uris should replace the default page.
Don't open a blank page or the homepage respecitvely on startup
if an uri is specified in the command line.
2007-12-27 00:52:00 +01:00
Christian Dywan
3bbd273a4f Initial commit 2007-12-16 23:20:24 +01:00