gnome-control-center/panels/color/cc-color-profile.h
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

68 lines
2.8 KiB
C

/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
* Copyright (C) 2012 Richard Hughes <richard@hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef CC_COLOR_PROFILE_H
#define CC_COLOR_PROFILE_H
#include <gtk/gtk.h>
#include <colord.h>
#define CC_TYPE_COLOR_PROFILE (cc_color_profile_get_type())
#define CC_COLOR_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CC_TYPE_COLOR_PROFILE, CcColorProfile))
#define CC_COLOR_PROFILE_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST((cls), CC_TYPE_COLOR_PROFILE, CcColorProfileClass))
#define CC_IS_COLOR_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CC_TYPE_COLOR_PROFILE))
#define CC_IS_COLOR_PROFILE_CLASS(cls) (G_TYPE_CHECK_CLASS_TYPE((cls), CC_TYPE_COLOR_PROFILE))
#define CC_COLOR_PROFILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), CC_TYPE_COLOR_PROFILE, CcColorProfileClass))
G_BEGIN_DECLS
typedef struct _CcColorProfile CcColorProfile;
typedef struct _CcColorProfileClass CcColorProfileClass;
typedef struct _CcColorProfilePrivate CcColorProfilePrivate;
struct _CcColorProfile
{
GtkBox parent;
/*< private >*/
CcColorProfilePrivate *priv;
};
struct _CcColorProfileClass
{
GtkBoxClass parent_class;
};
GType cc_color_profile_get_type (void);
GtkWidget *cc_color_profile_new (CdDevice *device,
CdProfile *profile,
gboolean is_default);
gboolean cc_color_profile_get_is_default (CcColorProfile *color_profile);
void cc_color_profile_set_is_default (CcColorProfile *color_profile,
gboolean profile_is_default);
CdDevice *cc_color_profile_get_device (CcColorProfile *color_profile);
CdProfile *cc_color_profile_get_profile (CcColorProfile *color_profile);
const gchar *cc_color_profile_get_sortable (CcColorProfile *color_profile);
G_END_DECLS
#endif /* CC_COLOR_PROFILE_H */