unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: martin rudalics <rudalics@gmx.at>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: emacs-26 build breaking on RHEL 6.6 GTK2
Date: Wed, 24 Jan 2018 17:12:16 +0100	[thread overview]
Message-ID: <878tcnjkwv.fsf@gmail.com> (raw)
In-Reply-To: <CAFyQvY1ZpVKdCE-b9Fo_ZCu_g1SS2Q7sOKw6_Js5Cqyk-xU47w@mail.gmail.com> (Kaushal Modi's message of "Wed, 24 Jan 2018 15:48:56 +0000")

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

Kaushal Modi <kaushal.modi@gmail.com> writes:

> Hello,
>
> emacs-26 build is breaking after the last 2 commits ([1], [2]) related to
> GTK. This is after "make bootstrap".
>

Eek, GTK2. How about the following:



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Only-check-for-scaling-on-GTK3.patch --]
[-- Type: text/x-diff, Size: 1201 bytes --]

From 3d4e551f3481558680a57351c6abed8321578cbd Mon Sep 17 00:00:00 2001
From: Robert Pluim <rpluim@gmail.com>
Date: Wed, 24 Jan 2018 17:02:50 +0100
Subject: [PATCH] Only check for scaling on GTK3

* src/xfns.c (Fx_display_monitor_attributes_list): Only check
for scaling on GTK3
---
 src/xfns.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xfns.c b/src/xfns.c
index 4ea5113265..3dbd669edc 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4940,7 +4940,7 @@ Internal use only, use `display-monitor-attributes-list' instead.  */)
       gint width_mm = -1, height_mm = -1;
       GdkRectangle rec, work;
       struct MonitorInfo *mi = &monitors[i];
-      int scale;
+      int scale = 1;
 
 #if GTK_CHECK_VERSION (3, 22, 0)
       GdkMonitor *monitor = gdk_display_get_monitor (gdpy, i);
@@ -4989,7 +4989,7 @@ Internal use only, use `display-monitor-attributes-list' instead.  */)
       /* GTK returns scaled sizes for the workareas.  */
 #if GTK_CHECK_VERSION (3, 22, 0)
       scale = gdk_monitor_get_scale_factor (monitor);
-#else
+#elif defined HAVE_GTK3
       scale = gdk_screen_get_monitor_scale_factor (gscreen, i);
 #endif
       rec.width *= scale;
-- 
2.16.0.rc1


  parent reply	other threads:[~2018-01-24 16:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 15:48 emacs-26 build breaking on RHEL 6.6 GTK2 Kaushal Modi
2018-01-24 15:53 ` Kaushal Modi
2018-02-20 11:04   ` Robert Pluim
2018-02-20 15:22     ` Kaushal Modi
2018-02-20 16:21       ` Robert Pluim
2018-01-24 16:12 ` Robert Pluim [this message]
2018-01-24 17:28   ` Kaushal Modi
2018-01-24 17:46 ` Glenn Morris
2018-01-24 18:04   ` Robert Pluim
2018-01-24 18:26     ` Glenn Morris
2018-01-24 18:39       ` Robert Pluim
2018-01-24 18:43         ` Noam Postavsky
2018-01-24 18:32     ` martin rudalics
2018-01-24 18:41       ` Robert Pluim
2018-01-24 18:47         ` martin rudalics
2018-01-24 18:52           ` Robert Pluim
2018-01-24 19:16             ` martin rudalics
2018-01-24 19:22               ` Robert Pluim
2018-01-24 20:10             ` Eli Zaretskii
2018-01-24 20:19               ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tcnjkwv.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kaushal.modi@gmail.com \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).