- Iconify jobs window into status icon.
This commit is contained in:
parent
73e653a8fd
commit
7199e92748
31
system-config-printer-iconify.patch
Normal file
31
system-config-printer-iconify.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff -up system-config-printer-1.1.13/jobviewer.py.iconify system-config-printer-1.1.13/jobviewer.py
|
||||||
|
--- system-config-printer-1.1.13/jobviewer.py.iconify 2009-09-04 10:35:48.000000000 +0100
|
||||||
|
+++ system-config-printer-1.1.13/jobviewer.py 2009-09-18 13:52:20.235314913 +0100
|
||||||
|
@@ -389,14 +389,24 @@ class JobViewer (GtkGUI, monitor.Watcher
|
||||||
|
return errordialogs.show_IPP_Error (exception, message, self.JobsWindow)
|
||||||
|
|
||||||
|
def toggle_window_display(self, icon, force_show=False):
|
||||||
|
- visible = self.JobsWindow.get_property('visible')
|
||||||
|
+ visible = self.JobsWindow.get_data('visible')
|
||||||
|
if force_show:
|
||||||
|
visible = False
|
||||||
|
|
||||||
|
if visible:
|
||||||
|
- self.JobsWindow.hide()
|
||||||
|
+ w = self.JobsWindow.window
|
||||||
|
+ (s, area, o) = self.statusicon.get_geometry ()
|
||||||
|
+ w.set_skip_taskbar_hint (True)
|
||||||
|
+ w.property_change ("_NET_WM_ICON_GEOMETRY",
|
||||||
|
+ "CARDINAL", 32,
|
||||||
|
+ gtk.gdk.PROP_MODE_REPLACE,
|
||||||
|
+ list (area))
|
||||||
|
+ self.JobsWindow.iconify ()
|
||||||
|
else:
|
||||||
|
- self.JobsWindow.show()
|
||||||
|
+ self.JobsWindow.present ()
|
||||||
|
+ self.JobsWindow.window.set_skip_taskbar_hint (False)
|
||||||
|
+
|
||||||
|
+ self.JobsWindow.set_data ('visible', not visible)
|
||||||
|
|
||||||
|
def on_show_completed_jobs_activate(self, menuitem):
|
||||||
|
if menuitem.get_active():
|
@ -18,6 +18,7 @@ Source2: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{pysmbc_version}.tar.bz2
|
|||||||
Patch1: system-config-printer-data-button-state.patch
|
Patch1: system-config-printer-data-button-state.patch
|
||||||
Patch2: system-config-printer-cancel-traceback.patch
|
Patch2: system-config-printer-cancel-traceback.patch
|
||||||
Patch3: system-config-printer-publish-printers.patch
|
Patch3: system-config-printer-publish-printers.patch
|
||||||
|
Patch4: system-config-printer-iconify.patch
|
||||||
|
|
||||||
BuildRequires: cups-devel >= 1.2
|
BuildRequires: cups-devel >= 1.2
|
||||||
BuildRequires: python-devel >= 2.4
|
BuildRequires: python-devel >= 2.4
|
||||||
@ -81,6 +82,7 @@ printers.
|
|||||||
%patch1 -p1 -b .data-button-state
|
%patch1 -p1 -b .data-button-state
|
||||||
%patch2 -p1 -b .cancel-traceback
|
%patch2 -p1 -b .cancel-traceback
|
||||||
%patch3 -p1 -b .publish-printers
|
%patch3 -p1 -b .publish-printers
|
||||||
|
%patch4 -p1 -b .iconify
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-udev-rules --with-polkit-1
|
%configure --with-udev-rules --with-polkit-1
|
||||||
@ -193,6 +195,7 @@ exit 0
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Sep 18 2009 Tim Waugh <twaugh@redhat.com> 1.1.13-2
|
* Fri Sep 18 2009 Tim Waugh <twaugh@redhat.com> 1.1.13-2
|
||||||
|
- Iconify jobs window into status icon.
|
||||||
- Avoid showing the publish-printers dialog when not necessary.
|
- Avoid showing the publish-printers dialog when not necessary.
|
||||||
- Fixed traceback when cancelling change-driver dialog.
|
- Fixed traceback when cancelling change-driver dialog.
|
||||||
- Fixed data button state.
|
- Fixed data button state.
|
||||||
|
Loading…
Reference in New Issue
Block a user