summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mq_web_view_zoom_*(): Make more readablePatrick McDermott2017-10-121-8/+14
|
* mq_web_view_zoom_*(): New functionsPatrick McDermott2017-10-122-2/+33
|
* MqWebView: Save MqConfig in object structPatrick McDermott2017-10-121-9/+10
|
* MqTabChrome: Change callback arg type and drop conditionalPatrick McDermott2017-10-121-8/+2
|
* mq_find_toolbar_new(): Drop GTK_WIDGET()Patrick McDermott2017-10-121-2/+2
|
* src/find-toolbar.h: Fix #includePatrick McDermott2017-10-121-1/+1
| | | | | | | mq_find_toolbar_new() was originally going to take a MqTab argument and get the MqWebView from that (in case MqFindToolbar ever requires MqConfig in the future), but it's better to make injected dependencies as specific as possible.
* mq_tab_chrome_new(): Get and save MqFindToolbar from callerPatrick McDermott2017-10-123-9/+10
| | | | | | Also change member type in struct. And update call in MqTab.
* MqTab: Instantiate an MqFindToolbarPatrick McDermott2017-10-121-1/+7
|
* MqTabChrome: Get Web view in mq_tab_chrome_new()Patrick McDermott2017-10-123-145/+131
| | | | | | | Also remove mq_tab_chrome_set_web_view() and reorganize static functions. And update calls in MqTab.
* MqTab: Move mq_tab_chrome_new() callPatrick McDermott2017-10-121-1/+2
|
* MqFindToolbar: Remove dispose methodPatrick McDermott2017-10-121-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Destroying child widgets is already handled by the parent class. Fixes: (marquee:xxxxx): Gtk-CRITICAL **: gtk_widget_get_realized: assertion 'GTK_IS_WIDGET (widget)' failed (marquee:xxxxx): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (marquee:xxxxx): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed (marquee:xxxxx): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (marquee:xxxxx): GLib-GObject-CRITICAL **: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed (marquee:xxxxx): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (marquee:xxxxx): GLib-GObject-CRITICAL **: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed (marquee:xxxxx): Gtk-CRITICAL **: gtk_widget_get_realized: assertion 'GTK_IS_WIDGET (widget)' failed (marquee:xxxxx): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (marquee:xxxxx): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed (marquee:xxxxx): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (marquee:xxxxx): GLib-GObject-CRITICAL **: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed (marquee:xxxxx): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (marquee:xxxxx): GLib-GObject-CRITICAL **: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
* mq_web_view_load_uri(): Check for NULL uriPatrick McDermott2017-10-121-0/+5
| | | | | | | | Fixes: (marquee:xxxxx): GLib-CRITICAL **: g_str_has_prefix: assertion 'str != NULL' failed ** (marquee:xxxxx): CRITICAL **: void webkit_web_view_load_uri(WebKitWebView*, const gchar*): assertion 'uri' failed
* MqFindToolbar: Move static method definitionsPatrick McDermott2017-10-121-38/+38
|
* MqWebView: Move static method definitionsPatrick McDermott2017-10-121-58/+58
|
* MqFindToolbar: Add dispose methodPatrick McDermott2017-10-121-0/+14
|
* MqWebView: Free uri member on finalizePatrick McDermott2017-10-121-0/+13
|
* MqFindToolbar: Move WebKitFindController setup to constructedPatrick McDermott2017-10-121-6/+21
|
* MqTabChrome: Use MqFindToolbarPatrick McDermott2017-10-122-229/+24
|
* MqFindToolbar: Add WebKitFindController signal callbacksPatrick McDermott2017-10-121-0/+28
|
* mq_find_toolbar_reveal(): Define new functionPatrick McDermott2017-10-121-0/+7
| | | | Already declared in src/find-toolbar.h.
* MqFindToolbar: Add signal callbacksPatrick McDermott2017-10-121-12/+112
|
* MqFindToolbar: New classPatrick McDermott2017-10-123-0/+250
|
* MqTabChrome: Set up find toolbar when Web view is setPatrick McDermott2017-10-121-4/+4
| | | | This makes the find toolbar code a little more self-contained.
* mq_tab_chrome_set_web_view(): Change argument 2 to (MqWebView *)Patrick McDermott2017-10-123-5/+6
|
* MqWebView: Don't directly access MqTab struct memberPatrick McDermott2017-10-121-4/+4
|
* MqWebView: Drop a TODO commentPatrick McDermott2017-10-121-1/+1
|
* mq_web_view_load_uri(): Drop NULL checkPatrick McDermott2017-10-121-5/+0
| | | | | In the current codebase, a NULL uri argument isn't (read: shouldn't be) possible.
* mq_web_view_get_web_view(): RemovePatrick McDermott2017-10-122-11/+0
|
* MqTab: Drop mq_web_view_get_web_view() & a struct memberPatrick McDermott2017-10-122-4/+2
| | | | | | | The body and web_view struct members are now pointers to the same address, just with different types. body isn't used anywhere outside this instance initialization function, so it doesn't need to be saved in the struct.
* mq_web_view_get_container(): RemovePatrick McDermott2017-10-122-8/+0
|
* MqTab: Drop mq_web_view_get_container() callPatrick McDermott2017-10-121-1/+1
|
* src/web-view.h: Drop commented-out gtype.h backport stuffPatrick McDermott2017-10-121-4/+0
|
* src/tab-body.[ch]: RemovePatrick McDermott2017-10-123-597/+0
| | | | These files have been replaced by src/web-view.[ch].
* MqWebView: Drop newly thin URI-getting wrapper functionPatrick McDermott2017-10-121-9/+3
|
* MqWebView: Drop last URI rewriting codePatrick McDermott2017-10-121-20/+5
|
* MqWebView: Improve property descriptionsPatrick McDermott2017-10-121-2/+7
|
* MqWebView: Rename "uri" property to "rewritten-uri"Patrick McDermott2017-10-122-9/+11
| | | | This fixes the infinite loop introduced in commit a88de09.
* mq_web_view_load_uri(): Free uri member before assigning to itPatrick McDermott2017-10-121-0/+3
| | | | | | | | We're checking that it isn't NULL before calling g_free(). g_free() already does this check, so we don't actually have to do this. But it's good practice, and it'll save the overhead of unnecessary g_free() calls (at the expense of extra comparisons and branchings when g_free() needs to be called).
* MqWebView: Make uri member non-constPatrick McDermott2017-10-121-1/+1
| | | | | | mq_web_view_load_uri() and the WebKitWebView "notify::uri" callback copy strings to it, so it need not be const. We're also now freeing it when copying to it.
* MqWebView: Connect to WebKitWebView's "notify::uri" signalPatrick McDermott2017-10-121-0/+26
| | | | This causes a fun infinite loop of signal emissions.
* mq_web_view_load_uri(): Save a copy of uriPatrick McDermott2017-10-121-1/+1
|
* MqTabChrome: Save and use Web view as MqWebViewPatrick McDermott2017-10-122-29/+36
|
* MqTabChrome: Use mq_web_view_load_uri()Patrick McDermott2017-10-121-16/+2
| | | | | This is instead of calling webkit_web_view_load_uri() with a possibly "about:"-rewritten URI.
* mq_web_view_get_uri(): New functionPatrick McDermott2017-10-122-0/+9
|
* MqWebView: Don't set "uri" property during constructionPatrick McDermott2017-10-121-1/+1
| | | | | | Setting the "uri" property now calls mq_web_view_load_uri(), which calls webkit_web_view_load_uri(). This causes a segmentation fault if the WebKitWebView's constructed method hasn't been called yet.
* mq_web_view_load_uri(): New functionPatrick McDermott2017-10-122-1/+28
|
* MqWebView: Remove unused macro definitionPatrick McDermott2017-10-111-2/+0
|
* MqWebView: Use g_signal_connect()Patrick McDermott2017-10-111-18/+18
|
* MqWebView: Warn on invalid property IDsPatrick McDermott2017-10-111-2/+10
|
* imq_web_view_new(): Initialize parent web-context propertyPatrick McDermott2017-10-111-0/+1
|