Use existing lock icons
This commit is contained in:
parent
d7a4ebe91d
commit
cb50023c61
12
new-lock-icons.patch
Normal file
12
new-lock-icons.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up polkit-gnome-0.96/polkitgtk/polkitlockbutton.c.new-icons polkit-gnome-0.96/polkitgtk/polkitlockbutton.c
|
||||
--- polkit-gnome-0.96/polkitgtk/polkitlockbutton.c.new-icons 2010-06-14 01:16:56.049851488 -0400
|
||||
+++ polkit-gnome-0.96/polkitgtk/polkitlockbutton.c 2010-06-14 01:17:17.209606831 -0400
|
||||
@@ -749,7 +749,7 @@ update_state (PolkitLockButton *button)
|
||||
}
|
||||
}
|
||||
|
||||
- image = gtk_image_new_from_icon_name (button->priv->authorized ? "stock_lock-open" : "stock_lock",
|
||||
+ image = gtk_image_new_from_icon_name (button->priv->authorized ? "changes-allow" : "changes-prevent",
|
||||
GTK_ICON_SIZE_SMALL_TOOLBAR);
|
||||
gtk_button_set_image (GTK_BUTTON (button->priv->button), image);
|
||||
gtk_label_set_text (GTK_LABEL (button->priv->label), text);
|
@ -1,13 +1,12 @@
|
||||
Summary: PolicyKit integration for the GNOME desktop
|
||||
Name: polkit-gnome
|
||||
Version: 0.96
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: http://www.freedesktop.org/wiki/Software/PolicyKit
|
||||
Group: Applications/System
|
||||
Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: polkit-devel >= 0.95-1
|
||||
BuildRequires: desktop-file-utils
|
||||
@ -25,6 +24,9 @@ Provides: PolicyKit-authentication-agent
|
||||
|
||||
Requires: polkit >= 0.95
|
||||
|
||||
# use icons that exist in current icon theme
|
||||
Patch0: new-lock-icons.patch
|
||||
|
||||
%description
|
||||
polkit-gnome provides an authentication agent for PolicyKit
|
||||
that matches the look and feel of the GNOME desktop.
|
||||
@ -55,13 +57,13 @@ Development documentation for polkit-gnome.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p2 -b .new-lock-icons
|
||||
|
||||
%build
|
||||
%configure --enable-gtk-doc --disable-introspection
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
@ -72,15 +74,14 @@ desktop-file-install --delete-original \
|
||||
--remove-only-show-in GNOME \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
|
||||
|
||||
%if 0%{?fedora} > 12
|
||||
echo 'NotShowIn=KDE;' >>$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
|
||||
desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
|
||||
%endif
|
||||
|
||||
%find_lang polkit-gnome-1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files -f polkit-gnome-1.lang
|
||||
%defattr(-,root,root,-)
|
||||
@ -103,6 +104,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jun 14 2010 Matthias Clasen <mclasen@redhat.com> - 0.96-2
|
||||
- Use lock icons that exist in current icon theme
|
||||
- Minor spec file fixes
|
||||
|
||||
* Fri Jan 15 2010 David Zeuthen <davidz@redhat.com> - 0.96-1
|
||||
- Update to release 0.96
|
||||
- Disable introspection support for the time being
|
||||
|
Loading…
Reference in New Issue
Block a user