summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix scroll position when navigating back/fordwardcarlosgc/webkit2-portCarlos Garcia Campos2015-06-171-73/+22
| | | | Use the WebKit back-forward list instead of a custom one.
* yelp-window: Fix loading cursor inconsistenciesCarlos Garcia Campos2015-06-161-12/+24
| | | | | Connect to WebKitWebView notify::is-loading to change the cursor only when the view is loading.
* yelp-uri: Set docuri and fulluri also when resolving a man full pathCarlos Garcia Campos2015-06-161-0/+14
| | | | This way the canonical uri will man:doc.section instead of file://.
* yelp-uri-builder: Handle man urisCarlos Garcia Campos2015-06-161-1/+1
| | | | Also consider man uris in build_network_uri().
* yelp-uri: Set docuri and fulluri also when resolving an info full pathCarlos Garcia Campos2015-06-161-1/+32
| | | | This way the canonical uri will info:doc#section instead of file://.
* libyelp: fix runtime critical warning at startup when loading info documentCarlos Garcia Campos2015-06-161-1/+1
| | | | | | YelpURI doesn't set a page_id when resolving info URIs, but YelpDocument assumes it can't be NULL in document_request_page(). Simply check it's not NULL before trying to use g_str_has_prefix().
* yelp-uri-builder: Handle info urisCarlos Garcia Campos2015-06-161-10/+20
| | | | | | | | | | | | info uris were not handled by build_network_uri and build_yelp_uri. We need to make sure they are valid network URIs from the WebKit point of view, like we do for other URIs, but we also need to handle the fragment part differently. When navigating from info:bar to info:foo#bar, WEbKoit doesn't start a new load, since it's considered a navigation inside the same already loaded page. So, we need to make WebKit think this is a new path, so that the load happens and the new section is resolved and loaded. To do this we just replace the '#' by '/' in build_network_uri and the '/' by '#' in build_yelp_uri.
* yelp-view: Remove duplicated codeCarlos Garcia Campos2015-04-101-13/+0
|
* yelp-view: Remove the GtkAdjustment handling codeCarlos Garcia Campos2015-04-101-88/+0
| | | | YelpView is no longer a GtkScrollable, so it does nothing.
* web-extension: Fix external resources of ghelp documentsCarlos Garcia Campos2015-04-101-16/+26
| | | | | | | | | | ghelp uris can start with the document name or with a slash and point directly to a xternal resource like an image. However, we were assuming the uris always started with the document name, so for uris not including it, we were removing the first element of the path, typically the images/figures directory. We could check first if the uri starts with the document uri, to remove the document uri prefix from the path or only the scheme.
* yelp-uri-builder: Fix ghelp documentsCarlos Garcia Campos2015-04-101-18/+5
| | | | | | | | | Accoring to the yelp-uri code, a ghelp uri can contain a /file after the document, but I haven't seen any ghelp document using that. Current code tries to deal with that /file by appending a trailing slash after the path, but that only orks for the document index, any other pages don't work. This patch removes that code to handle ghelp uris like help ones, only adding the leading slash.
* libyelp: Fix help-list pageCarlos Garcia Campos2015-04-102-4/+6
| | | | | Handle help-list uris un yelp-uri-builder functions, and fix the mime type used by help-list documents.
* yelp-uri-builder: build_network_uri should receive a const char *Carlos Garcia Campos2015-04-102-2/+2
|
* yelp-view: Fix runtime warning on closeCarlos Garcia Campos2015-04-101-1/+1
| | | | | | | | (lt-yelp:2220): GLib-GObject-WARNING **: gsignal.c:2569: instance '0x203aef0' has no handler with id '252' Signal fonts-changed is not a WebKitSettings signal, but a YelpSettings one.
* yelp-view: Do not block/unlock policy decision callbackCarlos Garcia Campos2015-04-101-20/+14
| | | | | Use a boolean variable to decide whether we need to resolve the uri or not in policy decision callback.
* Force libyelpcommon to be installed before libyelpDavid King2015-02-161-0/+5
| | | | | | | | | Libtool (specifically the Automake rules) has an unfortunate problem that it does not guarantee the install order of libraries if two Makefile variables are used, such as in the case of pkglib_LTLIBRARIES and lib_LTLIBRARIES. As libyelpcommon is a depdency of libyelp, it must be installed first. Force this by adding a dependency on install-pkglibLTLIBRARIES.
* Do not free a GError with g_object_unref()David King2015-02-161-1/+1
| | | | Use g_error_free() instead.
* Convert font size from points to pixelsDavid King2015-02-161-11/+66
| | | | | | WebKit2 expects a font size of pixels, not points. Code copied from Devhelp, written by Carlos Garcia Campos.
* Fix API documentation buildDavid King2015-02-161-1/+1
|
* Install libyelpcommon to pkglibdirDavid King2015-02-161-2/+5
| | | | | It is a private implementation detail of libyelp and the extension, so it should not be installed into libdir.
* yelp-window: Remove ScrolledWindow to hold WebView.Marcos Chavarría Teijeiro2015-02-161-8/+1
| | | | WebKit2 WebView has its own scrollbars.
* yelp-view: Implement web extension to load resourcesMarcos Chavarría Teijeiro2015-02-169-44/+204
| | | | I have split the libyelp library into two parts in order to avoid linking the webextension against libyelp. So now we have a libyelpuri with the yelp-uri, yelp-build-uri and their dependecies and the old libyelp with the remaining files. I have modified the yelp-build-uri logic to not have to use yelp-document because it implies to have to add to the new library most of libyelp classes.
* yelp-test: Port Yelp tests to WebKit2Marcos Chavarría Teijeiro2015-02-161-7/+5
|
* yelp-view: Implement pages load in WebKit2Marcos Chavarría Teijeiro2015-02-166-386/+587
| | | | | | | Substitute webkit_web_view_load_string call for webkit_web_view_load_html for showing error pages. Implement custom uri schemes for loading the normal pages. We should deal with the uris that Yelp undestand and the uris that Webkit undestand so we have created functions to convert from one to the others. In addition, we should add a hack to be able to load absolute uris. When we have a help:gnome-help/... uri on our document and the current page has the same scheme (help) WebKit interprets this uri as relative and it builds a different uri. To fix this instead of use a help scheme we use a bogus-help schme so WebKit interprets the uri as absolute.
* yelp-view: Implement web extension to deal with DOM treeMarcos Chavarría Teijeiro2015-02-165-88/+214
|
* yelp-view: Replace "populate-popup" signal by "context-menu" signalMarcos Chavarría Teijeiro2015-02-161-113/+164
| | | | | | New WK2 API HitTestResutl class doesnt have a reference to the DOM node so we cant know using this property if we are inside a code block or the name of a link.
* yelp-view: Use WKFindController instead of deprecated search functions in ↵Marcos Chavarría Teijeiro2015-02-161-24/+20
| | | | WKWebView
* yelp-view: Implement view_print_action using WebKit2 APIMarcos Chavarría Teijeiro2015-02-161-16/+9
|
* yelp-view: Rename WKWebSettings to WKSettings and adapt propertiesMarcos Chavarría Teijeiro2015-02-161-11/+8
| | | | | Remove enable-universal-access-from-file-uris that doesn't exist any more and rename default-encoding to default-charset.
* yelp-view: Replace "script-alert" signal by "script-dialog" signalMarcos Chavarría Teijeiro2015-02-161-11/+15
|
* yelp-view: Replace "navigation-policy-decision-requested" signal by ↵Marcos Chavarría Teijeiro2015-02-161-16/+17
| | | | | | "decide-policy" signal WK2 only has a signal for policy decisions.
* yelp: Change headers files to use WebKit2Marcos Chavarría Teijeiro2015-02-163-4/+4
|
* autotools: Adapt autotools for using WebKit2Marcos Chavarría Teijeiro2015-02-161-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=686376
* yelp-uri: Use 'index' as default page for help: uris when resolving a xrefCarlos Garcia Campos2015-02-161-1/+4
| | | | | If a xref: uri for a help: document has no page, use index as the default one like resolve_help_uri does.
* yelp-document: Return HTML mime type insted of NULL for search pagesCarlos Garcia Campos2015-02-161-1/+4
|
* yelp-document: Use xref: uris for search resultsCarlos Garcia Campos2015-02-161-1/+8
|
* yelp-document: Add yelp_document_lookup_document_uri()Carlos Garcia Campos2015-02-162-102/+112
| | | | | It allows to get the YelpDocument for a given doc URI string, without having to create and resolve a YelpUri.
* yelp-document: Make document-uri property a YelpUriCarlos Garcia Campos2015-02-167-107/+59
| | | | | | | | All implementations of YelpDocument except YelpSimpleDocument keep a reference to the YelpUri, so move it to the parent class and add a getter to use the YelpUri from derived classes. This is also useful to get the YelpUri directly from the document, instead of getting the document uri string, create a YelpUri and resolve it.
* Fix crash when viewing man pagesDavid King2015-02-162-11/+18
| | | | Calling g_strfreev() on a stack-allocated array is a bad idea.
* yelp-debug: check if __STDC_VERSION__ is definedMarek Chalupa2015-02-161-3/+4
| | | | | | | | | __STDC_VERSION__ is defined only when switch -std=c99 (and newer standards) is defined. This can break the build with error: error: "__STDC_VERSION__" is not defined https://bugzilla.gnome.org/show_bug.cgi?id=744454
* build: Add is-release support to AX_CHECK_ENABLE_DEBUGPhilip Withnall2015-02-112-7/+19
| | | | Now fatal warnings are automatically disabled when doing release builds.
* m4: Update AX_COMPILER_FLAGS macros from upstream autoconf-archivePhilip Withnall2015-02-114-6/+32
| | | | This introdues the --disable-Werror flag.
* Fix format string warningDavid King2015-02-091-40/+41
|
* Rewrite marshaller make rulesDavid King2015-02-091-14/+3
|
* Avoid a compiler warning when checking a conditionDavid King2015-02-091-1/+1
|
* Remove unused function declarationsDavid King2015-02-092-4/+0
|
* Avoid pointer arithmetic warningDavid King2015-02-091-1/+1
|
* Fix missing prototype warningDavid King2015-02-092-0/+2
|
* Avoid warning due to unnecessary comparisonDavid King2015-02-091-1/+1
|
* Fix format signedness warningsDavid King2015-02-092-7/+7
|