Commit graph

74 commits

Author SHA1 Message Date
Marek Kasik
8fdbaea0e7 Printers: Store DBus subscription id for unsubscription
Store subscription id returned by g_dbus_connection_signal_subscribe()
and unsubscribe the signal with it when not needed any more. This should
fix rhbz #752168.
2011-11-28 15:41:11 +01:00
Marek Kasik
af40a98f80 Printers: Detect disconnection of printer
Connect to CUPS' "printer-stopped" event so the panel can change state
of the printer when unplugged (rhbz #743884).
2011-11-01 13:51:18 +01:00
Marek Kasik
6029100642 Printers: Set requesting-user-name when getting job info
CUPS has changed its policy for giving informations about jobs.
This fixes problem with actualization of list of print jobs.
2011-10-26 14:17:22 +02:00
Marek Kasik
86532624eb Printers: Make +/- buttons insensitive when can not connect to CUPS
Check whether sad computer is displayed and set sensitivity accordingly.
The check doesn't try to connect to CUPS because of performance reasons.
2011-10-14 19:23:50 +02:00
Marek Kasik
710a8d5c1f Printers: check state of CUPS after start
Check whether CUPS is running and add regular check for the case
when it doesn't. Actualize printers list after CUPS' start (#659721).
2011-09-29 14:53:18 +02:00
Rodrigo Moya
82a9cdb2ed Disable remove button if no printer is selected
https://bugzilla.gnome.org/show_bug.cgi?id=659724
2011-09-21 16:49:44 +02:00
Marek Kasik
337d7535b3 Printers: Make model label and ip address label selectable
This patch add selectable property into CcEditableEntry
and uses it in Printers panel (#651545).
2011-07-15 16:08:31 +02:00
Marek Kasik
3fe26cfe50 Printers: Move check for availability of CUPS to better place
Fixes problem of not showing information about stopped CUPS and
missing printers.
2011-06-03 12:51:57 +02:00
Marek Kasik
8f4895559a Printers: Allow editing of printer name and location
Use CcEditableEntry for editing name and location of local printers
(#649511).
2011-05-27 13:38:15 +02:00
Matthias Clasen
3e263c5764 Printers: Don't add a lockbutton
Instead, implement get_permission to get a lockbutton
in the toolbar.

https://bugzilla.gnome.org/show_bug.cgi?id=650292
2011-05-23 16:10:04 +01:00
Matthias Clasen
02c26cd2c0 Printers: use the new sidebar-list icon size
Also add some padding for good looks.
Overwhelmingly approved by #gnome-design.
2011-05-20 12:32:18 -04:00
Marek Kasik
60e9f49673 Printers: Check that GValue holds int before using it
Check that GValue returned as value of GTK_STYLE_PROPERTY_BORDER_RADIUS
holds int.
2011-05-16 10:43:18 +02:00
Bastien Nocera
8dea9d125b printers: Use GTK+ lock button 2011-05-07 17:46:43 +01:00
Matthias Clasen
8a3368be65 Remove the subscription renewal timeout when the panel goes away
Otherwise, bad things (ie crashes) happen after 500 seconds...
2011-04-29 12:07:13 -04:00
Marek Kasik
7b830a3c6a printers: Cache PPD files for later use
Don't get PPD file from CUPS server every time user needs
an information from it. Have PPD files stored on disk and
delete them on exit.
2011-04-22 14:30:26 +02:00
Marek Kasik
75cfa6db4d printers: Block callback of printer selection when setting treemodel
Don't trigger callback of printer selection when setting treemodel
of printers list. Don't actualize jobs list when printer hasn't changed.
2011-04-13 18:14:13 +02:00
Marek Kasik
2b3da7feb8 printers: Set default printer properly
Clean "~/.cups/lpoptions" file before setting default printer
on local CUPS server. Store default printer to "~/.cups/lpoptions"
if we are connected to a remote CUPS server (#646100).
2011-04-12 16:43:36 +02:00
Marek Kasik
aedbc186a8 printers: Check whether the requested policy is available
Check whether the system has policy
"org.opensuse.cupspkhelper.mechanism.all-edit" before using it (#646813).
2011-04-05 17:10:54 +02:00
Marek Kasik
3349308ea2 printers: Actualize printer list and job list automatically
This patch makes Printers panel to automatically refresh printers list
when a new printer is added or removed. It is refreshed also when a printer
changes its state (to see changes in paused/unpaused state) (rhbz#691718).
It also automatically refresh list of jobs (and also number of active jobs in
main tab) for actual printer (rhbz#691737).
2011-04-05 15:54:09 +02:00
Marek Kasik
885bab172f printers: Do not delete browsed printers
Make "printer-remove-button" button insensitive when
a browsed printer is selected (rhbz#691831).
2011-04-01 16:19:16 +02:00
Marek Kasik
8444b2e38a printers: Make "Print Test Page" button always sensitive
Since "Printer Test Page" prints CUPS' testing page, we don't
need to make it insensitive when the printer doesn't support
"PrintSelfTestPage" maintenance command.
2011-03-29 16:21:14 +02:00
Marek Kasik
cd467f60f1 printers: Use CUPS' test page
Send CUPS' testing ps file to the selected printer when
user press "Print Test Page" button. Fallback to maintenance
command "PrintSelfTestPage" if the file doesn't exist.
2011-03-24 15:12:32 +01:00
Marek Kasik
bb577444b3 printers: Honor "disable-print-setup" setting
Make "Unlock" button and all widgets which depend on it
insensitive if "disable-print-setup" setting is true (#645337).
2011-03-23 15:44:47 +01:00
Marek Kasik
8d77636ac6 printers: Check for "all-edit" policy in "Unlock" button
The policy "all-edit" groups almost all policies from cups-pk-helper,
hence we don't need to authenticate more than once (#645533).
2011-03-23 14:05:31 +01:00
Marek Kasik
a731dcb28b printers: Show IP address of printer
Show address of printer in "IP Address" field.
2011-03-18 16:35:12 +01:00
Alexander Larsson
7c3011c352 Fix include not found for gsettings-desktop-schemas/gdesktop-enums.h
pkg-config --cflags gsettings-desktop-schemas lists:
 $incdir/gsettings-desktop-schemas
and that directory contains a gdesktop-enums.h file, so including
<gsettings-desktop-schemas/gdesktop-enums.h> will fail unless
the parent directory also accidentally got added as -I.
2011-03-18 15:50:05 +01:00
Marek Kasik
e2f6f36b8e printers: Handle no printers situation better
Show "No printer available" in the device list.
Show "Add New Printer" button on the right side.
Show appropriate message if CUPS is not running.
Fixes #641421.
2011-03-18 14:45:57 +01:00
Marek Kasik
bedb8e1218 printers: Don't sort printers by usage
It is very inefficient to get all jobs when there are
thousands of them. Sort it alphabetically.
2011-03-18 12:55:18 +01:00
Bastien Nocera
5fdc90cc8b 2.91.91
Fix wrong include lines, so distcheck works
2011-03-08 11:59:16 +00:00
Marek Kasik
3fb4d4af27 printers: Add dialog for adding new printers
The dialog is able to add printers discovered by cupsGetDevices().
It can also add printers from a remote CUPS server by typing
its address and selecting printer we want to add (#640734).
2011-03-07 17:09:00 +01:00
Bastien Nocera
3336eb9d88 lib: Add a lock button
Instead of using a copy/pasted version, until GTK+ includes
such a button itself.
2011-02-23 14:59:21 +00:00
Marek Kasik
395d083782 printers: Don't show driver version in model name
Get value of ModelName attribute from printer's PPD file
or use cleaned up printer-make-and-model attribute if ModelName
is not available (#641288).
2011-02-22 17:26:31 +01:00
Marek Kasik
83056c17dc printers: Modify jobs list
Don't include owner's name in the list (it is actual user).
Left align text in rows. Take into account system settings
when showing time (12h/24h). Show headers.
2011-02-14 14:02:17 +01:00
Marek Kasik
8db5e051cd printers: Set Options and Show buttons sensitive
Set "Options" button and "Show" button sensitive if there is a printer
selected.
2011-02-14 13:52:19 +01:00
Marek Kasik
45df865718 printer: Some UI tweaks
Set minimal width of renderer showing names of printers to 120 pixels.
Set also ellipsizing for the renderer. Set some widgets insensitive
when there is no printer (#641421). Set correct character for empty
fields. Always set background color for supply levels' GtkDrawingArea.
2011-02-10 15:34:20 +01:00
Marek Kasik
aa0f4765c4 printers: Replace "Idle" state by "Ready" 2011-02-10 12:34:15 +01:00
Marek Kasik
0f1caabc33 printers: Don't try to draw empty ink level 2011-02-10 11:04:17 +01:00
Marek Kasik
88ff47618b printers: Don't show printers separator when not needed
Don't show printers separator when there are only unused printers.
2011-02-10 11:00:27 +01:00
Marek Kasik
fc4bf8bf9d printers: Change widget showing supply levels
Show Ink/Toner levels in one rectangle now. It sorts
levels and shows the highest level. It paints the lower
levels on top of that. So the lowest level is on top
(overlapping the others).
It also shows "Ink Level"/"Toner Level"/"Supply Level"
label for corresponding supplies now.
2011-02-08 16:27:50 +01:00
Luca Ferretti
dfdc194cbe printers: add translation context to statuses (#641339)
Add translation context to printer status and job status. Increase required
inltool to 0.40.1 in order to use NC_(). See bug #641339 for details.
2011-02-07 11:55:27 +01:00
Luca Ferretti
18d764cf9f printers: l10n fixes for jobs count
use ngettext for "%d active" message and don't mark as translatable
the related placeholder in printers.ui file
Slightly modified by Marek Kasik.
2011-02-07 10:56:06 +01:00
Marek Kasik
2406752685 printers: Sort printers by usage
Sort printers by amount of jobs sent to them (#641285). Separate
unused printers by separator from the rest of printers.
2011-02-04 17:09:00 +01:00
Marek Kasik
6d27be8f78 printers: Add unlock button (#640733)
Add unlock button from the User Accounts panel to the Printer panel.
2011-02-02 16:59:50 +01:00
William Jon McCann
04f84937a6 network: use emblem-default-symbolic for the default printer 2011-02-02 02:18:07 -05:00
William Jon McCann
111b2785f8 printers: remove unused variables 2011-02-02 00:36:10 -05:00
Matthias Clasen
79752c921a Printers: fix panel width 2011-02-02 00:22:35 -05:00
Marek Kasik
265948473e printers: Show icons of printers in printers list
Mark default printer in printers list.
2011-02-01 16:40:42 +01:00
Marek Kasik
88562eba2d printers: Reorganize main tab
Remove printer's description.
Remove "Clean Print Heads" button.
Move allowed users list to Options tab.
Change printer-disable-button to GtkSwitch.
Show printer's model name.
Show an icon of printer.
2011-02-01 15:05:52 +01:00
Marek Kasik
8ba88c2309 printers: Move list of printer's jobs to notebook tab
Add buttons for switching between different tabs
(tabs are invisible).
Show number of active jobs in main tab.
2011-02-01 11:23:35 +01:00
Marek Kasik
9f2fb8520f printers: Bring back buttons for addition/removal of printers 2011-02-01 10:11:17 +01:00