summaryrefslogtreecommitdiff
path: root/libyelp
Commit message (Collapse)AuthorAgeFilesLines
...
* yelp-document: Fix return type of document_indexedMichael Catanzaro2016-02-061-2/+4
| | | | | | | | | It's a GSourceFunc, so it'd better return a gboolean. This doesn't seem to be causing any problems in Fedora, but in Endless it's causing 100% CPU usage after executing a search, because the source never gets removed. https://bugzilla.gnome.org/show_bug.cgi?id=761647
* Allow .docbook files as file path, #699995Shaun McCance2016-02-031-2/+3
|
* libyelp: fix handling of documents using local pathsCarlos Garcia Campos2016-01-142-104/+182
| | | | | | | | Since we switched to use custom URI schemes we no longer support loading file URIs. We need to detect the document pointed by the given URI and build an appropriate URI (ghelp, man, info, ...). https://bugzilla.gnome.org/show_bug.cgi?id=753443
* Convert libyelp subdirectory to non-recursive makeDavid King2015-10-232-198/+0
|
* Use dist_ prefix rather than EXTRA_DISTDavid King2015-10-201-5/+1
|
* Mark internal functions with G_GNUC_INTERNALDavid King2015-10-168-2/+15
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756658
* Make yelp_info_parse_menu() staticDavid King2015-10-161-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756658
* Remove unused yelp_marshal_VOID__OBJECT_BOXED()David King2015-10-161-1/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756658
* Remove unused yelp_error_get_title()David King2015-10-162-8/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756658
* Link libyelp, not libyelpcommon, with libmDavid King2015-09-241-1/+2
|
* Fix linking error for undefined reference to hypotAndreas Henriksson2015-09-241-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=755489
* yelp-view: Do not initialize global settings in class_initCarlos Garcia Campos2015-09-211-10/+13
| | | | | | | | | Use a helper getter instead that creates the object on demand. Since the settings were created in class_init, we were always passing a NULL settings object to g_object_new in yelp_view_new(), so all settings set in the global settings were actually ignored. https://bugzilla.gnome.org/show_bug.cgi?id=754912
* yelp-settings: Only set platform:gnome-classic under GNOME ClassicShaun McCance2015-08-251-1/+1
|
* yelp-settings: Check for XFCE in XDG_CURRENT_DESKTOPShaun McCance2015-08-251-0/+5
|
* Use XDG_CURRENT_DESKTOP for conditionals when availableShaun McCance2015-08-251-85/+145
| | | | | | | | | Previously we had been using various DBus introspection routines to check the current desktop. That code is still there, but we don't use it if we can get the right information from XDG_CURRENT_DESKTOP. This adds more desktops we can check for, including gnome-shell derivatives like Elementary Pantheon and Cinnamon. We also set the new platform:gnome-3 token for GNOME 3 standard mode.
* yelp-view: Update current page information when loaded from history cacheCarlos Garcia Campos2015-08-171-21/+41
| | | | | | | | | | When a page is loaded from the history cache, the URI is not resolved and the metadata is not updated. Check in policy callback if the action is a back-forward navigation and resolve the URI in that case but without loading the page once the URI is resolved, since the page will be loaded from the history cache. https://bugzilla.gnome.org/show_bug.cgi?id=753448
* libyelp: Fix some uninitialized variablesYosef Or Boczko2015-07-162-5/+5
| | | | This fix errors build with last gcc.
* yelp-settings: don't use ACTIVE background colorLars Uebernickel2015-06-231-1/+1
| | | | | | | | | GTK_STATE_FLAG_ACTIVE is meant for depressed buttons or the currently selected row in a list box. It did use NORMAL prior to b6ac534. https://bugzilla.gnome.org/show_bug.cgi?id=749947
* Fix scroll position when navigating back/fordwardCarlos Garcia Campos2015-06-221-73/+22
| | | | Use the WebKit back-forward list instead of a custom one.
* yelp-uri: Set docuri and fulluri also when resolving a man full pathCarlos Garcia Campos2015-06-221-0/+14
| | | | This way the canonical uri will man:doc.section instead of file://.
* yelp-uri-builder: Handle man urisCarlos Garcia Campos2015-06-221-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-221-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-221-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-221-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-06-221-13/+0
|
* yelp-view: Remove the GtkAdjustment handling codeCarlos Garcia Campos2015-06-221-88/+0
| | | | YelpView is no longer a GtkScrollable, so it does nothing.
* web-extension: Fix external resources of ghelp documentsCarlos Garcia Campos2015-06-221-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-06-221-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-06-222-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-06-222-2/+2
|
* yelp-view: Fix runtime warning on closeCarlos Garcia Campos2015-06-221-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-06-221-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-06-221-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-06-221-1/+1
| | | | Use g_error_free() instead.
* Convert font size from points to pixelsDavid King2015-06-221-30/+73
| | | | | | WebKit2 expects a font size of pixels, not points. Code copied from Devhelp, written by Carlos Garcia Campos.
* Install libyelpcommon to pkglibdirDavid King2015-06-221-2/+5
| | | | | It is a private implementation detail of libyelp and the extension, so it should not be installed into libdir.
* yelp-view: Implement web extension to load resourcesMarcos Chavarría Teijeiro2015-06-227-43/+202
| | | | 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-view: Implement pages load in WebKit2Marcos Chavarría Teijeiro2015-06-226-389/+590
| | | | | | | 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-06-224-88/+209
|
* yelp-view: Replace "populate-popup" signal by "context-menu" signalMarcos Chavarría Teijeiro2015-06-221-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: Implement view_print_action using WebKit2 APIMarcos Chavarría Teijeiro2015-06-221-16/+9
|
* yelp-view: Rename WKWebSettings to WKSettings and adapt propertiesMarcos Chavarría Teijeiro2015-06-221-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-06-221-11/+15
|
* yelp-view: Replace "navigation-policy-decision-requested" signal by ↵Marcos Chavarría Teijeiro2015-06-221-16/+17
| | | | | | "decide-policy" signal WK2 only has a signal for policy decisions.
* yelp: Change headers files to use WebKit2Marcos Chavarría Teijeiro2015-06-222-2/+2
|
* yelp-uri: Use 'index' as default page for help: uris when resolving a xrefCarlos Garcia Campos2015-06-221-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-06-221-1/+4
|
* yelp-document: Use xref: uris for search resultsCarlos Garcia Campos2015-06-221-1/+8
|
* yelp-document: Add yelp_document_lookup_document_uri()Carlos Garcia Campos2015-06-222-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-06-227-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.