Commit Graph

112 Commits

Author SHA1 Message Date
Christian Dywan fefc3b2cbe Merge build_thumbnail_path into Midori.SpeedDial 2012-09-09 22:34:33 +02:00
Christian Dywan 1ad675e24e Dissolve keyfile "default" wrappers into Midori.Extension 2012-09-09 22:34:33 +02:00
Christian Dywan e3a71596bc Rework downloading into Midori.Download interface
Midori.URI
    get_folder
Midori.Download
    is_finished
    get/set_type
    get_progress
    get_tooltip
      Consistent estimation of remaining time and speed.
    get_content_type
      Icons in dialog and panel.
    has_wrong_checksum
      Verification in both panel and toolbar.
    action_clear, action_stock_id, open
      Consistent behavior in both panel and toolbar.
    fallback_extension
    clean_filename
        Merged two separate functions.
    get_suggested_filename
    get_filename_suggestion_for_uri
        Now handles MIME types.
    get_extension_for_uri
    get_unique_filename
        Renamed from prepare_filename.
    prepare_destination_uri
    has_enough_space
2012-09-09 14:07:30 +02:00
Christian Dywan 0668aba7cc Move config/ data/ res_filename/ lib_path to Midori.Paths 2012-08-30 00:43:20 +02:00
Christian Dywan 7f37162fe0 Introduce Midori.Paths and Midori.RuntimeMode
Also introduce initial "portable" mode on Win32.
2012-08-27 21:52:24 +02:00
Christian Dywan f6595ea15e Handle and cache Accept-Language in WebSettings 2012-08-23 21:25:44 +02:00
Christian Dywan b925dbca33 Consolidate search entries in sokoke_search_entry_new 2012-08-06 00:32:01 +02:00
Christian Dywan aa1ffbf1d0 Rework sokoke_spawn_command internals
Caller decides if the command and the argument are quoted,
otherwise quoting only affects %s. The actual quoting is
split to allow use in test cases.

The Hildon version was dropped.
The GAppInfo version was dropped.
A test case with a cuple examples was added.
2012-07-01 21:26:06 +02:00
Christian Dywan 25d8b8ddfc Find extensions in runtime lib path
Setting MIDORI_EXTENSION_PATH is no longer needed.
2012-06-01 00:57:49 +02:00
Martin Natano e0c021de3d Replace illegal characters in filenames
Fixes: https://bugs.launchpad.net/midori/+bug/972931
2012-04-10 21:29:56 +02:00
Christian Dywan ffb86ce7ff Use GDateTime instead of GDate if available
GDate depends on broken msvcrt code.
2012-02-21 21:47:07 +01:00
Peter Hatina c0e0bee467 Implement sokoke_entry_set_clear_button_visible
Fixes: https://bugs.launchpad.net/midori/+bug/699954
2012-01-14 00:34:11 +01:00
Christian Dywan 7cf7dea9ee Drop unused sokoke_combo_box_add_strings 2011-11-16 02:08:30 +01:00
Christian Dywan a25c34e280 Support res directly in sokoke_find_data_filename
One allocation less each time, less fragmentation.
2011-10-29 01:16:08 +02:00
Christian Dywan 8f540b3d86 sokoke_widget_set_pango_font_style can be static 2011-10-28 22:49:10 +02:00
Christian Dywan 2976f6ebb2 Avoid the rarely used sokoke_container_show_children 2011-10-28 22:49:10 +02:00
Christian Dywan 6bceb5a10a Merge thread setup, stock items, argv, i18n into MidoriApp 2011-10-28 22:49:10 +02:00
Christian Dywan 77428fe44c Introduce Midori.URI to unitfy all URI logic
sokoke_hostname_from_uri, sokoke_search_uri,
sokoke_hostname_to_ascii and sokoke_unescape_uri_string
are merged into Midori.URI.
midori-core.h is the official API header for Vala now.
2011-10-21 01:00:13 +02:00
Christian Dywan 52de747198 Merge GLib and GTK+ compatibility in gtk3-compat.h 2011-10-20 22:46:43 +02:00
Christian Dywan 3fa294d100 Require GLib 2.22 it's already an implicit dependency 2011-10-17 02:47:56 +02:00
Christian Dywan 3071da6711 Use g_format_size with GLib 2.30.0 2011-10-10 21:53:00 +02:00
Christian Dywan bac3dc1842 Introduce MIDORI_EVENT_CONTEXT_MENU in midori-platform.h
The new header contains all state and event handling.
2011-09-21 23:04:20 +02:00
Christian Dywan a3ab258819 Don't show startup preference in private browsing
Introduce sokoke_is_app_or_private helper function.
2011-08-04 23:59:16 +02:00
Christian Dywan e6ecd20be4 Disable spell check option if there are no enchant modules 2011-08-04 23:29:56 +02:00
Paweł Forysiuk 46de9f7767 Remove further support for WebKitGTK+ < 1.1.14 2011-06-09 00:45:34 +02:00
Paweł Forysiuk 3eb3481812 Show estimated time remaining in transferbar tooltip 2011-04-20 20:52:07 +02:00
Christian Dywan 10c5ac4597 Use setting for old and new prefetching option
So prefetching in private mode is disabled regardless of
whether prefetching is done in Midori or in new WebKit
versions.
Menu items also adhere to that same setting now.

And use the chance to correct version checks.
2011-04-17 22:29:51 +02:00
Christian Dywan 08b756b0a6 Revert "Left mouse button and mouse wheel changes zoom level"
This reverts commit c2e0342bb3.

The feature is unusable on some touchpads.

Fixes: https://bugs.launchpad.net/midori/+bug/761106
2011-04-16 04:08:16 +02:00
Christian Dywan c2e0342bb3 Left mouse button and mouse wheel changes zoom level
The left mouse button behaves identical to Control.
2011-04-10 22:43:05 +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 e8d2dc3ee7 Show error dialogue for invalid bookmark export filename 2011-02-02 01:31:16 +01: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 32988e55af Use accessors for window and allocation of a widget 2010-10-19 00:53:01 +02:00
Christian Dywan f079d9c48a Use accessor for dialogue content area 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 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 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 cd783acee0 Don't use GTK_WIDGET_SET_FLAGS in browser and panel 2010-10-05 00:04:28 +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
Christian Dywan 880587a055 Provide a fallback definition of gtk_menu_item_set_label 2010-07-08 22:41:42 +02:00
André Stösel 6556d71273 Add sokoke_gtk_action_count_modifiers helper function 2010-06-19 00:32:58 +02:00
Christian Dywan fb72bcfeae Unify content type/ MIME type handling and plug leak 2010-05-07 20:17:53 +02:00
Christian Dywan a25e4c5f0a Add gtk_widget_get_window and fix gtk_dialog_get_content_area 2010-04-28 23:57:22 +02:00
Christian Dywan f2f0f16dd2 Update uses of deprecated GTK+ macros and API 2010-04-02 18:54:29 +02:00
Christian Dywan 12b4859dc7 Use gtk_widget_get_visible rather than GTK_WIDGET_VISIBLE 2010-04-02 18:38:56 +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
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