Commit graph

466 commits

Author SHA1 Message Date
Christian Dywan
a25c34e280 Support res directly in sokoke_find_data_filename
One allocation less each time, less fragmentation.
2011-10-29 01:16:08 +02:00
Christian Dywan
b8a8272398 Correctly rewrite user style URI 2011-10-29 00:57:44 +02:00
Christian Dywan
4d872505fb Use midori_uri_parse in Addons to handle installation 2011-10-28 23:53:14 +02:00
Christian Dywan
5244bda781 Don't color tabs of blank/ special pages 2011-10-28 23:22:03 +02:00
Christian Dywan
be04be8303 Introduce and use Midori.URI.is_http
Also make further uses of Midori.URI.parse.
2011-10-28 22:49:10 +02:00
Christian Dywan
dc103bf017 Generate addon style in addons_activate_cb 2011-10-27 19:44:15 +02:00
Christian Dywan
9f37c58013 Recognize effectively empty prefixes of a stylesheet 2011-10-27 19:32:17 +02:00
Christian Dywan
19b22b9ae2 Don't skip user stylesheets on special pages 2011-10-26 23:10:24 +02:00
Christian Dywan
4854e2e2d7 Use new style API for global user stylesheets 2011-10-26 23:10:24 +02:00
Christian Dywan
4b33fd2c7d Avoid GTK+3 #ifdef and #define GTK_DIALOG_DESTROY_WITH_PARENT 2011-10-26 20:07:11 +02:00
Christian Dywan
b29ee13da6 Use GTK_COMBO_BOX_TEXT with Statusbar Features 2011-10-20 23:36:34 +02:00
Christian Dywan
8f421d6cfc Use find_property for has-separator in History List
So we can avoid compile-time warnings.
2011-10-20 23:35:37 +02:00
Christian Dywan
ee85789fc4 Use gtk_combo_box_text_new_with_entry in Statusbar Features
Fixes: https://bugs.launchpad.net/midori/+bug/878449
2011-10-20 22:48:51 +02:00
Christian Dywan
3fa294d100 Require GLib 2.22 it's already an implicit dependency 2011-10-17 02:47:56 +02:00
Christian Dywan
85b1b8509a Install form history always-load only if should_init 2011-10-17 02:47:55 +02:00
André Stösel
b639067520 Resize the history list treeview in GTK3, not the parent 2011-10-13 18:31:51 +02:00
Alexander Butenko
eeb4b7b391 Reduce strlen usage in adblock by using GString 2011-10-10 22:37:57 +02:00
Lucas Baudin
b5aad2d176 Allow building with GTK+3
Fixes: https://bugs.launchpad.net/midori/+bug/861351
2011-10-07 20:24:02 +02:00
Paweł Forysiuk
24604a3db6 Save compiled addon regexpes instead of strings 2011-09-21 23:28:43 +02:00
Christian Dywan
bac3dc1842 Introduce MIDORI_EVENT_CONTEXT_MENU in midori-platform.h
The new header contains all state and event handling.
2011-09-21 23:04:20 +02:00
Paweł Forysiuk
4cdc347287 Only run user scripts on the main frame 2011-09-14 02:38:22 +02:00
Paweł Forysiuk
602d0e1366 Properly omit user script / styles on special pages 2011-09-14 02:19:30 +02:00
Alexander Butenko
b574501978 No adblock on special pages 2011-09-14 01:59:57 +02:00
Paweł Forysiuk
f748a9b8a4 Drop midori_ from addon function names for consistency 2011-09-14 01:34:08 +02:00
Paweł Forysiuk
b557233290 Don't bother with stock, res and favicons uris in adblock 2011-09-14 01:33:07 +02:00
André Stösel
a568b29c38 Actually display the favicon in history list 2011-09-06 01:24:45 +02:00
André Stösel
597ca48410 Fix spelling error in Switch to last viewed tab 2011-08-18 22:17:54 +02:00
Paweł Forysiuk
3e2e8906fb Remove leftover version guards for WebKit > 1.1.17 2011-08-15 22:56:38 +02:00
André Stösel
2e532f1895 Allow users to enable form history per tab (Ctrl+Shift+F)
Note: you have to reload the page before the state change has any
effect.
2011-08-15 21:30:21 +02:00
Alexander Butenko
ac78646f83 Don't do pattern matching if link was matched by key 2011-07-05 03:55:53 +02:00
Alexander Butenko
3db46d2297 Always check rules options, not only in pattern matching 2011-07-05 03:54:31 +02:00
Alexander Butenko
15a06bbfe1 Integrate Adblock preferences with extension list 2011-06-24 23:55:08 +02:00
Alexander Butenko
4d7424adc4 Fix length calculation and typos in fixup function 2011-06-24 21:48:03 +02:00
Alexander Butenko
60cb44c846 Remove legacy code from adblock 2011-06-24 21:42:32 +02:00
Alexander Butenko
bd10649982 Ignore rules with subdocument property 2011-06-24 21:26:05 +02:00
Alexander Butenko
f093e55f85 Skip empty lines in adblock rules files 2011-06-24 21:20:08 +02:00
André Stösel
ebf892e2de New shortcut to display the current selected tab in background 2011-06-24 21:04:48 +02:00
André Stösel
b49de2ab26 Add a new option to change behavior when closing a tab 2011-06-08 20:24:25 +02:00
Alexander Butenko
092834f65e Inline parsing functions. 10% speedup during load 2011-06-08 20:05:28 +02:00
Alexander Butenko
c71f3b37e4 Remove legacy webkit bug workaround 2011-06-08 20:03:37 +02:00
Paweł Forysiuk
f46f3f0be0 Speed-up JS generator function in Adblock 2011-06-08 20:02:48 +02:00
Alexander Butenko
5f1cd907ad Some tiny Adblock speed-ups with regex optimization 2011-06-08 19:59:18 +02:00
Alexander Butenko
4e656cc127 10x speed-up in loading of CSS rules for Adblock 2011-06-08 19:51:26 +02:00
Alexander Butenko
fc842d9751 Add URL cache in adblock extension
We can bypass all tests on the second load of the URL.
2011-06-02 00:48:02 +02:00
Paweł Forysiuk
dfb7225af5 Double check that we're not adding addons twice 2011-05-26 21:05:07 +02:00
Paweł Forysiuk
6cc4c9db4e Clean up data file handling in Form History 2011-05-22 15:49:49 +02:00
Christian Dywan
a95f2f0f7f Remove pre-WebKitGTK+ 1.1.4 support from Form History 2011-05-22 14:35:14 +02:00
Paweł Forysiuk
03254c22af Merge HTTP logins with Form History in Clear Private Data 2011-05-22 14:32:10 +02:00
Christian Dywan
f97395dab1 Validate URIs and render entry red if invalid
Fixes: https://bugs.launchpad.net/midori/+bug/710855
2011-05-15 16:46:23 +02:00
Alexander Butenko
6885c35886 Fix loading of lists from https
Fixes: https://bugs.launchpad.net/midori/+bug/699978
2011-05-15 13:17:25 +02:00
Christian Dywan
fad55dc8a1 Avoid allocating rest_of_line and file extension 2011-05-13 16:29:40 +02:00
André Stösel
c7e70f6808 Allow cancelling the History List with Escape
Just like Alt+Tab.
2011-05-03 20:42:59 +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
André Stösel
ed0024390b Let History List properly override tab switching 2011-04-30 12:19:30 +02:00
Paweł Forysiuk
bbfa7f6030 Fix GCC 4.6 warnings about set but unused variables 2011-04-29 04:03:33 +02:00
Christian Dywan
cd4cd3f52e Make Tab Panel use the correct foreground colours
In particular when used in combination with Colorful Tabs.
2011-04-25 17:56:56 +02:00
Paweł Forysiuk
908081813e Don't set tooltip twice on user script/style delete button 2011-04-18 01:37:09 +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
5107d35fe7 Remove the Page Holder extension from the tree
It is unmaintained and presumably not very popular.
2011-04-14 03:14:41 +02:00
Christian Dywan
b299608352 Don't consider scripts using GM_ functions as broken
There are cases where scripts check for the existence of such
functions and fall back to standard functions.
2011-04-04 01:50:53 +02:00
Paweł Forysiuk
728ed8570f Remove unused browser variable from addons_install_response 2011-04-04 01:15:05 +02:00
Paweł Forysiuk
61d6da99ed Fix uri matching for addon infobar on userstyles.org
We want to match a style, with a number in the URI, but not when
browsing styles.
2011-04-04 01:12:43 +02:00
Paweł Forysiuk
241a7ffb06 Display scripts using unsupported GM_ API as broken in panel 2011-03-16 21:46:05 +01:00
Alexander Friesen
f237c30e06 Add MidoriBrowser::move-tab and use it in Tab Panel 2011-03-07 22:56:20 +01:00
Christian Dywan
3e47ac9e3f Make statusbar identity combobox work like preference
So it shows a tooltip and 'Custom' works.
2011-03-05 00:23:33 +01:00
Christian Dywan
5c8a0c53c0 Fix struct definition in Mouse Gestures extension
Fixes: https://bugs.launchpad.net/midori/+bug/716885
2011-02-26 16:34:01 +01:00
Christian Dywan
215a5c1ca2 Add a zoom level combobox to Statusbar Features
Fixes: https://bugs.launchpad.net/midori/+bug/718155
2011-02-24 22:11:35 +01:00
Christian Dywan
912637025c Use distinct labels for Refresh actions in shortcut editor 2011-02-20 04:13:30 +01:00
Paweł Forysiuk
85bdfac81a Don't show infobar installer on "view source" pages 2011-02-18 02:22:11 +01:00
Paweł Forysiuk
846a7f7088 Handle addon install in view specific callbacks
Connect on the view rather than the browser and use
MIDORI_LOAD_COMMITTED which is only emitted once.
2011-02-18 02:05:51 +01:00
Paweł Forysiuk
5cdbf5e814 Free uri in adblock_is_matched_by_key after printing 2011-02-13 18:35:46 +01:00
Paweł Forysiuk
27bba3c318 Strip leading and trailing whitespace when parsing user scripts/ style 2011-02-12 16:40:57 +01:00
Paweł Forysiuk
28fbf66459 Check for destination folder before downloading userstyle/script 2011-02-09 00:22:51 +01:00
Paweł Forysiuk
dba9bb4780 Fix parsing of userscript headers containing tab chars 2011-02-09 00:16:55 +01:00
Paweł Forysiuk
7939dc1bf1 Try matching URI by extension first in script/ style infobar
Fallback to hostname if that fails
2011-02-09 00:14:27 +01:00
Paweł Forysiuk
6b48f9c639 Escape markup in user script/style tooltip and delete dialog 2011-02-09 00:10:06 +01:00
Paweł Forysiuk
7504edaa11 Fix script name extraction and re-enable installer on userscripts.org "review" pages 2011-02-04 00:33:48 +01:00
Christian Dywan
90e11d3713 Only no adblock if main frame in provisional state 2011-02-01 01:52:39 +01:00
Christian Dywan
2e35f1718b Never filter the main page itself with adblock
Fixes: https://bugs.launchpad.net/midori/+bug/706862
2011-01-30 19:25:50 +01:00
Christian Dywan
57d529d309 Don't support 'review' pages on userstyles.org for now 2011-01-30 18:58:00 +01:00
Paweł Forysiuk
1efabca2b1 Don't use GtkInfoBar api explicitly in user style/script infobar installer 2011-01-30 18:58:00 +01:00
Christian Dywan
650aa8c102 Don't error when saving addons config in test 2011-01-16 14:05:23 +01:00
André Stösel
b4e94b4f19 Be sure to end up at last opened tab after closing 2010-12-14 01:16:20 +01:00
Christian Dywan
54971fd8ae Make sure minimized tabs show up in Tab Panel 2010-12-11 20:31:18 +01:00
André Stösel
aadfd1e289 Switch to newest tabs with Ctrl+1 and Ctrl+2 2010-12-12 00:36:33 +01:00
Christian Dywan
613e78a951 Be more careful about consecuitve spaces in styles 2010-12-12 00:36:32 +01:00
Paweł Forysiuk
7bd0683869 Omit spaces and comments in user stylesheets
This fixes parsing breaking due to comments.

Further more it noticibly reduces the size of stylesheets.
2010-12-07 01:43:27 +01:00
André Stösel
cb5bdb8646 Resize History List based on the requested size 2010-11-23 23:22:47 +01:00
Paweł Forysiuk
b26df3af22 Remove unused kind_name variable in addons_uri_install 2010-11-10 00:34:31 +01:00
Paweł Forysiuk
2feb127e4b Reword userstyle/ script install message in infobar 2010-11-09 23:22:34 +01:00
Paweł Forysiuk
91390db88c Implement infobar for easy userscript/ style install 2010-11-07 23:58:26 +01:00
Paweł Forysiuk
96a276219a Handle multi-line -moz-document blocks 2010-11-05 23:27:57 +01:00
Christian Dywan
34a3c307b5 Properly omit quotes from -moz-document domain 2010-11-04 19:03:49 +01:00
Paweł Forysiuk
53a205be4d Handle single, double and absent quotes in -moz-document 2010-11-03 00:12:05 +01:00
Paweł Forysiuk
eae7ec4ac3 Recognize -moz-document domain in user stylesheets 2010-11-01 19:35:29 +01:00
Christian Dywan
ed6d44df5f Use function to access browser settings an panel 2010-11-01 16:47:32 +01:00
Christian Dywan
560ad66d48 Add 'Identify As' button to Statusbar Features 2010-10-31 21:24:34 +01:00
Christian Dywan
b86b5056f8 Remove External Applications extension 2010-10-24 21:06:28 +02:00
Christian Dywan
c78c982613 Mention Ctrl+Tab in description of History List
Otherwise people don't understand how to use it.
2010-10-22 21:50:20 +02:00
Christian Dywan
68c12e950e Slice allocations in addons, net, scrolled, transferbar 2010-10-21 21:09:01 +02:00