Commit graph

1394 commits

Author SHA1 Message Date
Christian Dywan
affde90e2c Consistently focus the view, which propagates
Rather than trying to determine and focus the web view
from different places, the parent view should simply
propagate focus by default. The child needs to be
constructed implicitly if focus comes in early.
2010-05-06 22:49:47 +02:00
Christian Dywan
4b94b63f70 Base KatzeThrobber on GtkSpinner if available 2010-05-02 16:11:18 +02:00
Christian Dywan
001d9e463a Rely on WebKitWebView::icon-uri for icon discovery 2010-05-02 12:19:37 +02:00
Arno Renevier
7c0e58a835 Refactor userscripts and userstyles as an extension 2010-05-02 11:53:05 +02:00
Christian Dywan
f24bc315e2 Update FAQ link used for Help > Frequent Questions 2010-05-01 03:12:03 +02:00
Christian Dywan
e7f04272cd Check free space before trying to download 2010-04-30 23:52:33 +02:00
Christian Dywan
efa81643c5 Expose midori_view_populate_popup for use in extensions 2010-04-29 02:19:20 +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
7a7f4c6a44 Provide midori.vapi for App, Browser, Extension and WebSettings
With this API description extensions can be written in Vala. Mind
it is not complete yet, missing interfaces can be added later.
2010-04-27 23:49:45 +02:00
Christian Dywan
4576360ec3 Implement midori_browser_get_settings in MidoriBrowser 2010-04-27 23:36:14 +02:00
Christian Dywan
64b6f6ce6d Implement midori_app_get_browser in MidoriApp 2010-04-27 22:34:26 +02:00
Christian Dywan
7044bb70c4 Expose tabs in MidoriBrowser as GList 2010-04-25 23:39:00 +02:00
Christian Dywan
102810842f Expose browsers in MidoriApp as GList 2010-04-25 23:39:00 +02:00
Christian Dywan
9d3c884194 Implement midori_browser_get_proxy_items
This supersedes midori_browser_get_proxy_array as a means to
access the KatzeItem* items. The new name is clearer.
2010-04-25 23:38:59 +02:00
Christian Dywan
d2d5086e3b Unset save file dialog when it is destroyed
If the window manager closes the dialogue rather than one of the
buttons, it is destroyed implicitly.
2010-04-25 00:57:21 +02:00
Christian Dywan
34984c7ac1 Fix gtk_widget_set_no_show_all and g_filename_to_uri calls 2010-04-23 00:02:46 +02:00
Christian Dywan
0d4b041de3 Security with background color and secondary icon 2010-04-21 02:47:21 +02:00
Christian Dywan
aaf0d4b395 Guards around midori_browser_add_download_item
The function is guarded already but of course the declaration
needs to be guarded as well.
2010-04-20 21:38:02 +02:00
Christian Dywan
999af1d164 Fix use of priv in GtkIconEntry code 2010-04-17 01:42:09 +02:00
Christian Dywan
aade642897 Conditionalize SSL validation on libsoup 2.29.91
The flag in the SoupMessage to verify secure connections is
only available in recent versions of libsoup. So we continue
to be oblivious to certificates with older versions.
2010-04-14 22:41:24 +02:00
Christian Dywan
2507f971ca Validate SSL against root certificates
If one of two known root certificate files is available, we
enable certificate validation, otherwise a warning is emitted.
Not using validation means that we trust any certificate. We
should consider doing the opposite.

The new property MidoriView:security is set during load
and indicates the security status. midori_view_get_security can
be used to determine the status later on.

midori_location_action_set_security_hint is implemented to
present security status visually. For now, this only changes
the icon, we need to find a more visible solution.

MidoriBrowser updates the security hint for the current view in
_midori_browser_update_interface.
2010-04-14 04:20:56 +02:00
Christian Dywan
b4a7bb928b Use view source mode for XML that isn't XHTML 2010-04-14 03:55:19 +02:00
Christian Dywan
586469fa73 Only hide find implicitly if invoked by typing, . or / 2010-04-14 03:55:19 +02:00
Christian Dywan
2ba9b1b65f Remove bookmark, open and image in window from Link context menu 2010-04-14 03:55:18 +02:00
Christian Dywan
f71e86d879 Update copyright in --version and about dialogue 2010-04-10 00:58:15 +02:00
Christian Dywan
130eb0e46a Make the license in the about dialogue localizable 2010-04-10 00:58:15 +02:00
Christian Dywan
1cdd7cc643 Add an i18n comment for Clear Private Data dialog
Since there is a button with the same wording, it is good to
point out the difference.
2010-04-08 23:54:25 +02:00
Christian Dywan
5146e5182c Add an explaining i18n comment for 'Reset Midori...' 2010-04-08 23:51:52 +02:00
Christian Dywan
b389c5bcde Refer to regular expression as PATTERN like grep 2010-04-08 23:27:04 +02:00
Christian Dywan
51b1f87400 Reindent author and license definitions 2010-04-04 21:38:16 +02:00
Christian Dywan
82ee513a96 Reindent entries, toggle_entries, encoding_entries 2010-04-04 21:38:16 +02:00
Christian Dywan
23b093a248 Reindent actions in Tools menu in MidoriBrowser 2010-04-04 21:38:16 +02:00
Christian Dywan
2b66adabf2 Reindent ui_markup definition in MidoriBrowser 2010-04-04 21:38:16 +02:00
Christian Dywan
bde7495e6c Implement -b, --blocked-uris command line option
Using a regular expression of blocked URIs makes it possible to
restrict the locations that can be visited. Any URI matching
the expression will be replaced with "http://.invalid".

The option works in --app and normal mode.
2010-04-04 01:43:56 +02:00
Christian Dywan
e886293ebf Implement 'Proxy type' preference which can be Auto, HTTP or None 2010-04-02 20:41:39 +02:00
Christian Dywan
476f64e9bc Pass the correct parent in the web-view-ready callback
This was overlooked when changing the packing of the view.
2010-04-02 19:14: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
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