Hello community, here is the log from the commit of package atril for openSUSE:Factory checked in at 2018-06-19 12:03:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/atril (Old) and /work/SRC/openSUSE:Factory/.atril.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "atril" Tue Jun 19 12:03:38 2018 rev:23 rq:617225 version:1.20.2 Changes: -------- --- /work/SRC/openSUSE:Factory/atril/atril.changes 2018-03-20 21:58:31.145659002 +0100 +++ /work/SRC/openSUSE:Factory/.atril.new/atril.changes 2018-06-19 12:03:42.821920160 +0200 @@ -1,0 +2,62 @@ +Sat Jun 16 15:48:41 UTC 2018 - [email protected] + +- Update to version 1.20.2 (changes since 1.20.0): + * Disable view presentation if there is no document. + * Allow changing the page of a presentation. + * libview: Fix goto window in presentation mode. + * libview: Avoid deprecated gdk_screen_get_monitor. + * EvPresentationView: Render correctly on hi-dpi displays. + * libview: Fix g_return condition in + set_device_scale_on_surface(). + * EvView: Render correctly on hi-dpi displays. + * libview: Use css to draw the background of presentations. + * Move custom css to a file compiled as a gresource. + * shell: Use GResource for data files. + * toolbar-editor: Add methods to load from GResource. + * previewer: Use GResource for data files. + * build: Add configure check for glib-compile-resources. + * Update resource for translations. + * libview: Check number of pages when processing button events. + * libview: Add check for pageless documents to + ev_view_accessible_focus_changed. + * libview: Check number of pages on ev_view_document_changed_cb. + * Use GtkOverlay to show the loading message. + * shell: Remove unused marshalers. + * thumbnailer: Send error messages to stderr. + * shell: Use GtkApplication to inhibit the screensaver. + * shell: Port to GtkApplication. + * shell: Use g_printerr instead of g_warning. + * daemon: Port to GApplication. + * daemon: Use gdbus-codegen for the org.mate.atril.Daemon + interface. + * shell: Use gdbus-codegen for the org.mate.atril.Window + interface. + * shell: Use gdbus-codegen for the org.mate.atril.Application + interface. + * libview: Save inverted colours in a document + * Save/restore context when getting colours for a different state. + * epub: Allow to save epub documents. + * epub: Fix loading epub thumbnails. + * shell: Fix menu-accel for inverted colours. + * shell: Add keypad accels for zoom_reset. + * Add zoom reset. + * Avoid deprecated GtkStock. + * Check legal boundaries of accessible pages. + * Disable StartPresentation action in fullscreen if document has + no pages. + * Disable ViewPresentation action if document has no pages. + * libdocument: Use gdk_pixbuf_get_from_surface(). + * thumbnailer: Remove unused code. + * view: Fix page background rendering while loading. + * libdocument: Deprecate misc_get_page_border_size(). + * view: Use a rendered frame instead of custom border. + * a11y: Return correct start and end offsets. + * a11y: Fix crash with Orca screen reader. + * libview: drop deprecated unneeded code. + * ev-loading-message: Remove unused variables. + * libview: fix text selection with mouse in annotation window. + * libview: fix build without epub. + * Update translations. +- Rebase atril-gtk-3.20.patch. + +------------------------------------------------------------------- Old: ---- atril-1.20.0.tar.xz New: ---- atril-1.20.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ atril.spec ++++++ --- /var/tmp/diff_new_pack.jcarRh/_old 2018-06-19 12:03:43.545893280 +0200 +++ /var/tmp/diff_new_pack.jcarRh/_new 2018-06-19 12:03:43.545893280 +0200 @@ -21,7 +21,7 @@ %define typelib1 typelib-1_0-AtrilDocument-1_5_0 %define typelib2 typelib-1_0-AtrilView-1_5_0 Name: atril -Version: 1.20.0 +Version: 1.20.2 Release: 0 Summary: MATE Desktop document viewer License: GPL-2.0-only AND LGPL-2.0-only ++++++ atril-1.20.0.tar.xz -> atril-1.20.2.tar.xz ++++++ ++++ 225473 lines of diff (skipped) ++++++ atril-gtk-3.20.patch ++++++ --- /var/tmp/diff_new_pack.jcarRh/_old 2018-06-19 12:03:44.589854520 +0200 +++ /var/tmp/diff_new_pack.jcarRh/_new 2018-06-19 12:03:44.589854520 +0200 @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -85,8 +85,8 @@ GLIB_GSETTINGS +@@ -83,8 +83,8 @@ GLIB_GSETTINGS dnl Specify required versions of dependencies CAIRO_REQUIRED=1.10.0 @@ -13,7 +13,7 @@ LIBXML_REQUIRED=2.5.0 --- a/libdocument/ev-document-misc.c +++ b/libdocument/ev-document-misc.c -@@ -395,7 +395,11 @@ ev_document_misc_invert_pixbuf (GdkPixbu +@@ -339,7 +339,11 @@ ev_document_misc_invert_pixbuf (GdkPixbu } gdouble @@ -25,7 +25,7 @@ { gdouble dp, di; -@@ -403,8 +407,13 @@ ev_document_misc_get_screen_dpi (GdkScre +@@ -347,8 +351,13 @@ ev_document_misc_get_screen_dpi (GdkScre dp = hypot (WidthOfScreen (gdk_x11_screen_get_xscreen (screen)), HeightOfScreen (gdk_x11_screen_get_xscreen (screen))); /*diagonal in inches*/ @@ -41,7 +41,7 @@ } --- a/libdocument/ev-document-misc.h +++ b/libdocument/ev-document-misc.h -@@ -58,7 +58,11 @@ cairo_surface_t *ev_document_misc_surfac +@@ -61,7 +61,11 @@ cairo_surface_t *ev_document_misc_surfac void ev_document_misc_invert_surface (cairo_surface_t *surface); void ev_document_misc_invert_pixbuf (GdkPixbuf *pixbuf); @@ -79,7 +79,7 @@ --- a/libview/ev-view.c +++ b/libview/ev-view.c -@@ -497,7 +497,11 @@ is_dual_page (EvView *view, +@@ -495,7 +495,11 @@ is_dual_page (EvView *view, switch (view->page_layout) { case EV_PAGE_LAYOUT_AUTOMATIC: { GdkScreen *screen; @@ -91,7 +91,7 @@ GdkDisplay *display; double scale; double doc_width; -@@ -506,7 +510,11 @@ is_dual_page (EvView *view, +@@ -504,7 +508,11 @@ is_dual_page (EvView *view, screen = gtk_widget_get_screen (GTK_WIDGET (view)); display = gdk_screen_get_display (screen); @@ -103,7 +103,7 @@ scale = ev_document_misc_get_screen_dpi (screen, monitor) / 72.0; ev_document_get_max_page_size (view->document, &doc_width, &doc_height); -@@ -7128,7 +7136,11 @@ zoom_for_size_automatic (GdkScreen *scre +@@ -7101,7 +7109,11 @@ zoom_for_size_automatic (GdkScreen *scre int target_width, int target_height) { @@ -115,7 +115,7 @@ GdkDisplay *display; double fit_width_scale; double scale; -@@ -7144,7 +7156,11 @@ zoom_for_size_automatic (GdkScreen *scre +@@ -7117,7 +7129,11 @@ zoom_for_size_automatic (GdkScreen *scre double actual_scale; display = gdk_screen_get_display (screen); @@ -129,30 +129,27 @@ } --- a/libview/ev-view-presentation.c +++ b/libview/ev-view-presentation.c -@@ -1211,12 +1211,22 @@ init_presentation (GtkWidget *widget) +@@ -1253,11 +1253,20 @@ static void + ev_view_presentation_update_monitor_geometry (EvViewPresentation *pview) { - EvViewPresentation *pview = EV_VIEW_PRESENTATION (widget); - GdkDisplay *display = gtk_widget_get_display (widget); + GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (pview)); +#if GTK_CHECK_VERSION (3, 22, 0) GdkRectangle monitor; - GdkMonitor *monitor_num; -+#else -+ GdkScreen *screen = gdk_display_get_default_screen (display); -+ GdkRectangle monitor; -+ int monitor_num; -+#endif + GdkMonitor *monitor_num; -+#if GTK_CHECK_VERSION (3, 22, 0) - monitor_num = gdk_display_get_monitor_at_window (display, gtk_widget_get_window (widget)); + monitor_num = gdk_display_get_monitor_at_window (display, gtk_widget_get_window (GTK_WIDGET (pview))); gdk_monitor_get_geometry (monitor_num, &monitor); -- +#else -+ monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (widget)); ++ GdkScreen *screen = gdk_display_get_default_screen (display); ++ GdkRectangle monitor; ++ int monitor_num; ++ ++ monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (GTK_WIDGET (pview))); + gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); +#endif pview->monitor_width = monitor.width; pview->monitor_height = monitor.height; - + } --- a/previewer/ev-previewer-window.c +++ b/previewer/ev-previewer-window.c @@ -71,12 +71,20 @@ static gdouble @@ -260,7 +257,7 @@ *y = CLAMP (*y, monitor.y, monitor.y + MAX (0, monitor.height - req.height)); --- a/shell/ev-window.c +++ b/shell/ev-window.c -@@ -390,12 +390,20 @@ static gdouble +@@ -398,12 +398,20 @@ static gdouble get_screen_dpi (EvWindow *window) { GdkScreen *screen; @@ -281,7 +278,7 @@ return ev_document_misc_get_screen_dpi (screen, monitor); } -@@ -4917,10 +4925,17 @@ ev_window_cmd_help_contents (GtkAction * +@@ -5014,10 +5022,17 @@ ev_window_cmd_help_contents (GtkAction * { GError *error = NULL;
