Commit graph

2337 commits

Author SHA1 Message Date
Christian Dywan
2bc867054a Enable experimental fullscreen API if available
Such as used by YouTube and other sites for HTML5 video.
2012-03-05 22:34:46 +01:00
Christian Dywan
7361a80e24 Tweak is_ip_address and add IPv6 test cases
Stop wrongly mistaking foo::bar for IPv6.
2012-02-29 23:17:02 +01:00
Christian Dywan
7e61fce9ca katze_array_find_token may yield token without keywords
Also adapt the magic uri test.
2012-02-29 22:58:16 +01:00
Christian Dywan
079403a806 Free hostname in midori_web_settings_get_site_data_policy 2012-02-28 23:54:52 +01:00
Christian Dywan
70b85bf600 Skip site data rule policy check on empty rules 2012-02-28 23:51:31 +01:00
Christian Dywan
61af413407 Ensure we have a window in _action_reload_stop_activate 2012-02-26 00:03:15 +01:00
Christian Dywan
7c7be5644d Honor site data policy when requesting HTML5 databases
See: https://bugs.launchpad.net/midori/+bug/767442
2012-02-26 00:03:15 +01:00
Christian Dywan
6fd666aa9f Honor site data policy when clearing web cookies 2012-02-26 00:03:15 +01:00
Christian Dywan
4c142e7688 Implement basic site data policy and unit tests
See: https://bugs.launchpad.net/midori/+bug/836729
2012-02-26 00:03:14 +01:00
Christian Dywan
307c79274d Replace libunique/ hildon line with single instance
Only one can be used at any one time.
2012-02-26 00:03:14 +01:00
Tomasz Szatkowski
127595f527 Close tabs by middle clicking on close button
Fixes: https://bugs.launchpad.net/midori/+bug/936317
2012-02-25 03:03:58 +01:00
Christian Dywan
1488301535 Spacing and use ascii checkmarks for codecs in about: 2012-02-25 02:42:50 +01:00
Christian Dywan
18b6b48ef5 Abstract availability of Netscape plugin support
Disable if MOZ_PLUGIN_PATH is / or MIDORI_UNARMED.
2012-02-25 02:06:46 +01:00
Christian Dywan
9275a6cd24 Handle Flash cookies on Windows and OS X 2012-02-25 00:52:55 +01:00
Christian Dywan
569b8e4779 Merge cookies, other data and caches in Clear Private Data 2012-02-25 00:52:55 +01:00
Christian Dywan
77d095f6ef Versioned prgname to override menuproxy blacklist
Fixes: https://bugs.launchpad.net/midori/+bug/874334
2012-02-23 01:09:59 +01:00
Christian Dywan
bcc6711f27 Use updated, unique arrays for Bookmarks and Tools 2012-02-22 22:00:23 +01:00
Christian Dywan
5c0255f7cb Make the browser aware of native menubars
Most notably a native menubar can't be hidden.
2012-02-21 21:52:30 +01:00
Christian Dywan
ffb86ce7ff Use GDateTime instead of GDate if available
GDate depends on broken msvcrt code.
2012-02-21 21:47:07 +01:00
Christian Dywan
79b29a9362 Avoid string split in midori_location_action_popup_timeout_cb 2012-02-20 21:58:03 +01:00
Christian Dywan
f3a4bd4b6a Show description or URI below search suggestions
In fact, laying out the completion popup is problematic
if we have rows of different heights.
2012-02-20 21:56:06 +01:00
Christian Dywan
a064a5f120 Make sure completion window is not user-resizable
Otherwise window managers may ignore programmatic
resizing entirely.
2012-02-20 21:54:26 +01:00
Christian Dywan
8960da4c2f Revamp completion popup positioning 2012-02-20 21:53:10 +01:00
Christian Dywan
5643728994 Fix warnings in midori_location_action_set_security_hint 2012-02-19 22:58:54 +01:00
Christian Dywan
b20a1e7efd Pick fallback extension based on MIME type 2012-02-19 22:57:45 +01:00
Christian Dywan
f549824b66 Move data source saving into MidoriView 2012-02-19 22:43:38 +01:00
Christian Dywan
bbbfa0d677 Consider focus when toggling clear button
Fixes: https://bugs.launchpad.net/midori/+bug/934083
2012-02-19 21:53:58 +01:00
Christian Dywan
d2fe0791e1 Drop OpenSSL support from socket code 2012-02-19 20:21:37 +01:00
Christian Dywan
d2aa1919aa Move the right window after dragging a tab out
Fixes: https://bugs.launchpad.net/midori/+bug/931294
2012-02-19 17:59:54 +01:00
Vincent Cappe
62f0ef746c When removing bookmarks, folder must not be NULL
If folder is NULL, we end up with "(NULL)" in sqlite.

Modified patch to use katze_str_non_null.

Fixes: https://bugs.launchpad.net/midori/+bug/926914
2012-02-19 17:52:14 +01:00
Alexander Butenko
69c319d62a Sqlite pragma tuning for formhistory and history 2012-02-19 17:52:12 +01:00
Christian Dywan
94236e1a9f Pass URI in _action_private_browsing_activate
We need to, to avoid using GIO-based launching which
would mixup the arguments.
2012-02-14 00:24:22 +01:00
Christian Dywan
cc7cf39150 Unify getting an image for an item 2012-02-14 00:24:22 +01:00
Christian Dywan
8b766ca2a8 Ensure consistent fallback for no MIME type 2012-02-11 04:55:36 +01:00
Christian Dywan
15fd840a9d Split midori_view_unset_icon from _update_icon 2012-02-11 04:27:57 +01:00
Alexander Butenko
01f6279a92 Load icons without indirection and no extra passes 2012-02-11 01:33:46 +01:00
Christian Dywan
5bb1c5025f Avoid allocations in _action_location_submit_uri
Skip whitespace without changing the string.

And take advantage of the fact that _find_token now
can deal with a complete URI.
2012-02-10 23:31:42 +01:00
Christian Dywan
9c323ff149 Only use _action_copy_activate work-around < 1.4.3 2012-02-10 23:31:42 +01:00
Christian Dywan
f0c4b3d538 Return saved boolean from button_press in button_release
It may or may not happen that WebKit reacts on clicks
regardless of the boolean returned in button_press, as
a work-around button_release returns the same value now.

Fixes: https://bugs.launchpad.net/midori/+bug/707024
2012-01-29 19:14:24 +01:00
Christian Dywan
fe1b21a73f Re-order about:private, no title case, no URI 2012-01-27 23:08:42 +01:00
Christian Dywan
ce527689c6 Split about.css from error.html for about:private 2012-01-27 23:06:37 +01:00
Christian Dywan
f1e168b569 Implement informative text for private browsing
Internally about:private is shown when private browsing
is invoked without any URLs.

Fixes: https://bugs.launchpad.net/midori/+bug/768572
2012-01-27 21:42:04 +01:00
Christian Dywan
32eb583cb5 Also reset icon when resetting location 2012-01-27 21:13:45 +01:00
Christian Dywan
3f8784213d Consistently use internal action toggling 2012-01-24 23:57:41 +01:00
Christian Dywan
e4475b4c49 midori_location_action_set_icon_for_uri is unneeded 2012-01-24 23:57:40 +01:00
Christian Dywan
3464afd167 Get rid of the unused accel group in the app 2012-01-24 23:57:40 +01:00
Christian Dywan
ab720a177d Consistently use public API to activate actions 2012-01-24 23:57:40 +01:00
Christian Dywan
fb44d46db0 Handle window icon inside MidoriBrowser
Fixes: https://bugs.launchpad.net/midori/+bug/918567
2012-01-24 23:57:40 +01:00
Christian Dywan
41a0ab4bc7 Add missing > when generating about:widgets 2012-01-19 01:39:38 +01:00
Peter Hatina
c0e0bee467 Implement sokoke_entry_set_clear_button_visible
Fixes: https://bugs.launchpad.net/midori/+bug/699954
2012-01-14 00:34:11 +01:00
Christian Dywan
ff95e17f6f New download filename generation for all downloads 2012-01-14 00:13:52 +01:00
Peter Hatina
b045c01d06 Implement Open in Image Viewer menu item
Add helper functions to handle filenames:
midori_browser_download_prepare_destination_uri
midori_browser_download_prepare_filename

Fixes: https://bugs.launchpad.net/midori/+bug/699992
2012-01-13 23:53:09 +01:00
Peter Hatina
c9f982633d Handle menubar in fullscreen like other bars
Related to: https://bugs.launchpad.net/midori/+bug/783675
2012-01-13 23:42:16 +01:00
Christian Dywan
9236ffb4bb Add Bookmarkbar menu item to app menu below Panel 2012-01-12 02:23:42 +01:00
Christian Dywan
556546320b Don't encode config hash in app name for socket 2012-01-10 01:42:37 +01:00
Alexander Butenko
b850dd3da2 Reduce URL copying in _midori_web_view_load_icon 2012-01-06 01:48:22 +01:00
Christian Dywan
1bff3b12a3 Introduce midori_view_always_same_tab to include mailto 2012-01-06 01:41:05 +01:00
Alexander Butenko
20228cfdd6 Open all Javascript: links in same tab and adjust menu 2012-01-06 01:26:52 +01:00
Christian Dywan
451cd1fbea Allow search engine addresses prefixed with %s
Related to: https://bugs.launchpad.net/midori/+bug/909423
2012-01-05 00:01:09 +01:00
Christian Dywan
57b093293a Only strip referrer from valid Soup URI
Fixes: https://bugs.launchpad.net/midori/+bug/909415
2012-01-03 23:47:11 +01:00
Martin Robinson
5396456ec2 Add support for WebGL
WebKitGTK+ can be built with WebGL support and if we
are running under a version that includes it, expose
an option to enable it.

The feature is enabled by default for git builds.

Fixes: https://bugs.launchpad.net/midori/+bug/853665
2012-01-03 22:45:21 +01:00
Christian Dywan
bf7cfa902c Handle = key for inline search in Ukrainian layout
Fixes: https://bugs.launchpad.net/midori/+bug/715082
2012-01-03 22:12:30 +01:00
Alexander Butenko
3a2ad2d242 Don't reset NULL stmt in location popup
Fixes: https://bugs.launchpad.net/bugs/910353
2012-01-03 21:34:45 +01:00
Christian Dywan
81250720de Introduce midori_array_query_recursive
This effectively fixes bookmark export.

Fixes: https://bugs.launchpad.net/bugs/906837
2012-01-03 21:15:19 +01:00
Christian Dywan
5261fdcf87 Multi file upload and slider fallback to widget demo 2012-01-03 20:18:07 +01:00
Christian Dywan
6d68f52b8e Inspector should use same icon name as browser 2012-01-03 20:18:07 +01:00
Christian Dywan
c242639558 Allow hiding of titlebar when window is maximized 2012-01-03 20:18:07 +01:00
Christian Dywan
34c7d601c6 Always unset delay on about: pages
These pages are not affected by delay but going to
a different page will honor the still set delay.
2011-12-18 02:12:36 +01:00
Paweł Forysiuk
ee055334ce Implement dragging of speed dial shortcuts 2011-12-18 01:51:10 +01:00
Christian Dywan
d20f05f9a6 Use classes in widget demo including file controls 2011-12-17 22:50:57 +01:00
Christian Dywan
46f94eddf5 Use appearance in widget demo instead of colors 2011-12-17 21:45:13 +01:00
Christian Dywan
11cfe7db2b Fix progress element in demo and add missing comma 2011-12-17 20:23:01 +01:00
Christian Dywan
d3a065c259 Implemment about:widgets page for HTML5 widgets 2011-12-17 19:09:27 +01:00
Christian Dywan
a19d798049 Always hide the border when going fullscreen
Fixes: https://bugs.launchpad.net/bugs/783675
2011-12-17 11:36:09 +01:00
Christian Dywan
568461c6c5 Set appropximate minimum size on inspector
Fixes: https://bugs.launchpad.net/midori/+bug/867582
2011-12-17 11:18:01 +01:00
Christian Dywan
e2816612c5 The dark themes are there since GTK+ 3.0 in fact
The Since in the documentation is wrong.
2011-12-17 11:06:11 +01:00
Christian Dywan
cd8cb17b9e Use icon channel-(in)secure-symbolc if available
Fixes: https://bugs.launchpad.net/bugs/905086
2011-12-17 10:57:35 +01:00
Christian Dywan
1126ec1088 Use style classes for location entry in GTK+3
The classes are .security_trusted and .security_unknown.
2011-12-17 10:46:03 +01:00
Christian Dywan
de26c19a01 Undo 'Refactor icons handling. Reducing strdups, improve memory cache usage'
That change was unstable and is better revisited after release
2011-12-17 10:40:23 +01:00
Christian Dywan
849351554e Request dark style for private browsing windows
Fixes: https://bugs.launchpad.net/midori/+bug/905056
2011-12-16 02:15:07 +01:00
Christian Dywan
330a782c1c No timeout for notebook sizing, but a size cache
The timeout was a bad idea because it means the user
can see what's happening for a short period of time.

Caching the last size is less efficent but there's
no visible delay and it's still a big win.
2011-12-16 01:15:50 +01:00
Christian Dywan
1984c69d07 Use previously cached icon in error pages
This notably includes delayed pages.
2011-12-16 00:55:07 +01:00
Alexander Butenko
9e5fb1ef27 Refactor icons handling. Reducing strdups, improve memory cache usage 2011-12-16 00:55:07 +01:00
Alexander Butenko
b32d0d86dc Speeddial MIME type is text/html 2011-12-15 04:29:44 +01:00
Christian Dywan
1966875e98 Correct accidental _modify_fg rather than _text
Fixes: https://bugs.launchpad.net/midori/+bug/904276
2011-12-15 04:29:44 +01:00
Christian Dywan
9a45f8976e Distinguish a view that can be saved, view source
Looking at the data source determines if there's a
way to save the data. The prime use case is having
images in tabs.

Fixes: https://bugs.launchpad.net/midori/+bug/903499
2011-12-14 01:37:14 +01:00
Christian Dywan
7e50bb18f8 Set minimize property from item when creating view
Fixes: https://bugs.launchpad.net/midori/+bug/903325
2011-12-14 01:15:26 +01:00
Christian Dywan
00d8621fe7 Unify toolbar rebuilding in _action_menubar_activate
And merge _midori_browser_save_toolbar_items into it,
which was already not used anywhere else.

CompactMenu is now always skipped and automatically
added if the menubar is hidden. So it can no longer be
duplicated or appear in the toolbar editor.

Fixes: https://bugs.launchpad.net/midori/+bug/903003
2011-12-14 00:03:02 +01:00
Christian Dywan
c522706d63 Only copy icon_uri when needed in _midori_web_view_load_icon 2011-12-14 00:03:02 +01:00
Christian Dywan
0cde623901 Unset dont-write-history and append, instead of 0
So the values don't stay in the saved session.
2011-12-14 00:03:02 +01:00
Christian Dywan
b874009e00 Escape and unescape for unique and never otherwise
Also don't bother to apply magic when receiving the command,
it was already applied before.
2011-12-11 03:27:02 +01:00
Christian Dywan
c8b19b2eeb Avoid copying of strings and making tiny allocations 2011-12-11 02:57:04 +01:00
Christian Dywan
c4cf5affc5 Ensure title from item is set and uri can be NULL 2011-12-11 02:52:37 +01:00
Christian Dywan
1b86c1d913 Use new color API in location action
Apparently back compatibility failed here.

Fixes: https://bugs.launchpad.net/midori/+bug/898445
2011-12-11 02:52:37 +01:00
Christian Dywan
566794a67e Use system ca file from libsoup if possible 2011-12-11 02:11:36 +01:00
Peter Hatina
35757c2842 Update toolbar menu items (actions) after changes
Fixes: https://bugs.launchpad.net/midori/+bug/853023
2011-12-10 19:31:00 +01:00
Christian Dywan
9ba0c2806e Iterate children in notebook_alloc_timeout 2011-12-10 19:30:48 +01:00
Christian Dywan
1845d0bcbc Reduce notebook alloc timeout and update each time 2011-12-10 19:27:05 +01:00
Christian Dywan
a57850e533 Rebase browser_set_current_tab on _set_current_page
The behavior should really match.
2011-12-09 21:11:01 +01:00
Christian Dywan
9c11fb1219 No need to move proxy item if it is appended 2011-12-09 21:01:29 +01:00
Christian Dywan
3d96749b93 Set a timeout on notebook size updates 2011-12-09 21:01:29 +01:00
Christian Dywan
cd05d0a351 Use new _with_item constructor everywhere 2011-12-09 21:01:29 +01:00
Christian Dywan
652e392192 Manually building actions is a huge speedup 2011-12-08 02:55:25 +01:00
Christian Dywan
c44f76abb9 Avoid setting the same URI on the item given 2011-12-07 23:19:32 +01:00
Christian Dywan
64f9028eea Handle 'append' as meta, neither object data nor argument
This is more in line with 'dont-write-history' and 'delay'.
2011-12-07 23:15:04 +01:00
Christian Dywan
bd3c1b50fb Handle 'delay' without the pseudo pause: scheme
Behavior change: Tabs won't remain delayed beyond the session.
If some users rely on this, it will need discussion.
2011-12-07 23:08:11 +01:00
Christian Dywan
9888ad610d Avoid extra loop for adding delay to all items 2011-12-07 23:01:50 +01:00
Christian Dywan
ef9e5b6e6c Avoid counting total pages when not necessary 2011-12-07 22:42:06 +01:00
Christian Dywan
e698ba3380 Introduce helper for correctly restoring tabs
We need to ensure a reference on the item.
2011-12-07 22:31:13 +01:00
Christian Dywan
6143654279 Introduce and use midori_view_new_with_item 2011-12-07 21:27:38 +01:00
Alexander Butenko
42387e9b8b Remove conext-ready signal from browser and view 2011-12-07 20:34:11 +01:00
Alexander Butenko
312d321ff9 Skip window_object_cleared in non-http-frames 2011-12-07 20:30:42 +01:00
Christian Dywan
6a068b458b Teach _toggle_tabbar_smartly what fullscreen means
And introduce midori_browser_is_fullscreen

Related to: https://bugs.launchpad.net/midori/+bug/783675
2011-12-01 20:54:27 +01:00
Christian Dywan
5e784e9bcb Avoid superfluous _midori_browser_update_actions calls 2011-12-01 20:04:32 +01:00
Christian Dywan
f50ec92a81 Print cairo versions in about:version 2011-12-01 20:04:32 +01:00
Christian Dywan
d0db33711d Limit items in trash in private browsing 2011-12-01 20:04:32 +01:00
Christian Dywan
0e93695979 Be sure to always initialize startup timers 2011-11-28 23:41:32 +01:00
Christian Dywan
b3344bf6f7 Define H and V widget functions for GTK+3
The horizontal variants are gone from the API.

gtk_rc_get_theme_dir has been deprecated, there is
no replacement so we do the equivalent lookup.

Right-aligned menu items are deprecated.

For now defining gtk_widget_render_icon and
gtk_widget_set_size_request gets rid of warnings.
2011-11-28 23:37:34 +01:00
Christian Dywan
668689fd17 Use struct members in katze_item_set_value_from_column 2011-11-28 23:35:58 +01:00
Paweł Forysiuk
75c5f57f91 Attach Win32 console to stdout if not redirected 2011-11-28 20:42:08 +01:00
Christian Dywan
47445f8c94 Use gdk_display_get_app_launch_context if available 2011-11-28 20:42:08 +01:00
Christian Dywan
e4963aa324 Introduce midori_array_query to unify bookmark queries
This ensures querying is consistently quoted and ordered.
2011-11-23 00:23:41 +01:00
Christian Dywan
6ff2109adb Make Paste and Proceed insensitive if nothing to paste 2011-11-22 21:57:20 +01:00
Christian Dywan
59b3d9319c Implement midori_view_web_view_get_snapshot for GTK+ 3 2011-11-20 22:36:55 +01:00
Christian Dywan
c60a9d220a Tweak last_folder handling to avoid warnings 2011-11-20 22:19:08 +01:00
Christian Dywan
0d2a6cd72f Sort out boxes and scrollables with GTK+ 3.2
There is only GtkBox, neither GtkHBox nor GtkVBox.

Constructors and defaults have changed, we need
to set "orientation" for vertical boxes.

The panel takes care of its pages, and the view
of itself.

gtk_container_add on GtkBox is different to GtkVBox
so we must use gtk_box_pack_start.

GtkScrollable exists as a proper interface now.
2011-11-20 22:14:30 +01:00
Christian Dywan
bfe8f9b879 Fix arguments given to midori_browser_save_source 2011-11-19 21:35:56 +01:00
Christian Dywan
963747523e Retain 'settings' group and highest slot for empty 2011-11-18 23:54:49 +01:00
Christian Dywan
1515b1e8d9 Only show one empty speed dial shortcut at the end
And discard invalid groups automatically.
2011-11-18 22:34:56 +01:00
Christian Dywan
e0168e5a94 Undo "Don't show empty speed dial shortcuts in-between"
This needs more work. The way it is, dial count is broken.
2011-11-18 21:21:50 +01:00
Christian Dywan
4c2fd067ff Midori.URI.parse_hostname clearer semantics and tests 2011-11-18 01:44:48 +01:00
Christian Dywan
c956b6cb75 Add .htm when viewing source if there's no extension 2011-11-18 00:00:41 +01:00
Christian Dywan
a260fdce12 Disable shadows with WebKitGTK+ 1.2.7 2011-11-17 01:50:32 +01:00
Christian Dywan
040a1670e4 Introduce MIDORI_PARAM_DELAYED_SAVING mechanism
The flag says which properties don't trigger saving
to avoid disk I/O.
2011-11-17 00:03:52 +01:00
Peter Hatina
d809cd6040 Save paned actions as separate toolbar items 2011-11-17 00:03:52 +01:00
Christian Dywan
ed5561567b Enforce monospace font elements separately
Fixes: https://bugs.launchpad.net/bugs/888814
2011-11-16 02:08:30 +01:00
Christian Dywan
7cf7dea9ee Drop unused sokoke_combo_box_add_strings 2011-11-16 02:08:30 +01:00
Christian Dywan
acc556e384 Don't initialize app name property
Otherwise lazy name generation is not triggered.
2011-11-16 02:08:29 +01:00
Christian Dywan
be7c663424 Add MidoriPanedAction implementation 2011-11-15 23:55:34 +01:00
Peter Hatina
ccd0562d7d Split location and search entry
Fixes: https://bugs.launchpad.net/midori/+bug/738422
2011-11-15 23:43:14 +01:00
Christian Dywan
524a4bb0a7 Fix compilation broken by wrong speed dial change 2011-11-15 22:42:03 +01:00
Christian Dywan
8ecfdd701e Don't show empty speed dial shortcuts in-between
It is confusing a lot of users.
2011-11-15 21:13:49 +01:00
Christian Dywan
52ae8c90e8 Define navigator.javaEnabled and .mimeTypes
In private browsing 'navigator' is overridden.
2011-11-15 18:34:19 +01:00
Christian Dywan
069ade42d0 No about dialog hooks since GTK+ 2.24, not 3.0 2011-11-15 18:34:19 +01:00
Christian Dywan
49758e4dd8 Ensure data is initialized in midori_array_to_file_format 2011-11-15 18:34:19 +01:00
Christian Dywan
77796803c5 Work around G_CONST_RETURN use in unique.h 2011-11-15 18:34:19 +01:00
Peter Hatina
9572ff99cc Hide all bars in fullscreen and a menu to Unfullscreen
Fixes: https://bugs.launchpad.net/midori/+bug/783675
2011-11-11 01:22:15 +01:00
Christian Dywan
a762ba5a16 Only look for missing speed dial thumbs in the first pass
Otherwise updating after loading a thumb may trigger an
infinite loop by looking for the very same thumb again.
2011-11-10 23:17:18 +01:00
Paweł Forysiuk
db51b7d575 Center speed dial via percentual margin 2011-11-10 22:24:21 +01:00
Christian Dywan
6f6a57a623 Undo "Don't queue thumbs already waiting, 5 seconds timeout"
For now the behavior isn't reliable enough and should
be investigated more.
2011-11-10 19:45:23 +01:00