Dismiss link popover when a link is activated.
This commit is contained in:
parent
ea49c21abb
commit
d32676d5f5
2 changed files with 8 additions and 0 deletions
|
|
@ -1293,6 +1293,12 @@ public class ConversationMessage : Gtk.Grid {
|
|||
this.body.trigger_tooltip_query();
|
||||
}
|
||||
|
||||
[GtkCallback]
|
||||
private bool on_link_popover_activated() {
|
||||
this.link_popover.hide();
|
||||
return Gdk.EVENT_PROPAGATE;
|
||||
}
|
||||
|
||||
private void on_selection_changed() {
|
||||
bool has_selection = false;
|
||||
if (web_view.has_selection()) {
|
||||
|
|
|
|||
|
|
@ -543,6 +543,7 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="label"><a href="http://goodlink.com">http://goodlink.com</a></property>
|
||||
<property name="use_markup">True</property>
|
||||
<signal name="activate-link" handler="on_link_popover_activated" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
|
|
@ -566,6 +567,7 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="label"><a href="http://badlink.com">http://badlink.com</a></property>
|
||||
<property name="use_markup">True</property>
|
||||
<signal name="activate-link" handler="on_link_popover_activated" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue