Commit graph

36 commits

Author SHA1 Message Date
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
f00522ac27 Use 'midori' icon and update icon cache in waf 2008-05-31 14:31:10 +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
61d26feae8 Apply a few small corrections. 2008-05-22 14:32:54 +02:00
Christian Dywan
6bc5150ea2 Add Show Homepage option, remove Form Fill and Small Toolbar 2008-05-20 03:21:11 +02:00
Enrico Tröger
ebdedf6f31 Remember the last opened folder for File Open
The File Open dialog should remember the last opened folder
or try to obtain it from the currently opened web view.
Besides the dialog ought to be transient.
2008-05-20 03:01:54 +02:00
Christian Dywan
e45fe65278 Focus the web view when loading bookmarks. 2008-05-03 23:32:05 +02:00
Christian Dywan
7039d48e48 First attempt at an extension interface. 2008-05-02 22:30:26 +02:00
Christian Dywan
133cd688b9 Initial addon panel feature, only userscripts for now. 2008-04-28 22:38:57 +02:00
Christian Dywan
2e580f0503 Integrate panel toolbars properly outside scrolled areas. 2008-04-26 02:43:32 +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
62cbafe12a Attempt to fix handling of background and foreground tabs. 2008-04-25 00:20:43 +02:00
Christian Dywan
7a7499d8db Show hidden location/ web search temporarily when needed.
If the location or web search was hidden, and one attempted
to use the menus or shortcuts for Location or Web search,
an appropriate dialog with an entry was shown.

Now we show the according widget temporarily and hide it again
once it loses focus.
2008-04-22 23:36:37 +02:00
Christian Dywan
d9f7abc5c7 Update interface and web featureswith preference changes.
The toolbar style, small toolbar, New Tab, Web Search and
Trash buttons are shown or hidden respectively as
the preference values change.
This is also an attempt at updating the web view's settings
immediately. Although it seems to work, an ugly warning is
emitted to the console on every change.
2008-04-22 22:19:24 +02:00
Christian Dywan
68e0e521f4 Resolve helpers and globals into sokoke. 2008-04-20 21:44:56 +02:00
Christian Dywan
50ab1e8bc7 Turn prefs into MidoriPreferences 2008-04-20 03:30:24 +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
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
39bf592772 Remove 'External programs' logic 2008-04-12 15:48:33 +02:00
Przemek Sitek
e70925d064 Append the closed tabs items as a proper submenu. 2008-04-07 01:15:09 +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
793b030d3a Fix Reload/ Stop menu items.
The menu items were sensitive in reversed logic and the Stop item
had the icon and accelerator of the Reload item.

Now the sensitivity is fixed and the Stop item is Stop again.
2008-04-03 23:33:32 +02:00
Christian Dywan
f4abaeb00f Recognize the Enter key in the location entry. 2008-03-30 21:23:42 +02:00
Christian Dywan
ccba177ecb The location is empty and focused by default
When a new tab is opened it won't default to about:blank
but be empty and also gain focus automatically.
2008-03-30 16:55:46 +02:00
Przemek Sitek
b01eb78c9d Implement proper menu positioning.
Menu position is computed according to the widget position
and size as well as a hint indicating alignment to the
mouse pointer, left or right.
2008-03-29 22:38:59 +01:00
Christian Dywan
00976c0536 Implement the Console panel for script messages. 2008-03-27 01:21:29 +01:00
Christian Dywan
c8332ddf54 Fix panel close button. 2008-03-24 14:15:23 +01:00
Christian Dywan
e9710d3b3b Destroy the tab, not only the web view 2008-03-22 23:20:22 +01: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
4a1e0ab67b Fix Back button and opening new tabs. 2008-03-11 20:27:23 +01:00
Christian Dywan
9abae486dd Build fix: Accidentally removed the wrong action. 2008-03-10 22:48:12 +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