diff --git a/fonts-tweak-tool-fix-deprecation.patch b/fonts-tweak-tool-fix-deprecation.patch new file mode 100644 index 0000000..042bb86 --- /dev/null +++ b/fonts-tweak-tool-fix-deprecation.patch @@ -0,0 +1,48 @@ +From c6e921852be4bac17ef1b0b1da1aded3f97a298f Mon Sep 17 00:00:00 2001 +From: Akira TAGOH +Date: Thu, 4 Sep 2014 20:40:11 +0900 +Subject: [PATCH] Fix PyGTKDeprecationWarnings + +--- + fonts-tweak-tool | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/fonts-tweak-tool b/fonts-tweak-tool +index 60ede69..a4f7506 100755 +--- a/fonts-tweak-tool ++++ b/fonts-tweak-tool +@@ -68,7 +68,7 @@ except GLib.GError as e: + if e.domain != 'ezfc-error-quark' or e.code != 7: + raise + +-dlgui = Gtk.Dialog('Fonts Tweak Tool', None, Gtk.ResponseType.CLOSE) ++dlgui = Gtk.Dialog(title='Fonts Tweak Tool', transient_for=None) + dlgui.set_deletable(False) + dlgui.connect('delete-event', Gtk.main_quit) + content_area = dlgui.get_content_area() +@@ -112,17 +112,17 @@ tabs.set_margin_left(16) + tabs.set_margin_right(16) + tabs.set_margin_top(16) + tabs.set_margin_bottom(8) +-tabs.append_page(aliasui, Gtk.Label(_('Fonts Aliases'))) ++tabs.append_page(aliasui, Gtk.Label.new(_('Fonts Aliases'))) + if propui is not None: +- tabs.append_page(propui, Gtk.Label(_('Fonts Properties'))) ++ tabs.append_page(propui, Gtk.Label.new(_('Fonts Properties'))) + if substui is not None: +- tabs.append_page(substui, Gtk.Label(_('Font Substitutions'))) ++ tabs.append_page(substui, Gtk.Label.new(_('Font Substitutions'))) + if langui is not None: +- tabs.append_page(langui, Gtk.Label(_('Language Ordering'))) ++ tabs.append_page(langui, Gtk.Label.new(_('Language Ordering'))) + content_area.set_border_width(2) + content_area.add(tabs) + +-close = Gtk.Button(stock=Gtk.STOCK_CLOSE) ++close = Gtk.Button.new_from_stock(Gtk.STOCK_CLOSE) + close.connect('clicked', Gtk.main_quit) + dlgui.add_action_widget(close, Gtk.ResponseType.CLOSE) + action_area = dlgui.get_action_area() +-- +1.9.3 + diff --git a/fonts-tweak-tool.spec b/fonts-tweak-tool.spec index 8231eb9..d99c3f2 100644 --- a/fonts-tweak-tool.spec +++ b/fonts-tweak-tool.spec @@ -1,6 +1,6 @@ Name: fonts-tweak-tool Version: 0.3.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Tool for customizing fonts per language Group: User Interface/Desktops @@ -18,6 +18,7 @@ Requires: gtk3 Requires: hicolor-icon-theme Patch0: %{name}-sitearchdir.patch +Patch1: %{name}-fix-deprecation.patch %description fonts-tweak-tool is a GUI tool for customizing fonts per language on desktops @@ -26,6 +27,7 @@ using fontconfig. %prep %setup -q %patch0 -p1 -b .0-sitearch +%patch1 -p1 -b .1-deprecation autoreconf -f -i %configure --disable-static @@ -55,6 +57,9 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gir-*/FontsTweak-*.gir %{_libdir}/girepository-*/FontsTweak-*.typelib %changelog +* Thu Sep 4 2014 Akira TAGOH - 0.3.2-6 +- Fix PyGTKDeprecationWarnings. (#1136177) + * Sat Aug 16 2014 Fedora Release Engineering - 0.3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild