public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gtranslator] rawhide: Backport upstream fix gdk includes
Date: Thu, 30 Jul 2026 13:47:37 GMT	[thread overview]
Message-ID: <178541925771.1.14390539314064924290.rpms-gtranslator-16a736db7f89@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gtranslator
Branch : rawhide
Commit : 16a736db7f898b306fb3ef0e1b42f17445bb9016
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2026-07-30T15:47:25+02:00
Stats  : +43/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gtranslator/c/16a736db7f898b306fb3ef0e1b42f17445bb9016?branch=rawhide

Log:
Backport upstream fix gdk includes

---
diff --git a/gtranslator-fix-includes.patch b/gtranslator-fix-includes.patch
new file mode 100644
index 0000000..e56a9b8
--- /dev/null
+++ b/gtranslator-fix-includes.patch
@@ -0,0 +1,41 @@
+From 105226de1f4faa9fdeadba6f7245c06ea1ca02d5 Mon Sep 17 00:00:00 2001
+From: Maximiliano Sandoval <msandova@gnome.org>
+Date: Tue, 26 May 2026 12:48:15 +0200
+Subject: [PATCH] Include gdk.h instead of gdkkeysyms
+
+Only <gdk/gdk.h> can be included directly.
+---
+ src/gtr-actions-search.c                           | 2 +-
+ src/translation-memory/gtr-translation-memory-ui.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/gtr-actions-search.c b/src/gtr-actions-search.c
+index 32b8bf8..5c117cb 100644
+--- a/src/gtr-actions-search.c
++++ b/src/gtr-actions-search.c
+@@ -29,7 +29,7 @@
+ 
+ #include <string.h>
+ #include <glib/gi18n.h>
+-#include <gdk/gdkkeysyms.h>
++#include <gdk/gdk.h>
+ #include <gtksourceview/gtksource.h>
+ 
+ #include "gtr-actions.h"
+diff --git a/src/translation-memory/gtr-translation-memory-ui.c b/src/translation-memory/gtr-translation-memory-ui.c
+index d0defe7..e202199 100644
+--- a/src/translation-memory/gtr-translation-memory-ui.c
++++ b/src/translation-memory/gtr-translation-memory-ui.c
+@@ -35,7 +35,7 @@
+ #include <glib/gi18n.h>
+ #include <glib-object.h>
+ #include <gtk/gtk.h>
+-#include <gdk/gdkkeysyms.h>
++#include <gdk/gdk.h>
+ 
+ #define MAX_ELEMENTS 9
+ 
+
+-- 
+GitLab
+

diff --git a/gtranslator.spec b/gtranslator.spec
index c74f08e..200d680 100644
--- a/gtranslator.spec
+++ b/gtranslator.spec
@@ -11,6 +11,8 @@ License:	GPL-2.0-or-later AND GPL-3.0-or-later AND CC-BY-SA-3.0 AND CC0-1.0
 URL:		https://wiki.gnome.org/Apps/Gtranslator
 Source0:	https://download.gnome.org/sources/%{name}/%{gnome_major_version}/%{name}-%{version}.tar.xz
 
+Patch0:	    gtranslator-fix-includes.patch
+
 BuildRequires:	desktop-file-utils
 BuildRequires:	gettext-devel
 BuildRequires:	itstool

                 reply	other threads:[~2026-07-30 13:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=178541925771.1.14390539314064924290.rpms-gtranslator-16a736db7f89@fedoraproject.org \
    --to=jgrulich@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox