Commit graph

2206 commits

Author SHA1 Message Date
Paweł Forysiuk
3eb3481812 Show estimated time remaining in transferbar tooltip 2011-04-20 20:52:07 +02:00
Cyril Brulebois
d6c2be8042 Make sure speed dial is shown in blank tabs
The speed dial is now mandatory, but it's still possible to get
a blank tab. With an empty home page and a displayed speed dial
on a new tab, going to any page and coming back leads to a blank page.

Work around that by checking whether the view is empty and setting the
uri to an empty string in this case, to hit the code path which makes
the speed dial kick in.
2011-04-20 00:31:52 +02:00
Cyril Brulebois
474358d972 Fix signedness warning in midori_view_tab_label_data_received 2011-04-20 00:19:41 +02:00
André Stösel
a9a220f96c Don't destroy inspector window that will be re-used 2011-04-19 23:21:31 +02:00
Christian Dywan
a2fc8f405c Show a notification upon opening a tab or window
The notification is shown when in fullscreen mode or the window
is maximised, and a window is opened or a tab is opened while
the tab bar is not visible.
2011-04-19 23:16:34 +02:00
Christian Dywan
7152189d82 Mask timezone, language, architecture and plugins 2011-04-19 23:07:22 +02:00
Christian Dywan
857bbfb02b Disable HTML5 storage features in Private Browsing 2011-04-18 01:31:56 +02:00
Christian Dywan
feb69e8fd9 Video format availability in about:version 2011-04-18 01:28:38 +02:00
Tomasz Szatkowski
7691130cc3 Implement 'Customize...' on toolbar right-click
The new MidoriBrowser::populate-toolbar-menu allows
extensions to add menu items.

Fixes: https://bugs.launchpad.net/midori/+bug/699933
2011-04-17 22:43:54 +02:00
Christian Dywan
10c5ac4597 Use setting for old and new prefetching option
So prefetching in private mode is disabled regardless of
whether prefetching is done in Midori or in new WebKit
versions.
Menu items also adhere to that same setting now.

And use the chance to correct version checks.
2011-04-17 22:29:51 +02:00
Christian Dywan
ea264c31f6 Don't mention stripped referrers without MIDORI_DEBUG 2011-04-17 22:27:58 +02:00
Christian Dywan
7dc01d70ef Render themed icon as native SVG if available 2011-04-17 03:32:35 +02:00
Christian Dywan
0925d31985 Don't load the soup session in idle callback
Otherwise there's a race condition which may lead to
not having setup the session before loading the first
page or worse, crash in libSoup.
2011-04-16 04:26:28 +02:00
Christian Dywan
08b756b0a6 Revert "Left mouse button and mouse wheel changes zoom level"
This reverts commit c2e0342bb3.

The feature is unusable on some touchpads.

Fixes: https://bugs.launchpad.net/midori/+bug/761106
2011-04-16 04:08:16 +02:00
Christian Dywan
9ac8433e6d Strip referrer details sent to external sites
This new feature strips, if enabled, the path and query from
the 'Referer' header when switching to external sites. It
doesn't affect internal links, which is why websites testing
for this feature may falsely assert it's not working.

The feature is automatically enabled in private mode.
2011-04-15 00:49:39 +02:00
Christian Dywan
e18a2c8001 Refactor soup session setup for normal and app mode
The soup session preparation was actually several incomplete
in app mode, now it shares a common code path with normal
mode minus web cookies and logins.
2011-04-14 22:53:28 +02:00
Christian Dywan
b06d7192e6 Always 'var' in for and wrapping functions
Related to https://bugs.launchpad.net/midori/+bug/716887
2011-04-14 21:46:01 +02:00
Christian Dywan
547f0764b4 Move Privacy preferences into separate callback
So they only show up in regular mode, but not in private
browsing mode where they are not useful.
2011-04-14 03:36:14 +02:00
Christian Dywan
ed6ed71239 Embed extensions into preferences dialogue
MidoriBrowser gains the show-preferences signal which
gives API users a chance to add preferences.

katze_preferences_add_category now returns a box to
allow freely packing a widget into the page.

The extension panel is packed into the preferences now
rather than being appended as a proper panel.

Motivation is consistency here, such as with Gedit or
Emerillon and also the aspect that extensions often
really do tweak behaviour like preferences do.

Spacing and icons are added for visual consistency.
2011-04-14 03:29:50 +02:00
Christian Dywan
f01c4a472a Dissolve application preferences onto other pages 2011-04-14 03:28:24 +02:00
Christian Dywan
9ab1349c54 Remove the Download Manager preference
Many users are confused about the way the feature works and
nobody cares enough to improve it.
2011-04-14 03:23:08 +02:00
Christian Dywan
e53c36e32d Handle closing of the inspector window 2011-04-13 23:57:47 +02:00
Christian Dywan
4a8b55400b Reset alert counter when loading a new page
All infobars including alerts are destroyed, so we can assume
no alerts are visible.
2011-04-13 23:56:00 +02:00
Paweł Forysiuk
28e269365d Remove thumbnail files from cache by uri 2011-04-13 23:50:06 +02:00
Christian Dywan
c2e0342bb3 Left mouse button and mouse wheel changes zoom level
The left mouse button behaves identical to Control.
2011-04-10 22:43:05 +02:00
Paweł Forysiuk
09a92c16bb Save speed dial thumbnails by uri rather than by dial id 2011-04-10 20:35:28 +02:00
James McMinn
624259991e Unset tooltip on location if no security is given
Fixes: https://bugs.launchpad.net/midori/+bug/754042
2011-04-07 23:05:54 +02:00
Christian Dywan
94ee681f07 Rename 'Quit' to 'Close all Windows'
That's what it does effectively.
2011-04-07 22:41:27 +02:00
Christian Dywan
42fa621cd9 Disable DNS prefetching in private browsing mode 2011-04-07 22:10:21 +02:00
Christian Dywan
e449ce87e2 Add 'Report a Problem' to the app menu 2011-04-07 21:25:27 +02:00
Daniel Foré
cf07acf53a Rename 'Report a Bug' to 'Report a Problem'
Users with no technical background don't talk about beetles.
2011-04-07 21:18:23 +02:00
Daniel Foré
1ccdf3b350 Organize appmenu items into more logical groups
Fixes: https://bugs.launchpad.net/midori/+bug/736072
2011-04-07 21:17:18 +02:00
Christian Dywan
3d4f288ba0 Don't consider 'Plugin will handle load' an error 2011-04-07 20:59:08 +02:00
Christian Dywan
c397c589f5 Assign slot in JSON import, don't leak it 2011-04-06 00:06:16 +02:00
Paweł Forysiuk
e314892818 Check for thumbnail directory when saving thumbnail files 2011-04-05 23:52:21 +02:00
Alexander Friesen
867d8ce87e Show access keys distinct from numbers in link search
Keys are invoked with Alt+key.

Numeric access keys don't work and are not shown as such.
2011-04-05 00:40:15 +02:00
Alexander Friesen
2460c161dd Remove link labels on navigation decision
Otherwise stale labels can appear when going back
and forward which are not backed by the view.
2011-04-05 00:13:13 +02:00
Alexander Friesen
850438daee Count link labels separately from actual elements
Not all link elements will have visible labels.
2011-04-05 00:02:14 +02:00
Christian Dywan
6931025617 Introduce --private/ -p distinct from --app/ -a
Private mode gets a particular window title, always defaults
to reading the default config folder but never saves data.

App mode applies a custom window layout with no toolbars
and using the page icon as the window icon.

From now on private and app are independant modes, so apps
can save data if config is given. Both can also be combined.
2011-04-04 23:45:45 +02:00
Christian Dywan
b2092cc64b Move config folder validity check in front of app run 2011-04-04 22:47:22 +02:00
André Stösel
2ffd780bb6 Fix detaching and reattaching the inspector to browser
Probably related to https://bugs.launchpad.net/midori/+bug/746540

Special thanks to Andy Kittner, who helped me with debugging.
2011-04-04 21:56:21 +02:00
Christian Dywan
f97d82c559 Move crash dialogue preference into the dialogue itself 2011-04-04 21:33:52 +02:00
Christian Dywan
aa401634ed Don't show toolbar preferences if running a DE
Let's assume that modern desktops have a tool to adapt the
toolbar style.

Fixes: https://bugs.launchpad.net/midori/+bug/711435
2011-04-04 21:21:27 +02:00
Christian Dywan
8134789973 Show infobars instead of dialogues for alerts
Also limit the number of alerts to 5 at any one time.
2011-04-04 03:02:03 +02:00
Paweł Forysiuk
2771eee995 Don't create speed dial when preparing view source 2011-04-04 00:24:42 +02:00
Paweł Forysiuk
ae1a3aafb9 Properly close H4 tag in empty Speed Dial slots. 2011-04-04 00:22:27 +02:00
Paweł Forysiuk
ac875f73de Remove unneded notebook variable from midori_view_speed_dial_save 2011-04-04 00:20:42 +02:00
Christian Dywan
493936adcb Always render icon only tabs at their natural size 2011-04-03 23:59:29 +02:00
Paweł Forysiuk
706fc6d063 Plug leaks and don't set name in JSON import 2011-04-03 23:25:59 +02:00
Paweł Forysiuk
1e5e1710ee Move slot and dial_id out of the loop for JSON import 2011-04-03 23:24:53 +02:00
Paweł Forysiuk
b8eb9c50f7 Save speed dial configuration file after importing from JSON 2011-04-03 23:18:12 +02:00
Paweł Forysiuk
c660aafe64 Use sokoke_build_thumbnail_path importing from JSON 2011-04-03 23:16:26 +02:00
Paweł Forysiuk
7cafd62552 Properly calculate row count when importing from JSON 2011-04-03 22:32:07 +02:00
Paweł Forysiuk
599bd748df Free up resources of encoded thumbnails 2011-04-03 22:28:20 +02:00
Christian Dywan
4cc6ec5b67 Change Quit shortcut to Ctrl+Shift+Q
It is too easy to accidentally hit Ctrl+Q while aiming for
Ctrl+A or Ctrl+W, and potentially very confusing if unexpected.

Fixes: https://bugs.launchpad.net/bugs/748364
2011-04-03 22:23:57 +02:00
Christian Dywan
912fdf7f30 Don't honor the deprecated find-while-typing option 2011-03-23 23:20:49 +01:00
Christian Dywan
e222a12c68 Don't resize empty thumbnail tab labels 2011-03-23 22:48:53 +01:00
Paweł Forysiuk
e13bebf4de Only encode and insert images of existing thumbnails 2011-03-23 22:32:49 +01:00
Paweł Forysiuk
0efdd74c77 Take care to not leak speed dial markup 2011-03-23 22:14:30 +01:00
Tomasz Szatkowski
6721c0592d Drop files or URLs onto tab labels
Fixes: https://bugs.launchpad.net/midori/+bug/735769
2011-03-23 22:05:40 +01:00
Tomasz Szatkowski
a9a5b38c29 Grow and shrink tabs dynamically to available space
Fixes: https://bugs.launchpad.net/midori/+bug/735993
2011-03-23 20:41:40 +01:00
Paweł Forysiuk
d4cc81a6c2 Take into account JSON/ non-JSON column defaults 2011-03-23 02:22:42 +01:00
Christian Dywan
c1f9d6f796 'When Midori starts' should say Speed Dial, not Blank
While we are at it, use title case in the tab title.
2011-03-23 00:54:32 +01:00
Christian Dywan
0163806daa Make speed dial in blank tabs mandatory
Fixes: https://bugs.launchpad.net/midori/+bug/699961
2011-03-23 00:28:04 +01:00
Paweł Forysiuk
d3edddea90 Rename midori_view_speed_dial_inject_thumb function since it no longer injects anything.
Additionally drop filename argument which was never used in function body.
2011-03-23 00:12:52 +01:00
Christian Dywan
34ef20ce4e Update tabs if speed dial changes or thumbnail loaded 2011-03-23 00:07:52 +01:00
Paweł Forysiuk
616f49605b Generate speed dial from key file without JSON
A timer for speed dial is shown if MIDORI_STARTTIME is defined.
2011-03-22 23:02:00 +01:00
Christian Dywan
a89ef70bee Load speed dial in private browsing mode 2011-03-22 23:02:00 +01:00
Christian Dywan
648610ef66 Always initialize variables in speeddial_new_from_file 2011-03-22 23:02:00 +01:00
Paweł Forysiuk
a8ce104d86 Helper function for computing path to thumbnail file 2011-03-22 23:01:59 +01:00
Paweł Forysiuk
9c48997a26 Use speeddial property to store GKeyFile with speeddial entries 2011-03-22 23:01:59 +01:00
Christian Dywan
b6ffbff40e Treat about: like an alias to about:version 2011-03-21 20:56:13 +01:00
Christian Dywan
91a130cf75 Don't show Clear Private Data in Private Browsing
Fixes: https://bugs.launchpad.net/midori/+bug/734664
2011-03-14 23:59:11 +01:00
Christian Dywan
ef88658853 Add Offline Application Cache to Clear Private Data 2011-03-14 01:23:39 +01:00
Christian Dywan
7ac71b6bba Don't try to load icons of special pages 2011-03-14 01:03:37 +01:00
Christian Dywan
a9872adf08 midori_browser_set_action_visible should change sensitivity
So in particular the panel is not only hidden from the menu
but also inaccessible with the keyboard.
2011-03-13 22:15:14 +01:00
Christian Dywan
11b9f915f0 Disable new speed dial key file import 2011-03-13 22:10:36 +01:00
Christian Dywan
32825e713f Use 60 connections and 6 per host, like unstable WebKit 2011-03-13 20:51:13 +01:00
Christian Dywan
4842406f27 Update the current item after re-ordering search engines 2011-03-13 18:32:08 +01:00
Christian Dywan
f2b5e82ce4 Allow re-ordering of search engines 2011-03-13 17:36:28 +01:00
Christian Dywan
fb681fac09 Resurrect right-align button on the panel
The feature is in fact far more popular than one might think.
2011-03-13 16:50:51 +01:00
Christian Dywan
b312c40456 Resolve mnemonic conflict in Tab Move Forward/ Backward 2011-03-13 15:24:40 +01:00
Christian Dywan
9e52fa93d4 Don't check for impossible mouse button value 2011-03-13 15:03:45 +01:00
Christian Dywan
ab04194ee4 Check a and link elements for next/ previous page 2011-03-13 15:03:45 +01:00
Christian Dywan
e06c2052a0 Don't show link numbers if there is no href
Those can't actually be opened so it's confusing.
2011-03-13 15:03:45 +01:00
Christian Dywan
3d15c22b0b Always save settings when quitting the browser 2011-03-12 22:10:35 +01:00
Christian Dywan
d02b234626 Enforce private/ app windows to be in normal state 2011-03-12 21:27:58 +01:00
Christian Dywan
1bedc8a76c Check if _midori_web_view_load_icon actually has a URI
A blank page wouldn't have one.
2011-03-12 21:10:01 +01:00
Christian Dywan
9ca1271020 Implement MD5 and SHA1 Link Fingerprint support
If a URL has an embedded link fingerprint the checksum
and algorithm is shown in the download prompt. After a
file has been saved to disk a warning icon will be shown
if the checksum doesn't match and clicking the icon will
explain that the file is erroneous and not open it.

See http://mdhashtool.mozdev.org/lfinfo.html
2011-03-12 21:10:01 +01:00
Christian Dywan
02d095cae0 Check for 'rel' links should be case insensitive 2011-03-12 03:38:26 +01:00
Christian Dywan
1e15abe27c Check if there is json_content to parse at all 2011-03-12 03:34:46 +01:00
Christian Dywan
a6c9b73442 Use lock-secure and lock-insecure icons if available 2011-03-12 03:34:46 +01:00
Paweł Forysiuk
c7e102992c Import JSON to key file, cache existing thumbnails 2011-03-09 02:24:27 +01:00
Paweł Forysiuk
88f7b72526 Introduce thumb:// pseudo-uri to serve thumbnails from disk cache 2011-03-09 02:10:41 +01:00
Christian Dywan
e643cc8c10 Replace unmaintained docs with FAQ from the wiki
Realistically nobody maintains offline documentation and
none of the people claiming to look into it ever did, whereas
the FAQ is being updated by or with input from individuals.

faq.html was copied from http://wiki.xfce.org/_export/xhtml/midori/faq
and all <link rel="stylesheet"> tags were replaced with
<link rel="stylesheet" type="text/css" href="faq.css" />.
2011-03-08 23:25:37 +01:00
Christian Dywan
d16b32e6c8 Fix shadow and missing initialisation warnings 2011-03-08 21:03:01 +01:00
Alexander Friesen
f237c30e06 Add MidoriBrowser::move-tab and use it in Tab Panel 2011-03-07 22:56:20 +01:00
Alexander Friesen
302c1b364d Disarm built-in notebook reorder key bindings
The keys are confusing if triggered accidentally.
2011-03-07 03:43:36 +01:00
Christian Dywan
fb9629c1aa Work around copying bug in WebKitGTK+
Fixes: https://bugs.launchpad.net/midori/+bug/707888
2011-03-06 18:13:54 +01:00
Christian Dywan
de0ede905f Focus the view on key press if nothing's focussed 2011-03-06 17:26:41 +01:00
Christian Dywan
663e7e9285 Don't emit add-download before all preparations
Notably verifying that there's space available and a file
shouldn't be overriden has to come first. This already was
the case for the transferbar which isn't using the signal.
2011-03-06 17:26:40 +01:00
Christian Dywan
d903505ee6 Support x-scheme-handler with GLib < 2.28
So for example x-scheme-handler/magnet=transmission-gtk.desktop
in the file ~/.local/share/applications/mimeapps.list allows
opening of magnet links with Transmission.
2011-03-05 03:40:10 +01:00
Christian Dywan
fc8d0a1179 Gracefully handle unset history and search engines
So app mode actually fails to search reliably and not by
accident.
2011-03-05 03:40:10 +01:00
Alexander Friesen
7e8b0bf229 Move forward should move the last tab to the front 2011-03-05 02:08:19 +01:00
Alexander Friesen
353924a117 Always links by number with Return and remove styles
Return is always required to confirm the typed number, which
is consistent and more usable with Control for new tab.

Hiding links now actually removes the extra spans.

Opening links in a new tab keeps the links visible.

Escape resets the typed digits.
2011-03-05 00:23:33 +01:00
Christian Dywan
66a1462d14 Handle uri notifications in midori_browser_set_current_tab 2011-03-02 22:26:06 +01:00
Christian Dywan
0cdcae487a Allow re-ordering tabs with Ctrl+Shift+PageUp/PageDown 2011-03-02 22:26:06 +01:00
Christian Dywan
256b351090 Provide tab overview menu on right-click of empty space 2011-03-02 22:26:06 +01:00
Christian Dywan
0e30ea3779 Propagate URI changes and update Back, Forward actions
Fixes: https://bugs.launchpad.net/midori/+bug/725826
2011-02-27 01:48:06 +01:00
Christian Dywan
9baf84dd3f Alt+9 and Alt+0 should always go to the last tab 2011-02-26 16:23:56 +01:00
Tomasz Szatkowski
ddd660b45a Copy email addresses without mailto: prefix
Fixes: https://bugs.launchpad.net/midori/+bug/358650
2011-02-26 16:05:39 +01:00
Christian Dywan
3eba817d50 Move plugin list from about:plugins to about:version 2011-02-26 03:31:52 +01:00
Paweł Forysiuk
66544898fa Show 'No plugins' if there are no plugins installed
Also free the return values.
2011-02-24 23:26:55 +01:00
Christian Dywan
667c94389a Implement internal about:plugins page 2011-02-24 22:27:55 +01:00
Paweł Forysiuk
c5178d52f4 Don't append pause: to already paused URIs 2011-02-24 21:26:50 +01:00
Christian Dywan
ac7ce0f792 Move 'Menubar' menuitem down and make it 'Navigationbar'
The menu item that appears in the context menu if all toolbars
are hidden is easy to miss, so moving it to the bottom makes it
more visible. It should also show the Navigationbar.
2011-02-24 21:26:49 +01:00
Christian Dywan
3ec44384f3 Always save when quitting the application 2011-02-24 21:26:49 +01:00
Christian Dywan
b47184778a Don't add session tabs to the history on startup
Otherwise the startup as a whole causes a lot of disk activity
that isn't really needed.
2011-02-23 22:56:28 +01:00
Christian Dywan
997db05a9e Rename 'Download link destination' to 'Save as'
Fixes: https://bugs.launchpad.net/midori/+bug/699989
2011-02-21 19:42:48 +01:00
Christian Dywan
b7f8281f77 Remove a redundant katze_array_move_item all 2011-02-21 19:42:48 +01:00
Christian Dywan
857551fe61 Add FAQ menu item to the app menu 2011-02-21 19:42:47 +01:00
Christian Dywan
ea8b9ee7fe Improve handling of cookie updates
Be sure to remove outstanding times, use libsoup API
to free the list of cookies and use the cookie jar to
delete cookies.

Fixes: https://bugs.launchpad.net/midori/+bug/712770
2011-02-20 20:55:34 +01:00
Christian Dywan
c1f592bb75 Show at minimum 10% progress when loading 2011-02-20 20:09:57 +01:00
Christian Dywan
a205df3970 Don't limit search engines shown in completion popup 2011-02-20 20:07:29 +01:00
Christian Dywan
912637025c Use distinct labels for Refresh actions in shortcut editor 2011-02-20 04:13:30 +01:00
Christian Dywan
71f89a3d8a Take text for Go button in location from the entry 2011-02-19 23:38:34 +01:00
Tomasz Szatkowski
ce106b0d7f g_strescape the URI in the location completion
Fixes: https://bugs.launchpad.net/midori/+bug/700004
2011-02-19 22:32:21 +01:00
Christian Dywan
85e78eab9a Reflect tab order in saved session
Discussed, tested and tweaked by amphi, ml| and MonkeyofDoom in IRC.
2011-02-19 22:32:21 +01:00
Christian Dywan
663a82d873 Check that pspec is not NULL when skipping state changes 2011-02-17 21:48:48 +01:00
Paweł Forysiuk
00b116a940 Use page title for inspector window tile 2011-02-17 21:38:54 +01:00
Christian Dywan
d19396a065 Add hidden setting for close buttons on the left
This value can be changed by distributions using window
decorations on the left side.

Fixes: https://bugs.launchpad.net/midori/+bug/699972
2011-02-17 20:57:57 +01:00
Paweł Forysiuk
2c4015ab94 Unescape HTML entities when importing bookmarks from Netscape HTML. 2011-02-17 20:15:35 +01:00
Christian Dywan
e272fc04f2 Don't save config file on state related property changes 2011-02-17 19:54:36 +01:00
Christian Dywan
503ed3ac94 Be sure to only migrate bookmarks if .db doesn't exist
Fixes: https://bugs.launchpad.net/midori/+bug/711377
2011-02-17 19:54:36 +01:00
Christian Dywan
40a6743e78 Check if filename to open is a filename or not
Fixes: https://bugs.launchpad.net/midori/+bug/715118
2011-02-17 19:54:35 +01:00
Christian Dywan
f4875ceb7c Escape title to be set on error pages 2011-02-17 19:54:35 +01:00
Paweł Forysiuk
b63444f3cb Escape bookmark items when exporting to Netscape HTML 2011-02-16 00:19:17 +01:00
Christian Dywan
296ede80f7 Append fallback icon instead of checking the theme 2011-02-15 21:32:08 +01:00
Christian Dywan
b55ab3afa9 Fallback to file icon if no MIME icon is found 2011-02-15 00:58:34 +01:00
Christian Dywan
3ff376b43b Mandatory transferbar and no implicit statusbar 2011-02-13 19:07:48 +01:00
Christian Dywan
cea9c3f426 Always show progress inside location bar 2011-02-13 18:35:47 +01:00
Christian Dywan
9bebcf32cc Remove search engines in completion preference
Display up to 5 engines, to not make it annoying when there
are too many in total.
2011-02-13 18:35:47 +01:00
Christian Dywan
75a1d90233 Show error on failure to read global config file 2011-02-13 18:35:47 +01:00
Christian Dywan
0bfcf34450 Rename 'Add Desktop Shortcut' to 'Create launcher'
Fixes: https://bugs.launchpad.net/midori/+bug/710281
2011-02-12 18:12:55 +01:00
Christian Dywan
4eb874f044 Update copyright year for '--version' and About dialogue 2011-02-12 17:09:35 +01:00
Christian Dywan
42bf6f5c61 Default to app menu instead of menubar 2011-02-11 23:31:27 +01:00
Christian Dywan
3dab3ac1a0 Add Bookmark Import and Export to app menu 2011-02-11 23:31:27 +01:00
Christian Dywan
18776c59b2 Add CA bundle path used on Foresight Linux 2011-02-11 23:31:27 +01:00
Christian Dywan
c0f8cda7c6 Avoid action accessors, use properties instead
Fixes: https://bugs.launchpad.net/midori/+bug/715306
2011-02-09 00:54:54 +01:00
Christian Dywan
6c0395b65e Use DESKTOP_SESSION variable if set to look for Xfce 2011-02-08 19:10:40 +01:00
Paweł Forysiuk
9ab46a3daa Append "Private Browsing" to title in private mode
Fixes: https://bugs.launchpad.net/midori/+bug/699969
2011-02-04 01:43:06 +01:00
Christian Dywan
adfedc4197 Uncached reload action, default Ctrl+Shift+R 2011-02-02 01:55:32 +01:00
Christian Dywan
6ebcc4e21c Translate explanation in about:version 2011-02-02 01:46:14 +01:00
Christian Dywan
1add09e5ea Refer to about:version instead of numbers in About 2011-02-02 01:45:38 +01:00
Christian Dywan
2d4afde696 Make download folder and notifications obligatory 2011-02-02 01:31:16 +01:00
Christian Dywan
e8d2dc3ee7 Show error dialogue for invalid bookmark export filename 2011-02-02 01:31:16 +01:00
Christian Dywan
2d3aab8d8a Add file filters for XBEL and Netscape to export 2011-02-01 01:25:27 +01:00
Paweł Forysiuk
ab7b069769 Add support for exporting to Netscape HTML 2011-02-01 01:25:26 +01:00
Samuli Suominen
26873b0f97 Conditionally support libnotify 0.7 API
Fixes: https://bugs.launchpad.net/midori/+bug/710352
2011-01-31 01:48:08 +01:00
Paweł Forysiuk
5acdb5516d Unescape URLs with spaces, not only with % 2011-01-30 21:37:06 +01:00
Christian Dywan
aeccc9e9ac Use midori_browser_add_tab for tab on tab bar click
So we get speed dial if it is enabled like on new tab button.
2011-01-30 19:11:38 +01:00
Christian Dywan
07ffc279b2 Refer to Launchpad rather than Flyspray for bug tracking
Fixes: https://bugs.launchpad.net/midori/+bug/706241
2011-01-30 18:58:00 +01:00
Christian Dywan
1f08629a4f Preserve %20 for pasting URLs into other windows 2011-01-30 18:58:00 +01:00
Paweł Forysiuk
7368ca00c1 Remove unneeded check in HTML import function.
It was triggering a missleading warning at the last line of file
giving the impression of interrupted and broken import.
2011-01-30 18:58:00 +01:00
Paweł Forysiuk
11ac3fe157 Make bookmark import button label show supported formats when importing from a file. 2011-01-30 18:58:00 +01:00
Paweł Forysiuk
74bb09b8c7 Rename HTML import function from mozilla to netscape to be more consistent. 2011-01-30 18:58:00 +01:00
Paweł Forysiuk
4ed49d001f Add initial support for HTML bookmarks import 2011-01-29 08:59:20 +01:00
Paweł Forysiuk
567d5a7d14 Remove duplicated GtkActionEntry 2011-01-29 08:58:38 +01:00
Christian Dywan
072ea586cd Use search icon name as fallback for search engines 2011-01-29 08:42:29 +01:00
Christian Dywan
f9c38fda6f Import to a new, empty bookmark array 2011-01-22 21:24:10 +01:00
Christian Dywan
7a0d04ac52 Export to a new, empty bookmark array 2011-01-22 21:17:37 +01:00
Paweł Forysiuk
2e8d6558d0 Use KATZE_ARRAY_FOREACH_ITEM_L for export 2011-01-22 21:17:08 +01:00
Christian Dywan
84beea9108 Add KatzeArray::update and call it after import
This new function and according signal allow one
update of the treeview after importing directly
into the database.
2011-01-19 21:58:26 +01:00
Christian Dywan
f0d2c49355 Fix invalid bookmark warning and move into insertion 2011-01-19 21:34:39 +01:00
Christian Dywan
2f2e368b8a Use actual data dir to store desktop shortcut 2011-01-19 21:31:23 +01:00
Paweł Forysiuk
30cc8b0694 Bail out with a warning when adding invalid folder 2011-01-18 18:25:12 +01:00
Paweł Forysiuk
535053a3e6 Separate bookmark insertion from array callback 2011-01-18 17:49:57 +01:00
Christian Dywan
355ae063a6 Fallback to / as extension folder for unit tests 2011-01-16 14:05:23 +01:00
Christian Dywan
a408d9609d Use 'user-bookmarks' icon for bookmarks
The icon exists in GNOME, Elementary, Humanity and Faenza.
2011-01-11 22:18:35 +01:00
Christian Dywan
39e915bbbf Handle drag on default text like focus in
Also only connect the signals once.
2011-01-11 21:08:27 +01:00
Christian Dywan
8f489ca872 Unify settings update and title assignment 2011-01-11 21:08:27 +01:00
Christian Dywan
7e00e760ba Allow image zoom if text and images can be zoomed 2011-01-05 19:21:50 +01:00
Christian Dywan
c712758ed3 Spawn commands with about: arguments like URIs 2011-01-05 19:13:18 +01:00
Alexander Butenko
1f15d17c5f Use existing event if available to ensure link URI
This partially resolves problems with Midori opening the
wrong link when opening tabs in the background.
2011-01-02 01:24:50 +01:00
Christian Dywan
9b3d90ec73 Always construct the child web view right away 2011-01-01 21:43:29 +01:00
Christian Dywan
6780ed8be3 Replace midori_view_new_with_uri with _new_with_title
The old function is actually being removed because it breaks
monitoring of page loading. It was only used internally so far.

Moreover a warning is now emitted when loading an URI before
adding a view to a browser.
2011-01-01 20:05:34 +01:00
Christian Dywan
6b38ed85cf Check if typed link number exists and check result 2011-01-01 19:25:21 +01:00
Paweł Forysiuk
e96ac0fabc Use GIOChannel to import Opera bookmarks
The workaround for long lines is no longer needed.
2010-12-30 20:05:16 +01:00
Christian Dywan
69c229b7a7 Don't try to set a non-existing page at startup
And print a proper warning should this occur somewhere
else later on.
2010-12-25 02:07:45 +01:00
Christian Dywan
448e119b0b Issue warning if adding to history fails 2010-12-24 16:45:40 +01:00
André Stösel
055a0f720c Add certificate file location used on FreeBSD 2010-12-16 23:02:19 +01:00
Christian Dywan
fcb4a3c3e0 Handle oddities in Russian keyboard layouts 2010-12-15 01:08:50 +01:00
Christian Dywan
d46eb5ef99 Enable spell checking while typing by default 2010-12-14 01:16:20 +01:00
Christian Dywan
1d09019b38 Implement 'Add Shortcut to desktop' for X11 2010-12-12 01:26:08 +01:00
Christian Dywan
54971fd8ae Make sure minimized tabs show up in Tab Panel 2010-12-11 20:31:18 +01:00
Christian Dywan
e0c5bbedb3 Remove ability to hide operating controls 2010-12-11 20:18:04 +01:00
Christian Dywan
1d9d52b59a Put Add Bookmark instead of Homepage in the toolbar 2010-12-11 20:12:54 +01:00
Christian Dywan
f3bde6eb58 Remove detach and right-align buttons from panel 2010-12-11 19:52:16 +01:00
Christian Dywan
2bb67fa9c5 Deprecate Destination folder and Transfer completed 2010-12-12 00:36:33 +01:00
Christian Dywan
566985bb8b Add Homepage button to default toolbar
Many people do look for it and fail to understand how to
add buttons to the toolbar.
2010-12-05 23:19:50 +01:00
Christian Dywan
40d25a4e10 Merge separate language preferences into one 2010-12-05 23:14:19 +01:00
Christian Dywan
a5c0b8539b Omit Sidepanel button from default toolbar
It is in the compact menu, and otherwise menubar.
2010-12-05 23:05:22 +01:00
Christian Dywan
ecb9de246c Put 'Find' into the compact popup menu 2010-12-05 23:01:01 +01:00
Christian Dywan
b7c8ef9c4e Leave old bookmark file around after conversion 2010-11-30 18:15:33 +01:00
Christian Dywan
f9b2a75ae4 Note on about:version that runtime versions are in brackets. 2010-11-30 18:15:33 +01:00
Christian Dywan
7ab1b55079 Pure properties on browser need to have owned getters 2010-11-24 19:10:53 +01:00
Christian Dywan
8cfc7c654f Use property proxy for custom print setting 2010-11-24 19:10:53 +01:00
Christian Dywan
97a7ae9955 Reference the hit test result before using it
It actually is owned by the WebKitWebView.
2010-11-23 22:59:19 +01:00
Christian Dywan
5f90c91a24 Use Properties stock icon for the compact menu 2010-11-22 03:49:52 +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
70de71d6a3 Do middle click and menu on tabs on button press
Doing close on middle click on a tab can cause the new tab
to be immediately closed because the mouse pointer happens
to be released under the tab after it appears.
2010-11-19 22:51:50 +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
cb83843a28 Open blank page if an item with no URI is passed
This avoids the very confusing situation where the session
file contains no URI and critical warnings are visible.

Notably MIDORI_UNARMED can cause this.
2010-11-18 21:22:12 +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
211e5314fb Enable or disable Java applet tag with plugins 2010-11-18 20:52:53 +01:00
Christian Dywan
f3831c5157 Turn view->memory into a static variable 2010-11-13 15:20:46 +01:00
Christian Dywan
61e51ea1d2 Cancel Find Links when pressing Escape key 2010-11-02 22:46:01 +01:00
Christian Dywan
32d80dcfad Follow up to correct custom docdir location 2010-11-01 21:21:58 +01:00
Christian Dywan
10222bffd2 Be sure to show bookmarkbar if enabled 2010-11-01 16:54:11 +01:00
Christian Dywan
a9244ad817 Use function to access web view and adjustments 2010-11-01 16:48:07 +01:00
Christian Dywan
ed6d44df5f Use function to access browser settings an panel 2010-11-01 16:47:32 +01:00
Christian Dywan
f2ca461638 Don't regard file URIs as external 2010-10-31 22:42:15 +01:00
Christian Dywan
b28c828f02 Reword cookie description to say 'saved games, '
This is purely an improvement to the English, no change in meaning.
2010-10-31 21:33:16 +01:00
Christian Dywan
d20f0c3b89 Only show Trash and UndoTabClose if there is a trash 2010-10-31 21:27:47 +01:00
Christian Dywan
f9559b7d27 Only show bookmarkbar if we have bookmarks at all 2010-10-31 21:27:22 +01:00
Christian Dywan
985912a9cd Go back to conservative page next from 0.2.6
This reverts to behaviour as of commit c2be3d67cf.
2010-10-30 21:53:44 +02:00
Christian Dywan
a0c0207133 Use mnemonic for "History" in Clear Private Data
This doesn't introduce a new string.
2010-10-30 21:44:19 +02: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
5f0a9676b8 Omit Find while Typing and Open panels in Windows
Those preferences are presumably addressing corner cases
and not useful in most cases.
2010-10-27 21:09:19 +02:00
Christian Dywan
80bd531d58 Always create a new style element for link find
Otherwise adding rules for link find on pages with
no stylesheets doesn't work.
2010-10-26 23:50:59 +02:00
Christian Dywan
95f2278542 Find links opens tabs with Control and Shift respectively 2010-10-26 23:04:22 +02:00
Christian Dywan
ad6905db4d Make link number style more robust
Use bold, small font, white background, 1 line high and displayed.

Mark attributes with !important to ensure the style is not
changed due to styling on the page.
2010-10-26 23:04:21 +02:00
Christian Dywan
8b7640731d Don't display link numbers at all instead of hiding 2010-10-26 23:04:21 +02:00
Christian Dywan
39253b94c5 Implement Find Links with '.', type number and Return
Inline Find is now ',' because '.' is common in some browsers
which have a Find Links feature.
2010-10-26 00:26:54 +02:00
Christian Dywan
691f6c7bbd Right-click on statusbar border should show context menu 2010-10-26 00:26:54 +02:00
Christian Dywan
7a993b9f19 Clearing icons should remove icon database as well 2010-10-26 00:26:54 +02:00
Christian Dywan
ba161aeeae Don't show 'Add to Speed Dial' with no configuration
As it won't be saved, it's not helpful to offer it.
2010-10-24 23:48:58 +02:00
Christian Dywan
cbb9189e7c Label 'Custom' and file chooser 'Import from a file' 2010-10-24 23:48:03 +02:00
Christian Dywan
21a82db268 Correct description of TabMinimize
While internally still called 'minimize', the description
needs to say that only the icon of the tab is shown.
2010-10-24 21:06:28 +02:00
Christian Dywan
b915e45332 Fallback for opening new windows in app mode
This is not quite enough, inheriting config won't
work, but better than nothing at all.
2010-10-24 21:06:27 +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
1e12cb208b Ensure action menu items don't show all 2010-10-24 21:06:26 +02:00
Christian Dywan
23db2145ad Avoid build_config_filename in main() and simplify it 2010-10-23 00:31:11 +02:00
Christian Dywan
ed0440cd9f Click Go icon in blank or speed dial to Paste and Proceed 2010-10-22 23:52:08 +02:00
Christian Dywan
f6ad3b1c21 Set location tooltip according to security status 2010-10-22 23:44:36 +02:00
Christian Dywan
03f69c0b51 Make sure 'config' is the effective folder in main() 2010-10-22 21:36:25 +02:00
Christian Dywan
68c12e950e Slice allocations in addons, net, scrolled, transferbar 2010-10-21 21:09:01 +02:00
Paweł Forysiuk
45ebf4dcdb Don't regard about: URIs as external 2010-10-21 21:09:01 +02:00
Christian Dywan
9f30695ca3 sokoke_external_uri should return FALSE for non-URIs
In particular search key words.
2010-10-21 21:09:01 +02:00
Christian Dywan
936758afdc Add translation comments to 'History' and 'Form History' 2010-10-21 21:09:00 +02:00
Christian Dywan
b25f27cd66 Add static keywords, fix #ifdefs and spurious lines 2010-10-20 23:48:36 +02:00
Christian Dywan
fc23eac478 Ask GIO for supported URI schemes
sokoke_external_uri supersedes hardcoded support for tel:
and callto: and notably doesn't count http(s).
2010-10-20 20:56:05 +02:00
Christian Dywan
26081c67f6 Expose midori_view_add_info_bar properly
All infobars are automatically removed if the location changes
or reloads now. The button arguments are dynamic. The infobar
look-alike is also closer to a real GtkInfoBar.
2010-10-20 01:24:43 +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
42299f7fe3 Use accessor for widget style 2010-10-19 00:53:01 +02:00
Christian Dywan
fc166214b0 Use accessors for statusbar message area 2010-10-19 00:53:01 +02:00
Christian Dywan
32988e55af Use accessors for window and allocation of a widget 2010-10-19 00:53:01 +02:00
Christian Dywan
f079d9c48a Use accessor for dialogue content area 2010-10-19 00:53:01 +02:00
Christian Dywan
5082f60093 Make non-progressive build work again 2010-10-19 00:53:01 +02:00
Christian Dywan
2bc7fbac24 Make 'Clear' the default button for Clear Private Data 2010-10-17 23:13:54 +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
d3b278231f Implement internal Open With fallback dialogue 2010-10-14 22:36:32 +02:00
Christian Dywan
fb3fb594a9 Eliminate 'send' flag from midori_app_send_notification
The declaration is misplaced and the logic actually makes
no sense.
2010-10-14 21:14:28 +02:00
Christian Dywan
ca2582c5e3 Don't declare command in callback as UniqueCommand
Since we're using a custom command it is in fact not part of
the enumeration and thus some compilers complain.
2010-10-14 21:11:01 +02:00
Christian Dywan
5d7bbe6eb1 Plug leak of icon path when loading icons 2010-10-14 21:07:55 +02:00
Christian Dywan
54d037f689 Free script code in thumb_view_load_status_cb with g_free
Allocating and releasing must match.
2010-10-14 21:07:55 +02:00
Christian Dywan
8302cfe004 Don't leak URI in midori_browser_get_uri_extension 2010-10-14 21:07:55 +02:00
Christian Dywan
72be5942f7 Don't leak strings when adding speed dial shortcut 2010-10-14 21:07:55 +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
89c0975e66 Present an infobar when an HTML5 database is saved
The infobar code is refactored into midori_view_add_info_bar
2010-10-14 01:37:10 +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
80ff8ac0f0 Add midori_browser_set_action_visible method 2010-10-13 23:22:54 +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
6331573a2c Allow passing NULL path to sokoke_hostname_from_uri 2010-10-13 03:23:09 +02:00
Christian Dywan
717bc948b0 Remove MidoriView::net property completely 2010-10-13 03:23:09 +02:00
Christian Dywan
eb0848e42b Present an infobar when a website asks for location
Based on a patch by Arno Renevier <arno@renevier.net>
2010-10-12 00:25:49 +02:00
Christian Dywan
9d8c819521 Always prefill language entries with default values 2010-10-10 22:41:15 +02:00
Christian Dywan
31dabca224 Shell quote URI passed to sokoke_spawn_program 2010-10-10 13:39:38 +02:00
Christian Dywan
e74f89f8c2 Remove 'filename' argument from sokoke_spawn_program 2010-10-10 13:27:06 +02:00
Christian Dywan
120c5bf40f Move app spawning to sokoke_spawn_app and use in MidoriView 2010-10-10 13:02:50 +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
579108e4e6 Don't leak the inspector_view in showing and detaching 2010-10-05 21:43:34 +02:00
Christian Dywan
a9406ab0ec Add base stock icons statically to save some memory 2010-10-05 21:43:34 +02:00
Christian Dywan
dec42c00a8 Remove the 'Open external pages in' from Preferences 2010-10-05 21:43:34 +02:00
Christian Dywan
343badcc58 Remove Console panel in favour of the Inspector 2010-10-05 21:43:33 +02:00
Christian Dywan
0b3cf4810f Add InspectPage action to dummies to make hotkey work 2010-10-05 21:43:33 +02:00
Christian Dywan
5a0fc37d2f Don't use the deprecated GTK_IN_DESTRUCTION flag
As a workaround, the browser now sets its own flag.
2010-10-05 00:04:28 +02:00
Christian Dywan
80e1c4149c Don't use GtkNotebookPage* in callback signature 2010-10-05 00:04:28 +02:00
Christian Dywan
cd783acee0 Don't use GTK_WIDGET_SET_FLAGS in browser and panel 2010-10-05 00:04:28 +02:00
Christian Dywan
b6247e3314 Shell quote argv[0] before spawning a process
The path to the executable may contain spaces.
2010-10-03 07:15:44 +02:00
Christian Dywan
9a0e2bffef Remove Remember last downloaded files preference
The preference was never actually implemented.
2010-10-03 07:15:44 +02:00
Christian Dywan
bfa8709900 Add a small label to summarise what cookies store 2010-10-03 07:15:44 +02:00
Christian Dywan
a37c1df18d Simplify cookie privacy preferences
Instead of choosing what cookies to accept, there is a tick box
if cookies should be deleted when quitting, or in other words
pretending all cookies are session cookies.

The choice of maximum age was replaced with a combo box.
2010-10-03 07:15:44 +02:00
Christian Dywan
bba6cb76ad Verify that the download location is writable 2010-10-01 01:12:12 +02:00
Christian Dywan
08691b7745 Cope with unset history in midori_location_action_toggle_arrow_cb
If history is unset, we don't have any items to populate the
combobox dropdown with. So we should always hide the button. Also
suppress the popup if we have no history.
2010-09-29 01:35:41 +02:00
Christian Dywan
4c90286e09 Make sure there are search engines before populating the menu 2010-09-24 23:35:01 +02:00
Christian Dywan
e1ae60627e Don't treat « or » as sub page indicators 2010-09-22 23:56:30 +02:00
Christian Dywan
5bdf376487 Ensure link URI is updated before it is used
Apparently the URI obtained from hovering-over-link can be
mangled, so a # would be interpreted as a fragment identifier.
2010-09-21 00:08:10 +02:00
Christian Dywan
648befe7ca Implement and use midori_view_new_with_uri
The function provides an optimised and quick way to creating
visible views with uri, title and settings. This is how virtually
all views are created.
2010-09-17 22:42:52 +02:00
Christian Dywan
5806cdb884 Return FALSE in _action_bookmarks_populate_folder if db is NULL 2010-09-17 22:42:52 +02:00
Christian Dywan
b66902ef7a Make KatzeArrayAction::activate-item-alt fully autonomous
Implementing the signal and returning TRUE makes it unneeded
to implement activate-item as well now.
2010-09-17 22:42:52 +02:00
Christian Dywan
d39148f230 Re-implement 'Bookmarks' menubar and toolbar button 2010-09-15 04:10:55 +02:00
Christian Dywan
34ddb8c2f0 Implement KatzeArrayAction::populate-folder
To go along with that, expose katze_array_action_generate_menu
as a public function to implement the signal.

In essence, this enables populating folders from other sources
than the original array, such as a database, while still
making use of the existing menu generation.
2010-09-15 04:10:55 +02:00
Christian Dywan
b7e88574c5 Remove the viewable scheme registration mechanism 2010-09-12 21:03:14 +02:00
Christian Dywan
d34da1c500 Remove pointless FIXME and TODO comments from Midori classes 2010-09-12 20:23:39 +02:00
Christian Dywan
db6e5954e8 Show statusbar on new transfars if transferbar is visible 2010-09-12 20:14:48 +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
1b80f16bf4 Remove browser-count, midori_panel_set_compact, console toolbar 2010-09-07 22:24:11 +02:00
Christian Dywan
be1a66349f The background colour is not used in completion text rendering 2010-09-06 03:03:07 +02:00
Christian Dywan
65931c3f91 Use Ctrl+Shift modifiers for Bookmarks, History and Transfers
For one, previously modifiers were missing on History and Transfers.

Further more, Ctrl+B conflicts with Bold in rich text fields, and
for consistency, panels should have the same modfiers.
2010-09-04 23:42:53 +02:00
Christian Dywan
28bdabd928 Hide statusbar in app mode by default 2010-09-03 00:32:48 +02:00
Christian Dywan
91328aef2e Use Alt+Shift+Left/ Right for Previous and Next actions
Control+Left/ Right conflicts with text cursor movement.
2010-09-03 00:21:03 +02:00
Christian Dywan
7d3fa2a478 Move WebKitGTK+ 1.1.6 guards to disable delayed pages 2010-08-28 01:43:44 +02:00
Christian Dywan
7d049555a5 Explicitly reset 'delay' status when reloading or changing location 2010-08-23 20:08:43 +02:00
Christian Dywan
5a86115a9a Rename 'Minimize Tabs' to 'Show Tab Icon Only' 2010-08-23 19:38:11 +02:00
Christian Dywan
10fab99090 Delete history from completion with Delete key 2010-08-22 03:53:47 +02:00
Christian Dywan
f8e5e8f7e0 Don't hide homepage smartly, don't show it in bookmarkbar 2010-08-22 03:39:11 +02:00
Christian Dywan
0de4e9fa08 Skip NULL key, which is the case when using the combo arrow 2010-08-22 03:25:03 +02:00
Christian Dywan
b563479014 Simplify update_interface and avoid extra updates 2010-08-16 21:01:02 +02:00
Peter de Ridder
9a78cc6f6e Support space and percent as wild cards in location completion
Internally the typed key is treated as if spaces are wildcards,
so 'hello world' would be 'hello%world'.

The text renderer splits the typed text by ' ' and '%', so
multiple words are highlighted.
2010-08-16 00:05:35 +02:00
Christian Dywan
bae41b45a8 Make 'Inspect Element' always show the inspector
Without scripts enabled, this doesn't happen implicitly.
2010-08-14 21:12:02 +02:00
Christian Dywan
9c84a2c407 Use midori_browser_open_bookmark for the bookmarkbar 2010-08-14 20:58:38 +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
0870196942 Show tooltip text on tab icon, not only the label 2010-08-07 15:30:56 +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
2d1d19de23 Remove freeze, thaw and set_uri from MidoriLocationAction 2010-07-31 13:59:48 +02:00
Christian Dywan
34d7a8033b Use KatzeArray* to signal new items to MidoriHistory 2010-07-31 01:42:14 +02:00
Christian Dywan
60eca91b74 Do NULL-safe address comparison when loading the session 2010-07-31 01:29:57 +02:00
Christian Dywan
1550c9d9f2 Don't' declare 'unescaped' twice in sokoke_format_uri_for_display 2010-07-30 22:09:03 +02:00
Christian Dywan
6b54f9e8b5 Remove the obsolete MidoriPanel::menu property 2010-07-30 22:09:02 +02:00
Christian Dywan
a724d883b1 Synchronize browser and panel toolbar style 2010-07-30 22:09:02 +02:00
Christian Dywan
2350fc0834 Disconnect settings and bookmarkbar when disposing 2010-07-30 22:09:02 +02:00
Alexander Butenko
e2ac49a76d Dont store about:* pages in history, Reset history step counter 2010-07-24 13:53:57 +02:00
Alexander Butenko
fd48f850a3 Emmit uri signals after after item uri is set 2010-07-24 13:53:12 +02:00
Alexander Butenko
9e3e3fc491 Update bookmark for export from sqlite database 2010-07-23 22:04:43 +02:00
Alexander Butenko
5e250cc70d Store 'description' property of a bookmark 2010-07-23 22:04:20 +02:00
Alexander Butenko
1339dc671b Dont add items with empty uris into history 2010-07-23 21:57:40 +02:00
Alexander Butenko
f8bf87ecf9 Dont unescape URIs which are not escaped
sokoke_uri_unescape_string handles that and handles '+'
the way we want.
2010-07-23 21:38:07 +02:00
Alexander Butenko
a770a1b488 Uri property is mandatory for history operations 2010-07-23 21:19:56 +02:00
Alexander Butenko
7086111024 Avoid double unescaping on locationbar updates 2010-07-23 21:19:42 +02:00
Alexander Butenko
f7cd519b7f Unescape spaces as well 2010-07-23 21:19:22 +02:00
Alexander Butenko
46c80ad2d1 Create MidoriView proxy item during initialization 2010-07-23 21:16:46 +02:00
Alexander Butenko
74278e6449 Properly create proxy item and cleanup history agregation 2010-07-22 00:21:03 +02:00
Alexander Butenko
3aa48c34b5 Stop listening to notify::uri signal. load-status is enough 2010-07-22 00:09:54 +02:00
Alexander Butenko
44a2351b72 Decode URIs before updating the locationbar 2010-07-21 23:39:34 +02:00
Alexander Butenko
ca9010acd5 Show decoded urls in the locationbar 2010-07-21 23:19:29 +02:00
Alexander Butenko
cac6571371 Escape space in search pattern to match the history URL format 2010-07-21 23:16:51 +02:00
Alexander Butenko
64fb6e8ee8 Fix typos and simplify SQL query for locationbar 2010-07-21 23:08:09 +02:00
Alexander Butenko
5859bbe2ab Fix edit bookmark behavior 2010-07-21 23:01:13 +02:00
Alexander Butenko
9763a1225f Verify that we have "folder" meta value in bookmark edit dialog 2010-07-19 21:42:15 +02:00
Christian Dywan
f764f25747 Implement activate-item(-alt) for bookmarkbar mouse buttons 2010-07-19 21:39:57 +02:00
Alexander Butenko
9a098e2656 Attach bookmark table and union bookmarks in location completion 2010-07-19 21:07:26 +02:00
Alexander Butenko
687de063f9 Clear the bookmarkbar before populating and populate after editing 2010-07-19 20:55:59 +02:00
Christian Dywan
b944ce0c83 Require bookmarks and folders to have a title 2010-07-19 20:47:33 +02:00
Christian Dywan
7dffde361c Append new bookmarks to the end of the store, with G_MAXINT 2010-07-19 20:42:56 +02:00
Christian Dywan
94fbf158f6 Remove conditional guards for sqlite 2010-07-17 21:31:29 +02:00
Christian Dywan
57683d45b1 Use no border (shadow) on views by default 2010-07-16 21:23:11 +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
Paweł Forysiuk
df1f754a56 Fix speed dial regex causing dials other than 1-9 to be ignored when adding 2010-07-11 23:40:52 +02:00
Christian Dywan
e794fe798a Implement minimize, duplicate and close other as actions
This allows keyboard shortcuts to be assigned to these operations.
2010-07-08 23:08:18 +02:00
Christian Dywan
880587a055 Provide a fallback definition of gtk_menu_item_set_label 2010-07-08 22:41:42 +02:00
Christian Dywan
cfd00f7fe4 Don't hide panel if individual panel was already active
What might look like a little convenience for keyboard usage
is very awkward when using buttons or menu items.
2010-07-08 22:28:02 +02:00
Samuel Creshal
922a94fc98 Delete search history when clearing history 2010-07-08 22:15:13 +02:00
Christian Dywan
c94e12e41c Use a 200ms delay for location completion like elsewhere 2010-07-05 23:38:34 +02:00
Alexander Butenko
62930be082 Introduce midori_browser_set_current_page_smartly() as public API 2010-07-05 00:14:06 +02:00
Christian Dywan
d6d1cd21a9 Remove settings Original Cookies, Last visited pages, Autodetect proxy 2010-07-04 23:10:44 +02:00
Christian Dywan
fefd9fd850 Remove "RecentlyVisited" action from the menubar 2010-07-04 22:54:27 +02:00
Christian Dywan
9ed9cebe92 Add 'Panel' menu item to compact menu button 2010-07-04 22:43:29 +02:00
Christian Dywan
bba875c634 Remove "Bookmarks" action from the menubar 2010-07-04 11:14:30 +02:00
Christian Dywan
c3e145f540 Localize Vala extensions and mark strings for translation
The -include switch is passed to the compiler to work around
Vala failing to include gi18n.h first. This works for
clang and gcc at least.
2010-07-04 10:53:21 +02:00
Alexander Butenko
2caaed659c Remove last bits of 'type' field usage 2010-07-03 22:33:45 +02:00
Alexander Butenko
067eb6c3ec Display correct folder name in bookmark edit dialog 2010-07-03 22:33:45 +02:00
Alexander Butenko
659b7c351e Add 'folder' property to bookmarks 2010-07-03 22:33:45 +02:00
Alexander Butenko
dbcc8e2054 Do removal from bookmarkbar via the database 2010-07-03 22:33:44 +02:00
Alexander Butenko
1e8e6f4652 Fix handling of 'app' property on bookmark open 2010-07-02 23:34:33 +02:00
Alexander Butenko
ad5066a43f Remove ghosts after bookmark edit. Merge edit/ delete callbacks 2010-07-02 23:32:06 +02:00
Christian Dywan
93b0b9029b Check absent 'version' in toplevel 'xbel' element
Albeit required, in pracise the 'version' value may be missing.
2010-07-02 23:06:10 +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
Alexander Butenko
60593b27d1 Skip bookmark URIS starting with '('
Due to a bug in the sqlite handling we were happily adding
folders with '(null') and it happened to work until now.
2010-07-01 23:37:14 +02:00
Alexander Butenko
6fb35107a0 Fix for folders in bookmarksbar 2010-07-01 23:37:14 +02:00
Alexander Butenko
3c4896f94f Start using new sqlite helper functions 2010-07-01 23:37:14 +02:00
Alexander Butenko
bd97f069d4 Introduce katze_array_from_sqlite () and katze_array_from_statement () 2010-07-01 23:37:13 +02:00
Alexander Butenko
94b6cf4e17 Fix display of the bookmark properties in the add dialog 2010-07-01 20:46:55 +02:00
Alexander Butenko
090a16f664 Fix bookmark folder properties dialog 2010-07-01 20:32:23 +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
Christian Dywan
28aa06366c Declare URI accessors in Midori.View as unowned
Wrongly declared, Vala will think it needs to free the strings.
2010-06-30 22:26:52 +02:00
Christian Dywan
01f568b8ab 'Use current' should set 'about:blank' for a blank page 2010-06-30 21:21:06 +02:00
Peter de Ridder
d1694c6d5f Put number in front of download filename extension 2010-06-30 21:15:11 +02:00
Christian Dywan
f2e4a93c72 Dynamically create homepage button from action 2010-06-29 08:15:52 +02:00