summaryrefslogtreecommitdiffstats
path: root/src/web-view.c
Commit message (Collapse)AuthorAgeFilesLines
* MqWebView: InternationalizePatrick McDermott2017-11-201-14/+15
|
* mq_web_view_load_uri(): Don't save rewritten URI as display URIPatrick McDermott2017-11-151-3/+5
|
* MqWebView: Drop a gtk_widget_grab_focus() callPatrick McDermott2017-11-151-2/+0
|
* mq_web_view_grab_focus(): New functionPatrick McDermott2017-11-141-0/+6
|
* src/config.[ch], src/settings.[ch]: Move under src/config/Patrick McDermott2017-11-011-1/+1
|
* MqWebView: Don't set Web view settingsPatrick McDermott2017-11-011-4/+0
| | | | This is now done in scheme initialize() methods.
* MqWebView: Free cached main resource data on finalize()Patrick McDermott2017-10-311-3/+2
| | | | | | | | Also drop the conditional around URI freeing. g_free() already performs this check. We may be able to avoid the overhead of an unnecessary function call (at the cost of sometimes inaccurate branch prediction), but the resulting code is uglier, especially with lots of g_free() calls.
* MqWebView: Invalidate main resource data cache on load changePatrick McDermott2017-10-311-0/+9
| | | | | | | | | | Otherwise, a connected source view will keep getting the data the first such view received, even after a load change. A better solution would be to cache a pointer to the main resource and check in mq_web_view_get_data() if the main resource's address has changed. But apparently WebKit reuses resource objects, so that doesn't work.
* mq_web_view_scheme_set_methods(): Take an (MqWebView *) parameterPatrick McDermott2017-10-301-4/+4
|
* MqWebView: Delete scheme ready callbackPatrick McDermott2017-10-301-11/+0
|
* mq_web_view_load_uri(): Directly call webkit_web_view_load_uri()Patrick McDermott2017-10-301-2/+2
| | | | | Instead of going through the scheme's initialize() method and the ready callback.
* MqWebView: Remove old struct membersPatrick McDermott2017-10-301-5/+0
|
* mq_web_view_get_data(): New functionPatrick McDermott2017-10-301-0/+38
| | | | And add a new "data" property to the MqWebView class.
* mq_web_view_load_uri(): Call initialize() scheme methodPatrick McDermott2017-10-301-0/+2
|
* MqWebView: Call mq_web_view_load_uri() in constructed()Patrick McDermott2017-10-301-5/+2
| | | | | Instead of directly setting web_view->uri and calling mq_web_view_scheme_set_methods().
* mq_web_view_load_uri(): Drop duplicate mq_web_view_scheme_set_methods()Patrick McDermott2017-10-301-2/+0
|
* MqWebView: Mark scheme parameter as unused in ready callbackPatrick McDermott2017-10-301-1/+1
|
* mq_web_view_load_uri(): Call rewrite_uri() method after setting methodsPatrick McDermott2017-10-301-2/+2
|
* mq_web_view_load_uri(): Set scheme methodsPatrick McDermott2017-10-301-8/+2
| | | | | Instead of calling rewrite_uri() method and webkit_web_view_load_uri() directly.
* MqWebView: Handle NULL URI in constructed()Patrick McDermott2017-10-301-0/+14
|
* MqWebView: Remove NULL URI handling from ready callbackPatrick McDermott2017-10-301-19/+2
|
* MqWebView: Connect scheme ready callbackPatrick McDermott2017-10-301-20/+30
|
* MqWebView: mq_web_view_scheme_set_methods() on URI changePatrick McDermott2017-10-301-3/+6
| | | | Not in constructed() method.
* MqWebView: mq_web_view_scheme_set_methods() on constructionPatrick McDermott2017-10-301-1/+2
|
* Revert "mq_web_view_*_scheme_methods: Make const"Patrick McDermott2017-10-301-10/+10
| | | | | | | | This reverts commit 0b796336a0c5ce1cf5185c2946c4ff22fa3da296. Conflicts: src/web-view-schemes/normal.c src/web-view-schemes/view-source.c
* mq_web_view_*_scheme_methods: Make constPatrick McDermott2017-10-301-10/+10
|
* MqWebViewSchemeMethods: Add (MqWebView *) param to *_uri() methodsPatrick McDermott2017-10-301-4/+4
|
* MqWebView: Use scheme display_uri() methodPatrick McDermott2017-10-301-6/+2
|
* MqWebView: Use scheme methods instead of own static functionsPatrick McDermott2017-10-301-657/+8
| | | | A net 649 lines deleted!
* MqWebView: Set scheme methodsPatrick McDermott2017-10-301-9/+12
|
* mq_web_view_get_scheme(): New functionPatrick McDermott2017-10-301-0/+7
|
* mq_web_view_get_tab_page(): New functionPatrick McDermott2017-10-301-0/+6
|
* mq_web_view_get_config(): New functionPatrick McDermott2017-10-301-0/+6
|
* MqWebView: Change type of Web view parameter in URI callbackPatrick McDermott2017-10-301-5/+2
|
* src/web-view-schemes/schemes.h: New filePatrick McDermott2017-10-301-0/+1
|
* MqWebView: Change type of Web view parameter in callbackPatrick McDermott2017-10-301-4/+1
|
* MqWebView: Make file chooser filters function non-staticPatrick McDermott2017-10-301-4/+4
|
* MqWebView: Remove extra space in variable declarationPatrick McDermott2017-10-301-1/+1
|
* MqWebView: Call mq_web_view_load_uri() in context menu cbsPatrick McDermott2017-10-301-8/+4
| | | | | | Instead of webkit_web_view_load_uri(). This allows loading about-scheme targeted resources (links, images, etc.) in the current tab. (Loading such resources in a new tab or window was already possible.)
* MqWebView: Factor out URI rewriting into new static functionPatrick McDermott2017-10-301-11/+14
|
* MqWebView: Fix horizontal alignment of variable declarationsPatrick McDermott2017-10-301-2/+2
|
* MqWebView: Rewrite URI from primary clipboardPatrick McDermott2017-10-301-1/+1
| | | | | Allow URIs like "about:" and "about:preferences" to be loaded on middle click.
* MqWebView: Free saved HTML documentPatrick McDermott2017-10-301-2/+3
|
* MqWebView: Rename "rewritten-uri" property to "display-uri"Patrick McDermott2017-10-291-8/+8
|
* MqWebView: Download responses of undisplayable MIME typesPatrick McDermott2017-10-291-0/+34
|
* MqWebView: Make save file extension non-const in static funcsPatrick McDermott2017-10-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: CC src/marquee-web-view.o src/web-view.c: In function ‘save_type_changed_cb’: src/web-view.c:1010:12: warning: assignment discards ‘const’ qualifier from pointer target type extension = get_extension(name); ^ src/web-view.c: In function ‘save_response_cb’: src/web-view.c:1060:14: warning: assignment discards ‘const’ qualifier from pointer target type extension = get_extension(filename); ^ The "extension" variable of save_type_changed_cb() can't be made const because the string to which it points is modified: CC src/marquee-web-view.o src/web-view.c: In function ‘save_type_changed_cb’: src/web-view.c:1016:17: error: assignment of read-only location ‘*extension’ extension[0] = '\0'; /* Remove extension. */ ^ src/web-view.c:1024:17: error: assignment of read-only location ‘*extension’ extension[0] = '\0'; /* Remove extension. */ ^
* MqWebView: Treat "." as part of save file extensionPatrick McDermott2017-10-291-17/+19
| | | | This obviates commit 9dbdc3d.
* Revert "MqWebView: Add a "." to save name if missing on type change"Patrick McDermott2017-10-291-10/+2
| | | | This reverts commit 9dbdc3d00a233b02de995f8c782f39f1ec521740.
* MqWebView: Add a "." to save name if missing on type changePatrick McDermott2017-10-291-2/+10
|
* MqWebView: Save MHTML if detecting type and extension unknownPatrick McDermott2017-10-291-1/+1
|