Commit graph

1332 commits

Author SHA1 Message Date
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