Hello community, here is the log from the commit of package gtk3 for openSUSE:Factory checked in at 2017-10-21 20:17:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gtk3 (Old) and /work/SRC/openSUSE:Factory/.gtk3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gtk3" Sat Oct 21 20:17:03 2017 rev:119 rq:535496 version:3.22.24 Changes: -------- --- /work/SRC/openSUSE:Factory/gtk3/gtk3.changes 2017-10-20 16:12:45.996426473 +0200 +++ /work/SRC/openSUSE:Factory/.gtk3.new/gtk3.changes 2017-10-21 20:17:04.400212701 +0200 @@ -100,0 +101,8 @@ +Thu Jul 6 07:05:48 UTC 2017 - [email protected] + +- Add gtk3-revert-forced-xftdpi.patch: revert upstream commit + breaking DPI autodetection (boo#1022830, fate#322401, fdo#98909, + kde#367499, bmo#1269274). Aligns GTK's DPI detection code back to + what GTK2 does. + +------------------------------------------------------------------- New: ---- gtk3-revert-forced-xftdpi.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gtk3.spec ++++++ --- /var/tmp/diff_new_pack.RtUX6w/_old 2017-10-21 20:17:05.584157261 +0200 +++ /var/tmp/diff_new_pack.RtUX6w/_new 2017-10-21 20:17:05.608156137 +0200 @@ -48,6 +48,8 @@ Patch2: gtk3-silence-log-spew-blank-cursors.patch # PATCH-FIX-OPENSUSE gtk3-restore-filechooser-click-behavior.patch bgo#758065 bsc#1057471 [email protected] -- revert upstream commit#fb0a13b to restore the single click behavior Patch3: gtk3-restore-filechooser-click-behavior.patch +# PATCH-FIX-OPENSUSE revert-forced-xftdpi.patch [email protected] -- Revert very controversal commit on GTK3, forcing DPI to 96 +Patch4: gtk3-revert-forced-xftdpi.patch BuildRequires: cups-devel >= 1.2 BuildRequires: docbook-xsl-stylesheets BuildRequires: fdupes @@ -369,6 +371,7 @@ #patch1 -p0 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build # Disabled since patch 1 is in need of rebase ++++++ gtk3-revert-forced-xftdpi.patch ++++++ From: Guiseppe Bilotta Subject: Revert "Simplify Xft setting fallback" References: boo#1022830 fate#322401 fdo#98909 kde#367499 bmo#1269274 This patch reverts part of commit bdf0820 ("Simplify Xft setting fallback") which forces the DPI to 96 instead of querying the X server for the physical screen dimensions. This is needed for GTK applications to autodetect the DPI of monitors and not depend on manual configuration. Signed-off-by: Fabian Vogt <[email protected]> gdk/x11/gdkxftdefaults.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: gtk+-3.20.10/gdk/x11/gdkxftdefaults.c =================================================================== --- gtk+-3.20.10.orig/gdk/x11/gdkxftdefaults.c +++ gtk+-3.20.10/gdk/x11/gdkxftdefaults.c @@ -174,7 +174,8 @@ init_xft_settings (GdkScreen *screen) x11_screen->xft_rgba = FC_RGBA_UNKNOWN; if (!get_double_default (xdisplay, "dpi", &dpi_double)) - dpi_double = 96.0; + dpi_double = (DisplayHeight(xdisplay, x11_screen->screen_num)*25.4)/ + DisplayHeightMM(xdisplay, x11_screen->screen_num); x11_screen->xft_dpi = (int)(0.5 + PANGO_SCALE * dpi_double); }
