Skip to content
Commits on Source (6)
==============
Evince 40.4
==============
shell:
* fix compilation error when DBus is disabled (Tom Schoonjans)
Developers:
* Tom Schoonjans
==============
Evince 40.3
==============
shell:
* Show None when missing creation/modification date (#1549, Volte--Vieira Philippe)
* Enable odd pages left when dual page is on (#602, Germán Poo-Caamaño)
Developers:
* Germán Poo-Caamaño, Volte--Vieira Philippe
==============
Evince 40.2
==============
......
project(
'evince', ['c', 'cpp'],
version: '40.2',
version: '40.4',
license: 'GPL2+',
default_options: 'buildtype=debugoptimized',
meson_version: '>= 0.50.0',
......
......@@ -81,6 +81,15 @@
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
<releases>
<release version="40.4" date="2021-07-15" />
</releases>
<releases>
<release version="40.3" date="2021-07-12">
<issues>
<issue url="https://gitlab.gnome.org/GNOME/evince/issues/602">#602</issue>
<issue url="https://gitlab.gnome.org/GNOME/evince/issues/1549">#1549</issue>
</issues>
</release>
<release version="40.2" date="2021-06-08">
<issues>
<issue url="https://gitlab.gnome.org/GNOME/evince/issues/1587">#1587</issue>
......
......@@ -392,14 +392,22 @@ ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo
set_property (properties, GTK_GRID (grid), CREATOR_PROPERTY, info->creator, &row);
}
if (info->fields_mask & EV_DOCUMENT_INFO_CREATION_DATE) {
text = ev_document_misc_format_date (info->creation_date);
set_property (properties, GTK_GRID (grid), CREATION_DATE_PROPERTY, text, &row);
g_free (text);
if (info->creation_date == -1) {
set_property (properties, GTK_GRID (grid), CREATION_DATE_PROPERTY, NULL, &row);
} else {
text = ev_document_misc_format_date (info->creation_date);
set_property (properties, GTK_GRID (grid), CREATION_DATE_PROPERTY, text, &row);
g_free (text);
}
}
if (info->fields_mask & EV_DOCUMENT_INFO_MOD_DATE) {
text = ev_document_misc_format_date (info->modified_date);
set_property (properties, GTK_GRID (grid), MOD_DATE_PROPERTY, text, &row);
g_free (text);
if (info->modified_date == -1) {
set_property (properties, GTK_GRID (grid), MOD_DATE_PROPERTY, NULL, &row);
} else {
text = ev_document_misc_format_date (info->modified_date);
set_property (properties, GTK_GRID (grid), MOD_DATE_PROPERTY, text, &row);
g_free (text);
}
}
if (info->fields_mask & EV_DOCUMENT_INFO_FORMAT) {
set_property (properties, GTK_GRID (grid), FORMAT_PROPERTY, info->format, &row);
......
......@@ -1178,7 +1178,9 @@ ev_application_get_uri (EvApplication *application)
void
ev_application_clear_uri (EvApplication *application)
{
#ifdef ENABLE_DBUS
ev_application_unregister_uri (application, application->uri);
#endif
g_clear_pointer (&application->uri, g_free);
}
......
......@@ -4276,10 +4276,24 @@ ev_window_cmd_dual (GSimpleAction *action,
{
EvWindow *window = user_data;
EvWindowPrivate *priv = GET_PRIVATE (window);
EvDocument *document = priv->document;
gboolean has_pages = FALSE;
gboolean dual_page;
gboolean recent_view_mode;
dual_page = g_variant_get_boolean (state);
ev_window_stop_presentation (window, TRUE);
ev_document_model_set_dual_page (priv->model, g_variant_get_boolean (state));
ev_document_model_set_dual_page (priv->model, dual_page);
g_simple_action_set_state (action, state);
recent_view_mode = ev_window_is_recent_view (window);
if (document)
has_pages = ev_document_get_n_pages (priv->document) > 0;
ev_window_set_action_enabled (window, "dual-odd-left", dual_page &&
has_pages && !recent_view_mode);
}
static void
......