Skip to content
Commits on Source (2)
......@@ -370,6 +370,21 @@
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLinkButton" id="link">
<property name="visible">True</property>
<property name="sensitive">True</property>
<property name="can-focus">True</property>
<property name="hexpand">False</property>
<property name="tooltip-text" translatable="yes">Open Google Maps on this location</property>
<property name="label" translatable="yes">Google Maps</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
</child>
</object>
......
/* city.vala - This file is part of gqpe.
/*
* This file is part of gqpe.
*
* Copyright © 2017-2021 Canek Peláez Valdés
*
......
......@@ -97,6 +97,9 @@ namespace GQPE {
/* The longitude spin button. */
[GtkChild]
private unowned Gtk.SpinButton longitude;
/* The link button. */
[GtkChild]
private unowned Gtk.LinkButton link;
/* The clutter embed for the map. */
[GtkChild]
private unowned GtkClutter.Embed map_embed;
......@@ -502,6 +505,9 @@ namespace GQPE {
check_entries_length();
comment.buffer.text = photograph.comment;
_title.grab_focus();
var u = "https://maps.google.com/maps?q=%2.11f,%2.11f&z=15";
u = u.printf(photograph.latitude, photograph.longitude);
link.uri = u;
updating = false;
}
......
/* copy.vala
*
/*
* This file is part of gqpe.
*
* Copyright © 2013-2021 Canek Peláez Valdés
......
/* interpolate-gps.vala
*
/*
* This file is part of gqpe.
*
* Copyright © 2013-2021 Canek Peláez Valdés
......
/* application-main.vala
*
/*
* This file is part of gqpe.
*
* Copyright © 2013-2017 Canek Peláez Valdés
* Copyright © 2013-2021 Canek Peláez Valdés
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
......
/* store.vala
*
/*
* This file is part of gqpe.
*
* Copyright © 2013-2021 Canek Peláez Valdés
......
/* tags.vala
*
/*
* This file is part of gqpe.
*
* Copyright © 2013-2021 Canek Peláez Valdés
......