Commit graph

1370 commits

Author SHA1 Message Date
Christian Dywan
37d89d0986 Move declaration in search action icon callback to the top 2010-01-29 21:13:44 +01:00
Christian Dywan
218a05049c Create and release script context for --run/ -r only when needed 2010-01-29 21:12:14 +01:00
Christian Dywan
32a62a7057 Hide the combobox arrow if the history unset or is empty 2010-01-29 18:54:58 +01:00
Christian Dywan
e5c65a160c Turn browser action helpers into macros 2010-01-28 23:50:44 +01:00
Christian Dywan
88becdd669 Destroy the thumb_view with WebKitGTK+ <> 1.1.14 2010-01-28 23:28:37 +01:00
Christian Dywan
8c62689981 Initially pressing Up in completion should select the last match 2010-01-28 23:15:49 +01:00
Christian Dywan
ca9420bdfc Always hide findbar on hotkey if visible, or when it loses focus 2010-01-28 22:35:21 +01:00
Christian Dywan
b947e5d662 Re-implement search engines in the completion 2010-01-28 22:19:00 +01:00
Christian Dywan
7065767a61 Apply scrollbar size hack to get the correct completion height
GtkEntryCompletion uses a hack to ensure that the suggestion
popup has the correct height. We do the same now.
2010-01-28 02:25:52 +01:00
Christian Dywan
3a949ac407 Use about:blank as speed dial resource root with WebKitGTK+ 1.1.14 2010-01-27 23:17:15 +01:00
Christian Dywan
38d0022ec8 Do not validate URI or title when rendering completion matches 2010-01-26 22:07:57 +01:00
Alexander Butenko
5fa82189fa Only show the completion after resizing it properly
Showing the completion early on will result in ugly flickering,
curiously not with xfwm4.
2010-01-25 22:10:39 +01:00
Christian Dywan
3bcd5700e1 Prevent the panel buttons from shrinking below minimum width 2010-01-25 21:44:26 +01:00
Christian Dywan
36becf34c8 Re-implement location arrow popup with sqlite
All uses of populating filter model, freezing and the hash table
are replaced by populating the combo box model on popup.
2010-01-25 21:44:26 +01:00
Alexander Butenko
4854cfab5d Use notify-send only as a fallback if libnotify is not available 2010-01-25 21:44:26 +01:00
Christian Dywan
65c56f26a8 Rely on sqlite for completion, otherwise disable it entirely 2010-01-25 01:19:03 +01:00
Christian Dywan
726c7c34e0 Popdown completion if key is empty or there are no matches 2010-01-25 00:06:32 +01:00
Christian Dywan
f0bfc701d9 Correct panel toggle button tooltip to say 'Hide operating controls' 2010-01-24 11:04:17 +01:00
Christian Dywan
82cb12b605 Revise and unitfy behavior modulating modifier handling
We define modfifier macros that indicate whether a modifier
indicates a new window, new tab, background tab or scrolling.

Modifier checks in the address entry, the search entry and view
now use the same consistent modifiers.
2010-01-24 11:00:52 +01:00
Alexander Butenko
dc25035e29 Sort completion matches by visits in complete days 2010-01-24 11:00:51 +01:00
Christian Dywan
edc6d6587c Update Firefox identification to Firefox 3.8 2010-01-21 18:59:34 +01:00
Christian Dywan
3a3fa03bf4 Implement 'Inspect page' menuitem with WebKitGTK+ >= 1.1.17 2010-01-21 18:59:34 +01:00
Christian Dywan
0442113b94 Popdown completion when location text is changed explicitly
Programmatic changes are done when adding, closing or switching
the current tab, and that should popdown completion.
2010-01-20 23:20:28 +01:00
Christian Dywan
8aba77a0e9 Allow button handling for selection and context menu in location entry 2010-01-20 23:16:29 +01:00
Christian Dywan
897af36ed5 Revise completion to react on paste/ cursor/ backspace
We need to avoid updating the real text afterall, but update it
in the event of a cursor movement.

We also need to trigger completion on backspace or paste.

We need to remove the timer when we popdown completion.

We need to make sure to not show completion for empty text.
2010-01-20 23:11:25 +01:00
Christian Dywan
33d90b247c Truly update text in location entry to make Home, End and friends work 2010-01-20 21:55:54 +01:00
Christian Dywan
e0a50c47d3 Clicking inside the location entry closes the completion window 2010-01-20 21:34:17 +01:00
Christian Dywan
4110b64ae8 Let hovering completion suggestions select rows 2010-01-20 21:28:44 +01:00
Christian Dywan
0145cb3171 Make clicking completion suggestion actually open the address 2010-01-20 21:25:39 +01:00
Christian Dywan
cabc3f0764 Fill in address if clicked on completion suggestion 2010-01-20 07:48:34 +01:00
Christian Dywan
0795c4f13c Add #define for gtk_widget_has_focus for GTK+ < 2.18 2010-01-20 07:11:20 +01:00
Christian Dywan
04f953dc0d Don't trigger completion on control characters 2010-01-19 07:11:51 +01:00
Alexander Butenko
4b35435c2c Order completion matches by most recent visit, ascending 2010-01-19 06:42:21 +01:00
Alexander Butenko
5bf92be622 Don't show completion if the entry already lost focus 2010-01-19 06:34:53 +01:00
Alexander Butenko
b5a23cec3a Show completion popup only after resizing the columns 2010-01-19 06:28:07 +01:00
Christian Dywan
1f3313424f Use a tree model filter visible function to limit recent items 2010-01-17 22:36:44 +01:00
Christian Dywan
c99921022f Implement completion with live sqlite queries
If sqlite is available, we can directly query results from the
database and populate our model on the fly.
2010-01-17 18:14:49 +01:00
Christian Dywan
07261e284c Re-implement location action with our own completion popup
Completion is triggered on key press only, with a delay of 150ms.

Completion can be triggered by input method usage.

The popup size adjusts to the entry size and closes if focus is lost.
2010-01-17 18:14:49 +01:00
Christian Dywan
27634e4f1e Use prepared statement to read history array instead of exec 2010-01-17 18:14:49 +01:00
Christian Dywan
7f26cc7384 Remove 'Search engines in completion' functionality
The feature doesn't work well with more than two engines.
2010-01-17 18:14:49 +01:00
Christian Dywan
2d8c8bebf5 Add G_GNUC_CONST to all Midori type functions 2010-01-17 18:14:48 +01:00
Christian Dywan
86d060f250 Change db_ helpers in main.c into direct sqlite3_ calls
This means 1 function call instead of 2 or 3 calls for each
query and should reduce some overhead.
2010-01-15 07:07:00 +01:00
Christian Dywan
8dbc86361d Implement 'Close other tabs' menu item in tab context menu 2010-01-14 02:49:19 +01:00
Dale Whittaker
96178e60b7 Check page icons of search engines first, afterwards icon names 2010-01-13 06:55:49 +01:00
Christian Dywan
789485a086 Do no extra type checking when querying the history database 2010-01-13 00:10:32 +01:00
André Stösel
4e561eeef3 Fixup the key value to allow Ctrl + Shift + Tab 2010-01-12 23:34:10 +01:00
Christian Dywan
dab3505e0c Store argument vector and display it in about:version 2010-01-12 23:34:10 +01:00
André Stösel
ca5bfa1b1d Allow the panel to expand, to stop it from ever-growing in fullscreen 2010-01-11 21:55:12 +01:00
Christoph Wickert
96a03e91bf Use FileTransfer category rather than Network for download managers 2010-01-10 22:02:46 +01:00
Christian Dywan
a4a9cd91d3 Use an alignment the image size request to adjust close buttons 2010-01-10 22:02:46 +01:00
Christian Dywan
16947894d4 Make %u in command lines work just like %s
This is not strictly by the spec but it works in practise.
2010-01-10 22:02:46 +01:00
Christian Dywan
9cf6f6a3cc Move around preferences so Open panels in Windows is always shown 2010-01-10 07:22:21 +01:00
André Stösel
de4eede5cc It should be 'gint position', not gboolean 2010-01-10 07:22:20 +01:00
Christian Dywan
a7cbc73981 Add i18n comments for Paste Proceed as well as Go to next/ previous page 2010-01-10 07:22:20 +01:00
Christian Dywan
9db458ba9c Hide panel toolbooks when there is only a controls button in there 2010-01-08 01:43:33 +01:00
Christian Dywan
317eefa1c8 Prevent a recurive loop when toggling operating controls 2010-01-08 01:08:37 +01:00
Christian Dywan
dba473e069 Move the logo on special pages to the background 2010-01-08 00:42:23 +01:00
Christian Dywan
a8cd1499ab Move panel icons to the bottom and always remove the labels
This is an attempt at simplifying the panel, in the hope
that it is still discoverable enough.
2010-01-08 00:16:56 +01:00
Christian Dywan
cbebda0db4 Remove Plugins panel, instead add Netscape plugins to Extensions
Netscape Plugins cannot actually be activated or deactivated
at the moment.
2010-01-08 00:16:56 +01:00
Christian Dywan
f4c7df59b4 Connect accelerators of implicitly created panel actions 2010-01-08 00:16:55 +01:00
Christian Dywan
139132afbd Implement about:version page with important build configuration aspects 2010-01-08 00:16:55 +01:00
André Stösel
5c89cc8bd2 Spell accept language header as 'Accept-Language' 2010-01-08 00:16:55 +01:00
André Stösel
b5b32495f9 Implement 'Preferred languages' preference, ACCEPT_LANGUAGE header 2010-01-07 01:35:51 +01:00
Christian Dywan
b7d09f38bb Handle window raising without the help of unique 2010-01-06 23:40:46 +01:00
Christian Dywan
996f1a86d3 Omit an unused config variable when loading extensions 2010-01-06 23:40:45 +01:00
Christian Dywan
5d5d2517c8 Rename 'Spell checking languages' to 'Spelling dictionaries' 2010-01-06 23:40:45 +01:00
Christian Dywan
66d72c915e Add a label 'Spell checking languages:' in front of the spell entry
The entry by itself is confusing to many users, and a label is better
than nothing while we don't have a better interface.
2010-01-04 23:42:30 +01:00
Christian Dywan
b8037dc906 Ctrl + Right-click to suppress javascript button handling
Pages like Google Maps handle right-clicks and either provide
their own sort of context menu or just disable the menu. We
want the option to always get our proper menu.
2010-01-04 23:42:30 +01:00
Christian Dywan
97d6137ea8 Disable developer extras in web app mode 2010-01-03 23:00:27 +01:00
Christian Dywan
bb9ec27402 Build only main.c in the progressive midori target 2010-01-03 22:58:04 +01:00
Christian Dywan
bebacc8565 Determine whether we can view the source via g_content_type_is_a 2010-01-03 22:26:15 +01:00
Christian Dywan
83f68c90d9 Use mnemonic s instead of C for 'Copy Link destination'
It can conflict if Copy is visible due to a selection.
2010-01-02 22:03:32 +01:00
Christian Dywan
3163c659e5 Implement 'Open Link as Web A_pplication' in link context menu 2010-01-02 21:59:34 +01:00
Christian Dywan
af43d5a761 Construct entry in location action, obsoleting location entry class 2010-01-02 01:25:57 +01:00
Christian Dywan
d55e771b3a Merge MidoriLocationEntry progress drawing into GtkIconEntry 2010-01-02 00:21:49 +01:00
Christian Dywan
fb04846992 Fix a macro typo in the GtkIconEntry implementation 2010-01-01 23:45:29 +01:00
Christian Dywan
d81f84aa9c Show bookmarkbar if 'Show in the toolbar' is used on a bookmark 2010-01-01 23:37:13 +01:00
Christian Dywan
578f74a308 Merge compat.h into sokoke and remove gtk_show_uri implementation 2010-01-01 23:24:03 +01:00
Christian Dywan
2f202f8020 Implement "Paste and proceed" menuitem in location context menu 2010-01-01 23:01:56 +01:00
Christian Dywan
311a5a8a1b Store searches with tokens in the completion as a distinct item
Currently searches won't be stored persistently in the database.
2010-01-01 22:47:24 +01:00
Christian Dywan
3aff0a34d0 Disable 'inline' completion, it causes a huge extra matching overhead 2010-01-01 21:53:28 +01:00
Christian Dywan
8039785073 Move up/ down key handling from the entry into MidoriLocationAction 2010-01-01 18:23:15 +01:00
Christian Dywan
15658145b2 Build katze, core and panels as one, and allow non-progressive build
This simplifies the build and possibly helps with linking problems
on some platforms. The 'progressive' option allows building
without an intermediate static library except for unit tests.
2010-01-01 18:20:08 +01:00
Christian Dywan
fc7689f906 Move DNS prefetching into the core
The feature is going to be included with WebKitGTK+ and
having it in the core allows us to prefetch bookmarks as well.
2010-01-01 18:16:55 +01:00
Christian Dywan
35d99286d6 Enable page cache by default with WebKitGTK+ 1.1.18 2010-01-01 04:48:36 +01:00
Christian Dywan
df6f4a16b8 Show error message if bookmarklet/ javascript: fails 2009-12-31 05:15:24 +01:00
Enrico Tröger
9183f8e16d Connect callbacks for gtk_widget_destroy where signature differs
Apparently dependent on architecture and compiler, mismatching
callback signatures can cause segmentation faults.
2009-12-29 23:49:10 +01:00
Christian Dywan
b1ee80d55e Implement katze_utf8_stristr, katze_collfold and use in completion
Evidently normalizing any whole string is too slow for completion,
so we need to even out case and composition while iterating through
the strings.

The decompositing version of katze_utf8_stristr is disabled, since
it is too slow, and an ascii only version is used, for now.

A unit test 'compare' is added that solely measures performance of
katze_collfold and katze_utf8_stristr.
2009-12-28 23:59:54 +01:00
Christian Dywan
8b7fdb7a56 Check that g_utf8_normalize was non-NULL, fallback otherwise 2009-12-27 22:18:02 +01:00
Peter de Ridder
10d3733f2d Reword history error messages to be more accurate 2009-12-27 17:20:42 +01:00
Christian Dywan
b973527239 Remove SelectionSourceView action stubs
The web inspector is more than good enough for inspecting select
parts of a page.
2009-12-27 17:05:40 +01:00
Christian Dywan
2d80e60106 Include 'Inspect element' in all menus and show Copy in link menus 2009-12-27 17:02:32 +01:00
Christian Dywan
bd078ed1dd Print error on console if script execution failed 2009-12-27 16:54:34 +01:00
Christian Dywan
b45fe5cca2 Implement Next and Previous buttons and add to the default toolbar 2009-12-27 13:41:37 +01:00
Christian Dywan
f51785f0aa Make completion 'inline' which makes it instanteous
Against expectation making the entry completion 'inline' does not
show the first match inline but completes instantly when typing.
2009-12-26 23:02:20 +01:00
Christian Dywan
bf11be2cfe Normalize text when matching location completion 2009-12-26 22:57:18 +01:00
Christian Dywan
0f988af446 Tweak location match rendering by reducing conditions 2009-12-26 15:21:39 +01:00
Christian Dywan
3686061033 Update location icon for the correct view, and update it properly 2009-12-26 15:20:57 +01:00
Christian Dywan
be5c679b39 Optimize icon handling in MidoriView and use Find for blank page
We return early where appropriate and use icon names when possible.
2009-12-26 15:20:56 +01:00
Christian Dywan
fc8145aa41 Add workaround for wrong context menus in forms and certain links
There is no API currently to tell if the pointer is over a form
control and there seem to be cases of wrongly reported context.
2009-12-23 23:13:25 +01:00
Christian Dywan
112966fe67 Implement web inspector attaching/ detaching properly 2009-12-23 22:01:42 +01:00
Christian Dywan
407e4dd5d3 Enable web inspector by default and remove the preference
Apparently the web inspector is not discoverable and a lot of
people who would use it, are not aware of its existence. So
we enable it by default.
2009-12-23 16:24:51 +01:00
Christian Dywan
a671f8fd5b Remove unused Original cookies only preference
If we implement it, a new value in accept-cookies is good enough.
2009-12-23 16:03:04 +01:00
Christian Dywan
973e4aa907 Bookmarking a link is a new bookmark, hence pass TRUE for new_bookmark
This used to work by accident as long as the code wasn't optimized
to avoid removing and adding existing bookmarks.
2009-12-23 15:26:34 +01:00
Christian Dywan
7801ecfeb5 Return TRUE when starting inline find, to prevent inserting . or / 2009-12-23 15:24:51 +01:00
Christian Dywan
cec6b31044 Initialize diagnostic_dialog to FALSE by default 2009-12-22 01:07:01 +01:00
Alexander Butenko
613979a579 Declare fd_recv early at the top of socket.c 2009-12-21 23:22:04 +01:00
Christian Dywan
d0e72f5d33 Fix crasher in sokoke_hostname_from_uri and add additional tests 2009-12-21 18:26:50 +01:00
Christian Dywan
4e25f72768 Fix two typos from replacing g_file_test with g_access in sokoke 2009-12-21 18:26:49 +01:00
Christian Dywan
8f0d632ef5 Add -d, --diagnostic-dialog command line switch 2009-12-21 18:26:49 +01:00
Alexander Butenko
045cc81b45 Use g_access instead of g_file_test consistently 2009-12-19 11:28:46 +01:00
Christian Dywan
a94cf71700 Turn libnotify into a build-time dependency, mind notify-send
libnotify support is decided at build-time now, to avoid so name
issues. notify-send is still optional at runtime as a fallback.
2009-12-15 00:03:28 +01:00
Christian Dywan
f905420967 Show spell checking preferences unconditionally 2009-12-14 23:25:33 +01:00
Christian Dywan
e04a078de4 Check for libnotify.so.1 and libenchant.so.1 explicitly
Some distributions only install versioned libraries by default
while the generic files reside in development packages. This is
because later versions may break ABI, so we explicitly use
the supported version.
2009-12-14 18:54:32 +01:00
Christian Dywan
c9da1beb1c Fix visibility of the Statusbar action 2009-12-14 18:52:16 +01:00
Christian Dywan
a6a4f0ffec Make sure there is an URI when spawning private browsing
This is mainly an issue for unit tests.
2009-12-13 15:59:54 +01:00
Christian Dywan
d2d5bf33b6 Implement context menu in menu items, forward buttons from the menubar 2009-12-13 15:44:02 +01:00
Christian Dywan
18ec1f25cb Add primitive Private Browsing based on Midori web app mode
Essentially it's just an instance of Midori that doesn't load or
write any preferences or personal data. The main drawback is that
it doesn't load any extensions either.
2009-12-12 21:56:11 +01:00
Christian Dywan
ff2e042898 Show Manage Search Engines in the context menu of the address entry 2009-12-12 21:55:37 +01:00
Christian Dywan
fb5d74d53f Validate uri and title in completion in case of invalid UTF-8 2009-12-12 18:04:48 +01:00
Christian Dywan
63e3672632 Validate formatted URI, otherwise pass the original URI
Apparently g_uri_unescape_string can return invalid UTF8, so
until we can replace or fix it, we double check to avoid
crashing in g_markup_escape_text and other places.
2009-12-12 01:21:06 +01:00
Christian Dywan
e403f2259b Don't remove edited bookmark from parent if it's at the toplevel 2009-12-12 00:14:20 +01:00
Christian Dywan
79101c3350 Revise saving bookmarks to file, recursively 2009-12-11 23:59:08 +01:00
Christian Dywan
7ce27f542f Revise populating and updating of the bookmarkbar
Avoid removing items except when actually newly added.
2009-12-11 23:58:21 +01:00
Christian Dywan
50b37c3f28 Parse meta info for array from xmlNodePtr 2009-12-11 23:43:56 +01:00
Daniel Michalik
d6457fd085 Check for the correct dialogue response for Save As
This fixes choosing Save As in file download fialogues.
2009-12-09 20:58:15 +01:00
Christian Dywan
8d3b12629c Omit Hildon customizations in MidoriBrower that can be configured 2009-12-09 20:58:15 +01:00
Christian Dywan
0542a0fcf2 Only write settings with values that differ from the defaults 2009-12-09 20:58:15 +01:00
Christian Dywan
a08caa02b9 Retain the visibility of the navigationbar in fullscreen mode
It can be hidden manually, the way it used to be in 0.2.0
2009-12-08 23:57:58 +01:00
Daniel Michalik
7c80307642 Use more common Ctrl + Return to open a new tab from the location 2009-12-07 23:59:06 +01:00
Christian Dywan
4f5262df42 Make internal link element search a truly anonymous function 2009-12-07 22:31:43 +01:00
Christian Dywan
88b720295f Implement middle click on the bookmark button in the bookmarkbar 2009-12-07 21:14:10 +01:00
Christian Dywan
47514c180e Set an invalid config dir in app mode to prevent accidental pickup
We don't want web apps to accidentally use configuration files from
the default folder, eg. for speed dial.
2009-12-07 20:58:07 +01:00
Christian Dywan
9adf9458b0 Support executing multiple passed commands one after another 2009-12-07 20:52:32 +01:00
Christian Dywan
23a2d8e491 Handle -e/ --execute in Midori web application mode 2009-12-07 20:44:29 +01:00
Christian Dywan
38205dd351 Implement Quit in Midori in web application mode 2009-12-07 20:41:13 +01:00
Christian Dywan
427ae90f08 Try to search for it, if middle click open encounters a non-URI 2009-12-07 20:38:02 +01:00
Daniel Michalik
61e51c1991 Update default search engine if the according search engine is modified 2009-12-07 20:38:02 +01:00
Christian Dywan
fadd0f31c2 Allow Ctrl+C to break normally while still handling it well 2009-12-07 20:38:02 +01:00
Christian Dywan
9c40d3b5ba Handle Empty menu item in bookmarks and not in KatzeArrayAction 2009-12-05 23:58:40 +01:00
Christian Dywan
ca6174ba6c Support RDF bookmarks, and add Epiphany to Import bookmarks 2009-12-05 23:43:12 +01:00
Christian Dywan
1fa2c95bf4 Implement reverse ordering for use in Trash and RecentlyVisited actions 2009-12-05 21:33:19 +01:00
Christian Dywan
05d9c26e37 Add Konqueror to the Import bookmarks dialogue 2009-12-05 20:14:41 +01:00
Christian Dywan
3a1b795b9e Add Custom option to Import bookmarks dialogue 2009-12-04 02:55:08 +01:00
Christian Dywan
da0304964e Refactor XBEL writing to use GString and filter out control characters
The writing becomes faster because we avoid some redundant allocations
and we improve XML compatibility by filtering out control characters
which are not supported in Midori.
2009-12-03 23:13:15 +01:00
Christian Dywan
c7601bdb9a Use Preferences icon for Tools if used in the toolbar 2009-12-03 00:06:53 +01:00
Christian Dywan
ded1573054 Handle long lines when importing Opera bookmarks 2009-12-02 23:46:34 +01:00
Christian Dywan
718d832537 Add 'Import bookmarks' button into the bookmark panel 2009-12-02 23:11:59 +01:00
Christian Dywan
a35b548589 Add 'Web Cache' to Delete private data dialogue 2009-12-02 19:02:59 +01:00
Christian Dywan
2ea4ae7079 Revise handling of application paths when importing bookmarks 2009-12-02 00:39:56 +01:00