From 2ecb17cc59708c982851f43b1d5bea9913f6dccb Mon Sep 17 00:00:00 2001 From: Jaromir Capik Date: Mar 30 2012 13:58:25 +0000 Subject: FIX: Close button in the about dialog doesn't work --- diff --git a/atomix-about-dlg-close-button.patch b/atomix-about-dlg-close-button.patch new file mode 100644 index 0000000..e5603d5 --- /dev/null +++ b/atomix-about-dlg-close-button.patch @@ -0,0 +1,11 @@ +diff -Naur atomix-2.14.0.orig/src/main.c atomix-2.14.0/src/main.c +--- atomix-2.14.0.orig/src/main.c 2006-01-05 19:03:56.000000000 +0100 ++++ atomix-2.14.0/src/main.c 2012-03-30 15:42:36.000000000 +0200 +@@ -175,6 +175,7 @@ + gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG(dlg), authors); + gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG(dlg), artists); + gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG(dlg), _("translator-credits")); ++ g_signal_connect_swapped (dlg, "response", G_CALLBACK (gtk_widget_destroy), dlg); + + gtk_widget_show (dlg); + } diff --git a/atomix.spec b/atomix.spec index 69deee6..188845a 100644 --- a/atomix.spec +++ b/atomix.spec @@ -1,12 +1,15 @@ Name: atomix Version: 2.14.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Puzzle game: Build molecules out of isolated atoms Group: Amusements/Games License: GPLv2+ URL: http://jens.triq.net/atomix.php Source0: http://ftp.gnome.org/pub/GNOME/sources/atomix/2.14/atomix-2.14.0.tar.bz2 + +Patch0: %{name}-about-dlg-close-button.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gettext @@ -24,8 +27,10 @@ Amiga game Atomix and uses the GNOME libraries. %prep %setup -q +%patch0 -p1 + %build -export LDFLAGS="${LDFLAGS} -lm" +export LDFLAGS="${LDFLAGS} -lm" %configure # gnome bz#334319 -- translations don't get built; workaround that sed -i 's!^SOURCES = !&\n'"$(grep "^CATALOGS" po/Makefile.in)"'!' po/Makefile @@ -65,6 +70,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Fri Mar 30 2012 Jaromir Capik - 2.14.0-13 +- FIX: Close button in the about dialog doesn't work + * Thu Jan 12 2012 Fedora Release Engineering - 2.14.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild