rpms/gwibber/F-12 gwibber-2.30.0.1-notification-area-support.patch, NONE, 1.1 gwibber.spec, 1.37, 1.38
Tom Callaway
spot at fedoraproject.org
Fri Apr 23 18:00:18 UTC 2010
Author: spot
Update of /cvs/pkgs/rpms/gwibber/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv30163/F-12
Modified Files:
gwibber.spec
Added Files:
gwibber-2.30.0.1-notification-area-support.patch
Log Message:
add notification area support
gwibber-2.30.0.1-notification-area-support.patch:
client.py | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
--- NEW FILE gwibber-2.30.0.1-notification-area-support.patch ---
diff -up gwibber-2.30.0.1/gwibber/client.py.notification-area gwibber-2.30.0.1/gwibber/client.py
--- gwibber-2.30.0.1/gwibber/client.py.notification-area 2010-04-08 16:12:50.000000000 -0400
+++ gwibber-2.30.0.1/gwibber/client.py 2010-04-23 13:51:17.302557553 -0400
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
import gtk, gobject, gwui, util, resources, actions, json, gconf
import subprocess, os
@@ -77,6 +76,19 @@ class GwibberClient(gtk.Window):
menu_ui = self.setup_menu()
self.add_accel_group(menu_ui.get_accel_group())
+ def on_tray_menu_popup(i, b, a):
+ menu_ui.get_widget("/menu_tray").popup(None, None,
+ gtk.status_icon_position_menu, b, a, self.tray_icon)
+
+ gtk.icon_theme_add_builtin_icon("gwibber", 22,
+ gtk.gdk.pixbuf_new_from_file_at_size(
+ resources.get_ui_asset("gwibber.svg"), 24, 24))
+
+ self.set_icon_name("gwibber")
+ self.tray_icon = gtk.status_icon_new_from_icon_name("gwibber")
+ self.tray_icon.connect("popup-menu", on_tray_menu_popup)
+ self.tray_icon.set_visible(1)
+
# Create animated loading spinner
self.loading_spinner = gtk.Image()
menu_spin = gtk.ImageMenuItem("")
Index: gwibber.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gwibber/F-12/gwibber.spec,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -p -r1.37 -r1.38
--- gwibber.spec 20 Apr 2010 21:46:38 -0000 1.37
+++ gwibber.spec 23 Apr 2010 18:00:17 -0000 1.38
@@ -4,7 +4,7 @@
Name: gwibber
Version: %{basever}.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 1
Summary: An open source microblogging client for GNOME developed with Python and GTK
Group: Applications/Internet
@@ -20,6 +20,9 @@ BuildRoot: %{_tmppath}/%{name}-%{ve
# Fix for https://bugs.launchpad.net/gwibber/+bug/546392
Patch0: gwibber-2.30.0.1-non-int-font-size-fix.patch
+# Enable notification area support
+Patch1: gwibber-2.30.0.1-notification-area-support.patch
+
Requires: libsoup, python-pycurl, PyXML
Requires: python
Requires: dbus-python >= 0.80.2
@@ -48,6 +51,7 @@ and GTK. It supports Twitter, Jaiku, Ide
%prep
%setup -q
%patch0 -p1 -b .non-int-font-size-fix
+%patch1 -p1 -b .notification-area
sed -i -e '/^#! \?\//, 1d' $(find %{name} | grep "\.py$")
%build
@@ -90,6 +94,9 @@ rm -rf %{buildroot}
%{_datadir}/indicators/messages/applications/gwibber
%changelog
+* Fri Apr 23 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 1:2.30.0.1-3
+- add notification area support
+
* Tue Apr 20 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 1:2.30.0.1-2
- add fix for https://bugs.launchpad.net/gwibber/+bug/546392
More information about the scm-commits
mailing list