public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gtranslator] rawhide: Backport upstream fix gdk includes
@ 2026-07-30 13:47 Jan Grulich
  0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-07-30 13:47 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-30 13:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 13:47 [rpms/gtranslator] rawhide: Backport upstream fix gdk includes Jan Grulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox