[gnome-color-manager/wip/hughsie/rm-viewer: 2/3] Move the profile viewer to a new repo



commit 7315347e6236a11f5c5882fd761ba0c26eef38ca
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 8 11:39:09 2019 +0000

    Move the profile viewer to a new repo
    
    The profile viewer has always intended to be something useful, but we don't
    want to show it in gnome-software and so it gets hidden in GNOME... which means
    users don't know it's there and can only start it from the command line.
    
    Delete the viewer here, and put it in a new repo where it can be properly
    included in the desktop, and even built as a Flatpak on Flathub.

 contrib/gnome-color-manager.spec.in                |   28 +-
 data/appdata/meson.build                           |    8 -
 .../org.gnome.ColorProfileViewer.appdata.xml.in    |  195 ---
 data/appdata/ss-calibrate.png                      |  Bin 32671 -> 0 bytes
 data/appdata/ss-cie1931.png                        |  Bin 121387 -> 0 bytes
 data/appdata/ss-info.png                           |  Bin 115767 -> 0 bytes
 data/appdata/ss-picker.png                         |  Bin 40437 -> 0 bytes
 data/figures/meson.build                           |    9 -
 data/figures/viewer-example-00.png                 |  Bin 148182 -> 0 bytes
 data/figures/viewer-example-01.png                 |  Bin 151540 -> 0 bytes
 data/figures/viewer-example-02.png                 |  Bin 138147 -> 0 bytes
 data/figures/viewer-example-03.png                 |  Bin 137003 -> 0 bytes
 data/meson.build                                   |    2 -
 data/org.gnome.ColorProfileViewer.desktop.in       |   16 -
 man/gcm-viewer.sgml                                |   75 -
 man/meson.build                                    |    7 -
 po/POTFILES.in                                     |    4 -
 src/gcm-cell-renderer-color.c                      |  185 ---
 src/gcm-cell-renderer-color.h                      |   60 -
 src/gcm-cell-renderer-profile-text.c               |  203 ---
 src/gcm-cell-renderer-profile-text.h               |   60 -
 src/gcm-cie-widget.c                               | 1131 -------------
 src/gcm-cie-widget.h                               |   59 -
 src/gcm-debug.c                                    |   14 -
 src/gcm-debug.h                                    |    1 -
 src/gcm-gamma-widget.c                             |  281 ----
 src/gcm-gamma-widget.h                             |   56 -
 src/gcm-self-test.c                                |  157 +-
 src/gcm-trc-widget.c                               |  324 ----
 src/gcm-trc-widget.h                               |   56 -
 src/gcm-utils.c                                    |  100 --
 src/gcm-utils.h                                    |    6 -
 src/gcm-viewer.c                                   | 1667 --------------------
 src/gcm-viewer.gresource.xml                       |    6 -
 src/gcm-viewer.ui                                  | 1138 -------------
 src/meson.build                                    |   40 -
 36 files changed, 4 insertions(+), 5884 deletions(-)
---
diff --git a/contrib/gnome-color-manager.spec.in b/contrib/gnome-color-manager.spec.in
index 2386ff3..08e48ed 100644
--- a/contrib/gnome-color-manager.spec.in
+++ b/contrib/gnome-color-manager.spec.in
@@ -59,37 +59,17 @@ Extra utilities not normally required to calibrate.
 
 %find_lang %name --with-gnome
 
-%post
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-update-desktop-database %{_datadir}/applications &> /dev/null || :
-update-mime-database %{_datadir}/mime &> /dev/null || :
-
-%postun
-if [ $1 -eq 0 ]; then
-    touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
-    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
-    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
-fi
-update-desktop-database %{_datadir}/applications &> /dev/null || :
-update-mime-database %{_datadir}/mime &> /dev/null || :
-
-%posttrans
-gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
-glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
-
 %files -f %{name}.lang
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING
+%license COPYING
+%doc AUTHORS README
 %{_bindir}/gcm-calibrate
 %{_libexecdir}/gcm-helper-exiv
 %dir %{_datadir}/gnome-color-manager
 %dir %{_datadir}/gnome-color-manager/targets
 %dir %{_datadir}/gnome-color-manager/icons
-%dir %{_datadir}/gnome-color-manager/figures
 %dir %{_datadir}/gnome-color-manager/ti1
 %{_datadir}/gnome-color-manager/targets/*
 %{_datadir}/gnome-color-manager/icons/*
-%{_datadir}/gnome-color-manager/figures/*
 %{_datadir}/gnome-color-manager/ti1/*
 %{_datadir}/man/man1/gcm-calibrate.1.gz
 %{_datadir}/applications/gcm-calibrate.desktop
@@ -100,15 +80,11 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %{_bindir}/gcm-import
 %{_bindir}/gcm-inspect
 %{_bindir}/gcm-picker
-%{_bindir}/gcm-viewer
-%{_datadir}/metainfo/org.gnome.ColorProfileViewer.appdata.xml
 %{_datadir}/applications/gcm-import.desktop
 %{_datadir}/applications/gcm-picker.desktop
-%{_datadir}/applications/org.gnome.ColorProfileViewer.desktop
 %{_datadir}/man/man1/gcm-import.1.gz
 %{_datadir}/man/man1/gcm-inspect.1.gz
 %{_datadir}/man/man1/gcm-picker.1.gz
-%{_datadir}/man/man1/gcm-viewer.1.gz
 
 %changelog
 * #LONGDATE# Richard Hughes <richard hughsie com> #VERSION#-0.#BUILD##ALPHATAG#
diff --git a/data/figures/meson.build b/data/figures/meson.build
index 695429a..26c19d3 100644
--- a/data/figures/meson.build
+++ b/data/figures/meson.build
@@ -1,12 +1,3 @@
-install_data([
-  'viewer-example-00.png',
-  'viewer-example-01.png',
-  'viewer-example-02.png',
-  'viewer-example-03.png',
-  ],
-  install_dir : join_paths(prefixed_datadir, 'gnome-color-manager/figures')
-)
-
 install_data([
   'calibration-long.svg',
   'calibration-normal.svg',
diff --git a/data/meson.build b/data/meson.build
index 069395c..0ec2df1 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,11 +1,9 @@
-subdir('appdata')
 subdir('figures')
 subdir('icons')
 subdir('targets')
 subdir('ti1')
 
 desktop_files = [
-  'org.gnome.ColorProfileViewer.desktop',
   'gcm-picker.desktop',
   'gcm-calibrate.desktop',
   'gcm-import.desktop',
diff --git a/man/meson.build b/man/meson.build
index 594fbb7..8fd5793 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -28,11 +28,4 @@ if docbook2man.found()
     install : true,
     install_dir : join_paths(prefixed_mandir, 'man1'),
   )
-  custom_target('gcm-viewer-man',
-    output : 'gcm-viewer.1',
-    input : 'gcm-viewer.sgml',
-    command : [docbook2man, '@INPUT@', '--output', 'man'],
-    install : true,
-    install_dir : join_paths(prefixed_mandir, 'man1'),
-  )
 endif
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1aaf198..7df1b32 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,10 +1,8 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
-data/appdata/org.gnome.ColorProfileViewer.appdata.xml.in
 data/gcm-calibrate.desktop.in
 data/gcm-import.desktop.in
 data/gcm-picker.desktop.in
-data/org.gnome.ColorProfileViewer.desktop.in
 src/gcm-calibrate-argyll.c
 src/gcm-calibrate.c
 src/gcm-calibrate-main.c
@@ -15,5 +13,3 @@ src/gcm-inspect.c
 src/gcm-picker.c
 src/gcm-picker.ui
 src/gcm-utils.c
-src/gcm-viewer.c
-src/gcm-viewer.ui
diff --git a/src/gcm-debug.c b/src/gcm-debug.c
index fc94f2a..e68676f 100644
--- a/src/gcm-debug.c
+++ b/src/gcm-debug.c
@@ -29,20 +29,6 @@
 static gboolean _verbose = FALSE;
 static gboolean _console = FALSE;
 
-gboolean
-gcm_debug_is_verbose (void)
-{
-       /* local first */
-       if (_verbose)
-                return TRUE;
-
-       /* fall back to env variable */
-       if (g_getenv ("VERBOSE") != NULL)
-                return TRUE;
-       return FALSE;
-}
-
-
 static void
 gcm_debug_ignore_cb (const gchar *log_domain, GLogLevelFlags log_level,
                     const gchar *message, gpointer user_data)
diff --git a/src/gcm-debug.h b/src/gcm-debug.h
index 7ecae69..c0f665f 100644
--- a/src/gcm-debug.h
+++ b/src/gcm-debug.h
@@ -24,7 +24,6 @@
 
 #include <glib.h>
 
-gboolean        gcm_debug_is_verbose           (void);
 GOptionGroup   *gcm_debug_get_option_group     (void);
 void            gcm_debug_setup                (gboolean        enabled);
 
diff --git a/src/gcm-self-test.c b/src/gcm-self-test.c
index 9c9843b..051c769 100644
--- a/src/gcm-self-test.c
+++ b/src/gcm-self-test.c
@@ -28,12 +28,9 @@
 
 #include "gcm-brightness.h"
 #include "gcm-calibrate.h"
-#include "gcm-cie-widget.h"
 #include "gcm-debug.h"
 #include "gcm-exif.h"
-#include "gcm-gamma-widget.h"
 #include "gcm-print.h"
-#include "gcm-trc-widget.h"
 #include "gcm-utils.h"
 
 static void
@@ -93,70 +90,6 @@ gcm_test_calibrate_func (void)
        g_assert_cmpstr (manufacturer, ==, "NIKON CORPORATION");
 }
 
-static void
-gcm_test_cie_widget_func (void)
-{
-       GtkWidget *widget;
-       GtkWidget *image;
-       GtkWidget *dialog;
-       GtkWidget *vbox;
-       gboolean ret;
-       gint response;
-       CdColorYxy white_Yxy;
-       CdColorYxy red_Yxy;
-       CdColorYxy green_Yxy;
-       CdColorYxy blue_Yxy;
-       g_autoptr(CdColorXYZ) blue = NULL;
-       g_autoptr(CdColorXYZ) green = NULL;
-       g_autoptr(CdColorXYZ) red = NULL;
-       g_autoptr(CdColorXYZ) white = NULL;
-       g_autoptr(CdIcc) profile = NULL;
-       g_autoptr(GFile) file = NULL;
-
-       widget = gcm_cie_widget_new ();
-       g_assert (widget != NULL);
-
-       profile = cd_icc_new ();
-       file = g_file_new_for_path (TESTDATADIR "/bluish.icc");
-       ret = cd_icc_load_file (profile, file, CD_ICC_LOAD_FLAGS_NONE, NULL, NULL);
-       g_assert (ret);
-       g_object_get (profile,
-                     "white", &white,
-                     "red", &red,
-                     "green", &green,
-                     "blue", &blue,
-                     NULL);
-
-       cd_color_xyz_to_yxy (white, &white_Yxy);
-       cd_color_xyz_to_yxy (red, &red_Yxy);
-       cd_color_xyz_to_yxy (green, &green_Yxy);
-       cd_color_xyz_to_yxy (blue, &blue_Yxy);
-
-       g_object_set (widget,
-                     "red", &red_Yxy,
-                     "green", &green_Yxy,
-                     "blue", &blue_Yxy,
-                     "white", &white_Yxy,
-                     NULL);
-
-       /* show in a dialog as an example */
-       dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, 
GTK_BUTTONS_YES_NO, "Does CIE widget match\nthe picture below?");
-       image = gtk_image_new_from_file (TESTDATADIR "/cie-widget.png");
-       vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
-       gtk_box_pack_end (GTK_BOX(vbox), widget, TRUE, TRUE, 12);
-       gtk_box_pack_end (GTK_BOX(vbox), image, TRUE, TRUE, 12);
-       gtk_widget_set_size_request (widget, 300, 300);
-       gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
-       gtk_widget_show (widget);
-       gtk_widget_show (image);
-
-       response = gtk_dialog_run (GTK_DIALOG (dialog));
-
-       g_assert ((response == GTK_RESPONSE_YES));
-
-       gtk_widget_destroy (dialog);
-}
-
 static void
 gcm_test_exif_func (void)
 {
@@ -211,44 +144,6 @@ gcm_test_exif_func (void)
        g_assert (!ret);
 }
 
-static void
-gcm_test_gamma_widget_func (void)
-{
-       GtkWidget *widget;
-       GtkWidget *image;
-       GtkWidget *dialog;
-       GtkWidget *vbox;
-       gint response;
-
-       widget = gcm_gamma_widget_new ();
-       g_assert (widget != NULL);
-
-       g_object_set (widget,
-                     "color-light", 0.5f,
-                     "color-dark", 0.0f,
-                     "color-red", 0.25f,
-                     "color-green", 0.25f,
-                     "color-blue", 0.25f,
-                     NULL);
-
-       /* show in a dialog as an example */
-       dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, 
GTK_BUTTONS_YES_NO, "Does GAMMA widget match\nthe picture below?");
-       image = gtk_image_new_from_file (TESTDATADIR "/gamma-widget.png");
-       vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
-       gtk_box_pack_end (GTK_BOX(vbox), widget, TRUE, TRUE, 12);
-       gtk_box_pack_end (GTK_BOX(vbox), image, TRUE, TRUE, 12);
-       gtk_widget_set_size_request (widget, 300, 300);
-       gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
-       gtk_widget_show (widget);
-       gtk_widget_show (image);
-
-       response = gtk_dialog_run (GTK_DIALOG (dialog));
-
-       g_assert ((response == GTK_RESPONSE_YES));
-
-       gtk_widget_destroy (dialog);
-}
-
 static GPtrArray *
 gcm_print_test_render_cb (GcmPrint *print,  GtkPageSetup *page_setup, gpointer user_data, GError **error)
 {
@@ -273,49 +168,6 @@ gcm_test_print_func (void)
        g_assert (ret);
 }
 
-static void
-gcm_test_trc_widget_func (void)
-{
-       GtkWidget *widget;
-       GtkWidget *image;
-       GtkWidget *dialog;
-       GtkWidget *vbox;
-       gboolean ret;
-       gint response;
-       g_autoptr(CdIcc) profile = NULL;
-    g_autoptr(GFile) file = NULL;
-       g_autoptr(GPtrArray) clut = NULL;
-
-       widget = gcm_trc_widget_new ();
-       g_assert (widget != NULL);
-
-       profile = cd_icc_new ();
-       file = g_file_new_for_path (TESTDATADIR "/AdobeGammaTest.icm");
-       ret = cd_icc_load_file (profile, file, CD_ICC_LOAD_FLAGS_NONE, NULL, NULL);
-       g_assert (ret);
-       clut = cd_icc_get_vcgt (profile, 256, NULL);
-       g_object_set (widget,
-                     "data", clut,
-                     NULL);
-
-       /* show in a dialog as an example */
-       dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, 
GTK_BUTTONS_YES_NO, "Does TRC widget match\nthe picture below?");
-       image = gtk_image_new_from_file (TESTDATADIR "/trc-widget.png");
-       vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
-       gtk_box_pack_end (GTK_BOX(vbox), widget, TRUE, TRUE, 12);
-       gtk_box_pack_end (GTK_BOX(vbox), image, TRUE, TRUE, 12);
-       gtk_widget_set_size_request (widget, 300, 300);
-       gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
-       gtk_widget_show (widget);
-       gtk_widget_show (image);
-
-       response = gtk_dialog_run (GTK_DIALOG (dialog));
-
-       g_assert ((response == GTK_RESPONSE_YES));
-
-       gtk_widget_destroy (dialog);
-}
-
 static void
 gcm_test_utils_func (void)
 {
@@ -372,15 +224,10 @@ main (int argc, char **argv)
        g_test_add_func ("/color/calibrate", gcm_test_calibrate_func);
        g_test_add_func ("/color/exif", gcm_test_exif_func);
        g_test_add_func ("/color/utils", gcm_test_utils_func);
-       if (g_test_thorough ()) {
+       if (g_test_thorough ())
                g_test_add_func ("/color/brightness", gcm_test_brightness_func);
-               g_test_add_func ("/color/trc", gcm_test_trc_widget_func);
-               g_test_add_func ("/color/cie", gcm_test_cie_widget_func);
-               g_test_add_func ("/color/gamma_widget", gcm_test_gamma_widget_func);
-       }
-       if (g_test_slow ()) {
+       if (g_test_slow ())
                g_test_add_func ("/color/print", gcm_test_print_func);
-       }
 
        return g_test_run ();
 }
diff --git a/src/gcm-utils.c b/src/gcm-utils.c
index e7718b0..3841587 100644
--- a/src/gcm-utils.c
+++ b/src/gcm-utils.c
@@ -216,31 +216,6 @@ gcm_utils_ptr_array_to_strv (GPtrArray *array)
        return value;
 }
 
-gboolean
-gcm_gnome_help (const gchar *link_id)
-{
-       g_autoptr(GError) error = NULL;
-       g_autofree gchar *uri = NULL;
-
-       if (link_id)
-               uri = g_strconcat ("help:gnome-color-manager?", link_id, NULL);
-       else
-               uri = g_strdup ("help:gnome-color-manager");
-       g_debug ("opening uri %s", uri);
-
-       gtk_show_uri (NULL, uri, GDK_CURRENT_TIME, &error);
-
-       if (error != NULL) {
-               GtkWidget *d;
-               d = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
-                                           GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", error->message);
-               gtk_dialog_run (GTK_DIALOG(d));
-               gtk_widget_destroy (d);
-               return FALSE;
-       }
-       return TRUE;
-}
-
 void
 gcm_utils_alphanum_lcase (gchar *data)
 {
@@ -316,78 +291,3 @@ gcm_utils_get_pixel_format (GdkPixbuf *pixbuf)
 out:
        return format;
 }
-
-gboolean
-gcm_utils_image_convert (GtkImage *image,
-                        CdIcc *input,
-                        CdIcc *abstract,
-                        CdIcc *output,
-                        GError **error)
-{
-       CdPixelFormat pixel_format;
-       g_autoptr(CdTransform) transform = NULL;
-       GdkPixbuf *pixbuf;
-       GdkPixbuf *original_pixbuf;
-       gboolean ret = TRUE;
-       guchar *data;
-       guint bpp;
-
-       /* get pixbuf */
-       pixbuf = gtk_image_get_pixbuf (image);
-       if (pixbuf == NULL)
-               return FALSE;
-
-       /* work out the pixel format */
-       pixel_format = gcm_utils_get_pixel_format (pixbuf);
-       if (pixel_format == CD_PIXEL_FORMAT_UNKNOWN) {
-               ret = FALSE;
-               g_set_error_literal (error, 1, 0, "format not supported");
-               return FALSE;
-       }
-
-       /* get a copy of the original image, *not* a ref */
-       original_pixbuf = g_object_get_data (G_OBJECT (pixbuf), "GcmImageOld");
-       if (original_pixbuf == NULL) {
-               data = g_memdup (gdk_pixbuf_get_pixels (pixbuf),
-                                gdk_pixbuf_get_bits_per_sample (pixbuf) *
-                                gdk_pixbuf_get_rowstride (pixbuf) *
-                                gdk_pixbuf_get_height (pixbuf) / 8);
-               original_pixbuf = gdk_pixbuf_new_from_data (data,
-                         gdk_pixbuf_get_colorspace (pixbuf),
-                         gdk_pixbuf_get_has_alpha (pixbuf),
-                         gdk_pixbuf_get_bits_per_sample (pixbuf),
-                         gdk_pixbuf_get_width (pixbuf),
-                         gdk_pixbuf_get_height (pixbuf),
-                         gdk_pixbuf_get_rowstride (pixbuf),
-                         (GdkPixbufDestroyNotify) g_free, NULL);
-               g_object_set_data_full (G_OBJECT (pixbuf), "GcmImageOld",
-                                       original_pixbuf,
-                                       (GDestroyNotify) g_object_unref);
-       }
-
-       /* convert in-place */
-       transform = cd_transform_new ();
-       cd_transform_set_input_icc (transform, input);
-       cd_transform_set_abstract_icc (transform, abstract);
-       cd_transform_set_output_icc (transform, output);
-       cd_transform_set_rendering_intent (transform, CD_RENDERING_INTENT_PERCEPTUAL);
-       cd_transform_set_input_pixel_format (transform, pixel_format);
-       cd_transform_set_output_pixel_format (transform, pixel_format);
-       bpp = gdk_pixbuf_get_rowstride (pixbuf) / gdk_pixbuf_get_width (pixbuf);
-       ret = cd_transform_process (transform,
-                                   gdk_pixbuf_get_pixels (original_pixbuf),
-                                   gdk_pixbuf_get_pixels (pixbuf),
-                                   gdk_pixbuf_get_width (pixbuf),
-                                   gdk_pixbuf_get_height (pixbuf),
-                                   gdk_pixbuf_get_rowstride (pixbuf) / bpp,
-                                   NULL,
-                                   error);
-       if (!ret)
-               return FALSE;
-
-       /* refresh */
-       g_object_ref (pixbuf);
-       gtk_image_set_from_pixbuf (image, pixbuf);
-       g_object_unref (pixbuf);
-       return TRUE;
-}
diff --git a/src/gcm-utils.h b/src/gcm-utils.h
index 08cd760..605ee3a 100644
--- a/src/gcm-utils.h
+++ b/src/gcm-utils.h
@@ -38,7 +38,6 @@
 
 GFile          *gcm_utils_get_profile_destination      (GFile                  *file);
 gchar          **gcm_utils_ptr_array_to_strv           (GPtrArray              *array);
-gboolean        gcm_gnome_help                         (const gchar            *link_id);
 gboolean        gcm_utils_output_is_lcd_internal       (const gchar            *output_name);
 gboolean        gcm_utils_output_is_lcd                (const gchar            *output_name);
 void            gcm_utils_alphanum_lcase               (gchar                  *string);
@@ -47,11 +46,6 @@ gboolean      gcm_utils_install_package              (const gchar            *package_name,
                                                         GtkWindow              *window);
 gchar          *gcm_utils_linkify                      (const gchar            *text);
 const gchar    *cd_colorspace_to_localised_string      (CdColorspace            colorspace);
-gboolean        gcm_utils_image_convert                (GtkImage               *image,
-                                                        CdIcc                  *input,
-                                                        CdIcc                  *abstract,
-                                                        CdIcc                  *output,
-                                                        GError                 **error);
 
 #endif /* __GCM_UTILS_H */
 
diff --git a/src/meson.build b/src/meson.build
index 7f9fcaf..94b96a8 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -7,13 +7,6 @@ gcm_picker_resources = gnome.compile_resources(
   c_name : 'gcm',
 )
 
-gcm_viewer_resources = gnome.compile_resources(
-  'gcm-viewer-resources',
-  'gcm-viewer.gresource.xml',
-  source_dir : '.',
-  c_name : 'gcm',
-)
-
 if get_option('exiv')
   executable(
     'gcm-helper-exiv',
@@ -34,11 +27,9 @@ if get_option('exiv')
 endif
 
 shared_srcs = [
-  'gcm-cie-widget.c',
   'gcm-debug.c',
   'gcm-exif.c',
   'gcm-print.c',
-  'gcm-trc-widget.c',
   'gcm-utils.c',
 ]
 
@@ -51,10 +42,6 @@ executable(
     'gcm-calibrate-argyll.h',
     'gcm-calibrate.c',
     'gcm-calibrate.h',
-    'gcm-cell-renderer-profile-text.c',
-    'gcm-cell-renderer-profile-text.h',
-    'gcm-gamma-widget.c',
-    'gcm-gamma-widget.h',
     'gcm-calibrate-main.c',
     shared_srcs
   ],
@@ -141,32 +128,6 @@ executable(
   install : true,
 )
 
-executable(
-  'gcm-viewer',
-  gcm_viewer_resources,
-  sources : [
-    'gcm-cell-renderer-profile-text.c',
-    'gcm-cell-renderer-color.c',
-    'gcm-viewer.c',
-    shared_srcs
-  ],
-  include_directories : [
-    include_directories('..'),
-  ],
-  dependencies : [
-    libcanberra,
-    libtiff,
-    libcolord_gtk,
-    libm,
-    liblcms,
-    libexif,
-    libgio,
-    libgtk,
-  ],
-  c_args : cargs,
-  install : true,
-)
-
 if get_option('tests')
   cargs += ['-DTESTDATADIR="' + join_paths(meson.current_source_dir(), '..', 'data', 'tests') + '"']
   e = executable(
@@ -176,7 +137,6 @@ if get_option('tests')
       'gcm-brightness.c',
       'gcm-calibrate-argyll.c',
       'gcm-calibrate.c',
-      'gcm-gamma-widget.c',
       'gcm-self-test.c',
     ],
     include_directories : [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]