summaryrefslogtreecommitdiffstats
path: root/src/tab-body.c
Commit message (Collapse)AuthorAgeFilesLines
* s/__attribute__((unused))/G_GNUC_UNUSED/Patrick McDermott2017-10-071-28/+21
| | | | | | And rewrap lines. G_GNUC_UNUSED expands to nothing on compilers other than GCC 2.4+.
* MqTabBody: Use GLib macros instead of _Pragma()sPatrick McDermott2017-10-071-3/+2
| | | | | G_GNUC_BEGIN_IGNORE_DEPRECATIONS and G_GNUC_END_IGNORE_DEPRECATIONS expand to other pragmas for other compilers.
* MqTabBody: Restore spelling items in context menuPatrick McDermott2017-10-071-12/+22
| | | | | Also, split spelling suggestions from Ignore Spelling and Learn Spelling items.
* mq_tab_body_new(): Set Web view zoom level to zoom.default valuePatrick McDermott2017-10-071-0/+4
|
* mq_tab_body_new(): Load home page if configured to do soPatrick McDermott2017-10-061-1/+14
| | | | Also fix variable declaration alignment.
* mq_tab_body_new(): Improve URI loading logicPatrick McDermott2017-10-061-8/+9
|
* mq_tab_body_new(): Use WebKitSettings from MqApplicationPatrick McDermott2017-10-061-1/+3
| | | | This is the final step of making (most) preferences effective.
* MqTabBody: Let WebKit handle middle clicks on editable elemsPatrick McDermott2017-09-291-0/+5
|
* mq_tab_body_new(): Rewrite "about:" URIsPatrick McDermott2017-09-291-2/+11
|
* MqTabBody: Revert bdbcce6 and 3bc58cbPatrick McDermott2017-09-291-43/+0
|
* MqTabBody: Try again to rewrite "about:" URIsPatrick McDermott2017-09-291-2/+23
|
* MqTabBody: Try to rewrite "about:" URIsPatrick McDermott2017-09-291-0/+22
|
* MqTabBody: Mark unused function parametersPatrick McDermott2017-09-271-5/+6
|
* MqTabBody: Fix mq_application_add_window() argumentsPatrick McDermott2017-09-271-4/+4
|
* mq_application_add_window(), mq_window_new(): Make uris constPatrick McDermott2017-09-271-4/+4
|
* MqTabBody: Handle middle mouse clicks on Web viewPatrick McDermott2017-09-271-0/+54
| | | | | Open a targeted link in a new tab or load a URI from the primary clipboard.
* MqTabBody: Implement "Open ... in New Window" actionsPatrick McDermott2017-09-271-4/+20
|
* mq_tab_new*(): Make uri parameter constPatrick McDermott2017-09-271-1/+1
| | | | | And propagate const correctness on uri throughout MqTab, MqTabChrome, and MqTabBody.
* MqTabBody: Implement "Open ... in New Tab" action callbacksPatrick McDermott2017-09-271-4/+12
|
* MqTabBody: Add more commentsPatrick McDermott2017-09-271-0/+5
|
* MqTabBody: Populate menu items for selection contextsPatrick McDermott2017-09-271-3/+1
| | | | And finally get rid of debugging output.
* MqTabBody: Populate menu items for editable contextsPatrick McDermott2017-09-271-8/+23
|
* MqTabBody: Add menu item mnemonicsPatrick McDermott2017-09-271-20/+20
|
* MqTabBody: Better organize context menu itemsPatrick McDermott2017-09-261-4/+8
|
* MqTabBody: Populate menu items for media contextsPatrick McDermott2017-09-261-34/+95
|
* MqTabBody: Add "Inspect Element" menu item to every contextPatrick McDermott2017-09-261-2/+7
|
* MqTabBody: Define macros to preserve/restore menu itemsPatrick McDermott2017-09-261-12/+17
|
* MqTabBody: Preserve document navigation menu itemsPatrick McDermott2017-09-261-6/+21
|
* MqTabBody: Add separator between link and image menu itemsPatrick McDermott2017-09-261-2/+5
|
* MqTabBody: Fix context menu separator itemsPatrick McDermott2017-09-261-2/+7
|
* MqTabBody: Indent macro code in do...whilePatrick McDermott2017-09-261-9/+9
|
* MqTabBody: Better localize diagnostic pragmasPatrick McDermott2017-09-261-19/+11
|
* MqTabBody: Fix _Pragma() in #definePatrick McDermott2017-09-261-1/+1
|
* MqTabBody: Define macro to shorten long WK macrosPatrick McDermott2017-09-261-16/+19
|
* MqTabBody: Populate menu items for some contextsPatrick McDermott2017-09-261-5/+163
|
* MqTabBody: Get context hints in context menu handlerPatrick McDermott2017-09-261-10/+83
|
* MqTabBody: Add stub context menu handlerPatrick McDermott2017-09-261-0/+29
|
* mq_tab_body_new(): Accept and save MqTabPatrick McDermott2017-09-251-1/+3
|
* MqTabBody: Don't load NULL URI in Web viewPatrick McDermott2017-09-221-1/+3
| | | | | | Fixes: ** (marquee:xxxxx): CRITICAL **: void webkit_web_view_load_uri(WebKitWebView*, const gchar*): assertion 'uri' failed
* mq_tab_body_new(): Or maybe that didn't really work.Patrick McDermott2017-09-191-0/+1
|
* mq_tab_body_new(): Assign focus to Web viewPatrick McDermott2017-09-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following assertion in GTK+ versions before 3.15.3: Gtk-CRITICAL **: gtk_widget_is_ancestor: assertion 'GTK_IS_WIDGET (widget)' failed This assertion occurs when: 1. No widget has been given input focus, 2. A popover (e.g. the tab label context menu) is shown, and 3. The window regains focus. This is because of the following code in window_focus_in() in gtk/gtkpopover.c (from 3.14.x): focus = gtk_window_get_focus (GTK_WINDOW (widget)); if (!gtk_widget_is_ancestor (focus, GTK_WIDGET (popover))) gtk_widget_grab_focus (GTK_WIDGET (popover)); When no widget has focus, the first argument to gtk_widget_is_ancestor() (which is checked with a GTK_IS_WIDGET() assertion) is NULL. So, some widget needs to have focus before a popover is shown and the window regains focus. Arguably, this is a bug in GTK+, and it has been fixed in GTK+ 3.15.3: https://git.gnome.org/browse/gtk+/commit/gtk/gtkpopover.c?id=e26fddc With that change, the above lines from window_focus_in() now read: focus = gtk_window_get_focus (GTK_WINDOW (widget)); if (focus == NULL || !gtk_widget_is_ancestor (focus, GTK_WIDGET (popover))) gtk_widget_grab_focus (GTK_WIDGET (popover)); That is, if focus is NULL, don't check if popover is an ancestor of it. Instead just give focus to popover.
* mq_tab_body_new(): Remove sidebarPatrick McDermott2017-09-191-6/+1
|
* mq_tab_body_get_web_view(): New functionPatrick McDermott2017-09-171-0/+6
|
* mq_tab_body_new(): s/gtk_paned_pack/gtk_paned_add/Patrick McDermott2017-09-161-4/+2
|
* mq_tab_body_new(): Don't expand sidebar on window resizePatrick McDermott2017-09-161-1/+1
|
* mq_tab_body_new(): Set vexpand on GtkPanedPatrick McDermott2017-09-161-0/+1
|
* mq_tab_body_new(): Use GtkPanedPatrick McDermott2017-09-161-3/+8
|
* src/tab-body.[ch]: New filesPatrick McDermott2017-09-161-0/+50
And use in src/tab.[ch].