Commit graph

222 commits

Author SHA1 Message Date
Richard Hughes
118aa6d1f0 color: Add a small italic indication when there are no color managed devices
This happens on most virtual machines as we can't actually correct a virtual
screen an there's not going to be many interesting USB devices plugged in.

Thanks again to the guys in #gnome-design for all the help.
2011-08-24 13:11:20 +01:00
Richard Hughes
df30d9ea06 color: If there are no profiles or devices then hide the toolbar 2011-08-24 12:35:43 +01:00
Richard Hughes
76a21bdb54 color: Do not attempt to delete the device if it's already added
This was always a workaround for a bug in colord, and we dep on a high enough
version now.
2011-08-24 12:33:23 +01:00
Richard Hughes
37eef8abac color: Remove color managed devices if they are deleted by another process
We need to store the device 'Path' not the device 'Id' in the model as we can't
connect to a device that's already been removed which we need to do when using
the ID.
2011-08-24 12:30:48 +01:00
Richard Hughes
08c71b017f color: Only allow the user to import custom profiles with colord >= 0.1.12
When I was adding the color panel, we ripped out the import code as it was all
pretty hacky and hardcoded, with the intention of doing it the right way in
colord rather than in each client.

At the moment if the user selects 'Import' then the panel does nothing as the
code that would actually make it work was missing.

I've now added the required client code in colord 0.1.12 which makes it possible
to actually import files not listed in the dropdown.

This makes it possible to install a display profile that's been downloaded into
the 'Downloads' directory by firefox.
2011-08-22 23:05:40 +01:00
Richard Hughes
e06ccd9c9e color: Fix a crash where out internal state gets screwed up
I'm just looking for the real bug now.
2011-08-22 23:05:39 +01:00
Michael Terry
0a8669a5b5 Add Unity to OnlyShowIn fields
https://bugzilla.gnome.org/show_bug.cgi?id=653661
2011-06-30 12:44:52 +01:00
Richard Hughes
90b3fb1c2a color: Mark a user visible string as translatable 2011-06-25 09:36:15 +01:00
Richard Hughes
d6bc292a69 color: Actually install the icon in the corect place 2011-06-24 15:03:35 +01:00
Richard Hughes
6dd4817d68 color: Allow advanced users to create virtual devices using the context menu 2011-06-21 16:15:49 +01:00
Richard Hughes
24b2d2534e color: Add a popup menu for advanced users that want to set the system default
A menu popup was the best thing we could find after discussing it on
If anybody has any better ideas then please shout / send patches.

To show the menu, press the context menu key on the keyboard.
2011-06-21 16:15:49 +01:00
Richard Hughes
5912f00273 color: Don't emit a critical warning if the panel starts with a colorimeter already plugged in 2011-06-02 16:39:09 +01:00
Richard Hughes
6c691dacf2 color: Actually sort the new profile box by name by setting the sort column 2011-06-01 18:24:08 +01:00
Richard Hughes
f4228e48ce color: Only attempt to get the main window after the widget has been realized
This fixes a critical warning when adding a profile.
2011-06-01 18:24:08 +01:00
Richard Hughes
a44d36f993 color: Connect to the profile before doing cd_profile_equal -- we use the ID not the path 2011-05-31 10:43:31 +01:00
Richard Hughes
203046ccfb color: Fix a critical warning when devices are removed
It's a treeview, not a listview...
2011-05-30 23:08:00 +01:00
Richard Hughes
e51b037b76 color: Adapt to new async colord API
The libcolord async API used to use a thread to get the properties for the
device and profiles in the background.

This was racy as hell, and was not good API design. Connect to each device and
profiles explicitly before we access the properties.
2011-05-30 22:07:14 +01:00
Richard Hughes
63c7019e95 color: fix up some minor indenting issues 2011-05-30 22:07:14 +01:00
Richard Hughes
e7863d0e02 color: Add the virtual device UI which is used when a physical device connection is impossible
This is designed so power users can create virtual devices (just like in
ColorSync) that represent things like 'Hexachrome Press #2' or 'Cinema'.

This new UI isn't actually wired up yet, and there are no new UI controls as
the UI still needs love from the designers.

This was added at this point for two reasons:

1. To get the translations early so we can enable this later
2. To be able to delete the code out of gcm-prefs.c
2011-05-20 20:40:15 +01:00
Richard Hughes
d75adefd96 color: Force the color treeview scrolled window to be at least 6 rows in height 2011-05-20 16:34:35 +01:00
Richard Hughes
391cd73e5e color: install a preferences-color icon to avoid using the gnome-color-manager icon name 2011-05-20 15:59:06 +01:00
Richard Hughes
2e7e54c3c2 Add a color panel based on the functionality available in gnome-color-manager
All the major functionality is present, but the virtual device stuff needs
further work with the designers before being included.
2011-05-20 15:59:00 +01:00