Update to Version 0.4.0

main v0.4.0
Zwarf 2023-04-22 22:25:52 +02:00
rodzic f3d598f390
commit 6df7b3151b
6 zmienionych plików z 37 dodań i 38 usunięć

Wyświetl plik

@ -18,3 +18,9 @@ Version 0.3.2:
- Switch to AdwAboutDialog to match GNOME 43 design
- Update Flatpak dependencies
- Switch to GNOME 43 runtime
Version 0.4.0:
- Reduced input lag on touch screens
- Fullscreen map mode is now saved and not reseted after an app restart
- Dependency update
- Switch to GNOME 44 runtime

Wyświetl plik

@ -62,5 +62,10 @@
<summary>Visibility Milky Way</summary>
<description>Changes the visibility of the milky ways current position, rise and set on the map.</description>
</key>
<key name="map-fullscreen" type="b">
<default>false</default>
<summary>Big map mode</summary>
<description>Reduce the amount of information in the Overview tab to enlarge the map.</description>
</key>
</schema>
</schemalist>

Wyświetl plik

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<!-- Copyright 2023 Zwarf -->
<component type="desktop-application">
<id>de.zwarf.picplanner.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
@ -10,6 +11,8 @@
<summary>Plan your next photo locations</summary>
<content_rating type="oars-1.1" />
<description>
<p>
Calculate the position of the sun,
@ -43,8 +46,6 @@
</screenshot>
</screenshots>
<content_rating type="oars-1.0"/>
<developer_name>Zwarf</developer_name>
<update_contact>zwarf@mail.de</update_contact>
@ -61,18 +62,28 @@
<value key="GnomeSoftware::key-colors">[(140, 40, 40), (250, 95, 85)]</value>
</custom>
<recommends>
<supports>
<control>keyboard</control>
<control>pointing</control>
<control>touch</control>
</recommends>
</supports>
<requires>
<display_length compare="ge">360</display_length>
</requires>
<releases>
<release version="0.4.0" date="2023-04-23" >
<description>
<p>Bug fixes, UI improvements and GNOME 44 runtime</p>
<ul>
<li>Reduced input lag on touch screens</li>
<li>Fullscreen map mode is now saved and not reseted after an app restart</li>
<li>Dependency update</li>
<li>Switch to GNOME 44 runtime</li>
</ul>
</description>
</release>
<release version="0.3.2" date="2022-10-01" >
<description>
<p>Design changes and switch to GNOME 43 runtime</p>

Wyświetl plik

@ -142,7 +142,7 @@ picplanner_application_show_about (GSimpleAction *action,
"application-icon", "de.zwarf.picplanner",
"application-name", "PicPlanner",
"developer-name", "Zwarf",
"version", "0.3.2",
"version", "0.4.0",
"website", "https://gitlab.com/Zwarf/picplanner",
"issue-url", "https://gitlab.com/Zwarf/picplanner/-/issues/new",
"copyright", copyright,

Wyświetl plik

@ -16,12 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* TODO:
* - Catching Azimuth 0 deg errors
*/
#include "overview-view.h"
#include "calculations/calculations_transformations.h"
#include "calculations/calculations_sun.h"
@ -153,14 +147,6 @@ input_changed (GtkWidget *self,
}
}
void
picplanner_overview_map_fullscreen (PicplannerOverview *overview,
gboolean toggle)
{
gtk_widget_set_visible (overview->basic_information, toggle);
}
/*
* Set the coordinates of the sun including the index of the sunrise,
* upper culmination, sunset and lower culmination as well as the current index.
@ -721,6 +707,10 @@ picplanner_overview_init (PicplannerOverview *overview)
G_CALLBACK (input_changed),
overview);
g_settings_bind (overview->settings, "map-fullscreen",
overview->basic_information, "visible",
G_SETTINGS_BIND_INVERT_BOOLEAN);
g_settings_bind (overview->settings, "zoom-level",
overview->viewport, "zoom-level",
G_SETTINGS_BIND_DEFAULT);

Wyświetl plik

@ -219,18 +219,6 @@ search_location (GtkWidget *self,
g_free (search_string);
}
/*
* Show the map in fullscreen
*/
static void
map_fullscreen (GtkToggleButton *self,
PicplannerWindow *window)
{
(void) self;
picplanner_overview_map_fullscreen (PICPLANNER_OVERVIEW (window->overview_box),!gtk_toggle_button_get_active (self));
}
/*
* Hide the map fullscreen button if the active view is not "page1" (overview)
*/
@ -647,6 +635,10 @@ picplanner_window_init (PicplannerWindow *window)
window->north_entry, "value",
G_SETTINGS_BIND_DEFAULT);
g_settings_bind (window->settings, "map-fullscreen",
window->map_button, "active",
G_SETTINGS_BIND_DEFAULT);
g_object_bind_property (window->search_button, "active",
window->search_bar, "search-mode-enabled",
G_BINDING_BIDIRECTIONAL);
@ -682,11 +674,6 @@ picplanner_window_init (PicplannerWindow *window)
G_CALLBACK (search_location_chosen),
window);
g_signal_connect (G_OBJECT (window->map_button),
"toggled",
G_CALLBACK (map_fullscreen),
window);
g_signal_connect (G_OBJECT (window->stack),
"notify::visible-child",
G_CALLBACK (stack_changed),