Commit graph

2206 commits

Author SHA1 Message Date
Christian Dywan
2f1ae3feba Make use of the XScreenSaver extension optional
The extension is only needed for the --inactivity-reset option,
so most users building Midori won't need it.
We also need to check for the according header file.
2010-04-01 18:25:30 +02:00
Christian Dywan
37e2216775 Implement -i, --inactivity-reset command line option
The use case is kiosk systems where leaving the application
idle for a period of time means that the user left, and the
session is reset so the next user starts off clean.

The implementation uses libXss and uses XScreenSaverQueryExtension
which means it is for now supported on X11 only.

Right now reset means closing any opens web pages and opening
the original web page.

Currently --inactivity-reset is only supported with --app.
2010-04-01 00:05:08 +02:00
Christian Dywan
832b2e9922 Change remaining GET_PRIVATE to priv in GtkIconEntry 2010-03-31 21:02:37 +02:00
Christian Dywan
67b9fc013a Use priv instead of GET_PRIVATE in GtkIconEntry 2010-03-31 19:05:17 +02:00
Arno Renevier
c3238d7c12 Change MidoriView into a subclass of GtkVBox
This change makes it possible to pack widgets, notably info bars,
into a MidoriView.
2010-03-31 00:18:42 +02:00
Arno Renevier
3e67ce525f Implement midori_view_get_web_view function
This provides access to the child web view even if we change
the internal packing of MidoriView.
2010-03-31 00:18:41 +02:00
Enrico Tröger
05488d8bd3 Filter keyboard state against modfifier default mask
The modifier state does in fact incorporate modal keys such as
NumLock. So code assuming that state be 0 if no modifier is
pressed is wrong, if NumLock, CapsLock and the like are active.

The solution is to filter out these modal keys with
gtk_accelerator_get_default_mod_mask(), and compare the result.

This fixes the problem of being unable to type keys used as
single-letter shortcuts.
2010-03-30 01:05:36 +02:00
Christian Dywan
fdf075513c Don't propagate key events more than once
This fixes problems with dead keys used to type accented letters.
2010-03-26 20:48:33 +01:00
Dale Whittaker
3f8b34853d Update year in Copyright headers 2010-03-25 23:06:38 +01:00
Dale Whittaker
ff63a5f7bd Wrap the location completion in a GtkFrame
That's what GtkEntryCompletion does as well, so it gives our
completion consistent appearance.
2010-03-24 23:26:51 +01:00
Christian Dywan
a15c70ec61 Add behavior preference 'Allow scripts to open popups' 2010-03-23 20:52:06 +01:00
Christian Dywan
9587fde97b Spawn new apps with the original executable name
Opening a web app or private mode should open Midori from the
same executable it was originally opened with.
2010-03-22 02:55:10 +01:00
Christian Dywan
3682b7755e Clarify MidoriApp signal documentation 2010-03-19 20:16:48 +01:00
Christian Dywan
b4a18b2aef Only print error if completion actually failed 2010-03-18 23:26:45 +01:00
André Stösel
555f7a57e4 Implement sokoke_resolve_hostname
sokoke_prefetch_uri is extended take a callback and user data.

sokoke_resolve_hostname is implemented for resolving hostnames
based on a maximum timeout.

sokoke_magic_uri resolves localhost and uris with a / to verify
if there is a local domain, otherwise falls back to search.

Thanks to Andy Kittner <andkit@gmx.de> for input on proceeding
the event loop while resolving asynchronously.
2010-03-17 02:20:58 +01:00
Christian Dywan
ba7f73891f Also update icon URI when a new icon was loaded 2010-03-16 00:26:38 +01:00
Samuel Creshal
f4b4c53166 Always pass view pointer to icon callback 2010-03-15 17:45:00 +01:00
Samuel Creshal
b10b311b07 Don't overwrite uri in _action_location_secondary_icon_released 2010-03-13 19:58:06 +01:00
Christian Dywan
25bbea02e2 Use a boolean 'special' to identify special pages
We used to load special pages, such as error pages as 'blank'
pages internally and try to identify them indirectly. This
breaks navigating back to and forward to such pages and makes
it difficult to allow stock icons for them.

Now a boolean 'special' is used which is reset on any
navigation attempt and any finished load. It is set only
if a special page is loaded.

This should make icons in error pages work reliably.
2010-03-13 16:46:45 +01:00
Christian Dywan
c7ee74610e Normally reload error pages with WebKitGTK+ 1.1.14
For older versions we used a workaround for reloading
special pages like error pages. This is not needed
with recent versions of WebKitGTK+.
2010-03-13 15:07:02 +01:00
André Stösel
283005e217 Implement and use sokoke_recursive_fork_protection
As Midori may call external tools to open URIs it cannot handle,
and at the same time Midori is commonly the default browser,
this can end in recursion when the external tool also calls Midori.

See the description of sokoke_recursive_fork_protection().
2010-03-12 23:31:14 +01:00
Christian Dywan
b5f8334360 Merge KatzeNet icon loading into MidoriView
MidoriView is the only place where icons are and should be
loaded, elsewhere we just use cached icons.

midori_view_get_icon_uri allows distinguishing whether a view
has an icon or a default icon, and using the filename.
2010-03-11 23:30:54 +01:00
Christian Dywan
e69ee84b6b Cancel completion if we don't have an entry 2010-03-06 19:18:09 +01:00
Christian Dywan
e7005abd55 Bail out of Export if no bookmarks or hidden 2010-03-06 19:16:52 +01:00
Christian Dywan
cf6cffe2bc Relate completion height to browser window height
To prevent the completion from obscuring other windows, it will
relate to 2/3 of the browser window and screen height respectively.
2010-03-05 00:02:07 +01:00
Christian Dywan
6ae3633dce Always append tabs added from a loaded session
We shouldn't honor user preferences for new tabs when loading
the session. Rather we append in the order they were saved in.

This is currently a hack. In the future we should consider
public API additions to insert tabs in a particular order.
2010-03-04 02:08:49 +01:00
Christian Dywan
044f1f96fb Only middle click search if the selection contains :// or Alt
Accidentally searching is annoying. Presumably when a proper
address is selected it was intentional.
2010-03-03 00:31:35 +01:00
Christian Dywan
100eea41da Implement "Export bookmarks" menu item to export to XBEL 2010-03-02 23:58:17 +01:00
Christian Dywan
fe203524fe Implement Scroll actions, defaulting to Vim direction keys 2010-03-01 00:24:46 +01:00
Christian Dywan
3f886f7153 Include previous searches in History panel items 2010-03-01 00:24:46 +01:00
Christian Dywan
de89bcd2dc Store searches and completion search in the location 2010-02-25 00:44:25 +01:00
Alexander Butenko
458c5109be Dupe OS type for ident string before using it 2010-02-22 19:03:45 +01:00
Alexander Butenko
f3f53db4d7 Fallback to the first browser if one is closed
We need to keep one browser as the default for commands
and opening files externally.
2010-02-22 19:03:45 +01:00
Christian Dywan
679ecf5d84 Don't override small toolbar icon size
The hack was originally meant to fix themes with no proper
small icons, but it doesn't really help in most cases.
2010-02-22 14:23:20 +01:00
Christian Dywan
7cf326a338 Always use Icons only for panel toolbar 2010-02-21 18:03:27 +01:00
Christian Dywan
7580ecad8e Omit micro version and arch from ident string 2010-02-20 22:31:58 +01:00
Christian Dywan
142dc432ca Use content_area instead of GtkDialog->vbox in browser 2010-02-19 19:05:29 +01:00
Alexander Butenko
e94edca766 Use the correct completion model and no static
Since the model was a static variable and only set when the
popup was created, we ended up using an obsolete model in
case multiple windows were opened and closed.

As a small optimization we don't need to retrieve the database
pointer except when compiling the statement initially.
2010-02-19 18:55:16 +01:00
Christian Dywan
10591640d1 Re-implement 'Recently visited pages' based on sqlite 2010-02-19 00:34:39 +01:00
Christian Dywan
f3f9dd2b3f Be sure to save outstanding changes to the config on quit
We intentionally set a timeout before saving changes to avoid
continuous disc access and also in case opening or closing a tab
results in an immediate crash or freezing.
But closing Midori normally should save outstanding changes.
2010-02-17 23:19:16 +01:00
Peter de Ridder
aef84bfa02 Look for MidoriView resource files dynamically 2010-02-16 00:59:43 +01:00
Peter de Ridder
4774e35932 Look for user documentation dynamically on win32 2010-02-16 00:59:43 +01:00
Peter de Ridder
c90344ac44 Look for extensions relative to program folder on win32 2010-02-16 00:59:42 +01:00
Peter de Ridder
f4b2111b40 Implement sokoke_show_uri on top of explorer for win32 2010-02-16 00:59:42 +01:00
Christian Dywan
902f836810 Improve and optimize sokoke_uri_to_ascii to parse about:version 2010-02-12 02:08:05 +01:00
Christian Dywan
f19412bc70 Pass action to cell renderer callback rather than the entry
The entry pointer is only meaningful if completion was triggered
by typing or editing in an entry.
We shouldn't render a key in results if the arrow button opened the
completion popup.
We need to check the key in the callback to avoid accidentally
working with an entry of a different window.
2010-02-12 00:36:59 +01:00
Alexander Butenko
f733f453d2 Clear history via sqlite if selected in 'Clear private data' dialog 2010-02-11 23:24:28 +01:00
Christian Dywan
de12aa0078 Revise completion key handling to directly pass or compute the key 2010-02-11 01:57:42 +01:00
Christian Dywan
f494ec090b Handle external, magic URIs from command line consistently 2010-02-11 00:28:49 +01:00
Christian Dywan
532e84ea4f Set consistent flags on all properties of MidoriWebSettings 2010-02-10 23:37:33 +01:00
Christian Dywan
713091134f Handle search engines in MidoriBrowser and simplify sokoke_magic_uri 2010-02-10 19:52:12 +01:00
Christian Dywan
0243e26bed Only split URI if no domain pattern is found in the string 2010-02-10 19:52:11 +01:00
Christian Dywan
060c0b6940 Use strncmp instead of g_str_has_prefix to optimize sokoke_magic_uri 2010-02-10 19:52:11 +01:00
Christian Dywan
ccaf696256 Remove unused KatzeNet instance from MidoriSearchAction 2010-02-10 19:52:11 +01:00
Christian Dywan
e15fe776ed Don't update the saved window size if it didn't actually change 2010-02-10 19:52:10 +01:00
Christian Dywan
13b1c9462b Connect config change notifications after creating the first browser 2010-02-10 19:52:10 +01:00
Christian Dywan
2e5c5026bc Only set config properties which are present in the config file 2010-02-07 17:19:00 +01:00
Christian Dywan
0bf27662c5 Only update location combo arrow if there is a history at all 2010-02-07 17:19:00 +01:00
Christian Dywan
14f0a091f6 Do startup timing if MIDORI_STARTTIME environment variable is set 2010-02-07 17:19:00 +01:00
Alexander Butenko
d7f42c5d72 Fix check whether we have the latest database structure 2010-02-04 22:16:01 +01:00
Alexander Butenko
4461a16a79 Refactor location completion queries to use prepared statements 2010-02-04 22:07:30 +01:00
Alexander Butenko
db334e2921 Switch to prepared statements when adding/ updating history 2010-02-04 22:07:16 +01:00
Alexander Butenko
5887067e73 Show the combo arrow if the history table contains any rows 2010-02-04 03:30:09 +01:00
Christian Dywan
af94855fee Render search actions as one line without address 2010-02-04 03:11:52 +01:00
Alexander Butenko
c273d6c73a NULL check the key before rendering suggestions 2010-02-04 02:44:30 +01:00
Christian Dywan
4d05be6a5e Do allow internal icons for views with an unreachable URI 2010-02-03 22:18:51 +01:00
Alexander Butenko
42a29682e6 Store visited pages in the history again 2010-02-03 22:12:19 +01:00
Christian Dywan
297d38e7d0 Use the correct theme detail for < GTK+ 2.18 entry progress 2010-02-03 18:41:54 +01:00
Christian Dywan
bee4615d10 Render history dates directly without age column or render callback
Resurrect sokoke_days_between for calculating age in days.
2010-02-03 01:39:13 +01:00
Christian Dywan
b4a414f371 Load about:blank in private window if URI is empty 2010-02-02 22:29:31 +01:00
Alexander Butenko
57ce6cbe21 Do not populate the history array from sqlite at startup 2010-02-02 21:02:45 +01:00
Christian Dywan
c9c9351ffb Always enable developer extras regardless of the saved value 2010-02-01 23:55:51 +01:00
Christian Dywan
c056a21d1a Unconditionally propagae modified user-agent property value 2010-02-01 23:55:51 +01:00
Christian Dywan
24759ec86f Do not add duplicate Netscape plugins to the extensions 2010-01-31 23:02:31 +01:00
Christian Dywan
41583dc940 Guard pixbuf in location action that is not used with Hildon 2010-01-31 22:29:22 +01:00
Christian Dywan
f5489973f5 Position the suggestion popup, towards the top if below is too narrow 2010-01-31 22:12:58 +01:00
Christian Dywan
4f9d726c55 Merge ident-string setting into user-agent for old and new WebKit
Since the existence of two properties causes confusion among users
we merge the two, and actually remove ident-string.
2010-01-31 22:10:24 +01:00
Christian Dywan
b447070d7d Use new GtkActivatable API in MidoriBrowser 2010-01-31 20:41:30 +01:00
Christian Dywan
cc50c6d58b Remember whether 'Clear private data when quitting' is enabled 2010-01-31 20:41:30 +01:00
Christian Dywan
5472c5d5df Fix the order of search engines in the completion 2010-01-30 17:39:32 +01:00
Christian Dywan
a436234edb Add local storage, database and offline app cache to preferences 2010-01-30 17:26:26 +01:00
Christian Dywan
3441ab45ef Default local storage, database and offline app cache to disabled 2010-01-30 17:26:03 +01:00
Christian Dywan
c43d887747 Use first search engine if the default is not set 2010-01-30 16:54:38 +01:00
Christian Dywan
3d01b7b0c3 Search engines in completion should have a distinct background 2010-01-30 01:52:22 +01:00
Christian Dywan
1a0573e2f3 Use gtk_widget_is_toplevel if available instead of the macro 2010-01-29 22:54:42 +01:00
Christian Dywan
cc6bb8fddb Lookup icon size in relation to the according screen or widget 2010-01-29 22:43:39 +01:00
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
Christian Dywan
aa5b5850c0 Optimize string assignments and comparisons in XBEL loading
We can do fast string comparisons in places where we know that
strings are not NULL.

We can directly assign values to items we create ourselves.
2009-12-01 03:17:50 +01:00
Christian Dywan
557fdda228 Try hard to open bookmarks if they have an incomplete address 2009-11-30 19:36:16 +01:00
Christian Dywan
a1cdf0bf4e Load default accels file from /etc/xdg/midori if no accels present 2009-11-30 19:36:16 +01:00
Christian Dywan
56b0a55a2d Improve XBEL format compatibility and support bookmark sharing
Loading of XBEL needs to handle title and desc children of the root
element. This is equal to using the according properties.

MicroB uses metadata without an owner and uses children rather than
properties. This is against the spec but we want to handle that.

A key value leak was plugged.

If the bookmark file is absolute, we assume it is a foreign file
and we shouldn't overwrite it.
2009-11-30 19:36:15 +01:00
Christian Dywan
baaca9a061 Remove Hildon specific icon and shortcut values 2009-11-30 19:36:15 +01:00
Christian Dywan
2973df0f9b Enable Zoom and Fullscreen with hardware keys on Hildon 2009-11-29 15:09:00 +01:00
Christian Dywan
d9eb5dcec9 Build an invisible menubar in Hildon to retain hotkey functionality
GtkUIManager requires existing proxies for hotkeys to work at all.
2009-11-29 15:01:57 +01:00
Christian Dywan
a7ca507b3a Don't prioritize key presses because that breaks inline find
This 'breaks' using single character shortcuts in conjunction
with inline find, but we can live with that.
2009-11-29 14:31:23 +01:00
Christian Dywan
dd97edf856 Refactor compact add and error message dialogues 2009-11-29 14:09:29 +01:00
Christian Dywan
5a65ed6253 Optionally open panels in standalone windows by default 2009-11-29 14:09:29 +01:00
Christian Dywan
565e32599e Use icon names for search engines directly instead of pixbufs 2009-11-29 14:09:28 +01:00
Christian Dywan
2ace79c85a Replace Bookmarks with Tools in the Hildon toolbar layout 2009-11-29 14:09:28 +01:00
Christian Dywan
206fee346b Use a standard entry widget in the location on Hildon 2009-11-29 14:09:28 +01:00
Christian Dywan
183878db8c Omit Help in Adblock and Search Engines dialogues on Hildon 2009-11-29 14:09:28 +01:00
Christian Dywan
7d89c3c357 Don't capitalize bookmark addresses automatically on Hildon 2009-11-29 14:09:28 +01:00
Christian Dywan
1d68dc9fb7 Implement and optimize for portrait mode support for Fremantle
Listen to accelerometer movement.
Hide tool items in portrait mode.
Omit Homepage and View Source from app menu.
Include Compact Add, View Source and Fullscreen in context menu.
Hide buttons in portrait mode in preferences.
2009-11-29 14:09:28 +01:00
Christian Dywan
ffee6e3850 Open bookmarks from the panel as apps or internal consistently 2009-11-26 23:16:07 +01:00
Christian Dywan
76cf21146d Guard midori_web_view_menu_background_tab_activate_cb for WebKitGTK+ 1.1.15 2009-11-25 23:42:09 +01:00
Christian Dywan
e65606fd06 Do not hardcode any default settings for Hildon
The proper way is to provide a customized config file.
2009-11-25 00:05:09 +01:00
Christian Dywan
d02d1db97f Support tel:, callto: and refactor MIME supporting (including Hildon) 2009-11-24 23:54:29 +01:00
Christian Dywan
3b573328cc Only show bookmarks in the toolbar which are marked as such 2009-11-23 20:46:00 +01:00
Christian Dywan
c26d1775e9 Back to case folding and handling completion actions properly 2009-11-23 20:41:10 +01:00
Christian Dywan
99ff111e69 Show a popup menu to choose from multiple available news feeds 2009-11-22 20:40:21 +01:00
Christian Dywan
21f7bd7c68 Display application icons in the Import bookmarks dialogue 2009-11-22 05:12:13 +01:00
Christian Dywan
641c37a8de Add Kazehakase to the applications to import bookmarks from 2009-11-22 05:12:13 +01:00
Christian Dywan
a38574473f Do address matches with a simple strstr for now
The way we originally folded strings didn't work in all cases of
unicode strings and the last attempt to improve that broke it
on some systems while it improved on others.
So for now we go back to the safe way.
2009-11-22 05:12:13 +01:00
Christian Dywan
94ee507492 Fold strings before matching to improve the comparabillity 2009-11-21 07:17:45 +01:00
Christian Dywan
6ed99001fc Check that new-window did return a browser before adding a tab 2009-11-21 06:45:01 +01:00
Christian Dywan
83dbe3417f Only prefill inline find entry if there is actually a selection 2009-11-21 06:42:16 +01:00
Christian Dywan
0af9c0cc9d Bail out of BookmarksImport action if no bookmarks or hidden browser 2009-11-21 06:39:18 +01:00
Christian Dywan
3253f1605a Only set search in the browser if we have any search engines
This fixes the test case which broke when we made settings obligatory.
2009-11-21 06:36:35 +01:00
Christian Dywan
7bfd4e147d Catch failure to unescape Uris and don't escape ' ' or '+' 2009-11-21 02:35:14 +01:00
Christian Dywan
34e02640cf Do not treat URIs passed externally like files, pass them as they are 2009-11-21 02:35:14 +01:00
Christian Dywan
3e5937fe33 Use an unknown content type if GIO fails to determine the type 2009-11-20 01:34:16 +01:00
Peter de Ridder
5580b62e00 Use %%llu with sqlite3_mprintf since it expects that even on Windows
Apparently the formats sqlite3 supports are not the same as the
runtime library printf supports.
2009-11-19 23:52:01 +01:00
Christian Dywan
974ba431d8 Only connect input output channel if socket was successfully created 2009-11-19 23:34:13 +01:00
Christian Dywan
427a482033 Only use internal res:// server with WebKitGTK+ < 1.1.14 2009-11-19 23:14:48 +01:00
Peter de Ridder
6658afb885 Replace a '\' in the display name with a '_'
On Windows, display names can contain backslashes which results
in an error in the socket implementation.
2009-11-19 22:56:46 +01:00
Christian Dywan
18526f2ac6 Implement 'Run as web application' option on bookmarks
If enabled, the bookmark will run as a standalone process by default.
2009-11-18 23:10:47 +01:00
Christian Dywan
104a2712f8 Open pages from the trash as foreground tabs
This is the same behaviour as Undo close tab shows.
2009-11-18 20:08:54 +01:00
Christian Dywan
83f07d7de9 Allow reloading regardless of whether a load is already in progress 2009-11-18 19:36:37 +01:00
Christian Dywan
6faa15412d Omit frequent mkdir and writable checks at startup
This means that using file attributes to control permissions
is not supported anymore.
2009-11-18 19:13:07 +01:00
Christian Dywan
9eefb25bb6 Refactor loading cached page icon into katze_load_cached_icon
The function is optimized for loading icons and independant from
a KatzeNet instance.
2009-11-17 23:22:08 +01:00
Peter de Ridder
ba70a6fd5a Use only signals which are defined, since not all are portable
For instance Windows has support for unix signals but only for
some of the signals.
2009-11-17 19:18:14 +01:00
Christian Dywan
3fc0c192fd Support new GtkStatusbar layout and the old layout 2009-11-17 19:18:14 +01:00
Christian Dywan
d154158d0c Implement "Small icons" toolbar style and preference 2009-11-17 19:18:14 +01:00
Christian Dywan
2c6233d201 Handle unicode in location matching and fix match emphasis 2009-11-17 03:15:07 +01:00
Christian Dywan
8471e76f6a Follow up preferences refactoring for Mac OSX build 2009-11-16 23:33:32 +01:00
Christian Dywan
830553e85e Add BookmarksImport action to dummy actions 2009-11-16 21:22:09 +01:00
Christian Dywan
99c3f54012 Fix uselib of main executable to link OpenSSL properly 2009-11-16 21:14:24 +01:00
Christian Dywan
f79bbe1eef Prefill entry with selected text when using inline fine manually 2009-11-16 20:12:39 +01:00
Christian Dywan
308b9dd07d Support importing bookmarks from Opera 6 bookmark files 2009-11-16 17:45:09 +01:00
Christian Dywan
fd7d778e0c Remove sokoke_widget_popup and replace all call sites 2009-11-15 18:21:59 +01:00
Christian Dywan
6e6f6e867a Remove sokoke_image_menu_item_new_ellipsized 2009-11-15 17:58:43 +01:00
Christian Dywan
c012a1e5bd Implement importing bookmarks, from Arora XBEL only for now 2009-11-15 17:56:05 +01:00
Christian Dywan
fc10f156d2 Display Open Link in Foreground/ Background Tab 2009-11-15 01:55:59 +01:00
Christian Dywan
1324c1db31 Reduce the maximum days history is saved for to a number
No need for a boolean flag, 0 days are just as good.
2009-11-14 22:50:21 +01:00
Christian Dywan
ab7e219656 Set Hildon input mode to not capitalize automatically in the location 2009-11-14 22:50:20 +01:00
Christian Dywan
f212c1542b Allow closing the last tab, while a blank tab will take its place 2009-11-14 22:50:20 +01:00
Christian Dywan
e5d8016bf4 Wrap file chooser into the function sokoke_file_chooser_dialog_new 2009-11-14 22:50:20 +01:00
Christian Dywan
a5ecd0b493 Use inline icon for 'Use current page as homepage' instead of button 2009-11-13 19:42:30 +01:00
Christian Dywan
ca5230d2ef Remove remaining cases checking if browser->settings is set 2009-11-13 18:27:49 +01:00
Christian Dywan
694526704d Omit instances of if (browser->settings) 2009-11-13 18:24:16 +01:00
Christian Dywan
8ab4123c3f Ensure that the menubar/ compact button visibility follows settings
When toggling the menubar it wouldn't always update all windows
to the same state.
2009-11-13 02:18:18 +01:00
Christian Dywan
2fc6a2be89 NULL-check exception in sokoke_js_script_eval 2009-11-12 23:55:36 +01:00
Yves-Alexis Perez
42174b473a Explicitly link to X11 to not rely on indirect library linking
It is recommended by Debian and required for the gold linker.
2009-11-11 23:41:08 +01:00
Christian Dywan
5417a4f52b Allow hiding the menubar in Hildon, effectively disabling it 2009-11-11 23:31:54 +01:00
Christian Dywan
21e42ac8c7 Disable -c --config command line switch on Hildon 2009-11-11 23:30:56 +01:00
Christian Dywan
0f156fa932 Implement MidoriApp based on libOsso application interface 2009-11-10 22:01:54 +01:00
Christian Dywan
ae0c01705a Swap Next Tab and Previous Tab menu items 2009-11-10 22:01:54 +01:00
Christian Dywan
cc7bc356e8 Open all links in the current tab if Open new pages in: Current Tab is set
There is a small flaw in that we also open all windows opened by scripts
in the current tab and we don't treat popup windows specially.
2009-11-10 22:01:54 +01:00
Christian Dywan
d0dff4dd05 Show the menubar when restoring from fullscreen and it was visible before 2009-11-09 21:49:01 +01:00
Christian Dywan
b799be5386 Hide navigationbar in fullscreen but toggle when focussed 2009-11-08 22:08:21 +01:00
Christian Dywan
a6fb391f94 Override image, script and Netscape plugin properties
The properties come from WebKitGTK+, are thus not localized but
we want to have localized proxies in the compact (Hildon) menu.
2009-11-08 21:55:36 +01:00
Christian Dywan
04e9255a9a Show 'Menubar' item in compact menu to toggle the menubar 2009-11-08 21:54:34 +01:00
Christian Dywan
4dbc02d444 Don't quote arguments given to g_file_new_for_commandline_arg 2009-11-08 14:39:46 +01:00
Christian Dywan
f980d5ad91 Ellipsize long panel titles to keep the buttons visible 2009-11-08 14:39:46 +01:00
Christian Dywan
1954b8a00c Remove statusbar/ progressbar hacks and let it size freely 2009-11-08 14:39:46 +01:00
Christian Dywan
76b575e42f Improve placement of the 'Autodetect proxy server' preference 2009-11-08 14:39:46 +01:00
Christian Dywan
51dce2c84d News aggregators use "News", not only Network, that's what we assume now 2009-11-08 14:39:46 +01:00
Christian Dywan
d0215c4032 Support keyboard hotkeys that GTK+ considers invalid
We re-implement the usual key handling by overriding the key press
handler, emulating the according steps but leaving out the
validation that normally rejects certain combinations.

Single key hotkeys work unless an entry is focussed, in which case
the entry receives the input, and Control+Tab works as well.

The shortcuts extension is adjusted to accept any hotkeys.
2009-11-04 14:31:16 +01:00
Christian Dywan
1c0d18bc06 Implement enumeration proxies with custom entries as well 2009-11-03 18:01:22 +01:00
Christian Dywan
2d790a47a3 Don't prepend the current folder to absolute filenames 2009-11-02 22:33:37 +01:00
Christian Dywan
4fbbc43e42 Use GAppInfo to spawn programs and support tokens like %f or %u 2009-11-02 22:00:30 +01:00
Christian Dywan
1b8def494d Create actions that can have hotkeys for all panel items
Bookmarks have Ctrl+B by default.
2009-11-01 19:11:28 +01:00
Christian Dywan
f320e0fc5f Preserve action visibility when adding menu items to the compact menu 2009-10-31 23:07:15 +01:00
Woo Youngho
657822c15c Add Korean encoding to the available of character encodings 2009-10-31 22:51:35 +01:00
Christian Dywan
d550d2c520 Hide permanently unavailable actions instead of disabling them 2009-10-31 22:43:58 +01:00
Avan Anishchuk
1133bc4449 Catch SIGHUP, SIGINT, SIGTERM and SIGQUIT and quit peacefully 2009-10-31 04:49:57 +01:00
Christian Dywan
3efbc1b462 Leave setting up windows to the app, which is a lot faster
With a mature history setting up a browser window can be slow, but
if it's setup at creation time it is extremely fast.

The signal prototype of MidoriBrowser::new-window had to change,
all call sites were adjusted.
2009-10-31 04:29:15 +01:00
Christian Dywan
ec9ea0233e Hide Extensions panel if no extensions are available at all. 2009-10-30 21:43:42 +01:00
Christian Dywan
133c03b08b Add directory and preferences mappings for Hildon icons 2009-10-30 21:12:32 +01:00
Christian Dywan
0f9865b56f Make detached panels normal Hildon windows on Hildon
The window should not be hidden from the task launcher and not be
transient either. Further more the toolbar needs to go to the bottom.
Last but not least, we don't need the option button.
2009-10-30 21:02:45 +01:00
Christian Dywan
adea95e3f9 Only show Spell Check preferences if dictionaries are installed 2009-10-30 01:13:14 +01:00
Christian Dywan
9c9165c3f9 Assume selections containing :// are links of some kind 2009-10-28 22:55:18 +01:00
Christian Dywan
f955da564b Add 'Add Bookmark' to the available toolbar items 2009-10-28 22:54:42 +01:00
Christian Dywan
edb28df168 Don't disable ellipsizing of statusbar text 2009-10-28 22:51:21 +01:00
Christian Dywan
6a297dd4b3 Introduce MIDORI_TOUCHSCREEN and katze_widget_has_touchscreen_mode 2009-10-28 21:07:13 +01:00
Christian Dywan
bda19771c3 Rearrange statusbar packing to keep themes happy 2009-10-28 20:34:39 +01:00
Christian Dywan
c9dc0c5d55 Make midori_view_get_snapshot a public function 2009-10-27 22:58:11 +01:00
Christian Dywan
aff65928b3 Fix preferences, don't destroy child widgets 2009-10-26 23:43:17 +01:00
Christian Dywan
552c99cd56 Show script, image and plugin options and views source in app menu 2009-10-26 18:08:54 +01:00
Christian Dywan
8cf6f4fa6c Don't load icons when rendering completion on Hildon 2009-10-26 18:05:56 +01:00
Christian Dywan
91113a189c Use Hildon banners for notifications on Maemo 2009-10-26 18:05:16 +01:00
Christian Dywan
f28d6e78d7 Optimize inline find for mobile use 2009-10-26 02:11:09 +01:00
Christian Dywan
4b633b6006 Hide application preferences on Hildon and preset text editor 2009-10-26 00:27:14 +01:00
Christian Dywan
66079c987b Map Maemo icons to stock icons 2009-10-26 00:18:56 +01:00
Christian Dywan
55d735fcf6 Layout preferences with a scrolled and no tabs on Hildon 2009-10-25 19:48:12 +01:00
Christian Dywan
9f68b17036 Remove cache and form history preferences
These features are implemented as extensions, so the preferences
don't belong in the core.
2009-10-25 14:58:22 +01:00
Christian Dywan
4c5807529b Hide download, font, proxy, developer, location preferences on Hildon 2009-10-25 14:54:31 +01:00
Christian Dywan
725f717ee8 Open pages in windows on Hildon by default 2009-10-25 14:49:00 +01:00
Christian Dywan
a2891e0ddb Wrap variables in location entry in Hildon guards as appropriate 2009-10-23 18:08:25 +02:00
Christian Dywan
09498f2473 Initialize icon theme in midori_view_update_icon to avoid warning 2009-10-23 18:07:19 +02:00
Christian Dywan
4b912f17de Fix underscores in labels in app menu and compact add 2009-10-22 23:27:03 +02:00
Christian Dywan
7c1caed409 Wrap panel title callback in Hildon guards 2009-10-22 23:26:35 +02:00
Christian Dywan
e4dbbf8a27 Remove unused code from after preferences refactoring 2009-10-22 23:19:02 +02:00
Christian Dywan
d37194cd7a Fix brackets around bookmark URI check 2009-10-22 23:18:23 +02:00
Christian Dywan
421460741d Move midori_web_view_set_clipboard inside 1.1.15 guards 2009-10-22 22:59:02 +02:00
Christian Dywan
4257bd2bbc Add Undo close tab to the tab context menu
It is very useful and some people who rarely use the page
context menu will look for it in the tab menu.
2009-10-22 22:54:52 +02:00
Christian Dywan
ce5c6ec91b Move the version check for res:// handling where it belongs 2009-10-22 02:20:27 +02:00
Christian Dywan
f875144aa3 Handle res:// and stock:// with resource request if available
This makes these URIs functional in case of network issues.
2009-10-22 02:20:27 +02:00
Christian Dywan
cbd0668fd0 Handle load-error in the view late so it can be overridden 2009-10-22 02:20:27 +02:00
Christian Dywan
0cdcefd4e8 Make all Copy items in the context menu also use primary clipboard 2009-10-22 02:20:27 +02:00
Christian Dywan
f3cf2561ff Regard data: and javascript: URIs as allowed when adding bookmarks 2009-10-22 02:20:26 +02:00
Christian Dywan
620ccd8384 Load icons in the completion lazily to boost startup
This is a partial regression since some icons that come from
XML tags don't show up that way.
2009-10-20 18:25:40 +02:00
Alexander Butenko
90a4acfc6e Check the non-existence of folders before creating them 2009-10-20 18:24:24 +02:00
Christian Dywan
cef6532429 Refactor MidoriPreferences into KatzePreferences base class
The goal is to get rid of detailed table setups in favour of
automatic alignment with few hints as well as abstracting away
the exact layout to allow reimplementing it in a different form.
2009-10-19 23:15:44 +02:00
Christian Dywan
47c5f15684 Implement combos for choosing applications 2009-10-18 17:25:13 +02:00
Christian Dywan
ecde50cb31 Fix conflicting mnemonic in link/ image context menu 2009-10-14 23:35:31 +02:00
Christian Dywan
c49a7d1e04 Keep the thumbnail view around to avoid a WebKitGTK+ bug
The thumbnail view will be destroyed when the tab is closed, so
it's a minor memory surplus if a user actually opens many
speed dial pages.
2009-10-14 21:29:04 +02:00
Christian Dywan
1451026160 Implement app menu and progress indicator on Hildon 2.2 2009-10-14 00:48:25 +02:00
Christian Dywan
b2c9fb3cfc Manually pack OK button for crash dialogue on Hildon 2.2 2009-10-13 23:26:48 +02:00
Christian Dywan
847f18f643 Implement tap and hold with emulated motion and button click events
There is no pointer movement on a touchscreen, so we need to pretend
there is, to trigger a proper context menu.
2009-10-13 22:58:50 +02:00
Christian Dywan
8a9599d5a9 Hide redundant items from the default context menu on Hildon 2009-10-13 02:40:38 +02:00
Alexander Butenko
8a62c9ee7a Void Page Up/ Page down in the address entry
It is presumably not an important binding, and accidentally
using it is more annoying than helpful.
2009-10-12 23:17:57 +02:00
Christian Dywan
625ad79631 Remove unused variable and MidoriLocationEntryItem struct 2009-10-12 23:11:53 +02:00
Christian Dywan
8fdb284b54 Implement Compact Add button, and readjust the Hildon toolbar
Actions AddNewsFeed and AddDesktopShortcut are introduced and the
toolbar layout for Hildon is changed.

Desktop shortcuts are not implemented yet.
2009-10-12 23:06:04 +02:00
Christian Dywan
7e8f6d5633 Omit any icons in the location in the Hildon version 2009-10-12 23:06:04 +02:00
Christian Dywan
123475d6ea Don't advertise zooming when having an image open
Images cannot be zoomed.
2009-10-12 13:17:53 +02:00
Christian Dywan
406572c4fb Be sure to focus the web view rather than the scrolled widget 2009-10-12 13:05:43 +02:00
Christian Dywan
641553d312 Use compact menu as the main menu when building for Maemo 2009-10-12 13:02:39 +02:00
Christian Dywan
b9d4266d27 Refactor IDN handling and related unit tests
Most code is shared despite different available libraries now and
can more effeciently be tested.
2009-10-10 11:09:10 +02:00
Christian Dywan
0ac4de8aa5 Properly pass external addresses with libSoup 2.27.90 2009-10-09 14:21:55 +02:00
Christian Dywan
fa8f109da9 Conditionalize restoring of the scrolling position
Ensure that we differentiate an unset value from a valid value
as well as having restored the position already so we don't
accidentally restore a wrong position.

Restoring after having loaded a page is still not ideal but there
doesn't seem to be a better way at this point.
2009-10-08 20:56:24 +02:00
Christian Dywan
3ed9e482cd Fix display formatting of URIs and unit test it properly 2009-10-07 01:50:10 +02:00
Christian Dywan
ca81aeb034 Regard file:// URIs as valid for bookmarks 2009-10-06 20:40:43 +02:00
Christian Dywan
c624048c21 Enable integrated page setup combo box for printing 2009-10-05 20:52:34 +02:00
Christian Dywan
7aaf59ec9a Format addresses nicely, with no percents and no punycode 2009-10-05 20:50:08 +02:00
Christian Dywan
1998219933 Refactor location action to not use MidoriLocationEntryItem 2009-10-04 05:13:37 +02:00
Christian Dywan
acb2104128 Encode IDN addresses passed externally
Apparently libUnique can't handle international domains and
won't pass them onto the destined instance, so we encode
them beforehand.
2009-10-04 03:12:10 +02:00
Christian Dywan
b53c39b82e Remember text typed in the location when switching tabs
The API of the location action is adjusted so that any typed
text can be retrieved, distinguished from a confirmed URI.
2009-10-04 02:32:50 +02:00
Christian Dywan
d4c9c87f79 Fix a leaked folder string when activating extensions 2009-10-04 00:02:52 +02:00
Christian Dywan
136f5d981f Use "orientation" property of the toolbar instead of the function
The function is superseded with the introduction of the orientable
interface in new GTK+ releases, but the property is the same.
2009-10-03 23:59:57 +02:00
Christian Dywan
ce5a959840 Use MIDORI_NLSPATH instead of NLSPATH
A small number of systems uses NLSPATH in a way that breaks
localization in Midori. It is unclear what the correct way is to
use NLSPATH, so we switch to using a prefixed variable.
2009-10-03 02:27:51 +02:00
Christian Dywan
93e846bf47 Display IDN hostnames decoded in address completion 2009-10-03 02:16:15 +02:00
Christian Dywan
a51b8f18dc Fix a memory leak in the address completion match handling 2009-10-03 02:04:15 +02:00
Christian Dywan
18ab34bdc8 Load extension settings from global config folders
For example, /etc/xdg/midori/extensions/extension_name/config
2009-10-02 23:07:36 +02:00
Christian Dywan
255018aeaa Do not add history items for URIs that were visited on the same day 2009-10-02 21:29:08 +02:00
Christian Dywan
a6ee2320e8 Add Copy to the refactored context menu 2009-10-02 00:00:00 +02:00
Christian Dywan
e4b09739fa Don't use gtk_action_get_tooltip since it is GTK+ 2.16 only 2009-10-01 23:19:01 +02:00
Christian Dywan
2d1481699a When hovering menu items, show descriptions in the statusbar 2009-10-01 02:35:15 +02:00
Christian Dywan
1535bc8970 Show 'Send a message to <mail address>' when hovering email links 2009-09-30 23:55:39 +02:00
Christian Dywan
037be4dda4 Offer 'Send message to <mail address>' for selections 2009-09-30 23:45:02 +02:00
Christian Dywan
60a96b9d8b Implement 'Open last session' menu item 2009-09-30 23:02:10 +02:00
Christian Dywan
c848b24733 Backup the old session when resetting it in the Crash dialog 2009-09-30 22:30:19 +02:00
Christian Dywan
3686db6f6f Add Window > Focus Current Tab 2009-09-30 22:18:17 +02:00
Christian Dywan
df88be1aff Reduce the mount of casts in the browser 2009-09-29 22:25:09 +02:00
Christian Dywan
f530218492 Notify MidoriBrowser::tab property properly 2009-09-29 20:49:30 +02:00
Christian Dywan
6d31faecf3 Default to Ctrl+Alt+U instead of Ctrl+U for View source 2009-09-28 23:10:31 +02:00
Christian Dywan
1d634247c7 Only if a preriod follws is a typed number the start of an IP address 2009-09-28 23:01:48 +02:00
Christian Dywan
96093d9067 Implement drag (finger) and kinetic scrolling with KatzeScrolled
The feature is primarily interesting for mobile devices and
by default enabled with gtk-touchscreen-mode.
2009-09-28 22:12:41 +02:00
Christian Dywan
7259066e20 Apply the correct settings to source view tabs 2009-09-27 23:37:08 +02:00
Christian Dywan
b70a2569df Open source of local files directly with no temporary copy 2009-09-27 16:19:10 +02:00
Christian Dywan
f294d79a74 Show "Menubar" menu in context menu if menubar and navibar are hidden
It happens that users hide all toolbars and don't find a way to make
them visible again. A menu item will be there for this case.
2009-09-26 22:19:34 +02:00
Christian Dywan
55a2ecf710 Enable new context menu code with WebKitGTK+ 1.1.15 afterall
To avoid regressing we keep the hacked document menu for now
and add a small improvement to fix image context menus with
older WebKitGTK+ versions.
2009-09-26 22:19:34 +02:00
Christian Dywan
249b8e4669 Use brackets when checking bookmark address to avoid compiler warning 2009-09-26 22:19:34 +02:00
Christian Dywan
1ead8e8886 Save back and forward history in the session (disabled) 2009-09-26 22:19:34 +02:00
Christian Dywan
d5ed3e9b28 Reset the statusbar text (in the location) when leaving the view 2009-09-23 02:10:08 +02:00
Christian Dywan
ba1084d236 Merge userstyles into the userscript panel 2009-09-22 23:50:31 +02:00
Christian Dywan
b3817bfc52 Actually require http(s):// in bookmark address 2009-09-21 23:58:47 +02:00
Christian Dywan
d26113fa1e Bump new context menu handling to WebKitGTK+ 1.1.16
The API in 1.1.15 is not sufficient to implement the context menu
without regressions.
2009-09-21 23:49:42 +02:00
Christian Dywan
ebb3b5f374 Fix build with WebKit < 1.1.14 2009-09-20 21:49:57 +02:00
Christian Dywan
72ba3a700b Implement Ask for destination folder
The option determines whether 'Save image' and 'Save link destination'
in the context menu prompt for a location or not.
2009-09-20 21:23:52 +02:00
Christian Dywan
59c43d08e0 Include TabNew in the toolbar by default 2009-09-20 20:57:30 +02:00
Christian Dywan
d73ccf2c3f Forward mailto: links to external default application 2009-09-20 20:56:52 +02:00
Christian Dywan
0250d762c1 Implement menu items after refactoring the context menu changes 2009-09-20 17:26:28 +02:00
Christian Dywan
4f8deae24d Do not put statusbar text in the location entry if it's focussed
This prevents overwriting what the user may be typing while
accidentally moving the mouse.
2009-09-19 21:06:33 +02:00
Christian Dywan
16e00c379e Disable Save/ add button in bookmark dialog if address lacks protocol 2009-09-19 17:25:10 +02:00
Christian Dywan
eaba9f0acf Improve context menu and middle click pasting using hit test result 2009-09-19 04:06:44 +02:00
Christian Dywan
bf80501888 Fix identification string, don't accidentally include extra brackets 2009-09-18 19:37:27 +02:00
Christian Dywan
e4ac13887d Disconnect bookmark removal callback with the right data argument
It would not actually disconnect before because it was disconnected
with the wrong user data, and thus crash in a multiple window
scenario when a bookmark was deleted.
2009-09-17 01:03:24 +02:00
Christian Dywan
9d1fdd7a05 Remember the scrolled positions of views 2009-09-16 23:37:39 +02:00
Christian Dywan
06bd549cb1 Lookup page icons via javascript 2009-09-16 03:06:09 +02:00
Christian Dywan
d502518434 Display source code in a tab if no editor is specified
This uses view source mode available since WebKitGTK+ 1.1.14.
2009-09-15 00:53:50 +02:00
Christian Dywan
178098d886 Add iPhone to identity options
This is useful for websites that offer mobile versions but only
support iPhone devices.
2009-09-14 18:26:35 +02:00
Christian Dywan
668f19c216 Only list variable-/ fixed-width fonts in either combo box
Optimize the code a little while we are at it.
2009-09-14 18:26:35 +02:00
Christian Dywan
711750d9de Fix persistent cookie storage 2009-09-10 17:03:17 +02:00
Christian Dywan
f65b87f05f Fix a misplaced #endif that breaks WebKit < 1.1.14 builds 2009-09-10 15:57:59 +02:00
Christian Dywan
d1b672068b Add Undo and Redo menu items to the menubar and context menu 2009-09-10 02:36:26 +02:00
Christian Dywan
39e47ac3b7 Disable extensions that are unavailable on the system
Extensions can be unavailable on a particular platform or a system
lacking a build-time requirement. Let's handle this more cleanly
and reflect it in the Extensions panel.
2009-09-10 02:07:27 +02:00
Dale Whittaker
39f095a0cf Prepend 'mailto' to email links in the About dialogue
Some email clients require this to open email links.
2009-09-09 00:33:34 +02:00
Christian Dywan
6ee9436db4 Save logins in a text file instead of a keyring
This means GNOME keyring isn't required for saving logins.
2009-09-09 00:33:34 +02:00
Christian Dywan
ccc76f3fc6 libsoup 2.27.91 is good enough for GNOME password manager 2009-09-06 00:58:23 +02:00
Christian Dywan
61670ab623 Replace Shrink Images preference with Middle click opens selection 2009-09-04 23:44:57 +02:00
Christian Dywan
2bff26f90a Don't middle click open when there's an editable
This is still not a complete solution but better than before.
2009-09-04 23:37:00 +02:00
Christian Dywan
f74b860d66 Wrap session saving in a 5 second timeout 2009-09-02 23:58:53 +02:00
Christian Dywan
f259d082f2 Say 'Error - URI' in place of 'Error' in the title
When several pages fail at the same time, for instance due to
network issues, it can be important to tell those pages apart.
2009-09-02 23:58:53 +02:00
Christian Dywan
d03a8226fa Use WebKitDownload to save web pages with Save As 2009-08-30 16:00:48 +02:00
Christian Dywan
e09ea1ef3a Fix unused get_type_function warning with libsoup < 2.27.92 2009-08-30 15:29:38 +02:00
Christian Dywan
af86796eab Use GNOME proxy resolver and GNOME password manager optionally 2009-08-30 04:22:55 +02:00
Christian Dywan
ee0bda8db3 Read window properties without using 'xprop' 2009-08-29 01:23:10 +02:00
Christian Dywan
f0d6af642e Only update statusbar text if the view is the current tab 2009-08-29 01:23:10 +02:00
Dale Whittaker
cf9538dd67 Pass a return value location when emitting secondary-icon-released 2009-08-29 01:23:10 +02:00
Christian Dywan
e3b27cb70d Only set error in midori_array_from_file if it is not NULL 2009-08-29 01:23:10 +02:00
Christian Dywan
2bb225e7c0 Load "bookmarks.xbel", "config" and "search" defaults from /etc 2009-08-27 23:59:26 +02:00
Christian Dywan
c5973c4161 Move Open new pages and Open external pages preferences side by side 2009-08-25 00:12:05 +02:00
Christian Dywan
15bc7772e8 Move Cooke preferences side by side 2009-08-24 23:58:43 +02:00
Dale Whittaker
72ae687ef2 Swap checks for completion data and key to fix the arrow popup 2009-08-24 23:30:09 +02:00
Christian Dywan
b4a6de2e96 Show Print background images option in print dialog 2009-08-24 23:30:09 +02:00
Christian Dywan
0a43b82fcd Remove Resizable text areas and Print background images Preferences 2009-08-24 23:30:08 +02:00
Christian Dywan
6fac0fa22c Do not make the inspector window transient 2009-08-24 23:30:08 +02:00
Christian Dywan
14b784a2e9 Implement Disable all extensions in the crash dialog 2009-08-24 00:57:44 +02:00
Christian Dywan
e58aa161c6 Preserve state of extensions when using the crash dialog 2009-08-24 00:46:31 +02:00
Christian Dywan
97b31b23be Remove Preferences Middle click opens selection and Popups in Tabs 2009-08-24 00:22:36 +02:00
Christian Dywan
fe619d8fe4 Default Middle click opens selection to Enabled 2009-08-24 00:18:22 +02:00
Christian Dywan
2cc280b643 Remove session when quitting cleanly and it's not loaded at startup 2009-08-23 23:58:13 +02:00
Dale Whittaker
7124e6f0bf Ensure that we have something to complete and set the actual model 2009-08-20 23:39:38 +02:00
Christian Dywan
0da785e94c Disconnect bookmark folder signals, for bookmarkbar and panel
This would lead to crashes when opening and closing windows and
attempting to add bookmarks afterwards.
2009-08-19 23:51:59 +02:00
Christian Dywan
362de2aa11 Use WebKit user agent version if available 2009-08-17 19:36:22 +02:00
Christian Dywan
953a268cf8 Add GTK+ and WebKitGTK+ versions to About dialog 2009-08-17 19:22:33 +02:00
Christian Dywan
04dc7fe855 Pass news feed icon clicks to the feed panel
The secondary-icon-released signal of the location action returns
a boolean now so a callback can indicate that it handled it. So
if the feed panel is active, it adds feeds to the panel and
suppresses the default action.

A possible crash when disabling the panel and clicking the icon
afterwards is fixed by adding a missing signal disconnection.
2009-08-17 02:15:21 +02:00
Christian Dywan
74457cfd75 Always show news feed icon, and show URI if no aggregator was specified 2009-08-14 23:28:18 +02:00
Christian Dywan
c17e8a2a9a Move relative files out of magic URI, IP addresses start with digits 2009-08-14 23:06:55 +02:00
Dale Whittaker
a6eb070cfa Fix hashtable lookup of the location completion 2009-08-13 00:27:48 +02:00
Christian Dywan
a5a473eaad Label the buttons to clear transfers correctly "Clear All" 2009-08-11 17:23:30 +02:00
Dale Whittaker
4bd53e13e6 Let the completion liststore sort itself and merge append and prepend 2009-08-10 23:52:21 +02:00
Christian Dywan
5193790004 Protect panel property notifications and disconnect the callback
Failure to do this could cause new windows to freeze and invalid
pointer access after closing windows.
2009-08-09 15:07:09 +02:00
Christian Dywan
f90c387a2b Show tooltips with file size in the transferbar (statusbar) 2009-08-09 00:18:45 +02:00
Christian Dywan
4f0cb14f2b Avoid a warning in case the speed dial head isn't available
Ideally we wouldn't depend on a file for essential data, for
now we ignore it.
2009-08-08 23:52:51 +02:00
Dale Whittaker
9bee6419b6 No need for the column enumeration in the location entry 2009-08-08 23:32:33 +02:00
Dale Whittaker
44f58cb5c9 Only clear private data when quitting if this is actually set 2009-08-08 23:26:37 +02:00
Christian Dywan
25e773a380 Update the user-agent value of WebKitGTK+ since 1.1.11 2009-08-02 16:00:13 +02:00
Christian Dywan
d8157d59bd Copy history in MidoriBrowser::new-view, eg. when duplicating a tab 2009-07-31 12:44:18 +02:00
Christian Dywan
c4692dfeb4 Use a signed counter variable when copying history 2009-07-31 12:31:41 +02:00
Christian Dywan
49bd5762fc Show the view when duplicating a tab 2009-07-31 00:52:05 +02:00
Christian Dywan
420f2f02c5 Copy the back forward history when opening a new tab 2009-07-31 00:40:24 +02:00
Christian Dywan
0057f32f1e Apply URI magic when opening selected text in a tab 2009-07-30 23:30:07 +02:00
Christian Dywan
74757bdc9e Implement "Clear private data when quitting Midori" check button 2009-07-29 00:41:04 +02:00
Christian Dywan
37b715e571 Add midori_browser_get_nth_tab to obtain a particular tab by index 2009-07-28 22:55:34 +02:00
Christian Dywan
60d3def11c Use correct labels for panel align and detach buttons 2009-07-28 22:36:35 +02:00
Christian Dywan
d0d0b3bba7 Ellipsize titles and show tooltips in the tab panel 2009-07-27 03:40:38 +02:00
Christian Dywan
438566d87f Add Close Tab to the available toolbar actions 2009-07-26 23:40:34 +02:00
Christian Dywan
ef785dd784 Implement Options menu via a button on the side panel
The new button is visible on all panels and pops up a menu, which
allows toggling the panel titles and the operating controls. A
new signal "populate-option-menu" makes it extendible.
2009-07-26 22:05:39 +02:00
Christian Dywan
b478db85ab Enforce icons for webpage menu items and search menu items 2009-07-25 23:06:17 +02:00
Christian Dywan
225d5643e0 Bring back New Window and Location icons and adjust the menu items
The previous attempt to reduce the amount of icons in menues had the
side effect of removing them from toolbar items. So the icons
are back and we adjust the menu items manually.
2009-07-25 22:53:09 +02:00
Christian Dywan
43e6542702 Implement MidoriBrowser::populate-tool-menu and adjust extensions
Extensions used to look for the menu and append items manually.
In order to show Tools in the Compact menu a proper signal
is needed.

Adblock, Shortcuts and Toolbar Editor are ported to the new API.
2009-07-25 03:05:52 +02:00
Christian Dywan
356f3f20be Use a Go icon when showing the target URI in the location 2009-07-24 17:01:02 +02:00
Christian Dywan
65ff5b3277 Remove icons from a few menu items and add an icon to Close Tab 2009-07-24 16:43:55 +02:00
Christian Dywan
9f4976b168 Remove HAVE_JSCORE so javascripts work again 2009-07-23 23:32:50 +02:00
Christian Dywan
42f9a72360 Shorten 'Closed Tabs and Windows' to 'Closed Tabs'
Effectively only tabs are saved and if that changes one day, the
shorter label should still be good enough.
2009-07-23 00:06:55 +02:00
Christian Dywan
dc4721a9d4 Remove the bookmark popup, its usability just isn't good 2009-07-23 00:02:17 +02:00
Christian Dywan
414f9412b8 Add a New Tab menu item to the tab context menu 2009-07-22 23:56:16 +02:00
Christian Dywan
5dcdccb27c Respect the view's idea of back- or foreground when opening new tabs 2009-07-22 23:55:05 +02:00
Daniel P. Fore
4103dc48ea Improve the wording of a few English strings and use colons 2009-07-22 23:53:29 +02:00
Christian Dywan
7192fa38f9 Implement "minimized" views, with a context menu option
The flag is saved as meta data of the proxy item. A new signal
meta-data-changed is implemented in KatzeItem to allow the view
to update the tab state as the meta data value is changed.
2009-07-22 01:49:09 +02:00
Christian Dywan
3201370b60 Fix warnings about HAVE_JSCORE not being defined 2009-07-20 23:27:06 +02:00
Christian Dywan
60041f0cbd Put the Trash in the toolbar right of the Search by default 2009-07-20 22:51:22 +02:00
Christian Dywan
94198ef19a Look for locales in "locale" folder under Win32 2009-07-20 09:51:29 +02:00
Christian Dywan
cd2e5a3cca Special case looking for the default search engines file 2009-07-20 09:30:21 +02:00
Christian Dywan
7a3535afac Load data files from system data dirs
A new helper function in sokoke is added to keep the code simple.
2009-07-20 09:10:53 +02:00
Christian Dywan
ff8489da20 Put the Preferences menuitem in the Tools menu under Win32 2009-07-20 08:13:29 +02:00
Christian Dywan
e8ffec6b28 Don't use bold, borderless frames on Win32 2009-07-20 08:12:41 +02:00
Christian Dywan
143ec96581 Don't do LRE title trick on Win32, it doesn't work as expected 2009-07-20 07:49:04 +02:00
Christian Dywan
572383370f Default to Icons in the toolbar on Win32 2009-07-20 07:05:17 +02:00
Christian Dywan
8bbc25695a Enable Open external pages in unconditionally
These days we fallback to sockets if libunique isn't there.
2009-07-20 06:53:41 +02:00
Christian Dywan
5dbe1f02ef Fix a typo in the toolbar style callback which could cause a crash 2009-07-19 19:10:18 +02:00
Christian Dywan
22271a661e Fail silently to the the current browser page if it's invalid 2009-07-19 18:46:03 +02:00
Christian Dywan
6bd19cd4d9 Fall back to the first if the last active tab is not there anymore 2009-07-19 18:45:00 +02:00
Christian Dywan
582310203a Set "homepage" of web apps to NULL, to hide the bookmarkbar 2009-07-19 18:31:13 +02:00
Christian Dywan
9ed58f553b Be sure not to crash if "homepage" is NULL and hide homepage button 2009-07-19 18:28:50 +02:00
Christian Dywan
a4632547f9 Preserve metadata from the saved session when loading
At this point, metadata can be set and read from the proxy item of
any view and expected to be found after a restart.
2009-07-18 16:41:13 +02:00
Christian Dywan
f492a28764 Don't save empty metadata keys to XBEL 2009-07-18 16:37:01 +02:00
Christian Dywan
afc414e7e3 Skip "owner" elements, these are not metadata keys 2009-07-18 16:24:56 +02:00
Christian Dywan
967ad910ed Read metadata from XBEL elements other than the root folder 2009-07-18 16:16:39 +02:00
Christian Dywan
dc440e85db Save metadata of items other than the root folder 2009-07-18 15:49:25 +02:00
Christian Dywan
3ac71da2c4 Make sure to only update the proxy array if it's still there
The proxy array of the browser is unset during disposal, so we
may end up trying to work with a NULL value.
2009-07-18 15:30:03 +02:00
Christian Dywan
90ab3166f4 Don't advertise AddSpeedDial as a toolbar action 2009-07-18 15:15:00 +02:00
Christian Dywan
c965db8f95 Always show icons and labels in bookmarkbar popup 2009-07-18 00:29:23 +02:00
Christian Dywan
b32122b604 Thaw the location action when setting history in a new window
Full history completion was missing because we set the model in new
windows but failed to setup the filter and sort models properly.
2009-07-17 22:55:41 +02:00
Christian Dywan
35f11238a4 No Print or Reset Zoom in context menu, but Print in compact menu 2009-07-17 19:37:49 +02:00
Christian Dywan
0c9058f566 Popup bookmarkbar when focussing location if bookmarkbar is hidden 2009-07-17 17:36:03 +02:00
Christian Dywan
e83bf5b730 Show fixed Homepage button in the bookmarkbar
The homepage is essentially a special bookmark, and so it makes
sense to have it in the bookmarkbar. It's hidden if the homepage
is unset.
2009-07-17 04:28:53 +02:00
Christian Dywan
525e7a2227 Display statusbar text in the location if the statusbar is hidden 2009-07-17 04:06:44 +02:00
Christian Dywan
736e7b854a Use the icon of the view for the window in web app mode 2009-07-16 23:45:45 +02:00
Christian Dywan
54fecef4b7 Set "browser" role on browser windows 2009-07-16 14:00:47 +02:00
Christian Dywan
ba11ec8acd Open the search engine even if only the token is typed
So "g" opens Google while "g cat" uses Google to search for cats.
2009-07-14 23:41:25 +02:00
Przemek Sitek
f04861e18c Disable notebook border if no tabs are visible 2009-07-13 22:16:58 +02:00
Christian Dywan
8a2d55b918 Use a different method of working around the icon entry bug 2009-07-12 23:22:39 +02:00
Christian Dywan
4001396443 Make sure that the icon entry parent really is a GtkWindow 2009-07-12 13:54:59 +02:00
Christian Dywan
908765d60d Resolve an object name clash to fix the unit test build 2009-07-12 13:53:22 +02:00
Christian Dywan
d5fac48850 Document _delete_item_from_uri under the correct name 2009-07-11 15:30:48 +02:00
Christian Dywan
5f1792d2f1 Set icons in completion as pixbufs instead of cell data functions 2009-07-11 15:28:16 +02:00
Christian Dywan
48c62d0ec6 Set the completion text renderer to a fixed size of 2 rows 2009-07-11 14:40:52 +02:00
Christian Dywan
1662a03677 Restore the (search) entry focus after changing the icon 2009-07-10 17:00:12 +01:00
Christian Dywan
90f04fea52 Remove the Add/ Remove toolbar menu, we have a proper editor now 2009-07-10 16:45:22 +01:00
Enrico Tröger
313e0f9e35 Add a public function to retrieve the recommended toolbar actions 2009-07-10 16:37:44 +01:00
Enrico Tröger
8baee5780d Allocate uris correctly as gchar*, not gchar 2009-07-10 16:20:56 +01:00
Christian Dywan
087a579450 Create Win32 icon and resorce and build it into the executable 2009-07-09 18:55:41 +01:00
Christian Dywan
8ad4e3585f Cast xmlChar* to gchar* when setting the meta string 2009-07-09 18:43:57 +01:00
Christian Dywan
491fadc119 Read metadata keys from XBEL 2009-07-06 18:32:44 +01:00
Christian Dywan
82e0a66de7 Use metadata API to store and lookup the current page
This effectively doesn't work yet as loading of metadata isn't
implemented in XBEL.
2009-07-05 00:17:00 +01:00
Christian Dywan
ab6ecc1625 Store meta data in XBEL when saving KatzeArray objects 2009-07-05 00:14:39 +01:00
Christian Dywan
3f62d9e0e6 Add Duplicate Tab to tab context menu 2009-06-30 22:54:55 +02:00
Christian Dywan
8b36138105 Use "Menu" without underscore as compact Menu tooltip 2009-06-27 23:56:01 +02:00
Christian Dywan
c76a468d16 Refactor tab context menu into public midori_view_get_tab_menu 2009-06-27 23:52:48 +02:00
Christian Dywan
33f1d0096a Use "_Menu" as tooltip for the compact Menu button 2009-06-27 23:29:00 +02:00
Christian Dywan
191f153429 Don't know detached panel windows in the taskbar 2009-06-26 21:19:09 +02:00
Christian Dywan
2cdaa2869e Don't open tabs when double- or middle-clicking notebook arrows
We need to connect after the button-press-event to make sure that
GtkNotebook blocks the signal appropriately.

Double click is disabled for now since we can't figure out if
it was a click on a button or not.
2009-06-26 21:18:02 +02:00
Christian Dywan
85cdadcdee Implement a basic context menu for tab labels 2009-06-25 01:02:01 +02:00
Christian Dywan
f626465c56 Fix panel "page" notifications and save the last open panel 2009-06-23 01:05:38 +02:00
Christian Dywan
610f6a1fa7 Implement show-tabs property in MidoriBrowser 2009-06-22 23:48:41 +02:00
Christian Dywan
397dd423bd Draw radio action popup menu items as radio items 2009-06-22 23:03:59 +02:00
Christian Dywan
b23ae6cca3 Use radio actions for the encodings menu 2009-06-22 22:55:23 +02:00
Christian Dywan
eb98806722 Add Encoding menu to the context menu 2009-06-22 22:18:16 +02:00
Christian Dywan
97c0b4d257 Add a compact menu to the navigationbar if the menubar is hidden
The compact menu item provides functionality that is not
accessible via the context menu.

The item is added when the menubar is hidden and removed when the
menubar is shown. It can be removed via right-click > Remove.
2009-06-22 21:54:19 +02:00
Christian Dywan
d23ea3a098 Add STOCK_WEB_BROWSER to the stock items 2009-06-22 21:31:42 +02:00
Christian Dywan
f96695632b Always create array actions for popup menu items the normal way 2009-06-22 21:30:28 +02:00
Christian Dywan
35ef1f7485 Add zooming items to the context menu 2009-06-22 21:29:39 +02:00
Christian Dywan
7e01ea42df Remove Preferences and Menubar items from the context menu 2009-06-22 21:27:52 +02:00
Christian Dywan
8ac1633deb Make sure to update the model in existing location proxies 2009-06-22 00:47:42 +02:00
Christian Dywan
75e3dae39a Implement a tree view of open tabs in the Tab Panel 2009-06-21 19:30:51 +02:00
Christian Dywan
18fa1d0fa3 Use an index to iterate news feeds to avoid compiler warnings 2009-06-19 03:06:22 +02:00
Christian Dywan
4c3ac6f86f Remove now unused speed dial menu item callback 2009-06-19 03:03:06 +02:00
Christian Dywan
6e2f1db63b Use action proxies for context menu items that correspond to actions 2009-06-19 02:58:06 +02:00
Christian Dywan
6a38cb7ed6 Add Menubar and Preferences to the default context menu 2009-06-19 02:36:36 +02:00
Christian Dywan
8a5c9eba8b Avoid naming an identifier 'boolean' which is used in Win32 headers 2009-06-17 23:39:50 +02:00
Christian Dywan
abccaf02da Implement -e or --execute to perform various commands
Currently any GtkAction in MidoriBrowser is recognized as a command,
no arguments are supported. Commands affect either a newly run
instance or a currently running one.
2009-06-17 00:46:53 +02:00
Christian Dywan
0ae4b19165 Use Unix name and architecture in identification string
This results in a better string on BSD systems which up to now
always identified as 'Linux'.
2009-06-16 01:48:39 +02:00
Christian Dywan
3bcd8b6615 Copy libsylph socket.c as fallback for single instance libunique
This socket code makes single instance a mandatory feature assuming
if libunique is not available we can use sockets.
A bit of refactoring of MidoriApp is involved to make the command
logic independant of the nature of the instance handling.
2009-06-16 01:46:22 +02:00
Christian Dywan
4822eaf4c4 Replace Go button with a Go icon inside the address entry
The icon is displayed by default, takes a little less space, but
replaced with the news feed icon as appropriate. If the address
entry is focussed, the Go icon takes precedence.

We also introduce the focus-in signal on MidoriLocationAction.
2009-06-13 03:45:11 +02:00
Christian Dywan
2834db080b Always show Open in Download dialogues, regardless of the file type
Just too often the reported MIME type is wrong or undetermined, so
we give the user the opportunity to know better.
2009-06-13 03:43:49 +02:00
Christian Dywan
bd5fd85031 Spell "SHIFT_JIS" in menu as "SHIFT__JIS" to prevent unwanted mnemonic 2009-06-12 23:46:24 +02:00
Christian Dywan
52f45952cf Enforce generated ident string if Custom was not chosen
This solves the ident string not being updated when Midori is
upgraded and running with existing configuration files.
2009-06-12 23:17:34 +02:00
Christian Dywan
c474363de2 Do not conditionalize Speed Dial preference on Gtk 2.14 2009-06-12 23:16:57 +02:00
Christian Dywan
696b6eab77 Bind Alt + Number to switching to the according tab from 1 to 0 2009-06-12 02:02:55 +02:00
Christian Dywan
491b89bcb3 Adjust mnemonics to not conflict when used in the same context 2009-06-11 23:57:42 +02:00
Christian Dywan
58d2b44316 Also strip search terms entered in the location entry 2009-06-11 23:38:07 +02:00
Christian Dywan
fd19d34410 Strip whitespace from the location entry input 2009-06-11 23:31:02 +02:00
Enrico Tröger
b284b2de7a Add New Window to toolbar items available in the Add context menu 2009-06-11 19:24:58 +02:00
Christian Dywan
ce455c2986 Disable thumbnails in tab label tooltips
For now they aren't acceptable because they effectively slow
switching tabs with the mouse wheel down significantly.
2009-06-08 20:46:53 +02:00
Christian Dywan
eddb0b30df Listen for (de)activation of extensions and save the config 2009-06-07 02:15:32 +02:00
Michael Opitz
891d89e3fd Propagate button press event explicitly from the view
Apparently the button events tend to be stuck and not properly
propagated, so we resort to emitting the signal ourselves.
2009-06-07 00:48:19 +02:00
Christian Dywan
35cdff552d Adjust HAVE_UNIQUE define to resolve a compiler warning 2009-06-06 18:52:29 +02:00
Christian Dywan
0f5e13e706 Allow building without JSCore and do so for mingw 2009-06-06 18:51:57 +02:00
Christian Dywan
fb316e7873 Use MDATA instead of DATA to avoid naming conflict
The header file objidl.h on Windows uses DATA in a different way,
so we need to avoid that name.
2009-06-06 06:22:35 +02:00
Przemek Sitek
7bd151a3e9 Implement an optional "website" property in MidoriExtension 2009-06-05 23:38:32 +02:00
Christian Dywan
e9ee1bcfbe Render tab tooltip thumbnails smaller and a lot faster 2009-06-04 01:00:50 +02:00
Christian Dywan
c41845b907 Add an entry for fixed-with font size to the Preferences 2009-06-03 22:00:29 +02:00
Christian Dywan
cad725a04c Connect the remove-item callback for the history again
It was accidentally removed when moving insertion of history items
into the location action.
2009-06-03 01:32:22 +02:00
Enrico Tröger
ad0b2ac077 Remember last folder of the Save As dialog when downloading files
This is done by creating the dialog only once and holding a
reference to it in memory. When the dialog is closed, it is only
hidden instead of destroyed. So, the next time we just re-show
the dialog with the previously used directory. It is destroyed
when the parent MidoriBrowser instance is destroyed.
2009-06-03 01:15:36 +02:00
Enrico Tröger
144eb69e5c Remove unused variable 'action' and move declarations into a block 2009-06-03 01:13:24 +02:00
Enrico Tröger
f9ac1af55d Show the suggested filename in the Save As dialog for downloads 2009-06-03 00:59:41 +02:00
Christian Dywan
64dcddefd7 Refresh speed dial tabs when adding a new shortcut 2009-06-02 19:16:59 +02:00
Christian Dywan
28b9571444 Special case reloading speed dial views 2009-06-02 19:05:42 +02:00
Christian Dywan
60bcbcf470 Use destination filename in the transferbar 2009-06-01 20:04:31 +02:00
Christian Dywan
54a2272b7a Only show the download if it's actually accepted 2009-06-01 19:57:43 +02:00
Christian Dywan
af25a8bc0f Show the title in tab tooltips if available, not the URI 2009-06-01 19:47:14 +02:00
Christian Dywan
ec4a10c385 Show Open in download dialogue only with known file types 2009-06-01 19:45:10 +02:00
Christian Dywan
c2f0732678 Display destined filename when notifying about a finished transfer 2009-06-01 19:41:03 +02:00
Christian Dywan
842a83d481 Implement a Save As button in the download dialogue 2009-06-01 19:33:44 +02:00
Christian Dywan
1bd94a4d28 Show thumbnail tab tooltips with Gtk 2.12 if speed dial is enabled 2009-06-01 09:35:16 +02:00
Christian Dywan
7fbe7f81b9 Improve panel Detach and Align button tooltips 2009-06-01 08:23:35 +02:00
Christian Dywan
4ddf55ccc3 Create completion model in one place and thaw/ freeze only new model 2009-06-01 08:11:50 +02:00
Christian Dywan
5f27b80ce4 Keep the history object of the location around 2009-06-01 06:41:23 +02:00
Christian Dywan
ff7092b601 Map completion models to 'history' objects
This trick avoids having to create a full copy of the completion
model in each window, which makes opening of new windows a lot
faster.
2009-06-01 06:27:36 +02:00
Christian Dywan
28ed75e017 Let the browser assign 'history' to the location action
We implement a 'history' property which makes it possible to
actually insert our history array into the location action and
move the insertion code into the action.
2009-06-01 05:14:36 +02:00
Christian Dywan
d878298f8c Store 'completion' in a variable independant from the entry 2009-06-01 03:06:45 +02:00
Jérôme Geulfucci
be3f9354aa Edit search engines in the dialogue with Enter or double click 2009-05-31 22:27:08 +02:00
Enrico Tröger
1dee538e41 Revisit inline find bindings to support the numpad '/' key 2009-05-31 03:43:15 +02:00
Przemek Sitek
09f0940bac Actually flip the position of the panel knob when changing alignment 2009-05-31 00:22:23 +02:00
Jérôme Geulfucci
4df9c87585 Implement a proper Fullscreen button superseding the special case 2009-05-31 00:04:20 +02:00
Enrico Tröger
20a34d0ae7 Treat select-all specially with text views and tree views
Unfortunately select-all signals within Gtk have different
semantics against intuition, so we have to treat text views
and tree views specially to avoid crashing.
2009-05-28 23:01:56 +02:00
Christian Dywan
a2d89bc37b Load thumbnails when needed and not from a filename
We actually pack views solely needed to take snapshots in the
notebook of the parent browser but try to keep them hidden.
2009-05-28 02:44:24 +02:00
Christian Dywan
faae6e9b40 Move midori_view_get_snapshot to MidoriView 2009-05-27 23:38:51 +02:00
Christian Dywan
5bf2662bad Don't re-implement New Window in context menus, it just works
This in fact prevents a second window from being opened.
2009-05-26 07:50:37 +02:00
Christian Dywan
682e53ea81 Always focus the location in (blank) new windows 2009-05-26 07:41:17 +02:00
Jérôme Geulfucci
3d288392db Tweak padding and alignment of the Clear private data dialogue 2009-05-25 18:41:54 +02:00
Jean-François Guchens
017d789f4f Remove spaces from the speed dial JSON 2009-05-23 23:59:22 +02:00
Christian Dywan
441db87647 Don't show 'Add to speed dial' on blank pages 2009-05-23 00:16:39 +02:00
Jean-François Guchens
1fa9dec7b4 Remember options in Clear private data dialogue 2009-05-22 23:53:54 +02:00
Christian Dywan
56d2637020 Add tabs to new browser windows *after* emitting NEW_WINDOW
The app takes care of settings as well as other state when the
NEW_WINDOW signal of a browser is emitted. So we need to add
tabs after emitting the signal, otherwise the new tab has
default settings for a limited period of time.
2009-05-22 23:15:53 +02:00
Christian Dywan
16912f4cdf Implement a hack to keep the text direction left-to-right 2009-05-22 04:01:56 +02:00
Jean-François Guchens
24dc508fa7 Add 'Closed tabs and windows' to Clear private data dialogue 2009-05-22 02:18:08 +02:00
Christian Dywan
a102146f15 Generate thumbnails as needed without saving to disk 2009-05-21 19:14:46 +02:00
Christian Dywan
7087a0d25f Send a synthetic expose event to snapshot views 2009-05-21 18:23:27 +02:00
Christian Dywan
1b094dda75 Replace FindQuick with direct '.' and '/' search hotkey support
Using an action for a single character turned out to be a bad idea
and rather than trying to work around it, we implement '/' and '.'
hotkeys directly in the view.
2009-05-18 22:40:13 +02:00
Christian Dywan
c106e52fca Implement Quick Find, which is inline find started with '.' 2009-05-18 02:57:52 +02:00
Christian Dywan
7fc6c46c9a Allow WebKit to catch key presses first
If we connect to key presses after WebKit processes them this
resolves the conflict between hotkeys and inline search.
2009-05-18 02:43:56 +02:00
Christian Dywan
907f7a72ce Implement Open new pages in: New window preference 2009-05-17 20:29:31 +02:00
Christian Dywan
964bcd0c1c Adjust completion test after modifying the location entry 2009-05-17 16:55:02 +02:00
Christian Dywan
e3ed65c3f2 Always append tabs opened via middle/ double click on the tab bar 2009-05-17 16:49:46 +02:00
Christian Dywan
87e712f51c Implement a small Go button next to the location entry 2009-05-17 16:26:31 +02:00
Christian Dywan
696a592e82 Use a trick to prevent default activation when middle clicking 2009-05-17 13:38:42 +02:00
Christian Dywan
eaaed697bf Add a type cast to resolve a warning in MidoriBrowser 2009-05-17 02:54:50 +02:00
Christian Dywan
0c6d0420b3 Remove superuser warning completely 2009-05-17 02:53:57 +02:00
Christian Dywan
c8493b4c04 Treat "about:blank" and "" equally in midori_view_set_uri
This solves the problem of open speed dial tabs in the session
coming back as blank tabs after a restart of Midori.
2009-05-17 00:01:52 +02:00
Christian Dywan
e3fea6c2eb Ensure that the address entry is focussed with speed dial 2009-05-16 23:52:59 +02:00
Jean-François Guchens
0717e42458 Protect speed dial against quoting in titles 2009-05-15 23:49:01 +02:00
Christian Dywan
4c2a3f5bb7 Support custom sizes of icons in res_server 2009-05-15 23:08:52 +02:00
Enrico Tröger
90e9ee4af7 Fix crash for URIs with an invalid hostname and without a path 2009-05-15 18:58:57 +02:00
Christian Dywan
c217609403 Title the speed dial as Speed dial instead of Blank page 2009-05-15 18:56:14 +02:00
Christian Dywan
a6f2ca54e9 Make sure to only update the address entry with the current view 2009-05-15 17:30:54 +02:00
Christian Dywan
b0babb3c17 Moving tab title update to a function and fix tab titles 2009-05-15 17:26:09 +02:00
Christian Dywan
8b3a74b6f0 Update address and actions properly when navigating in-page 2009-05-15 01:18:14 +02:00
Christian Dywan
ade0f16053 Fix a crash caused by a mistaken attempt at plugging a leak 2009-05-15 00:58:58 +02:00
Christian Dywan
06d9e2d026 Move 'Add to Speed dial' from View to File menu 2009-05-14 22:29:59 +02:00
Christian Dywan
03a6f54d25 Plug a few memory leaks in MidoriView and MidoriWebSettings 2009-05-14 22:26:02 +02:00
Christian Dywan
67fea42b12 Bind View Source to Ctrl+U by default 2009-05-14 20:36:26 +02:00
Jean-François Guchens
760553f374 Store speed dial as JSON instead of actual HTML source
This will make it possible to change the layout of the page
without losing shortcuts.
2009-05-13 23:56:55 +02:00
Christian Dywan
0e9803a31c Point out that translators should adjust the spell check example 2009-05-12 02:30:00 +02:00
Christian Dywan
ff2abf1fd4 Use katze_assign, not katze_object_assign for program_notify_send 2009-05-12 01:50:07 +02:00
Christian Dywan
465ff4d0ff Include compat.h in sokoke 2009-05-12 01:41:15 +02:00
Christian Dywan
541d65f013 Fix Gtk version check for speed dial, this is >= Gtk 2.14 2009-05-12 01:33:44 +02:00
Christian Dywan
8588c3b43f Ellipsize tab labels differently to emphasize subtitles 2009-05-12 01:27:51 +02:00
Christian Dywan
a582d8dcc0 Fix font family/ homepage tooltip mixup 2009-05-10 16:40:43 +02:00
Christian Dywan
b5a534b363 Replace variables in templates literally 2009-05-10 16:20:50 +02:00
Christian Dywan
906ccf632d Go back to referring to Speed Dial in the user interface
The term customized homepage is somewhat unclear and speed dial
is known from phones and other browsers.
2009-05-10 16:07:28 +02:00
Jean-François Guchens
e5276907e9 Add an 'edit' icon to emphasize that shortcut can be renamed 2009-05-10 15:06:15 +02:00
Christian Dywan
db826d348a Make AddSpeedDial visible/ hidden instead of sensitive/ grayed 2009-05-10 14:57:26 +02:00
Christian Dywan
64b60d7f94 Use the correct config folder to store speed dial
This is important when using the -c or --config switch
2009-05-10 14:48:12 +02:00
Jean-François Guchens
56c1231d7a Move speed dial to browser and add an AddSpeedDial action 2009-05-10 14:39:20 +02:00
Jean-François Guchens
2e250b66e8 Fix the search in the custom homepage and optimize the saving 2009-05-09 23:29:35 +02:00
Alexander Butenko
5916815daf Work around broken reloading of "alternate content" 2009-05-09 22:45:21 +02:00
Christian Dywan
79e278bea8 Compress thumbnails to 70% JPEG
The compressed images are still reasonably good and save a
noticible amount of disk space.
2009-05-09 22:16:03 +02:00
Christian Dywan
7fcb3d9095 Add a mnemonic to Add to customized homepage 2009-05-09 17:30:54 +02:00
Jean-François Guchens
bd6c23cc71 Allow adding speed dial shortcuts from the context menu 2009-05-09 16:41:01 +02:00
Enrico Tröger
70a9d29ea6 Add midori_app_send_notification() to easily send notifications
Sending such messages is either done by using libnotify if
available. Otherwise the program "notify-send" is used.
2009-05-09 15:55:10 +02:00
Enrico Tröger
429c460e86 Fix shadowed variable 'error' 2009-05-09 15:32:45 +02:00
Jérôme Geulfucci
68bfa4331b Refactor middle clicks on navigation actions 2009-05-09 13:57:52 +02:00
Christian Dywan
446fe346cb Only save thumbnails if Customized homepage is enabled 2009-05-08 17:46:50 +02:00
Christian Dywan
5e1b3a0bad Rename Speed dial in news tabs to Customized homepage in new tabs 2009-05-08 17:41:40 +02:00
Christian Dywan
581c69f4e8 Use "Search" to label Search button and entry, not "Suchen" 2009-05-08 13:15:08 +02:00
Christian Dywan
5dc0b3d0cc Recognize {stock} in error page template 2009-05-08 13:13:39 +02:00
Christian Dywan
b1815fb63c Implement /stock path in res_server 2009-05-08 13:13:08 +02:00
Jérôme Geulfucci
713a9b02ca Simplify handling of background tabs 2009-05-08 13:09:14 +02:00
Christian Dywan
f60b8ab9b6 Add a preference Show speed dial in new tabs 2009-05-08 03:29:25 +02:00
Christian Dywan
68bb3d2378 Localize "Search" in quick dial and use the user's default search 2009-05-08 02:56:26 +02:00
Christian Dywan
b0c069730f Fix opening any page when having the speed dial open 2009-05-07 23:08:13 +02:00
Christian Dywan
e5621fc44f Don't declare print function for WebKit >= 1.1.6 2009-05-07 23:00:29 +02:00
Jérôme Geulfucci
bb7928303c Implement middle click on Back, Forward, Homepage menu items 2009-05-07 22:41:39 +02:00
Jean-François Guchens
c89651c05f Implement quick launch page code named Tandoori
The quick launch page replaces the blank page unless it turns out
to be a bad idea.
2009-05-07 22:22:43 +02:00
Mike Massonnet
0fa7db4ed3 Let Ctrl+K load default search website if no Search in the toolbar 2009-05-06 02:45:59 +02:00
Alexander Butenko
fc14fb7a0b Restrict res_server to listen only to localhost 2009-05-05 23:32:38 +02:00
Jérôme Geulfucci
5ab58b60c1 Extend menu item middle click to support trash and history 2009-05-05 23:22:39 +02:00
Christian Dywan
902e75fb77 Conditionalize --snapshot on WebKitGTK+ 1.1.6 2009-05-05 23:02:45 +02:00
Christian Dywan
adec655c01 Implement '--snapshot' or '-s' command line switch
Calling Midori in the form "midori --snapshot URI" makes a
snapshot of the specified address and saves it to PDF. The format,
path or size can currently not be influenced.
Also note that web pages which look different when printed will
apply their print style.
2009-05-04 02:09:46 +02:00
Christian Dywan
c5eba36cf4 Reject non-local requests to the res_server
This sever is solely meant to provide internal resources and
should not be accessible from outside, so anything non-local
is blocked with a No Content error.
2009-05-04 01:09:52 +02:00
Christian Dywan
b6dde64875 Return the correct content type in res_server responses 2009-05-04 00:51:14 +02:00
Christian Dywan
6ab464075d Fix setting the news-feeds property of MidoriView 2009-05-03 21:41:31 +02:00
Jérôme Geulfucci
b92ebdccaa Implement middle-clicks on Back, Forward and Homepage tool buttons 2009-05-03 21:35:05 +02:00
Enrico Tröger
186c2d708b Ensure destroyed panel widgets remove the scrolled window 2009-05-03 21:13:54 +02:00
Enrico Tröger
ae23ae0583 Implement middle click on array actions, ie. bookmark menu items
Add a new signal activate-item-alt to KatzeArrayAction which has
a button argument specifying the mouse button that was pressed. If
this signal is handled one can special case middle or right
clicks, and return TRUE to suppress the emission of activate-item.

The browser utilizes this to open new tabs when middle clicking
on bookmark menu items.
2009-05-03 12:42:47 +02:00
Christian Dywan
9d472f4054 Introduce 'news-feeds' property on MidoriView
This is a KatzeArray of KatzeItems with the feeds of the loaded
web page, particularly useful for extensions.
2009-05-03 03:11:33 +02:00
Christian Dywan
1d7293a2a8 Quote the page address in the error page 2009-05-03 01:53:49 +02:00
Christian Dywan
ca98c68e70 Support error pages with the load-error signal in WebKitGTK+ 1.1.6 2009-05-02 21:44:20 +02:00
Christian Dywan
7d0d2d60bc Add sokoke_replace_variables 2009-05-02 21:38:43 +02:00
Christian Dywan
d6721f09b0 Add sokoke_get_res_server 2009-05-02 21:36:09 +02:00
Christian Dywan
8c8551d384 Generate thumbnails of open tabs
The images aren't used for anything yet, and can't be disabled
2009-05-02 00:23:43 +02:00
Christian Dywan
f93c3c166f Ensure that completion items have a title
Items are added as lone URIs often enough, so it happened that
we accidentally unset a title. We check that now.
2009-05-01 20:03:40 +02:00
Christian Dywan
566e8252c2 Activating Search if hidden should spawn the search page 2009-04-30 00:43:47 +02:00
Dale Whittaker
eb606ecdad Leave 'added' stamp of history items to fix duplicate detection
Only the 'added' value of parents shall contain the age in days.
2009-04-29 23:53:59 +02:00
Christian Dywan
5257a9e6c5 Correct 'Enables spell checking' to 'Enable spell checking' 2009-04-29 17:44:12 +02:00
Christian Dywan
f8b10d8513 Add example to the spell checking language tooltip 2009-04-29 17:35:36 +02:00
Christian Dywan
0506d04601 Add Spell Checking preferences to the dialogue
We need to think of a better way to choose dictionaries than a
mere text entry.
2009-04-29 00:42:47 +02:00
Christian Dywan
bd002e9a7b Fix 'Refresh' menu item localization in the context menu 2009-04-29 00:16:26 +02:00
Christian Dywan
a40cd75d14 Add new transfer preferences and new Applications tab 2009-04-28 23:52:16 +02:00
Christian Dywan
bd11e1c4f7 Add Ask for destination folder preference
The value is not functional yet
2009-04-28 23:49:52 +02:00
Enrico Tröger
c711a75379 No need to work around GtkIconEntry issue afterall 2009-04-27 21:30:27 +02:00
Christian Dywan
6d2013f16f Default to loading the last open pages at startup 2009-04-27 20:49:32 +02:00
Christian Dywan
10426983b0 Fail silently on xprop errors when determining the environment 2009-04-27 17:46:04 +02:00
Enrico Tröger
ba7e8846ee Do not display any icon if there's no news feed available
Work around a bug that made unsetting the secondary icon in the
location entry impossible and do not set an icon if there is
no news feed instead of an 'information' icon.
2009-04-27 01:11:58 +02:00
Christian Dywan
d328d2afab Implement transfer completion notification via libnotify 2009-04-27 00:22:16 +02:00
Christian Dywan
62edfeb06e Disconnect panel toolitem destroy handler when detaching 2009-04-26 17:11:16 +02:00
Christian Dywan
bdf9c2c11d Fix label/ button on the panel when detaching and re-attaching 2009-04-26 16:57:23 +02:00
Christian Dywan
9cda61ad1a Add a Fixed-width Font Family preference 2009-04-26 02:23:27 +02:00
Christian Dywan
dafa435e47 Switch the current panel after detaching a panel 2009-04-25 23:33:09 +02:00
Christian Dywan
5d3afb0713 Disable 'Detach' button if all panels are detached 2009-04-25 23:26:54 +02:00
Christian Dywan
90d9e85167 Refer to 'Netscape plugins' instead of 'plugins'
A remarkable amount of people have problems telling 'plugins'
and 'extensions' apart, due to their different meaning in
different applications. So make it clearer.
2009-04-25 16:13:23 +02:00
Dale Whittaker
9c9f34180d Implement string_list setting in MidoriExtension 2009-04-25 16:02:29 +02:00
Dale Whittaker
b7f684b345 Implement sokoke_key_file_get_string_list_default 2009-04-25 16:00:51 +02:00
Christian Dywan
c31d9936d9 Fix a crash when failing to open a downloaded file 2009-04-24 20:13:57 +02:00
Christian Dywan
c0291bb4a3 Update the browser header file for midori_browser_get_for_widget 2009-04-23 04:15:07 +02:00
Christian Dywan
5a43b646b5 Add midori_browser_get_for_widget_utility function
This function will look for a MidoriBrowser according to a
particular widget - even if it's inside a detached panel
window or any other window transient for the browser.
2009-04-23 04:10:38 +02:00
Matthew Gyurgyik
db0c626ec1 Catch and ignore mouse buttons meant for horizontal scrolling 2009-04-23 04:08:28 +02:00
Christian Dywan
daf6ca74e7 Remove leftover code from MidoriWebSettings 2009-04-22 23:57:10 +02:00
Christian Dywan
b058e8ec5d Add a remove-browser signal to MidoriApp 2009-04-22 21:58:00 +02:00
Christian Dywan
758434e711 Add midori_browser_foreach to iterate over all present browsers 2009-04-22 21:53:14 +02:00
Christian Dywan
d7f6c7ded8 Add a function to determine if an extension is being deactivated 2009-04-22 20:01:10 +02:00
Christian Dywan
05967054c6 Save extension settings to a filename based folder
This prevents different folders from being created depending
on the user language.
2009-04-21 03:48:25 +02:00
Christian Dywan
a6bea88932 Save activation status of extensions
Finally only extensions which are expressly activated will be
loaded on startup.
2009-04-21 03:46:11 +02:00
Christian Dywan
ca8d181329 Unify opening URIs externally with good fallbacks 2009-04-20 19:10:13 +02:00
Christian Dywan
574fccf445 Add sokoke_search_uri to sokoke.h 2009-04-20 18:35:16 +02:00
Christian Dywan
192084d48e Unify how search URI and keywords are combined
This handles the presence of a %1 and encoding the keywords.
2009-04-20 00:39:36 +02:00
Christian Dywan
7ae35d62ab Show a 'Delete all' button in the transferbar as needed
The button shows up as a new download starts and vanishes again
if no downloads are there.
2009-04-19 19:05:05 +02:00
Christian Dywan
3c31b23295 Mark 'Use as default' for translation 2009-04-19 16:48:37 +02:00
Christian Dywan
98456e7f24 Fix accidentally removed Find while Typing preference 2009-04-19 16:47:42 +02:00
Enrico Tröger
3b0ce548a5 Delete completion actions by list position, not index
The completion actions are not actually indiced but merely added
to a list by their relative position. So instead of deleting by
their presumed index we just delete the first one often enough.

Also fix a wrong Since tag in a new setting.
2009-04-19 02:35:24 +02:00
Christian Dywan
d7d6edbff3 Percent encode search terms, so '+' actually ends up as a '+' 2009-04-19 00:47:02 +02:00
Christian Dywan
52084a21e1 Add a preference Search engines in location completion
It seems that deletion of completion actions can fail, which means
that the actions remain until the next restart. It is not clear
how to fix this.
2009-04-18 23:26:54 +02:00
Christian Dywan
18b66ce7d1 Allow marking a search engine as Default engine
The default engine is used when search terms are typed in the
address entry without tokens and for the 'Search the Web' item
in the selection context menu.

The 'Location entry search' is removed from the preferences. The
setting 'location-entry-search' remains functional however.
2009-04-18 22:41:37 +02:00
Enrico Tröger
59f4a3acdb Move search engine items in selection context menus to a submenu 2009-04-18 19:39:17 +02:00
Christian Dywan
ad82a73ab8 Show only image buttons in Statusbar Features in statusbar 2009-04-17 03:16:37 +02:00
Christian Dywan
a9863cfb40 Add News Aggregator preference
The program set here is called if the user clicks on the news feed
icon, with the address of the current website as argument.

For example liferea-add-feed works like that.
2009-04-14 19:44:48 +02:00
Christian Dywan
5d360b065b Fix search engines without %s in the context menu 2009-04-14 19:19:50 +02:00
Christian Dywan
0d1fd5794d Use mnemonic in "Clear private data" button 2009-04-13 23:35:31 +02:00
Christian Dywan
a324cad92a Using non-utf8 strlen for titles in completion should suffice 2009-04-13 22:43:07 +02:00
Christian Dywan
c27642e912 Display the news feed icon again
The code for looking up news feeds on websites was disabled
and is now back in simplified form. 'liferea-add-feed' is
hardcoded for the moment.
2009-04-13 22:40:57 +02:00
Christian Dywan
94c1d3c713 Implement "-a" or "--app" to run web apps
At the moment this takes an URI and opens a standalone window
with a non-editable toolbar and a statusbar.
2009-04-13 04:38:01 +02:00
Christian Dywan
adec1c7093 Don't try to render "nothing" in completion, like an empty title 2009-04-13 04:07:20 +02:00
Christian Dywan
377f45d3ad Work around failure to reload Not found pages 2009-04-13 04:05:05 +02:00
Christian Dywan
78813a03e5 Be generous if middle click pastes contain spaces and line breaks 2009-04-13 03:38:28 +02:00
Ernst Persson
22ded9a981 Apply URI magic to externally opened addresses 2009-04-12 23:37:15 +02:00
Christian Dywan
85f2386279 Revert "Apply URI magic to externally opened addresses"
The commit had the wrong author name.
2009-04-12 23:31:42 +02:00
Thorsten Mühlfelder
1b8de1588f Apply URI magic to externally opened addresses 2009-04-12 22:44:11 +02:00
Christian Dywan
1038ee41a3 Don't touch the ythickness of the notebook
This allows the active tab to visually move above other tabs. The
drawback is that it makes all tabs somewhat larger.
2009-04-12 21:57:20 +02:00
Christian Dywan
dc40d878d5 Compute a string if the identification string is empty 2009-04-12 14:28:11 +02:00
Christian Dywan
81d67d3c2e Don't show the progressbar if the location shows progress 2009-04-12 14:09:06 +02:00
Christian Dywan
89698772bb Try to decide what an @ in a location refers to
We assume the usual case is that you intend to search for an
email address, a host with a login isn't recognized.
2009-04-12 14:00:32 +02:00
Christian Dywan
e7d20f467c Show all search engines in selection context menu
This replaces the generic Search the Web unless no search engines
are defined, which is actually a corner case.
2009-04-12 01:32:06 +02:00
Christian Dywan
50f078575b Show search engines as "actions" in location completion 2009-04-11 22:24:56 +02:00
Jordan Callicoat
52ab540db5 Teach magic_uri that hostnames don't contain spaces
New test cases included. Two of them are commented out since
they are not supported but should logcially be.
2009-04-11 12:24:43 +02:00
Christian Dywan
592e55c59b Use progress and icon GtkEntry features with GTK+ 2.16 2009-04-11 07:05:28 +02:00
Christian Dywan
a9ea07389a Implement Clear Private Data dialogue 2009-04-11 05:14:53 +02:00
Christian Dywan
ec5ef95408 Initial support for detachable panels
A button allows detaching of a particular panel into its own
window. The toolbar will also be part of the window. Closing
the window re-attaches the panel back to the browser window.
2009-04-10 22:29:45 +02:00
Christian Dywan
deb92e5158 Add an 'Add new folder' menu item to Bookmarks menu 2009-04-10 22:28:36 +02:00
Christian Dywan
88ebdf3944 Support external Download Manager with newer WebKit 2009-04-10 15:52:01 +02:00
Christian Dywan
07aed45bd9 Recognize different instances for different config dirs
If Midori is built with support for multiple instances and a
config folder is specified a new instance bound to that
folder is created.

The new "name" property in MidoriApp implements this.
2009-04-09 20:34:27 +02:00
Christian Dywan
ddf2f60e3f Implement "-c" or "--config" to specify a different config folder
If this option is specified the folder is used in place of the
default ~/.config/midori including extension settings.
2009-04-09 19:28:36 +02:00
Faheem Pervez
0ffda1fe27 Initizalize and deinitialize the osso context 2009-04-07 23:23:27 +02:00
Christian Dywan
1ddceece8f Adjust mouse wheel zooming to do the same as keyboard shortcuts 2009-04-07 02:39:11 +02:00
Christian Dywan
eed273b35e Fix memory leaks in a number of places 2009-04-05 23:46:15 +02:00
Christian Dywan
3eae091ebb Only print if the browser is visible 2009-04-05 11:28:42 +02:00
Enrico Tröger
ad8558ab4c Implement stock items for Tab Panel and plugin panel 2009-04-05 00:13:09 +02:00
Christian Dywan
03f644ab1d Make sure we always save the main bookmark folder 2009-04-04 01:32:02 +02:00
Christian Dywan
406942594a Allow opening data URIs from the location entry 2009-04-02 22:48:07 +02:00
Christian Dywan
2d0e3b4c7e Don't try to check the prefix of a NULL URI 2009-04-02 00:02:58 +02:00
Christian Dywan
86292d26f9 Check if we really have a view, it might be invisible 2009-04-01 23:53:45 +02:00
Christian Dywan
b2d14b5fc1 Remove inner border from the panel and leave it to child widgets 2009-04-01 20:44:34 +02:00
Christian Dywan
43feec8b3d Optimize location completion based on profiling
The test was modified slightly because we are not filtering
out trailing slahses anymore. We are not quite there still
when it comes to treating URIs as we should but for all
practical purposes it should be quite a bit faster.
The most annoying shortcoming still is that umlauts or any
special characters won't match at all.
2009-03-31 22:24:18 +02:00
Christian Dywan
7470684a3b Optimize array handling in search action 2009-03-31 22:21:14 +02:00
Christian Dywan
d14b65563a Save files which are opened immediately to the temporary folder 2009-03-31 21:19:48 +02:00
Christian Dywan
b083c5bbd0 Optimize array iterations in the browser 2009-03-31 21:19:18 +02:00
Enrico Tröger
529aadc648 Always use WebKit's session in KatzeNet
This fixes corruption of expiration dates.
2009-03-31 18:20:31 +02:00
Christian Dywan
dbc4c3f743 Move array loading and saving to midori_array_{from,to}_file
This not only takes the code out of main but in the future
will allow extensions to use and enhance it.
2009-03-31 18:09:04 +02:00
Christian Dywan
e9c9886265 Remove GJS, it's not used anymore 2009-03-31 18:04:17 +02:00
Christian Dywan
3ecfecb555 Optimize sokoke_magic_uri for better performance 2009-03-31 03:28:01 +02:00
Christian Dywan
7cddd8ade3 Optimize array iterations in main.c 2009-03-31 03:24:29 +02:00
Christian Dywan
31bf9962fa Support proxy server address without a protocol 2009-03-31 01:10:35 +02:00
Christian Dywan
99c3154dd6 Correction misspelling of 'happened' 2009-03-30 00:53:42 +02:00
Christian Dywan
ed2a35d70b Don't expressly use libkatze in extensions to avoid -fPIC problem 2009-03-30 00:14:43 +02:00
Christian Dywan
5df04ae2c9 Do not use long texts in the preferences but in tooltips 2009-03-28 23:12:08 +01:00
Christian Dywan
3a36d27d6f Add BookmarkAdd to dummy menu items
This fixes a warning about an accelerator and in some cases
even a crash when opening the bookmarks menu.
2009-03-28 21:00:11 +01:00
Enrico Tröger
f34223e55d Only append separator to bookmarks if the array isn't empty 2009-03-28 20:57:42 +01:00
Christian Dywan
fb1d931e2c Load cookie jar in an idle callback
This improves perceived startup time a lot.
2009-03-28 03:04:27 +01:00
Christian Dywan
1e68d8fa40 Use the file icon in the download dialog if possible 2009-03-27 00:40:28 +01:00
Christian Dywan
73b26c53f9 Support mailto: by passing it to gtk_show_uri or Exo 2009-03-26 23:46:36 +01:00
Christian Dywan
e6ea06afd3 Display only the MIME type if there is no description 2009-03-26 22:37:33 +01:00
Christian Dywan
164bd5b265 Add midori_extension_get_app and enforce a valid app
We change the deactivation so that an extension is regarded as
active until the 'deactivate' signal was processed. And we
define that 'activate' must be called with a valid app.
2009-03-25 02:07:27 +01:00
Christian Dywan
d0a947528c Always lookup an item to find a radio group
Storing a group isn't good enough because as soon as an item is
removed that group is invalid and can't be reused anymore.
2009-03-25 02:04:41 +01:00
Christian Dywan
fce6761870 Save tab reordering to the session 2009-03-24 23:54:37 +01:00
Christian Dywan
15790565e8 Create cookie jar on startup instead of waiting for an HTTP request 2009-03-24 01:10:15 +01:00
Christian Dywan
1aa158d78f Add a missing variable declaration 2009-03-23 21:09:29 +01:00
Enrico Tröger
ded346905c Properly initialize tooltips instance to NULL 2009-03-23 00:58:33 +01:00
Enrico Tröger
5c9e56fdb6 Remove left-over assignement of configuration file 2009-03-22 23:47:07 +01:00
Christian Dywan
1650d09070 Implement Transfers sidepanel 2009-03-22 15:25:57 +01:00
Christian Dywan
50690c89e6 Add add-download signal to MidoriBrowser 2009-03-22 15:24:40 +01:00
Christian Dywan
d9f2cf492b Reduce the width of individual download items 2009-03-21 20:17:23 +01:00
Christian Dywan
e5d1f36561 Provide a Clear button for cancelled downloads 2009-03-21 20:08:37 +01:00
Christian Dywan
863f2db611 Always reset the flag to open the downloaded file 2009-03-21 20:07:38 +01:00
Christian Dywan
9e76f7e072 Move download dialog to the view and don't show an error page
We have to handle the dialog when the MIME type is requested,
otherwise we don't know the type. Plus we stop the loading now
to avoid seeing an error page.
2009-03-21 15:06:57 +01:00
Christian Dywan
9be395fe9e Implement the 'open' button in the download dialog 2009-03-21 10:46:25 +01:00
Christian Dywan
42027c256b Show a dialog before downloading asking what to do 2009-03-21 00:40:03 +01:00
Christian Dywan
81717cc965 Remove items from the transferbar when they are opened 2009-03-21 00:11:29 +01:00
Christian Dywan
feed868ec2 Implement opening of downloaded files 2009-03-21 00:08:22 +01:00
Christian Dywan
99fc5f2e4a Allow showing/ hiding the transferbar 2009-03-20 23:55:38 +01:00
Christian Dywan
2421a3163f Strip selection from spaces when middle click opening
It happens every so often that you quickly select an address
and there's leading or trailing space you accidentally hit.
So we strip the selection, otherwise such addresses don't work.
2009-03-19 23:40:31 +01:00
Christian Dywan
7af8baee8b Initial support for WebKitDownload
At this point all downloads run automatically and appear in the
statusbar. The destination folder can be chosen in the preferences.
Download can be cancelled. The context menu works as well.
2009-03-19 18:28:50 +01:00
Christian Dywan
bbaa0fb9e6 Implement source view with GIO and drop internal source view
We use GIO to choose a text editor unless a text editor was
specified in the Preferences. We drop our internal source view
now which used to serve as a fallback.
2009-03-17 21:35:05 +01:00
Christian Dywan
dba291d3ba Drop WebKit/ libSoup related conditonals from preferences 2009-03-16 23:55:25 +01:00
Christian Dywan
d30c2aa62d Drop soup session hijacking 2009-03-16 02:13:35 +01:00
Christian Dywan
424cca0b66 Drop WebKit and libSoup version conditionals in WebSettings 2009-03-16 02:05:45 +01:00
Christian Dywan
b40c7b0f87 Drop compile time and runtime conditionals for libSoup and WebKit 2009-03-16 01:54:22 +01:00
Christian Dywan
8e7c445482 Drop Glib < 2.16 and WebKitGTK+ < 1.1.1 compat functions 2009-03-16 01:26:52 +01:00
Christian Dywan
13dc1502c8 Use gtk_show_uri, GIO or Exo to open email adresses 2009-03-16 01:21:59 +01:00
Christian Dywan
cea8294a18 Enclose MIME type in single quotes in the error message 2009-03-15 18:44:16 +01:00
Christian Dywan
1af23afbe8 Implement Last Visited Pages menu and toolbar item
We use the name of history folders now to store dates instead
of the token. This makes it possible to show history in an action.
2009-03-07 14:00:14 +01:00
Christian Dywan
abbfc163a3 Use session function in WebKitGTK+ 1.1.1 and prepare the session 2009-03-06 20:29:40 +01:00
Christian Dywan
60d5452b5e Implement a button to use the current page as homepage 2009-03-05 23:36:13 +01:00
Christian Dywan
7c10d2078a Make sure there actually is a web view when returning the level 2009-03-05 23:09:22 +01:00
Christian Dywan
1fb5222a3f Fix zooming, and make Zoom Normal work again 2009-03-05 22:45:34 +01:00
Christian Dywan
f64547f723 Load and save extension settings automatically 2009-03-05 22:22:18 +01:00
Christian Dywan
7708e90214 Implement bypassing cache when reloading with Shift 2009-03-04 23:23:23 +01:00
Enrico Tröger
40f36328c2 Add WebKit version check to compat.h and use it in Preferences 2009-03-04 23:07:29 +01:00
Christian Dywan
abf30976af Always show Network and Cookie prefs if we have WebKitGTK+ 1.1.1 2009-03-04 02:04:37 +01:00
Christian Dywan
d9f90f13e6 Avoid having no main frame, this fixes a g_signal_connect warning 2009-03-04 02:03:38 +01:00
Christian Dywan
5e458d2a5a Disable Find inline while typing by default
Some web pages make heavy use of hotkeys with a single letter.
2009-03-03 01:02:28 +01:00
Christian Dywan
e12716c917 Update copyright year in --version and about dialog 2009-03-01 21:00:06 +01:00
Christian Dywan
2433019856 Mention the MIME type of a document that cannot be displayed. 2009-03-01 20:21:35 +01:00
Christian Dywan
73feaf9ae1 Add a Preference to disable automatic inline find while typing 2009-03-01 19:21:27 +01:00
Christian Dywan
0380d8bd2e Use libSoup to percent decode scripts, ie. bookmarklets 2009-03-01 00:29:44 +01:00
Christian Dywan
ff9085b400 Disable WebKit's authentication dialog if needed
We need to handle WebKit possibly having an authentication
dialog more expressly. Obviously we only ever want to
see one dialog and we choose our own simply because it
is localized.
2009-02-28 23:46:41 +01:00
Christian Dywan
dc357a40aa Use the date format of the user locale to display history dates 2009-02-28 23:03:23 +01:00
Christian Dywan
f799af8c0c Report to the web view we didn't handle if the MIME type is fine
This caused blank pages to erroneously look as thought they were
loading infinitely. In fact it is due to a bug in WebKit that
this ever worked at all.
2009-02-28 22:33:37 +01:00
Christian Dywan
8ec0e53441 Check for settings and views more properly
These improvements were assisted by a test case that is
going to follow soon.
2009-02-28 14:05:01 +01:00
Christian Dywan
5b2380433b Only apply settings on the web view if we actually have any 2009-02-28 14:03:23 +01:00
Christian Dywan
c02e181750 Only disconnect signals when we actually have search engines 2009-02-28 14:02:36 +01:00
Christian Dywan
68f00fb31c Add function to obtain the action group of the browser 2009-02-28 04:15:16 +01:00
Matthias Kruk
7ff1a016f4 Implement activating and deactivating extensions in the panel 2009-02-28 01:59:06 +01:00
Christian Dywan
9c4d3ea62a Implement Encoding menu 2009-02-27 23:09:36 +01:00
Christian Dywan
0ddf1bd1b2 Implement 'Open all in Tabs' for bookmark folders and history 2009-02-27 21:52:51 +01:00
Enrico Tröger
498232b805 Fix memory leaks in IDN handling and exclude file:// URIs 2009-02-27 20:59:23 +01:00
Christian Dywan
edce7d348b Reflect completion selection directly in the entry 2009-02-24 23:56:28 +01:00
Matthias Kruk
1f00d2ed14 Remove any left timeouts if the browser is destroyed 2009-02-24 22:59:18 +01:00
Christian Dywan
69aa3bfdd9 Enable changing the containing folder of bookmarks 2009-02-24 00:17:21 +01:00
Christian Dywan
d9bdaf0f8c Restrict IDN conversion to hostname 2009-02-23 23:44:30 +01:00
Johannes Reinhardt
1d8de6e72d Fix #ifdefs for building without libxml or sqlite 2009-02-22 22:39:08 +01:00
Christian Dywan
254c4dd846 Correct default values of some preferences 2009-02-22 19:29:08 +01:00
Christian Dywan
6e2b0872a0 Wrap lines in source views 2009-02-22 19:24:52 +01:00
Christian Dywan
94532ab9f8 Add a button to change the alignment to the panel 2009-02-22 19:23:45 +01:00
Christian Dywan
e354f8e17b Fix highlighted matches in 'typing' mode 2009-02-22 16:17:32 +01:00
Christian Dywan
9662e99354 Do not actually search less than 3 characters in 'typing' search 2009-02-22 16:12:58 +01:00
Christian Dywan
30729676db Flip the toolbar of the panel as well when aligning it to the right 2009-02-22 16:03:08 +01:00
Christian Dywan
2347045245 Cancel 'typing' search when the entry loses its focus 2009-02-22 15:36:41 +01:00
Dale Whittaker
0d1a1edaaa Save the normal window size, not the maximized size 2009-02-22 14:42:27 +01:00
Christian Dywan
ba9d7d48e5 Fix browser properties along with enabling the property test 2009-02-22 14:38:28 +01:00
Christian Dywan
ca8d22b9b4 Implement "right-align-sidepanel" to align the panel on the right 2009-02-22 03:51:10 +01:00
Christian Dywan
cbe3e75e80 Add a "New folder" button to the bookmark panel 2009-02-22 03:11:40 +01:00
Christian Dywan
f022a72a42 Focus the web view after cancelling an inline find 2009-02-22 02:47:30 +01:00
Christian Dywan
440e3cf72b Hide find options and close button in 'typing' search 2009-02-22 02:34:21 +01:00
Christian Dywan
d2c5d89def Make sure we exclude control characters from search 2009-02-22 02:20:04 +01:00
Christian Dywan
fb48e0c647 Actually search after every character in 'typing' search 2009-02-22 02:17:58 +01:00
Christian Dywan
51c6fb1cdf Implement a primitive find-as-you-type 2009-02-22 01:45:22 +01:00
Christian Dywan
3baab132b9 Don't try to setup search engines when unsetting 2009-02-22 00:13:00 +01:00
Christian Dywan
758d5e1a1b Add a missing check whether 'settings' are set 2009-02-22 00:12:18 +01:00
Christian Dywan
3d42b7453a Load documentation as a proper file:// URI 2009-02-22 00:04:28 +01:00
Christian Dywan
3b9c63937c Refactor History panel into a separate class
This brings back the problem of address and title of items
showing up in the history unfortunately.

Now the history items are appended rather than prepended,
we probably want to fix that in the future.
2009-02-21 23:59:02 +01:00
Christian Dywan
a177ac67b9 Emit a warning when trying to get or set a non-existing setting 2009-02-21 23:16:44 +01:00
Christian Dywan
5f52e0d21f Move stock item registrations to sokoke so it can be tested 2009-02-21 22:36:03 +01:00
Christian Dywan
f5e6006954 Remove destroy callback from web view 2009-02-21 22:12:34 +01:00
Christian Dywan
1c7a84ec9f Propagate the bookmarks to the callback, fixes editing bookmarks 2009-02-20 22:38:18 +01:00
Christian Dywan
2cd86150e4 Add boolean and integer settings to MidoriExtension, with tests 2009-02-20 20:24:13 +01:00
Christian Dywan
514c6965c7 Check if 'search engines' are actually set 2009-02-19 23:40:00 +01:00
Christian Dywan
4ab9bd74e7 Check if there really is a SearchAction proxy 2009-02-19 23:36:04 +01:00
Christian Dywan
b40b906e2e Allow setting the SearchAction text to be set to NULL 2009-02-19 23:34:16 +01:00
Christian Dywan
627e585db5 Export midori_dummy_viewable_new for use in tests 2009-02-19 23:30:08 +01:00
Christian Dywan
aebd111453 Fix mime-type and icon property lookup 2009-02-19 23:04:47 +01:00
Christian Dywan
ad13d2e8a2 Make Preferences property readable 2009-02-19 22:57:51 +01:00
Christian Dywan
33e5bb7134 Make LocationAction properties readable 2009-02-19 22:27:19 +01:00
Christian Dywan
19ee2c16bf Handle running MidoriApp with no display 2009-02-19 02:34:05 +01:00
Christian Dywan
5aaff908cb Only add the Auth feature if WebKit didn't already 2009-02-17 18:34:27 +01:00
Christian Dywan
3763990c3a Correct MidoriWindowState definition, this fixes window state saving 2009-02-17 17:55:18 +01:00
Christian Dywan
55614c7eca Print soup log if MIDORI_SOUP_DEBUG is set (levels 1-3) 2009-02-17 14:17:28 +01:00
Christian Dywan
bbe809cacf Support IDN by decoding domain names in magic_uri 2009-02-17 00:16:14 +01:00
Christian Dywan
9d754d2d51 Fix config file writability test and search engine error workaround
After the change to recognize read-only configuration files new
files would never be written anymore. Also the default search
engines wouldn't be used if no search engines file existed.
2009-02-16 03:05:25 +01:00