Browse Source

cinnamon-translations package update

Signed-off-by: guibuilder_pel7x64builder0 <guibuilder@powerel.org>
master
guibuilder_pel7x64builder0 5 years ago
parent
commit
a140d2a8d3
  1. 74
      SOURCES/Don-t-scale-text-size-when-zooming.patch
  2. 196
      SPECS/cinnamon-translations.spec

74
SOURCES/Don-t-scale-text-size-when-zooming.patch

@ -0,0 +1,74 @@ @@ -0,0 +1,74 @@
From 9665ce9ff5ae5feca6f33fb43af4628f6e37b2a9 Mon Sep 17 00:00:00 2001
From: leigh123linux <leigh123linux@googlemail.com>
Date: Sun, 4 Jun 2017 12:14:10 +0100
Subject: [PATCH] Don't scale text size when zooming

---
src/nemo-list-view.c | 40 ----------------------------------------
1 file changed, 40 deletions(-)

diff --git a/src/nemo-list-view.c b/src/nemo-list-view.c
index 1bb4b5bca..ca2b228cb 100644
--- a/src/nemo-list-view.c
+++ b/src/nemo-list-view.c
@@ -144,8 +144,6 @@ static GList *nemo_list_view_get_selection_for_file_transfer (NemoView *view);
static void nemo_list_view_set_zoom_level (NemoListView *view,
NemoZoomLevel new_level,
gboolean always_set_level);
-static void nemo_list_view_scale_font_size (NemoListView *view,
- NemoZoomLevel new_level);
static void nemo_list_view_scroll_to_file (NemoListView *view,
NemoFile *file);
static void nemo_list_view_rename_callback (NemoFile *file,
g_signal_handlers_unblock_by_func (NEMO_LIST_VIEW (view)->details->tree_view,
columns_reordered_callback,
NEMO_LIST_VIEW (view));
-}
-
-static void
-nemo_list_view_scale_font_size (NemoListView *view,
- NemoZoomLevel new_level)
-{
- GList *l;
- static gboolean first_time = TRUE;
- static double pango_scale[7];
- int medium;
- int i;
-
- g_return_if_fail (new_level >= NEMO_ZOOM_LEVEL_SMALLEST &&
- new_level <= NEMO_ZOOM_LEVEL_LARGEST);
-
- if (first_time) {
- first_time = FALSE;
- medium = NEMO_ZOOM_LEVEL_SMALLER;
- pango_scale[medium] = PANGO_SCALE_MEDIUM;
- for (i = medium; i > NEMO_ZOOM_LEVEL_SMALLEST; i--) {
- pango_scale[i - 1] = (1 / 1.2) * pango_scale[i];
- }
- for (i = medium; i < NEMO_ZOOM_LEVEL_LARGEST; i++) {
- pango_scale[i + 1] = 1.2 * pango_scale[i];
- }
- }
-
- g_object_set (G_OBJECT (view->details->file_name_cell),
- "scale", pango_scale[new_level],
- NULL);
- for (l = view->details->cells; l != NULL; l = l->next) {
- g_object_set (G_OBJECT (l->data),
- "scale", pango_scale[new_level],
- NULL);
- }
}
static void

@@ -3231,9 +3194,6 @@ nemo_list_view_set_zoom_level (NemoListView *view,
"surface", column,
NULL);
- /* Scale text. */
- nemo_list_view_scale_font_size (view, new_level);
-
/* Make all rows the same size. */
icon_size = nemo_get_list_icon_size_for_zoom_level (new_level);
gtk_cell_renderer_set_fixed_size (GTK_CELL_RENDERER (view->details->pixbuf_cell),

196
SPECS/cinnamon-translations.spec

@ -0,0 +1,196 @@ @@ -0,0 +1,196 @@
%global _trans_version 2018.08.14


Name: cinnamon-translations
Version: 3.8.2
Release: 1%{?dist}
Summary: Translations for Cinnamon and Nemo

License: GPLv2+
URL: https://github.com/linuxmint/%{name}
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: http://packages.linuxmint.com/pool/main/m/mint-translations/mint-translations_%{_trans_version}.tar.xz
BuildRequires: gettext

BuildArch: noarch

%description
Translations for Cinnamon, Nemo and Mintlocale.


%prep
%autosetup -a 1 -p 1


%build
%{make_build}
%{make_build} -C mint-translations


%install
# install mint translations for mintlocale
%{_bindir}/find mint-translations -not -name 'mintlocale.mo' -type f -delete
%{_bindir}/find . -name 'cinnamon-bluetooth.mo' -type f -delete
%{__cp} -pr mint-translations/%{_datadir}/linuxmint/locale .%{_datadir}
%{__cp} -pr .%{_prefix} %{buildroot}

%find_lang cinnamon
%find_lang mintlocale
%find_lang nemo
%find_lang nemo-extensions
%find_lang cinnamon-control-center
%find_lang cinnamon-screensaver
%find_lang cinnamon-session
%find_lang cinnamon-settings-daemon

%files -f cinnamon.lang -f mintlocale.lang -f nemo.lang -f nemo-extensions.lang -f cinnamon-control-center.lang -f cinnamon-screensaver.lang -f cinnamon-session.lang -f cinnamon-settings-daemon.lang
%license COPYING


%changelog
* Thu Aug 16 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.8.2-1
- Update to 3.8.2 release

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue May 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.8.1-2
- Updated translations for mintlocale

* Tue May 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.8.1-1
- Update to 3.8.1 release

* Fri Apr 20 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.8.0-1
- Update to 3.8.0 release

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Sun Nov 12 2017 Leigh Scott <leigh123linux@googlemail.com> - 3.6.2-1
- update to 3.6.2 release

* Tue Oct 24 2017 Leigh Scott <leigh123linux@googlemail.com> - 3.6.0-1
- update to 3.6.0 release

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Tue May 23 2017 Leigh Scott <leigh123linux@googlemail.com> - 3.4.2-1
- update to 3.4.2 release

* Sun May 07 2017 Björn Esser <besser82@fedoraproject.org> - 3.4.1-2
- Updated translations for mintlocale

* Sun May 07 2017 Björn Esser <besser82@fedoraproject.org> - 3.4.1-1
- update to 3.4.1 release

* Thu May 04 2017 Leigh Scott <leigh123linux@googlemail.com> - 3.4.0-1
- update to 3.4.0 release

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon Dec 12 2016 leigh scott <leigh123linux@googlemail.com> - 3.2.2-1
- update to 3.2.2 release

* Mon Nov 28 2016 leigh scott <leigh123linux@googlemail.com> - 3.2.1-1
- update to 3.2.1 release

* Thu Nov 10 2016 Leigh Scott <leigh123linux@googlemail.com> - 3.2.0-1
- update to 3.2.0 release

* Sun Jun 26 2016 Leigh Scott <leigh123linux@googlemail.com> - 3.0.3-1
- update to 3.0.3 release

* Tue May 24 2016 Leigh Scott <leigh123linux@googlemail.com> - 3.0.2-1
- update to 3.0.2 release

* Tue May 24 2016 Leigh Scott <leigh123linux@googlemail.com> - 3.0.1-1
- update to 3.0.1 release

* Mon Apr 25 2016 Leigh Scott <leigh123linux@googlemail.com> - 3.0.0-1
- update to 3.0.0 release

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Nov 09 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.8.1-2
- rebuilt

* Mon Nov 09 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.8.1-1
- update to 2.8.1 release

* Thu Oct 22 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.8.0-1
- update to 2.8.0 release

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Tue Jun 02 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.2-1
- update to 2.6.2 release

* Thu May 21 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.1-1
- update to 2.6.1 release

* Wed May 20 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.0-1
- update to 2.6.0 release

* Fri Apr 03 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.4.4-1
- update to 2.4.5

* Sun Nov 23 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.2-1
- update to 2.4.2

* Wed Nov 12 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.1-1
- update to 2.4.1

* Sat Nov 08 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.0-2
- fix locale path

* Fri Oct 31 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.0-1
- update to 2.4.0

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Tue May 27 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.3-2
- move mintlocale translations

* Tue May 27 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.3-1
- update to 2.2.3
- add mintlocale translations

* Tue May 20 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.2-1
- update to 2.2.2

* Wed May 07 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.1-1
- update to 2.2.1

* Mon Apr 14 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.0-1
- update to 2.2.0

* Sun Nov 10 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.2-1
- update to 2.0.2

* Thu Oct 17 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.1-2
- co-own cinnamon locale directories
- remove requires cinnamon

* Wed Oct 09 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.1-1
- update to 2.0.1

* Wed Oct 02 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-1
- update to 2.0.0

* Sun Sep 15 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.9.2-0.4.git6091a38
- update to latest git

* Sat Aug 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.9.2-0.3.git444eac5
- add cinnamon-control-center files

* Fri Aug 23 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.9.2-0.2.git9c15ee5
- update to latest git

* Fri Aug 23 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.9.2-0.1.git28b56a7
- Initial build

Loading…
Cancel
Save