Commit graph

573 commits

Author SHA1 Message Date
Paweł Forysiuk
3e2e8906fb Remove leftover version guards for WebKit > 1.1.17 2011-08-15 22:56:38 +02:00
Paweł Forysiuk
c5151ff09a Clean up usage of pseudo-uris in special pages 2011-08-15 21:30:22 +02:00
Paweł Forysiuk
5a0e6099c3 Drop res_root argument from midori_view_load_alternate_string.
It is never actually used in the function body.
2011-08-08 15:32:48 +02:00
Paweł Forysiuk
aeef4e4ee3 Use static variable to store speeddial markup.
While it does not make anything faster, it causess way less I/O.
2011-08-08 15:30:38 +02:00
Paweł Forysiuk
1cdda41b59 Measure the whole load time not just preparing speed dial markup 2011-08-08 15:26:59 +02:00
Christian Dywan
a3ab258819 Don't show startup preference in private browsing
Introduce sokoke_is_app_or_private helper function.
2011-08-04 23:59:16 +02:00
Christian Dywan
504188151e Mention online FAQ if documentation is not installed 2011-08-02 00:02:00 +02:00
Paweł Forysiuk
630e23412a Resurrect KatzeNet-based page icon loading
Accidentally removed as part of 0dbee646b7 .
2011-08-01 21:57:59 +02:00
Christian Dywan
053dcb98ca Return empty string if there's no speed dial
'markup' is not set at this point.
2011-07-28 23:12:46 +02:00
Christian Dywan
0b880b8a9b Fallback to URI for delayed page if there's no title 2011-07-28 22:58:16 +02:00
André Stösel
25cdc7161b Make the infobar labels selectable. 2011-07-27 23:04:39 +02:00
Christian Dywan
338ddf8ea7 Consider all about: URIs as blank
about:version is prominently not rendered as "" so we need
to check the prefix.

Fixes: https://bugs.launchpad.net/midori/+bug/784337
2011-07-24 22:50:15 +02:00
Christian Dywan
eb7245c30a Zoom in steps of 10% instead of 25% by default
Related to: https://bugs.launchpad.net/midori/+bug/707026
2011-07-09 21:43:02 +02:00
Alexander Butenko
aafd5bc0a0 Dont crash on unvalid geo: links
Fixes: https://bugs.launchpad.net/midori/+bug/804866
2011-07-04 23:42:24 +02:00
Paweł Forysiuk
e1c79b3a60 Properly rename speed dial item containing multiple spaces 2011-07-04 23:26:55 +02:00
Paweł Forysiuk
12aed6c566 Compose complete markup inside prepare_speed_dial_html() 2011-06-25 00:10:30 +02:00
Paweł Forysiuk
01c353366d Remove legacy code from midori_view_populate_popup
Delete code which was ommited by mistake in commit
46de9f7767.
Only version check was removed, whithout actually
removing legacy code.
2011-06-17 11:57:20 +02:00
Christian Dywan
8bac897a88 Purge unused web_frame in midori_view_construct_web_view 2011-06-17 11:54:21 +02:00
Christian Dywan
783bed774a Remove erroneous title check in set_uri
The condition was written this way due to the now gone legacy
workaround, the title shouldn't be checked at all.
2011-06-17 11:13:41 +02:00
Paweł Forysiuk
46de9f7767 Remove further support for WebKitGTK+ < 1.1.14 2011-06-09 00:45:34 +02:00
Paweł Forysiuk
0dbee646b7 Require WebKitGTK+ 1.1.14, remove backwards compatibility 2011-06-08 22:38:05 +02:00
Paweł Forysiuk
11dd3d758f Drop thumb:// pseudo-uri since it is not reliable enough 2011-06-02 01:03:10 +02:00
Christian Dywan
3a8ce008ad Use a form for the Try Again button in error pages
Fixes: https://bugs.launchpad.net/midori/+bug/784931
2011-05-20 22:04:11 +02:00
Christian Dywan
476c20aae4 Revert "Render empty speed dial shortcuts as Add icons" 2011-05-15 01:35:55 +02:00
André Stösel
64bb60afd8 Don't fail on network cancelled errors 2011-05-13 16:07:28 +02:00
Christian Dywan
1f99c1fe9d Render empty speed dial shortcuts as Add icons
And only show the icons if scripts are enabled.
2011-05-06 02:07:11 +02:00
Christian Dywan
9ff5114b76 Perform fewer string allocations preparing shortcuts 2011-05-06 01:55:39 +02:00
Christian Dywan
023c64fa97 Don't assign boolean to icon_size variable 2011-05-06 01:48:50 +02:00
Christian Dywan
414997b236 Implement support for geo URI RFC 5870 2011-05-05 21:49:51 +02:00
Paweł Forysiuk
b74d00abe6 Set speed dial size without javascript
So the layout is right with and without javascript. And we
also hide the Edit and Remove buttons and options appropriately.
2011-05-04 22:45:00 +02:00
Paweł Forysiuk
2b2df20dd0 Use proper markup for empty dials 2011-05-03 20:42:59 +02:00
Paweł Forysiuk
2a9282df75 Look for logo in folder midori/res, not midori/ 2011-05-01 18:56:39 +02:00
Christian Dywan
4bab11061c Render search engine icons via the action 2011-05-01 18:49:09 +02:00
Christian Dywan
47437114c7 Implement new libsoup cache for >= WebKitGTK+ 1.3.11
The web cache extension is automatically hidden/ disabled if
WebKitGTK+ is new enough, the new cache is a core feature.

By default 100 MB of pages can be cached on disk.

The 'Applications' preference tab is resurrected.

The same folder ~/.cache/midori/web is used for old and new cache.
2011-05-01 06:59:00 +02:00
Paweł Forysiuk
12f353f8ea Use platform specific separator for res:// path 2011-05-01 01:05:22 +02:00
Paweł Forysiuk
7dec022471 Build correct logo path for not found error page 2011-04-30 12:13:07 +02:00
Christian Dywan
e6d8e10606 Show libSoup version from pkg-config in about:version 2011-04-30 12:00:12 +02:00
Christian Dywan
4b272c0459 Don't ignore unset title but fallback to the URI 2011-04-29 02:58:45 +02:00
Christian Dywan
1011d5c5b5 Address leaked strings and item references 2011-04-26 01:29:26 +02:00
Christian Dywan
bb2f6fbf2e Render filename as title of patches 2011-04-25 21:04:28 +02:00
Paweł Forysiuk
17d458b0ca Ellipsize label in infobars created by MidoriView
So overly long messages don't cause the window to grow.
2011-04-21 20:51:03 +02:00
Christian Dywan
7614e319ce Remove 'Open' from tab context menu 2011-04-21 00:11:43 +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
feb69e8fd9 Video format availability in about:version 2011-04-18 01:28:38 +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
7dc01d70ef Render themed icon as native SVG if available 2011-04-17 03:32:35 +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
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
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
Christian Dywan
3d4f288ba0 Don't consider 'Plugin will handle load' an error 2011-04-07 20:59:08 +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
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
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
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
Paweł Forysiuk
599bd748df Free up resources of encoded thumbnails 2011-04-03 22:28:20 +02:00
Christian Dywan
912fdf7f30 Don't honor the deprecated find-while-typing option 2011-03-23 23:20:49 +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
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
b6ffbff40e Treat about: like an alias to about:version 2011-03-21 20:56:13 +01:00
Christian Dywan
7ac71b6bba Don't try to load icons of special pages 2011-03-14 01:03:37 +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
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
Paweł Forysiuk
88f7b72526 Introduce thumb:// pseudo-uri to serve thumbnails from disk cache 2011-03-09 02:10:41 +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
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
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
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
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
997db05a9e Rename 'Download link destination' to 'Save as'
Fixes: https://bugs.launchpad.net/midori/+bug/699989
2011-02-21 19:42: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
Christian Dywan
f4875ceb7c Escape title to be set on error pages 2011-02-17 19:54:35 +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
6ebcc4e21c Translate explanation in about:version 2011-02-02 01:46:14 +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
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
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
Christian Dywan
fcb4a3c3e0 Handle oddities in Russian keyboard layouts 2010-12-15 01:08:50 +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
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
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
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
a9244ad817 Use function to access web view and adjustments 2010-11-01 16:48:07 +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
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
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
1e12cb208b Ensure action menu items don't show all 2010-10-24 21:06:26 +02:00
Christian Dywan
68c12e950e Slice allocations in addons, net, scrolled, transferbar 2010-10-21 21:09:01 +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
32988e55af Use accessors for window and allocation of a widget 2010-10-19 00:53: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
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
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
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
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
579108e4e6 Don't leak the inspector_view in showing and detaching 2010-10-05 21:43:34 +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
d34da1c500 Remove pointless FIXME and TODO comments from Midori classes 2010-09-12 20:23:39 +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
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
bae41b45a8 Make 'Inspect Element' always show the inspector
Without scripts enabled, this doesn't happen implicitly.
2010-08-14 21:12:02 +02:00