[gmixer/f14/master] - add patch to fix trayicon transparency
leigh123linux
leigh123linux at fedoraproject.org
Fri Nov 26 05:00:29 UTC 2010
commit 3f764a3f150d74fe1bce0bdf4413ed2c4f7d989f
Author: leigh scott <leigh123linux at googlemail.com>
Date: Fri Nov 26 05:00:30 2010 +0000
- add patch to fix trayicon transparency
gmixer.spec | 7 +++++-
trayicon_transparency.patch | 44 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 1 deletions(-)
---
diff --git a/gmixer.spec b/gmixer.spec
index 3a6939e..4d78b81 100644
--- a/gmixer.spec
+++ b/gmixer.spec
@@ -6,7 +6,7 @@
Name: gmixer
Version: 1.3
-Release: 17%{?dist}
+Release: 18%{?dist}
Summary: Just a simple audio mixer
Group: Applications/Multimedia
@@ -22,6 +22,7 @@ Patch2: icons.patch
Patch3: gmixer-1.3-local-variable-not-assigned.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=638277
Patch4: gmixer-1.3-no-title.patch
+Patch5: trayicon_transparency.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: pkgconfig
BuildRequires: python-devel, pygtk2-codegen, pygtk2-devel, gtk2-devel
@@ -45,6 +46,7 @@ Features:
%patch2 -p1 -b .icons
%patch3 -p0 -b .local-variable-assignment
%patch4 -p0 -b .no-title
+%patch5 -p0 -b .trayicon_transparency
%build
@@ -101,6 +103,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Nov 26 2010 leigh scott <leigh123linux at googlemail.com> - 1.3-18
+- add patch to fix trayicon transparency
+
* Tue Sep 28 2010 Thomas Spura <tomspur at fedoraproject.org> - 1.3-17
- add patch to fix #537803
- add patch fo fix #638277
diff --git a/trayicon_transparency.patch b/trayicon_transparency.patch
new file mode 100644
index 0000000..5cd5914
--- /dev/null
+++ b/trayicon_transparency.patch
@@ -0,0 +1,44 @@
+--- gmixer.old 2010-08-31 10:54:43.000000000 +0200
++++ gmixer 2010-08-31 10:55:07.747000063 +0200
+@@ -36,7 +36,6 @@
+ import gtk
+ import gtk.glade
+
+-from gtktrayicon import TrayIcon
+ import gst
+ import gst.interfaces
+ if gst.pygst_version < (0, 10, 8):
+@@ -803,18 +802,11 @@
+ break;
+
+ def _init_tray_icon(self):
+- self._tray_image = gtk.Image()
+- self._tray_image.set_property("has-tooltip",True)
+-
+- self._eventbox = gtk.EventBox()
+- self._eventbox.connect("button_press_event", self._on_tray_press)
+- self._eventbox.connect("scroll-event",self._on_tray_scroll)
+- self._eventbox.add(self._tray_image)
+-
+- self._tray = TrayIcon("GMixer")
+- self._tray.add(self._eventbox)
++ self._tray = gtk.StatusIcon()
++ self._tray.connect("button_press_event", self._on_tray_press)
++ self._tray.connect("scroll-event",self._on_tray_scroll)
+ self._update_tray()
+- self._tray.show_all()
++ self._tray.set_visible(True)
+
+ def _get_master_track(self):
+ for track in self._current_mixer.list_tracks():
+@@ -836,8 +828,8 @@
+ elif frac > 0.33: img = "stock_volume-med"
+ elif frac > 0.0: img = "stock_volume-min"
+ else: img = "stock_volume-mute"
+- self._tray_image.set_from_icon_name(img, gtk.ICON_SIZE_SMALL_TOOLBAR)
+- self._tray_image.set_tooltip_text(_("Volume : %d%%"%(frac*100)))
++ self._tray.set_from_icon_name(img)
++ self._tray.set_tooltip(_("Volume : %d%%"%(frac*100)))
+
+ def program_is_alive(self, pid, cmd):
+ try:
More information about the scm-commits
mailing list