Commit graph

190 commits

Author SHA1 Message Date
Christian Dywan 6931025617 Introduce --private/ -p distinct from --app/ -a
Private mode gets a particular window title, always defaults
to reading the default config folder but never saves data.

App mode applies a custom window layout with no toolbars
and using the page icon as the window icon.

From now on private and app are independant modes, so apps
can save data if config is given. Both can also be combined.
2011-04-04 23:45:45 +02:00
Paweł Forysiuk a8ce104d86 Helper function for computing path to thumbnail file 2011-03-22 23:01:59 +01:00
Christian Dywan fb9629c1aa Work around copying bug in WebKitGTK+
Fixes: https://bugs.launchpad.net/midori/+bug/707888
2011-03-06 18:13:54 +01:00
Christian Dywan d903505ee6 Support x-scheme-handler with GLib < 2.28
So for example x-scheme-handler/magnet=transmission-gtk.desktop
in the file ~/.local/share/applications/mimeapps.list allows
opening of magnet links with Transmission.
2011-03-05 03:40:10 +01:00
Christian Dywan 40a6743e78 Check if filename to open is a filename or not
Fixes: https://bugs.launchpad.net/midori/+bug/715118
2011-02-17 19:54:35 +01:00
Christian Dywan 6c0395b65e Use DESKTOP_SESSION variable if set to look for Xfce 2011-02-08 19:10:40 +01:00
Christian Dywan e8d2dc3ee7 Show error dialogue for invalid bookmark export filename 2011-02-02 01:31:16 +01:00
Paweł Forysiuk 5acdb5516d Unescape URLs with spaces, not only with % 2011-01-30 21:37:06 +01:00
Christian Dywan 1f08629a4f Preserve %20 for pasting URLs into other windows 2011-01-30 18:58:00 +01:00
Christian Dywan 39e915bbbf Handle drag on default text like focus in
Also only connect the signals once.
2011-01-11 21:08:27 +01:00
Christian Dywan c712758ed3 Spawn commands with about: arguments like URIs 2011-01-05 19:13:18 +01:00
Christian Dywan f2ca461638 Don't regard file URIs as external 2010-10-31 22:42:15 +01:00
Christian Dywan ba161aeeae Don't show 'Add to Speed Dial' with no configuration
As it won't be saved, it's not helpful to offer it.
2010-10-24 23:48:58 +02:00
Christian Dywan 1e12cb208b Ensure action menu items don't show all 2010-10-24 21:06:26 +02:00
Paweł Forysiuk 45ebf4dcdb Don't regard about: URIs as external 2010-10-21 21:09:01 +02:00
Christian Dywan 9f30695ca3 sokoke_external_uri should return FALSE for non-URIs
In particular search key words.
2010-10-21 21:09:01 +02:00
Christian Dywan fc23eac478 Ask GIO for supported URI schemes
sokoke_external_uri supersedes hardcoded support for tel:
and callto: and notably doesn't count http(s).
2010-10-20 20:56:05 +02:00
Christian Dywan 42299f7fe3 Use accessor for widget style 2010-10-19 00:53:01 +02:00
Christian Dywan d73b471ec4 Implement sokoke_register_privacy_item facility
The new function allows registering callbacks which clear data,
with a name and label so they show up in the Clear Private Data
dialogue and the chosen items are saved.

The old enumeration still keeps history, trash and the flag
whether to clear when Midori quits.
2010-10-17 22:48:32 +02:00
Christian Dywan d3b278231f Implement internal Open With fallback dialogue 2010-10-14 22:36:32 +02:00
Christian Dywan bcc622c456 Let private mode inherit preferences
Private mode should retain most preferences, while menus for
Bookmarks, Tools and Panel are hidden.

App mode now hides the navigationbar by default.
2010-10-13 23:41:11 +02:00
Christian Dywan 6331573a2c Allow passing NULL path to sokoke_hostname_from_uri 2010-10-13 03:23:09 +02:00
Christian Dywan 31dabca224 Shell quote URI passed to sokoke_spawn_program 2010-10-10 13:39:38 +02:00
Christian Dywan e74f89f8c2 Remove 'filename' argument from sokoke_spawn_program 2010-10-10 13:27:06 +02:00
Christian Dywan 120c5bf40f Move app spawning to sokoke_spawn_app and use in MidoriView 2010-10-10 13:02:50 +02:00
Christian Dywan a9406ab0ec Add base stock icons statically to save some memory 2010-10-05 21:43:34 +02:00
Christian Dywan 65931c3f91 Use Ctrl+Shift modifiers for Bookmarks, History and Transfers
For one, previously modifiers were missing on History and Transfers.

Further more, Ctrl+B conflicts with Bold in rich text fields, and
for consistency, panels should have the same modfiers.
2010-09-04 23:42:53 +02:00
Christian Dywan 1550c9d9f2 Don't' declare 'unescaped' twice in sokoke_format_uri_for_display 2010-07-30 22:09:03 +02:00
Alexander Butenko f8bf87ecf9 Dont unescape URIs which are not escaped
sokoke_uri_unescape_string handles that and handles '+'
the way we want.
2010-07-23 21:38:07 +02:00
Alexander Butenko f7cd519b7f Unescape spaces as well 2010-07-23 21:19:22 +02:00
Alexander Butenko cac6571371 Escape space in search pattern to match the history URL format 2010-07-21 23:16:51 +02:00
Peter de Ridder a84a077ac8 Implement default configuration files on Windows 2010-06-26 16:02:49 +02:00
Christian Dywan e200f2cb3e Hide panel if a panel was activated that's already shown
Also default hotkeys for History And Transfers.
2010-06-21 22:47:52 +02:00
Christian Dywan 22cd35be6f Fix typo of sokoke_gtk_action_count_modifier/s
Oddly enough the compiler failed to complain that the
function had no definition/ prototype.
2010-06-19 15:17:34 +02:00
André Stösel 6556d71273 Add sokoke_gtk_action_count_modifiers helper function 2010-06-19 00:32:58 +02:00
Christian Dywan ff6fec6367 Use g_file_set_contents to save 'config' with a temporary file
If the filesystem runs out of space and Midori tries to save
the 'config' file under that condition, the file is lost. To
avoid that, we use g_file_set_contents which writes a temporary
file first, at the cost of destroying symbolic links.
2010-06-10 17:54:44 +02:00
Peter de Ridder 486ebfb930 Check user data dir first for resource files 2010-05-16 17:57:41 +02:00
Christian Dywan dfddd7ce0a Leave panel icon styles to the system settings 2010-05-13 16:53:19 +02:00
Christian Dywan fb72bcfeae Unify content type/ MIME type handling and plug leak 2010-05-07 20:17:53 +02:00
Christian Dywan f2f0f16dd2 Update uses of deprecated GTK+ macros and API 2010-04-02 18:54:29 +02: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
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
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 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 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 c43d887747 Use first search engine if the default is not set 2010-01-30 16:54:38 +01:00
André Stösel 4e561eeef3 Fixup the key value to allow Ctrl + Shift + Tab 2010-01-12 23:34:10 +01:00