Antoine Jacoutot
3db55d68e1
gcm_prefs_is_livecd() should be linux-only
...
/proc/cmdline only exists on Linux and in this case used to check
whether we are running out of a LiveCD.
Signed-off-by: Richard Hughes <richard@hughsie.com>
2013-05-08 12:44:49 +01:00
Richard Hughes
829f703af6
color: Allow uploading to the Internet when using a LiveCD
...
If the user is calibrating on a LiveCD the final finished profile is written to
disk. This somehow needs to be transfered to the main system before it will work.
Two button are now provided, one to save the profile to disk, and one to upload
the profile to the Internet.
2013-04-19 10:42:41 +01:00
Richard Hughes
16b28c2a18
color: Fix a typo where we set the wrong button sensitivity
2013-02-18 17:22:42 +00:00
Richard Hughes
6e3c635fe8
color: Expand profiles assigned to the device when single clicked
...
We only collapse the device if another device is selected.
2013-02-18 17:12:15 +00:00
Richard Hughes
3ac77e5d47
color: Do not unselect the first GtkTreeView item on realize as it makes the UI flicker
2013-02-06 15:22:48 +00:00
Richard Hughes
edc9286a0a
color: Do not show the user display types the selected sensor does not support
...
Additionally, hide the display types page if the sensor only supports one
display technology.
2013-02-06 15:07:06 +00:00
Richard Hughes
dc77c05e91
color: Set the default calibration quality to medium
2013-02-06 12:39:45 +00:00
Richard Hughes
fe3a7df31e
color: Show sRGB and AdobeRGB profiles when selecting a profile for a display
...
The logic here is that you can make expensive hardware emulate a known color
space, for which you shouldn't need to generate a custom profile for.
2013-02-04 11:48:47 +00:00
Richard Hughes
e759f28020
color: Remove some conditional code, the colord dep is new enough
2013-02-04 11:47:05 +00:00
Richard Hughes
4e33954d94
color: Do not show the profile warning label if there are no profiles
...
This can happen if gnome-settings-daemon is not running or the device type is a
camera.
2013-02-03 23:29:06 +00:00
Richard Hughes
98fde07657
color: Allow the user to remove automatically added profiles
...
You need to be running colord from git master for this feature to work.
2013-01-24 16:47:54 +00:00
Richard Hughes
4c9a96260f
color: Show a summary page when running on a LiveCD
...
This matches the mockups from jimmac. You need colord (specifially, the D-Bus
activated helper) from git master to make this work.
You can test this on non-live media by setting CC_COLOR_PANEL_IS_LIVECD=1
before running gnome-control-center.
2013-01-23 20:36:43 +00:00
Richard Hughes
80ec65b2ef
color: Use a EggListBox for the main device display to match the new mockups
...
This matches the new mockups as specified by Allan in
https://raw.github.com/gnome-design-team/gnome-mockups/master/system-settings/color/panel.png
The CcColorDevice and CcColorProfile widgets are lines in the EggListBox and are
smart by watching for changes in each colord device.
To use this new functionality you need colord from git master, and for the
'Laptop' devices to be recognised as internal, you also need to be _running_
gnome-settings-daemon from git, although this is not strictly required.
2013-01-23 15:45:17 +00:00
Richard Hughes
8a353753e0
color: Use colord-session to calibrate the display
...
This allows us to match the new mockups from Allan.
2013-01-23 13:47:47 +00:00
Matthias Clasen
3472c225f9
Fix the build
2013-01-23 07:44:51 -05:00
Matthias Clasen
fcce4dcbe7
color: disconnect signals when the panel goes away
...
The CdClient object is a singleton, thus it could conceivable
survive the panel, even though we drop our reference in dispose.
In that case, the signal handlers have stale user_data, and
bad things might happen when they trigger.
This patch is a guess at the cause for the stacktrace in
https://bugzilla.redhat.com/show_bug.cgi?id=893914
https://bugzilla.gnome.org/show_bug.cgi?id=692354
2013-01-23 06:46:07 -05:00
Richard Hughes
c7e48eb16a
color: Do not crash if no sensors are plugged in
2013-01-08 14:53:18 +00:00
Cosimo Cecchi
bd7e87babe
color: use a GResource for GtkBuilder UI definition
...
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:05 +01:00
Richard Hughes
2040456835
color: Remove the virtual device functionality as it's unused
...
Nobody uses this, and real power users are using the D-Bus API or the command
line already.
2013-01-05 23:00:00 +00:00
Richard Hughes
8ca4de4059
color: Detect multiple sensors if they are plugged in after the panel has loaded
2013-01-05 23:00:00 +00:00
Richard Hughes
b641acbf44
color: Use g_clear_object() in more places
2013-01-05 23:00:00 +00:00
Richard Hughes
6151442050
color: Trivial whitespace fix
...
No code changes.
2013-01-05 23:00:00 +00:00
Richard Hughes
f9584966d8
color: Only show the add button when the device is selected
2013-01-03 09:35:21 +00:00
Richard Hughes
540f37bebe
color: Only show the calibrate button when the device is selected
2013-01-03 09:35:07 +00:00
Bastien Nocera
3686cf7eb8
shell: Make all control-center plugins static
...
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.
By the same token, it will stop external panels from being
created, and loaded.
https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Richard Hughes
3b3b95a8a0
color: Show the user a warning if they try to add a broken profile
...
Broken profiles are very common when the user imports canned profiles from vendors.
2012-11-20 16:10:08 +00:00
Richard Hughes
76e451fd51
color: Do not use a combobox when listing profiles to add to devices
...
On some machines used for pre-press or animation the number of display-suitable
profiles is going to be large. We really don't want to have a GtkComboBox
several times bigger than the height of the screen to navigate.
Also, while we're here get some design feedback from the #gnome-design guys and
fix up some spacing and alignment issues.
2012-11-20 16:10:07 +00:00
Ray Strode
b0e7a5efa8
panels: add register macro
...
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.
This commit does that.
2012-08-21 14:32:33 -04:00
Florian Müllner
186d615dee
color: Add get_help_uri() implementation
...
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
Richard Hughes
93184f16b9
color: Make the 'Set for all users' insensitive if the profile is already set
...
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=676271
2012-05-18 15:59:34 +01:00
Richard Hughes
c31f2eed79
color: Prevent a crash when hotplugging monitors when the color panel is open
2012-03-16 13:45:04 +00:00
Richard Hughes
df164193bb
color: Don't allow the user to add existing profiles to devices
...
The existing code prevents the user from adding the existing default device
profile to the device again, but to prevent a warning message we need to prevent
the user from selecting *any* of the profiles already assigned to the device.
2012-03-15 12:00:26 +00:00
Richard Hughes
5e78f3185c
color: Do not select the device in the treeview if it changes
...
This prevents the treeview 'flickering' when going from selected
device1->profile1 to device2->profile1.
2012-03-10 09:03:57 +00:00
Richard Hughes
2606d607b2
color: Ensure the profile system-wide button is visible
...
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=670513
2012-02-21 19:23:26 +00:00
Richard Hughes
8c3b0bb995
color: Do not set the profile default using a syncronous call
...
Doing this async means the UI doesn't block waiting for it to complete.
2012-02-08 11:52:59 +00:00
Richard Hughes
545d700142
color: Do not print '(null)' for virtual profiles
...
Virtual profiles (e.g. from the PPD for printers) don't have filenames, and so
fall back to the ID for debugging.
NOTE: this warning uncovered a bug in libcolord, which is fixed by commit
876d961665d01f8c37094fe85b0130850a008051 in the colord project.
2012-02-08 11:51:36 +00:00
Richard Hughes
8283232b44
color: Fix a critical warning in the new GtkTreeIter code
2011-10-21 16:01:37 +01:00
Bastien Nocera
ff59277c91
color: Don't return pointer to local variables
...
We were returning the address of a variable allocated on the stack
inside the function to outside.
2011-10-20 15:46:32 +01:00
Bastien Nocera
7f8b2153c8
color: Remove useless NULL check
...
It cannot be NULL when we get to that point.
2011-10-20 15:39:05 +01:00
Bastien Nocera
474abc5272
color: Use a switch statement
...
A little bit cleaner.
2011-10-20 15:30:14 +01:00
Bastien Nocera
0bc99bdda3
color: Fix warning about uninitialised variable
2011-10-20 15:26:51 +01:00
Matthias Clasen
85b0c9c92c
Drop duplicate code
...
Static analyzers complain about this kind of thing.
2011-10-19 18:57:33 -04:00
Richard Hughes
00fb703054
color: After removing a profile select the device so the UI is correct
...
Resolves https://bugzilla.gnome.org/show_bug.cgi?id=661658
2011-10-13 17:03:51 +01:00
Richard Hughes
5f6b8f0da9
color: Show 'Uncalibrated' when a device has a test profile assigned
2011-10-13 16:40:29 +01:00
Richard Hughes
d25fe273d2
color: Don't show profile ages for EDID, test and colorspace profiles
...
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=661669
2011-10-13 16:28:19 +01:00
Richard Hughes
9e1fa3c900
color: Prefix all the test profiles in the 'Add profile' UI
2011-10-13 16:08:29 +01:00
Richard Hughes
c9647e530d
color: Do not show standard colorspaces in the 'Add profile' UI
...
NOTE: You need colord >= 0.1.4 and shared-color-profiles >= 0.1.5 for this
to work.
2011-10-13 15:58:02 +01:00
Richard Hughes
f4ac4f1a0f
color: Improve the 'Add profile' modal dialog
...
Remove the 'Only profiles that are compatible with...' lightbulb helper and
instead just set the dialog title to include the device class, e.g.
'Available Profiles for Printers'.
Resolves https://bugzilla.gnome.org/show_bug.cgi?id=661657
2011-10-13 14:07:16 +01:00
Richard Hughes
104aadaca9
color: Escape profile titles that have markup in the titles
...
This ensures we can show profiles with '<', '>' and '&' in the title.
Resolves https://bugzilla.gnome.org/show_bug.cgi?id=659127
2011-09-15 09:30:56 +01:00
Rodrigo Moya
e09892b905
color: Disable 'View details' button if gcm-viewer is not installed
2011-09-14 14:01:46 +02:00