Use https:// by default for links

Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
This commit is contained in:
Niels De Graef 2017-09-28 12:35:45 +02:00 committed by Michael James Gratton
parent 8969d175b2
commit f283630569
2 changed files with 2 additions and 2 deletions

View file

@ -2272,7 +2272,7 @@ public class ComposerWidget : Gtk.EventBox {
private void on_insert_link(SimpleAction action, Variant? param) {
ComposerLinkPopover.Type type = ComposerLinkPopover.Type.NEW_LINK;
string url = "http://";
string url = "https://";
if (this.cursor_url != null) {
type = ComposerLinkPopover.Type.EXISTING_LINK;
url = this.cursor_url;

View file

@ -23,7 +23,7 @@
<property name="width_chars">40</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="placeholder_text">http://</property>
<property name="placeholder_text">https://</property>
<property name="input_purpose">url</property>
<signal name="activate" handler="on_activate_popover" swapped="no"/>
<signal name="changed" handler="on_url_changed" swapped="no"/>