Commit graph

102 commits

Author SHA1 Message Date
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
Luca Ferretti
7a67acefca color: Avoid to mark numbers as translatable and add a context to adjectives
close bug 692476
2013-01-25 00:52:48 +01: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
bb77d525bd color: Do not cancel the calibration if the window is unfocussed
We can recover in the session helper to some extent by repeating patches, so
don't quit at the first sign of trouble.
2013-01-23 17:53:03 +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
6950948142 color: Set the target gamma when calibrating 2013-01-23 13:48:20 +00:00
Richard Hughes
7e6ca7f520 color: Get the target whitepoint from the colord schema 2013-01-23 13:48:10 +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
8d5f2908b5 panels: add --sourcedir=$(srcdir) when generating resource list
Like b8e93fb333 but for all panels.
2013-01-07 16:23:57 -05: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
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +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
e419ee7d4e panels: Remove unused X-GNOME-Settings-Panel key 2012-12-11 17:09:04 +01: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
Jeremy Bicha
b0c973c14c color: Use the proper Unicode ellipsis (…) instead of three dots
https://bugzilla.gnome.org/show_bug.cgi?id=689497
2012-12-03 09:13:13 -05:00
Jeremy Bicha
0b4d70d060 color: Add another accessibility relation
https://bugzilla.gnome.org/show_bug.cgi?id=688960
2012-11-26 17:49:56 -05: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
Piotr Drąg
5f124d6008 all: fix up tooltips
Idea from commit d5088b2eb1.
2012-05-18 18:39:31 +02:00
Richard Hughes
d5088b2eb1 color: Fix up a tooltip for the 'Set for all users' button 2012-05-18 16:02:13 +01: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
Colin Walters
48389f283a build: Add missing git.mk to panels/color/icons 2012-03-08 10:26:45 -05: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
b35fac0b2a color: Allow the help text to wrap normally to avoid making the window bigger 2012-02-21 15:01:42 +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
Florian Müllner
4cd7b6c6dc .desktop: Drop prefix from X-GNOME-Keywords
The field has now been included in the spec, so use the standardized
name.
2011-12-19 16:26:40 +01:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +00:00
Bastien Nocera
97c8a63341 color: Make toolbar buttons focusable
https://bugzilla.gnome.org/show_bug.cgi?id=662430
2011-10-25 15:16:50 +01: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