Commit graph

294 commits

Author SHA1 Message Date
Christian Dywan
b7c8ef9c4e Leave old bookmark file around after conversion 2010-11-30 18:15:33 +01:00
Christian Dywan
8ad224c9a8 Add bookmarks through array and update the panel 2010-11-22 03:49:52 +01:00
Christian Dywan
6246987ba8 Clear history through array and update the panel 2010-11-22 03:49:51 +01:00
Christian Dywan
2f3a016b21 Don't use icons of blank pages for web app windows 2010-11-19 22:50:55 +01:00
Christian Dywan
1ac006804b Don't show Netscape plugins admist extensions
People keep thinking plugins could be disabled like extensions.
2010-11-18 21:02:37 +01:00
Christian Dywan
ed6d44df5f Use function to access browser settings an panel 2010-11-01 16:47:32 +01:00
Christian Dywan
064ac4418b Only re-attach KatzeHttpCookies if it existed before 2010-10-29 22:27:42 +02:00
Christian Dywan
949f38fb58 Always clear private data in inactivity reset 2010-10-29 22:19:04 +02:00
Christian Dywan
7a993b9f19 Clearing icons should remove icon database as well 2010-10-26 00:26:54 +02:00
Christian Dywan
6cdc0261e9 Don't load cookie jar in app mode with config
Originally meant for app mode, this is wrong as default
behaviour since private mode would load all cookies.
2010-10-24 21:06:27 +02:00
Christian Dywan
6b77d140ea Toggle bookmark actions depending on if we have any
So app mode without bookmarks won't show menu items
for adding or managing bookmarks.
2010-10-24 21:06:27 +02:00
Christian Dywan
bcde0df374 Remove 'locked' browser hack and rely on actions 2010-10-24 21:06:27 +02:00
Christian Dywan
23db2145ad Avoid build_config_filename in main() and simplify it 2010-10-23 00:31:11 +02:00
Christian Dywan
03f69c0b51 Make sure 'config' is the effective folder in main() 2010-10-22 21:36:25 +02:00
Christian Dywan
27d6980746 Refactor accel and search engine loading for app mode
So app mode with a config folder uses the same code paths
as normal browsing.

This means accelerators and search engines are available
in Private Browsing now.
2010-10-20 01:24:43 +02:00
Christian Dywan
f079d9c48a Use accessor for dialogue content area 2010-10-19 00:53:01 +02:00
Christian Dywan
6480329bbf Add item to clear HTML5 databases 2010-10-17 22:52:11 +02:00
Christian Dywan
d73b471ec4 Implement sokoke_register_privacy_item facility
The new function allows registering callbacks which clear data,
with a name and label so they show up in the Clear Private Data
dialogue and the chosen items are saved.

The old enumeration still keeps history, trash and the flag
whether to clear when Midori quits.
2010-10-17 22:48:32 +02:00
Christian Dywan
b5430eeead Always enable HTML5 databases with WebKitGTK+ >= 1.1.14
The infobar will be shown when databases are saved, and it will
be added to the private data dialogue.
2010-10-14 01:42:36 +02:00
Christian Dywan
2dbce1e327 Implement --help-execute to list available commands 2010-10-14 01:36:42 +02:00
Christian Dywan
bcc622c456 Let private mode inherit preferences
Private mode should retain most preferences, while menus for
Bookmarks, Tools and Panel are hidden.

App mode now hides the navigationbar by default.
2010-10-13 23:41:11 +02:00
Christian Dywan
324d3c3d6a Use truncated journal mode for history database
This instructs sqlite to preserve the journal file, which
can improve performance and allows it to be a symbolic link.
2010-10-12 23:09:12 +02:00
Christian Dywan
8f4827a382 Use a power friendly second timeout for session saving 2010-10-06 18:32:03 +02:00
Christian Dywan
392fa7fc85 Revise cookie saving based on a timeout
The variable MIDORI_COOKIES_DEBUG can be used to print
the number of updated cookies when they're written.

The temporary cookie file is written in the same location
now as moving across filesystems may not work.

Saving when Midori is quit is enforced.
2010-10-06 18:32:03 +02:00
Christian Dywan
343badcc58 Remove Console panel in favour of the Inspector 2010-10-05 21:43:33 +02:00
Christian Dywan
b07fe09de8 Initialize extension to NULL in midori_load_extensions 2010-09-12 00:59:24 +02:00
Christian Dywan
40dc38fd21 Implement and use KATZE_ARRAY_FOREACH_ITEM
Iterating an array by a GList is considerably faster than
continuously retrieving items, however it is also a lot
more complicated. So the new macro takes care of that and
uses a new semi-private function to avoid copying the list.

Note that the macro can't be nested, which basically isn't
useful in practise anyway.
2010-09-12 00:59:24 +02:00
Christian Dywan
28bdabd928 Hide statusbar in app mode by default 2010-09-03 00:32:48 +02:00
Christian Dywan
7d049555a5 Explicitly reset 'delay' status when reloading or changing location 2010-08-23 20:08:43 +02:00
Christian Dywan
a7452bd0b5 Use KatzeArray* to remove and monitor deleted bookmarks
The panel and the bookmarkbar need to monitor the removal of
bookmarks, and there can be multiple windows, so the database
should only be used to remove in one central place.
2010-08-10 23:46:49 +02:00
Christian Dywan
8015f39fe6 Don't bother with unused config filenames in main 2010-08-10 22:41:19 +02:00
Christian Dywan
13ffa17f2b Correctly load settings and cookies with --config in app mode 2010-08-07 15:14:58 +02:00
Christian Dywan
60eca91b74 Do NULL-safe address comparison when loading the session 2010-07-31 01:29:57 +02:00
Alexander Butenko
64fb6e8ee8 Fix typos and simplify SQL query for locationbar 2010-07-21 23:08:09 +02:00
Alexander Butenko
9a098e2656 Attach bookmark table and union bookmarks in location completion 2010-07-19 21:07:26 +02:00
Christian Dywan
94fbf158f6 Remove conditional guards for sqlite 2010-07-17 21:31:29 +02:00
Christian Dywan
3bfb452e69 Don't save configuration on every location change 2010-07-16 21:13:11 +02:00
Christian Dywan
f6be9c4972 Read 'config' in app mode, if -c switch was specfified 2010-07-11 23:54:52 +02:00
Christian Dywan
d6d1cd21a9 Remove settings Original Cookies, Last visited pages, Autodetect proxy 2010-07-04 23:10:44 +02:00
Alexander Butenko
8c6a8abe5f Revamp bookmark import with sqlite 2010-07-02 23:05:27 +02:00
Alexander Butenko
f907128904 Drop bookmark type field and save meta boolean properly 2010-07-01 23:37:14 +02:00
Christian Dywan
b0191b69b0 Check if extension_init returns NULL and handle it
In the case where an extension ends up existing multiple
times, it will fail to create an instance. We would
rather see it in the list than crash.
2010-06-30 23:09:21 +02:00
Alexander Butenko
954939fdd1 Use extra attributes of a bookmark 2010-06-16 23:30:56 +02:00
Alexander Butenko
6f415c4e6e Import bookmarks from bookmarks.xbel on the first start.
The bookmark handling in main is not needed any more.
2010-06-16 23:17:51 +02:00
Alexander Butenko
87ac3ae563 Initial sqlite read support
We go back to GtkTreeStore rather than a custom class.
2010-06-16 20:55:37 +02:00
Christian Dywan
fd2e0b7aed Implement MIDORI_UNARMED variable for 'dry run' 2010-06-07 22:01:41 +02:00
Tsahee Zidenberg
ea7e627e3b Implement loading delayed pages at startup
Each view has a meta value 'delay' which indicates whether it be
loaded or needs to be loaded manually before it shows content.

One way to trigger this is that Midori crashes and if it is
configured to 'Show last open tabs', all tabs will now be
delayed. To allow Midori to safely open without crashing again.

The other way is to change the 'Load on Startup' preference to
'Show last tabs without loading'. This causes all tabs restored
from the session to be delayed.

One interesting aspect is that it is possible to have delayed
tabs, use 'Show last open tabs' and tabs will remain as they are,
so delayed tabs will be delayed over following sessions.
2010-06-01 00:12:30 +02:00
Arno Renevier
7c0e58a835 Refactor userscripts and userstyles as an extension 2010-05-02 11:53:05 +02:00
Christian Dywan
aade642897 Conditionalize SSL validation on libsoup 2.29.91
The flag in the SoupMessage to verify secure connections is
only available in recent versions of libsoup. So we continue
to be oblivious to certificates with older versions.
2010-04-14 22:41:24 +02:00
Christian Dywan
2507f971ca Validate SSL against root certificates
If one of two known root certificate files is available, we
enable certificate validation, otherwise a warning is emitted.
Not using validation means that we trust any certificate. We
should consider doing the opposite.

The new property MidoriView:security is set during load
and indicates the security status. midori_view_get_security can
be used to determine the status later on.

midori_location_action_set_security_hint is implemented to
present security status visually. For now, this only changes
the icon, we need to find a more visible solution.

MidoriBrowser updates the security hint for the current view in
_midori_browser_update_interface.
2010-04-14 04:20:56 +02:00