rpms/gwibber/F-12 gwibber-2.30.0.1-notify-icon-48.patch, NONE, 1.1 gwibber.spec, 1.38, 1.39

Tom Callaway spot at fedoraproject.org
Wed Apr 28 14:50:33 UTC 2010


Author: spot

Update of /cvs/pkgs/rpms/gwibber/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv9673/F-12

Modified Files:
	gwibber.spec 
Added Files:
	gwibber-2.30.0.1-notify-icon-48.patch 
Log Message:
fix HUGE bubble icon

gwibber-2.30.0.1-notify-icon-48.patch:
 __init__.py |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

--- NEW FILE gwibber-2.30.0.1-notify-icon-48.patch ---
diff -up gwibber-2.30.0.1/gwibber/microblog/util/__init__.py.BAD gwibber-2.30.0.1/gwibber/microblog/util/__init__.py
--- gwibber-2.30.0.1/gwibber/microblog/util/__init__.py.BAD	2010-04-28 08:25:10.618806266 -0400
+++ gwibber-2.30.0.1/gwibber/microblog/util/__init__.py	2010-04-28 08:28:58.891720518 -0400
@@ -73,13 +73,16 @@ def isRTL(s):
 
 try:
   import pynotify
+  import gtk, gtk.gdk
   pynotify.init("Gwibber")
 
-  def notify(title, text, icon = None, timeout = None):
+  def notify(title, text, icon = None, timeout = None, iconsize = 48):
     if icon is None:
       icon = resources.get_ui_asset("gwibber.svg")
     caps = pynotify.get_server_caps()
-    notification = pynotify.Notification(title, text, icon)
+    pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(icon, iconsize, iconsize)
+    notification = pynotify.Notification(title, text)
+    notification.set_icon_from_pixbuf(pixbuf)
     if timeout:
       notification.set_timeout(timeout)
     if "x-canonical-append" in caps:


Index: gwibber.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gwibber/F-12/gwibber.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -p -r1.38 -r1.39
--- gwibber.spec	23 Apr 2010 18:00:17 -0000	1.38
+++ gwibber.spec	28 Apr 2010 14:50:32 -0000	1.39
@@ -4,7 +4,7 @@
 
 Name:           gwibber
 Version:        %{basever}.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Epoch:          1
 Summary:        An open source microblogging client for GNOME developed with Python and GTK
 Group:          Applications/Internet
@@ -23,6 +23,10 @@ Patch0:		gwibber-2.30.0.1-non-int-font-s
 # Enable notification area support
 Patch1:		gwibber-2.30.0.1-notification-area-support.patch
 
+# Set default notification icon size to 48 x 48
+# https://bugs.launchpad.net/bugs/571215
+Patch2:		gwibber-2.30.0.1-notify-icon-48.patch
+
 Requires:	libsoup, python-pycurl, PyXML
 Requires:	python 
 Requires:	dbus-python >= 0.80.2
@@ -52,6 +56,8 @@ and GTK. It supports Twitter, Jaiku, Ide
 %setup -q
 %patch0 -p1 -b .non-int-font-size-fix
 %patch1 -p1 -b .notification-area
+%patch2 -p1 -b .notify-icon-48
+
 sed -i -e '/^#! \?\//, 1d' $(find %{name} | grep "\.py$")
 
 %build
@@ -94,6 +100,9 @@ rm -rf %{buildroot}
 %{_datadir}/indicators/messages/applications/gwibber
 
 %changelog
+* Wed Apr 28 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 1:2.30.0.1-4
+- default notification icon size is now 48 x 48
+
 * Fri Apr 23 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 1:2.30.0.1-3
 - add notification area support
 



More information about the scm-commits mailing list