[arch-commits] Commit in gnome-applets (9 files)

Balló György bgyorgy at archlinux.org
Mon Nov 2 05:41:02 UTC 2015


    Date: Monday, November 2, 2015 @ 06:41:02
  Author: bgyorgy
Revision: 145542

archrelease: copy trunk to community-i686, community-x86_64

Added:
  gnome-applets/repos/
  gnome-applets/repos/community-i686/
  gnome-applets/repos/community-i686/0001-stickynotes-don-t-ignore-font-type.patch
    (from rev 145541, gnome-applets/trunk/0001-stickynotes-don-t-ignore-font-type.patch)
  gnome-applets/repos/community-i686/PKGBUILD
    (from rev 145541, gnome-applets/trunk/PKGBUILD)
  gnome-applets/repos/community-i686/gnome-applets.install
    (from rev 145541, gnome-applets/trunk/gnome-applets.install)
  gnome-applets/repos/community-x86_64/
  gnome-applets/repos/community-x86_64/0001-stickynotes-don-t-ignore-font-type.patch
    (from rev 145541, gnome-applets/trunk/0001-stickynotes-don-t-ignore-font-type.patch)
  gnome-applets/repos/community-x86_64/PKGBUILD
    (from rev 145541, gnome-applets/trunk/PKGBUILD)
  gnome-applets/repos/community-x86_64/gnome-applets.install
    (from rev 145541, gnome-applets/trunk/gnome-applets.install)

----------------------------------------------------------------+
 community-i686/0001-stickynotes-don-t-ignore-font-type.patch   |   48 ++++++++++
 community-i686/PKGBUILD                                        |   36 +++++++
 community-i686/gnome-applets.install                           |   12 ++
 community-x86_64/0001-stickynotes-don-t-ignore-font-type.patch |   48 ++++++++++
 community-x86_64/PKGBUILD                                      |   36 +++++++
 community-x86_64/gnome-applets.install                         |   12 ++
 6 files changed, 192 insertions(+)

Copied: gnome-applets/repos/community-i686/0001-stickynotes-don-t-ignore-font-type.patch (from rev 145541, gnome-applets/trunk/0001-stickynotes-don-t-ignore-font-type.patch)
===================================================================
--- repos/community-i686/0001-stickynotes-don-t-ignore-font-type.patch	                        (rev 0)
+++ repos/community-i686/0001-stickynotes-don-t-ignore-font-type.patch	2015-11-02 05:41:02 UTC (rev 145542)
@@ -0,0 +1,48 @@
+From 65c3fe225838fb646ec35c3098c6e49c1395033e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Mon, 2 Nov 2015 01:20:55 +0100
+Subject: [PATCH] stickynotes: don't ignore font type
+
+https://bugzilla.gnome.org/show_bug.cgi?id=753272
+---
+ stickynotes/stickynotes.c | 12 +++++-------
+ 1 file changed, 5 insertions(+), 7 deletions(-)
+
+diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
+index 61dd742..5ff4294 100644
+--- a/stickynotes/stickynotes.c
++++ b/stickynotes/stickynotes.c
+@@ -539,7 +539,7 @@ stickynote_set_color (StickyNote  *note,
+ void
+ stickynote_set_font (StickyNote *note, const gchar *font_str, gboolean save)
+ {
+-	GtkRcStyle *rc_style = gtk_widget_get_modifier_style(note->w_window);
++	PangoFontDescription *font_desc;
+ 	gchar *font_str_actual;
+ 
+ 	if (save) {
+@@ -563,17 +563,15 @@ stickynote_set_font (StickyNote *note, const gchar *font_str, gboolean save)
+ 		font_str_actual = g_strdup (font_str);
+ 
+ 	/* Do not use custom fonts if "use_system_font" is enabled */
+-	pango_font_description_free (rc_style->font_desc);
+-	rc_style->font_desc = font_str_actual ?
++	font_desc = font_str_actual ?
+ 		pango_font_description_from_string (font_str_actual): NULL;
+ 
+-	g_object_ref (G_OBJECT (rc_style));
+ 	/* Apply the style to the widgets */
+-	gtk_widget_modify_style(note->w_window, rc_style);
+-	gtk_widget_modify_style(note->w_body, rc_style);
++	gtk_widget_override_font (note->w_window, font_desc);
++	gtk_widget_override_font (note->w_body, font_desc);
+ 
+ 	g_free (font_str_actual);
+-	g_object_unref (G_OBJECT(rc_style));
++	pango_font_description_free (font_desc);
+ }
+ 
+ /* Lock/Unlock a sticky note from editing */
+-- 
+2.6.2
+

Copied: gnome-applets/repos/community-i686/PKGBUILD (from rev 145541, gnome-applets/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD	                        (rev 0)
+++ repos/community-i686/PKGBUILD	2015-11-02 05:41:02 UTC (rev 145542)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gnome-applets
+pkgver=3.18.1
+pkgrel=2
+pkgdesc="Small applications for the GNOME Panel"
+arch=('i686' 'x86_64')
+url="https://wiki.gnome.org/Projects/GnomeApplets"
+license=('GPL')
+depends=('gnome-panel' 'libgtop' 'libtracker-sparql' 'gucharmap' 'python-gobject' 'cpupower' 'upower')
+makedepends=('intltool' 'itstool' 'gnome-settings-daemon')
+install=$pkgname.install
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
+        0001-stickynotes-don-t-ignore-font-type.patch)
+sha256sums=('e09eb18f55be851da4c75c7d97df40130625ea548b2aa8d9db21e17bb06eefd5'
+            '7b6120c5d8daebe71fceb1f6993bed1580c82ed28d75d6ca44f1f87add46325a')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # stickynotes: don't ignore font type
+  patch -Np1 -i ../0001-stickynotes-don-t-ignore-font-type.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname \
+              --disable-schemas-compile --with-cpufreq-lib=cpupower
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: gnome-applets/repos/community-i686/gnome-applets.install (from rev 145541, gnome-applets/trunk/gnome-applets.install)
===================================================================
--- repos/community-i686/gnome-applets.install	                        (rev 0)
+++ repos/community-i686/gnome-applets.install	2015-11-02 05:41:02 UTC (rev 145542)
@@ -0,0 +1,12 @@
+post_install() {
+  glib-compile-schemas usr/share/glib-2.0/schemas
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}

Copied: gnome-applets/repos/community-x86_64/0001-stickynotes-don-t-ignore-font-type.patch (from rev 145541, gnome-applets/trunk/0001-stickynotes-don-t-ignore-font-type.patch)
===================================================================
--- repos/community-x86_64/0001-stickynotes-don-t-ignore-font-type.patch	                        (rev 0)
+++ repos/community-x86_64/0001-stickynotes-don-t-ignore-font-type.patch	2015-11-02 05:41:02 UTC (rev 145542)
@@ -0,0 +1,48 @@
+From 65c3fe225838fb646ec35c3098c6e49c1395033e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Mon, 2 Nov 2015 01:20:55 +0100
+Subject: [PATCH] stickynotes: don't ignore font type
+
+https://bugzilla.gnome.org/show_bug.cgi?id=753272
+---
+ stickynotes/stickynotes.c | 12 +++++-------
+ 1 file changed, 5 insertions(+), 7 deletions(-)
+
+diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
+index 61dd742..5ff4294 100644
+--- a/stickynotes/stickynotes.c
++++ b/stickynotes/stickynotes.c
+@@ -539,7 +539,7 @@ stickynote_set_color (StickyNote  *note,
+ void
+ stickynote_set_font (StickyNote *note, const gchar *font_str, gboolean save)
+ {
+-	GtkRcStyle *rc_style = gtk_widget_get_modifier_style(note->w_window);
++	PangoFontDescription *font_desc;
+ 	gchar *font_str_actual;
+ 
+ 	if (save) {
+@@ -563,17 +563,15 @@ stickynote_set_font (StickyNote *note, const gchar *font_str, gboolean save)
+ 		font_str_actual = g_strdup (font_str);
+ 
+ 	/* Do not use custom fonts if "use_system_font" is enabled */
+-	pango_font_description_free (rc_style->font_desc);
+-	rc_style->font_desc = font_str_actual ?
++	font_desc = font_str_actual ?
+ 		pango_font_description_from_string (font_str_actual): NULL;
+ 
+-	g_object_ref (G_OBJECT (rc_style));
+ 	/* Apply the style to the widgets */
+-	gtk_widget_modify_style(note->w_window, rc_style);
+-	gtk_widget_modify_style(note->w_body, rc_style);
++	gtk_widget_override_font (note->w_window, font_desc);
++	gtk_widget_override_font (note->w_body, font_desc);
+ 
+ 	g_free (font_str_actual);
+-	g_object_unref (G_OBJECT(rc_style));
++	pango_font_description_free (font_desc);
+ }
+ 
+ /* Lock/Unlock a sticky note from editing */
+-- 
+2.6.2
+

Copied: gnome-applets/repos/community-x86_64/PKGBUILD (from rev 145541, gnome-applets/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2015-11-02 05:41:02 UTC (rev 145542)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gnome-applets
+pkgver=3.18.1
+pkgrel=2
+pkgdesc="Small applications for the GNOME Panel"
+arch=('i686' 'x86_64')
+url="https://wiki.gnome.org/Projects/GnomeApplets"
+license=('GPL')
+depends=('gnome-panel' 'libgtop' 'libtracker-sparql' 'gucharmap' 'python-gobject' 'cpupower' 'upower')
+makedepends=('intltool' 'itstool' 'gnome-settings-daemon')
+install=$pkgname.install
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
+        0001-stickynotes-don-t-ignore-font-type.patch)
+sha256sums=('e09eb18f55be851da4c75c7d97df40130625ea548b2aa8d9db21e17bb06eefd5'
+            '7b6120c5d8daebe71fceb1f6993bed1580c82ed28d75d6ca44f1f87add46325a')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # stickynotes: don't ignore font type
+  patch -Np1 -i ../0001-stickynotes-don-t-ignore-font-type.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname \
+              --disable-schemas-compile --with-cpufreq-lib=cpupower
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: gnome-applets/repos/community-x86_64/gnome-applets.install (from rev 145541, gnome-applets/trunk/gnome-applets.install)
===================================================================
--- repos/community-x86_64/gnome-applets.install	                        (rev 0)
+++ repos/community-x86_64/gnome-applets.install	2015-11-02 05:41:02 UTC (rev 145542)
@@ -0,0 +1,12 @@
+post_install() {
+  glib-compile-schemas usr/share/glib-2.0/schemas
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}



More information about the arch-commits mailing list