[gcr/wip/gcr4] Rename gcr-base to gcr



commit 3b6a5dfbe2373c1bfd3c557c9f3fecc4308b4a86
Author: Corentin Noël <corentin noel collabora com>
Date:   Sat Oct 9 13:22:08 2021 +0200

    Rename gcr-base to gcr
    
    Do not include the GTK3 header by default.

 docs/reference/gcr/meson.build        |  2 +-
 gcr/frob-certificate-request.c        |  2 +-
 gcr/frob-openpgp.c                    |  2 +-
 gcr/frob-parser.c                     |  2 +-
 gcr/gcr-base.h                        | 64 -----------------------
 gcr/gcr-ssh-agent-service.c           |  2 +-
 gcr/gcr.h                             | 30 ++++++++++-
 gcr/{gcr-base.symbols => gcr.symbols} |  0
 gcr/{libgcr-base.map => libgcr.map}   |  0
 gcr/meson.build                       | 96 ++++++++++++++++-------------------
 gcr/test-certificate-chain.c          |  2 +-
 gcr/test-certificate.c                |  2 +-
 gcr/test-fingerprint.c                |  2 +-
 gcr/test-gnupg-collection.c           |  2 +-
 gcr/test-gnupg-process.c              |  2 +-
 gcr/test-openpgp.c                    |  2 +-
 gcr/test-openssh.c                    |  2 +-
 gcr/test-parser.c                     |  2 +-
 gcr/test-pkcs11-certificate.c         |  2 +-
 gcr/test-secret-exchange.c            |  2 +-
 gcr/test-simple-certificate.c         |  2 +-
 gcr/test-ssh-askpass.c                |  2 +-
 gcr/test-subject-public-key.c         |  2 +-
 gcr/test-system-prompt.c              |  2 +-
 gcr/test-trust.c                      |  2 +-
 gcr/test-util.c                       |  2 +-
 ui/frob-certificate.c                 |  1 +
 ui/frob-combo-selector.c              |  3 +-
 ui/frob-key.c                         |  3 +-
 ui/frob-prompt.c                      |  4 +-
 ui/frob-tree-selector.c               |  3 +-
 ui/frob-unlock-options.c              |  3 +-
 ui/gcr-prompter-tool.c                |  1 +
 ui/gcr-ui.h                           |  2 +-
 ui/gcr-viewer-widget.h                |  3 ++
 ui/gcr-viewer-window.c                |  4 ++
 ui/gcr-viewer-window.h                |  3 +-
 ui/meson.build                        |  4 +-
 38 files changed, 118 insertions(+), 148 deletions(-)
---
diff --git a/docs/reference/gcr/meson.build b/docs/reference/gcr/meson.build
index 43528c8..6c3f827 100644
--- a/docs/reference/gcr/meson.build
+++ b/docs/reference/gcr/meson.build
@@ -68,7 +68,7 @@ gnome.gtkdoc('gcr',
     include_directories('../../../ui'),
   ],
   ignore_headers: gcr_docs_ignore_headers,
-  dependencies: [ gcr_base_dep, gcr_ui_dep ],
+  dependencies: [ gcr_dep, gcr_ui_dep ],
   gobject_typesfile: 'gcr.types',
   html_assets: gcr_docs_images,
   scan_args: [
diff --git a/gcr/frob-certificate-request.c b/gcr/frob-certificate-request.c
index 12e01b9..38a42bd 100644
--- a/gcr/frob-certificate-request.c
+++ b/gcr/frob-certificate-request.c
@@ -23,7 +23,7 @@
 
 #include "console-interaction.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 
 #include "egg/egg-armor.h"
 
diff --git a/gcr/frob-openpgp.c b/gcr/frob-openpgp.c
index 433056b..7846f29 100644
--- a/gcr/frob-openpgp.c
+++ b/gcr/frob-openpgp.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-openpgp.h"
 #include "gcr/gcr-record.h"
 
diff --git a/gcr/frob-parser.c b/gcr/frob-parser.c
index 1abf2e9..f071eb5 100644
--- a/gcr/frob-parser.c
+++ b/gcr/frob-parser.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 
 #include <unistd.h>
 #include <string.h>
diff --git a/gcr/gcr-ssh-agent-service.c b/gcr/gcr-ssh-agent-service.c
index 3b5a4ca..4b3efb3 100644
--- a/gcr/gcr-ssh-agent-service.c
+++ b/gcr/gcr-ssh-agent-service.c
@@ -37,7 +37,7 @@
 
 #include <gio/gunixsocketaddress.h>
 #include <glib/gstdio.h>
-#include <gcr/gcr-base.h>
+#include <gcr/gcr.h>
 
 #ifdef WITH_SYSTEMD
 #include <systemd/sd-daemon.h>
diff --git a/gcr/gcr.h b/gcr/gcr.h
index 966163a..5766c5a 100644
--- a/gcr/gcr.h
+++ b/gcr/gcr.h
@@ -28,8 +28,34 @@
 
 #include <glib.h>
 
-#include "gcr/gcr-base.h"
-#include "ui/gcr-ui.h"
+#define __GCR_INSIDE_HEADER__
+
+#include <gcr/gcr-types.h>
+
+#include <gcr/gcr-certificate.h>
+#include <gcr/gcr-certificate-chain.h>
+#include <gcr/gcr-certificate-request.h>
+#include <gcr/gcr-column.h>
+#include <gcr/gcr-enum-types-base.h>
+#include <gcr/gcr-filter-collection.h>
+#include <gcr/gcr-icons.h>
+#include <gcr/gcr-importer.h>
+#include <gcr/gcr-library.h>
+#include <gcr/gcr-mock-prompter.h>
+#include <gcr/gcr-parser.h>
+#include <gcr/gcr-pkcs11-certificate.h>
+#include <gcr/gcr-prompt.h>
+#include <gcr/gcr-secret-exchange.h>
+#include <gcr/gcr-secure-memory.h>
+#include <gcr/gcr-simple-certificate.h>
+#include <gcr/gcr-simple-collection.h>
+#include <gcr/gcr-ssh-askpass.h>
+#include <gcr/gcr-system-prompt.h>
+#include <gcr/gcr-system-prompter.h>
+#include <gcr/gcr-trust.h>
+#include <gcr/gcr-union-collection.h>
+#include <gcr/gcr-unlock-options.h>
+#include <gcr/gcr-version.h>
 
 #undef __GCR_INSIDE_HEADER__
 
diff --git a/gcr/gcr-base.symbols b/gcr/gcr.symbols
similarity index 100%
rename from gcr/gcr-base.symbols
rename to gcr/gcr.symbols
diff --git a/gcr/libgcr-base.map b/gcr/libgcr.map
similarity index 100%
rename from gcr/libgcr-base.map
rename to gcr/libgcr.map
diff --git a/gcr/meson.build b/gcr/meson.build
index 0d5672c..c2c78f4 100644
--- a/gcr/meson.build
+++ b/gcr/meson.build
@@ -1,6 +1,6 @@
-gcr_base_headers_install_dir = 'gcr-@0@'.format(gcr_major_version) / 'gcr'
+gcr_headers_install_dir = 'gcr-@0@'.format(gcr_major_version) / 'gcr'
 
-gcr_base_public_sources = files(
+gcr_public_sources = files(
   'gcr-certificate.c',
   'gcr-certificate-chain.c',
   'gcr-certificate-request.c',
@@ -27,7 +27,7 @@ gcr_base_public_sources = files(
   'gcr-union-collection.c',
 )
 
-gcr_base_private_sources = files(
+gcr_private_sources = files(
   'gcr-callback-output-stream.c',
   'gcr-certificate-extensions.c',
   'gcr-column.c',
@@ -48,8 +48,8 @@ gcr_base_private_sources = files(
   'gcr-util.c',
 )
 
-gcr_base_headers = files(
-  'gcr-base.h',
+gcr_headers = files(
+  'gcr.h',
   'gcr-certificate.h',
   'gcr-certificate-chain.h',
   'gcr-certificate-request.h',
@@ -90,12 +90,12 @@ gcr_version_h = configure_file(input: 'gcr-version.h.in',
   configuration: gcr_version_conf,
 )
 
-gcr_base_headers += gcr_version_h
+gcr_headers += gcr_version_h
 
 gcr_enums_gen = gnome.mkenums_simple('gcr-enum-types-base',
-  sources: gcr_base_headers,
+  sources: gcr_headers,
   install_header: true,
-  install_dir: get_option('includedir') / gcr_base_headers_install_dir,
+  install_dir: get_option('includedir') / gcr_headers_install_dir,
 )
 
 gcr_marshal_gen = gnome.genmarshal('gcr-marshal',
@@ -123,23 +123,23 @@ gcr_oids = custom_target('gcr-oids',
   ]
 )
 
-gcr_base_sources = [
-  gcr_base_private_sources,
-  gcr_base_public_sources,
+gcr_sources = [
+  gcr_private_sources,
+  gcr_public_sources,
   gcr_enums_gen,
   gcr_marshal_gen,
   gcr_dbus_gen,
   gcr_oids,
 ]
 
-gcr_base_deps = [
+gcr_deps = [
   glib_deps,
   p11kit_dep,
   libegg_dep,
   gck_dep,
 ]
 
-gcr_base_cflags = [
+gcr_cflags = [
   '-DG_LOG_DOMAIN="Gcr"',
   '-DGCR_COMPILATION',
   '-DGCR_API_SUBJECT_TO_CHANGE',
@@ -148,34 +148,28 @@ gcr_base_cflags = [
   '-D_XOPEN_SOURCE',   # Needed for strptime()
 ]
 
-gcr_base_symbolmap = meson.current_source_dir() / 'libgcr-base.map'
-gcr_base_linkflags = cc.get_supported_link_arguments(
-  '-Wl,--version-script,@0@'.format(gcr_base_symbolmap),
+gcr_symbolmap = meson.current_source_dir() / 'libgcr.map'
+gcr_linkflags = cc.get_supported_link_arguments(
+  '-Wl,--version-script,@0@'.format(gcr_symbolmap),
 )
 
-gcr_base_lib = shared_library('gcr-base-@0@'.format(gcr_major_version),
-  gcr_base_sources,
-  dependencies: gcr_base_deps,
-  c_args: gcr_base_cflags,
-  link_args: gcr_base_linkflags,
-  link_depends: gcr_base_symbolmap,
+gcr_lib = shared_library('gcr-@0@'.format(gcr_major_version),
+  gcr_sources,
+  dependencies: gcr_deps,
+  c_args: gcr_cflags,
+  link_args: gcr_linkflags,
+  link_depends: gcr_symbolmap,
   include_directories: config_h_dir,
   version: gcr_soversion,
   install: true,
 )
 
-install_headers(gcr_base_headers,
-  subdir: gcr_base_headers_install_dir,
+install_headers(gcr_headers,
+  subdir: gcr_headers_install_dir,
 )
 
-if get_option('gtk')
-  install_headers('gcr.h',
-    subdir: gcr_base_headers_install_dir,
-  )
-endif
-
-gcr_base_dep = declare_dependency(
-  link_with: gcr_base_lib,
+gcr_dep = declare_dependency(
+  link_with: gcr_lib,
   include_directories: include_directories('..'),
   sources: [
     gcr_enums_gen[1],
@@ -185,18 +179,18 @@ gcr_base_dep = declare_dependency(
 )
 
 if get_option('introspection')
-  gcr_gir = gnome.generate_gir(gcr_base_lib,
-    sources: [ gcr_base_public_sources, gcr_base_headers ],
+  gcr_gir = gnome.generate_gir(gcr_lib,
+    sources: [ gcr_public_sources, gcr_headers ],
     namespace: 'Gcr',
     nsversion: '@0@'.format(gcr_major_version),
-    packages: gcr_base_deps,
-    export_packages: 'gcr-base-@0@'.format(gcr_major_version),
+    packages: gcr_deps,
+    export_packages: 'gcr-@0@'.format(gcr_major_version),
     includes: [
       'GObject-2.0',
       'Gio-2.0',
       gck_gir[0],
     ],
-    header: 'gcr/gcr-base.h',
+    header: 'gcr/gcr.h',
     extra_args: [
       '-DGCR_COMPILATION',
       '-DGCR_API_SUBJECT_TO_CHANGE',
@@ -219,7 +213,7 @@ if get_option('introspection')
 endif
 
 # pkg-config file
-pkgconfig.generate(gcr_base_lib,
+pkgconfig.generate(gcr_lib,
   subdirs: 'gcr-@0@'.format(gcr_major_version),
   requires: [ glib_dep, gio_dep, gobject_dep, p11kit_dep, 'gck-@0@'.format(gck_major_version) ],
   description: 'GObject and GUI library for high level crypto parsing and display',
@@ -250,7 +244,7 @@ if get_option('ssh_agent')
 
   gcr_ssh_agent = executable('gcr-ssh-agent',
     gcr_ssh_agent_lib_sources + [ 'gcr-ssh-agent.c' ],
-    dependencies: [ gcr_base_deps, gcr_base_dep, libsecret_dep, libsystemd_deps ],
+    dependencies: [ gcr_deps, gcr_dep, libsecret_dep, libsystemd_deps ],
     c_args: [
       '-DGCR_COMPILATION',
       '-DGCR_API_SUBJECT_TO_CHANGE',
@@ -280,7 +274,7 @@ if get_option('ssh_agent')
 
   gcr_ssh_agent_test_lib = static_library('gcr-ssh-agent-test',
     sources: gcr_ssh_agent_lib_sources + [ 'gcr-ssh-agent-test.c' ],
-    dependencies: [ gcr_base_deps, gcr_base_dep, libsecret_dep, libsystemd_deps ],
+    dependencies: [ gcr_deps, gcr_dep, libsecret_dep, libsystemd_deps ],
     c_args: [
       '-DGCR_COMPILATION',
       '-DGCR_API_SUBJECT_TO_CHANGE',
@@ -298,9 +292,9 @@ if get_option('ssh_agent')
   foreach _test : gcr_ssh_agent_test_names
     test_bin = executable('test-ssh-agent-'+_test,
       'test-ssh-agent-@0@.c'.format(_test),
-      dependencies: [ gcr_base_deps, gcr_base_dep ],
+      dependencies: [ gcr_deps, gcr_dep ],
       link_with: [ gcr_ssh_agent_test_lib, egg_test_lib ],
-      c_args: [ gcr_base_cflags, gcr_ssh_agent_test_cflags ],
+      c_args: [ gcr_cflags, gcr_ssh_agent_test_cflags ],
       include_directories: config_h_dir,
     )
 
@@ -361,14 +355,14 @@ gcr_test_cflags = [
 foreach _test : gcr_test_names
   test_bin = executable('test-'+_test,
     'test-@0@.c'.format(_test),
-    dependencies: [ gcr_base_deps, gcr_base_dep ],
+    dependencies: [ gcr_deps, gcr_dep ],
     link_with: [ gck_test_lib, egg_test_lib ],
-    c_args: [ gcr_base_cflags, gcr_test_cflags ],
+    c_args: [ gcr_cflags, gcr_test_cflags ],
     include_directories: config_h_dir,
   )
 
   test(_test, test_bin,
-    suite: 'gcr-base',
+    suite: 'gcr',
     depends: gcr_ssh_askpass,
   )
 endforeach
@@ -376,18 +370,18 @@ endforeach
 # Example frob programs
 frob_certificate_request = executable('frob-certificate-request',
   files('frob-certificate-request.c', 'console-interaction.c'),
-  dependencies: [ gcr_base_dep, gcr_base_deps ],
-  c_args: gcr_base_cflags,
+  dependencies: [ gcr_dep, gcr_deps ],
+  c_args: gcr_cflags,
 )
 
 frob_openpgp = executable('frob-openpgp',
   files('frob-openpgp.c'),
-  dependencies: [ gcr_base_dep, gcr_base_deps ],
-  c_args: gcr_base_cflags,
+  dependencies: [ gcr_dep, gcr_deps ],
+  c_args: gcr_cflags,
 )
 
 frob_parser = executable('frob-parser',
   files('frob-parser.c'),
-  dependencies: [ gcr_base_dep, gcr_base_deps ],
-  c_args: gcr_base_cflags,
+  dependencies: [ gcr_dep, gcr_deps ],
+  c_args: gcr_cflags,
 )
diff --git a/gcr/test-certificate-chain.c b/gcr/test-certificate-chain.c
index c4847da..06347e5 100644
--- a/gcr/test-certificate-chain.c
+++ b/gcr/test-certificate-chain.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-internal.h"
 
 #include "egg/egg-asn1x.h"
diff --git a/gcr/test-certificate.c b/gcr/test-certificate.c
index 6603ad4..2fed913 100644
--- a/gcr/test-certificate.c
+++ b/gcr/test-certificate.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-internal.h"
 #include "gcr/gcr-certificate-extensions.h"
 
diff --git a/gcr/test-fingerprint.c b/gcr/test-fingerprint.c
index 417d338..4932560 100644
--- a/gcr/test-fingerprint.c
+++ b/gcr/test-fingerprint.c
@@ -22,7 +22,7 @@
 #include "config.h"
 #define GCR_COMPILATION 1
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-internal.h"
 #include "gcr/gcr-fingerprint.h"
 
diff --git a/gcr/test-gnupg-collection.c b/gcr/test-gnupg-collection.c
index e65900a..b12c399 100644
--- a/gcr/test-gnupg-collection.c
+++ b/gcr/test-gnupg-collection.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-gnupg-collection.h"
 #include "gcr/gcr-gnupg-key.h"
 #include "gcr/gcr-record.h"
diff --git a/gcr/test-gnupg-process.c b/gcr/test-gnupg-process.c
index d6cedd0..827cfe0 100644
--- a/gcr/test-gnupg-process.c
+++ b/gcr/test-gnupg-process.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-callback-output-stream.h"
 #include "gcr/gcr-gnupg-process.h"
 
diff --git a/gcr/test-openpgp.c b/gcr/test-openpgp.c
index afba139..897be02 100644
--- a/gcr/test-openpgp.c
+++ b/gcr/test-openpgp.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-openpgp.h"
 #include "gcr/gcr-record.h"
 
diff --git a/gcr/test-openssh.c b/gcr/test-openssh.c
index 3161736..e3ad367 100644
--- a/gcr/test-openssh.c
+++ b/gcr/test-openssh.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-openssh.h"
 
 #include "egg/egg-testing.h"
diff --git a/gcr/test-parser.c b/gcr/test-parser.c
index 13cbc2b..76960b5 100644
--- a/gcr/test-parser.c
+++ b/gcr/test-parser.c
@@ -26,7 +26,7 @@
 #include "egg/egg-secure-memory.h"
 #include "egg/egg-testing.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-internal.h"
 
 #include "gck/gck.h"
diff --git a/gcr/test-pkcs11-certificate.c b/gcr/test-pkcs11-certificate.c
index 34b30d6..53003e6 100644
--- a/gcr/test-pkcs11-certificate.c
+++ b/gcr/test-pkcs11-certificate.c
@@ -24,7 +24,7 @@
 #include "egg/egg-asn1x.h"
 #include "egg/egg-asn1-defs.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-internal.h"
 
 #include "egg/egg-testing.h"
diff --git a/gcr/test-secret-exchange.c b/gcr/test-secret-exchange.c
index 27d7775..b533670 100644
--- a/gcr/test-secret-exchange.c
+++ b/gcr/test-secret-exchange.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 
 #include "egg/egg-testing.h"
 
diff --git a/gcr/test-simple-certificate.c b/gcr/test-simple-certificate.c
index 9353c5e..945768e 100644
--- a/gcr/test-simple-certificate.c
+++ b/gcr/test-simple-certificate.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-internal.h"
 
 #include "gck/gck-test.h"
diff --git a/gcr/test-ssh-askpass.c b/gcr/test-ssh-askpass.c
index 786ae25..ce91bb9 100644
--- a/gcr/test-ssh-askpass.c
+++ b/gcr/test-ssh-askpass.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 
 #include "egg/egg-testing.h"
 #include "egg/mock-interaction.h"
diff --git a/gcr/test-subject-public-key.c b/gcr/test-subject-public-key.c
index 4d16a7b..a95c38e 100644
--- a/gcr/test-subject-public-key.c
+++ b/gcr/test-subject-public-key.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-subject-public-key.h"
 
 #include "gck/gck-mock.h"
diff --git a/gcr/test-system-prompt.c b/gcr/test-system-prompt.c
index ba60a8f..8930409 100644
--- a/gcr/test-system-prompt.c
+++ b/gcr/test-system-prompt.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-mock-prompter.h"
 
 #include "egg/egg-testing.h"
diff --git a/gcr/test-trust.c b/gcr/test-trust.c
index 6103481..0af02f7 100644
--- a/gcr/test-trust.c
+++ b/gcr/test-trust.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-internal.h"
 
 #include "gck/gck-mock.h"
diff --git a/gcr/test-util.c b/gcr/test-util.c
index 6e7610f..8532c3e 100644
--- a/gcr/test-util.c
+++ b/gcr/test-util.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gcr/gcr-base.h"
+#include "gcr/gcr.h"
 #include "gcr/gcr-util.h"
 
 #include <errno.h>
diff --git a/ui/frob-certificate.c b/ui/frob-certificate.c
index f9cc259..e112b63 100644
--- a/ui/frob-certificate.c
+++ b/ui/frob-certificate.c
@@ -22,6 +22,7 @@
 #include "config.h"
 
 #include "gcr/gcr.h"
+#include <ui/gcr-ui.h>
 
 #include "egg/egg-hex.h"
 
diff --git a/ui/frob-combo-selector.c b/ui/frob-combo-selector.c
index 8263b94..2fa24f6 100644
--- a/ui/frob-combo-selector.c
+++ b/ui/frob-combo-selector.c
@@ -1,7 +1,8 @@
 
 #include "config.h"
 
-#include "gcr/gcr.h"
+#include <gcr/gcr.h>
+#include <ui/gcr-ui.h>
 
 #include <gtk/gtk.h>
 
diff --git a/ui/frob-key.c b/ui/frob-key.c
index 97d216b..f19a9af 100644
--- a/ui/frob-key.c
+++ b/ui/frob-key.c
@@ -21,7 +21,8 @@
 
 #include "config.h"
 
-#include "gcr/gcr.h"
+#include <gcr/gcr.h>
+#include <ui/gcr-ui.h>
 
 #include <gtk/gtk.h>
 
diff --git a/ui/frob-prompt.c b/ui/frob-prompt.c
index 28b771d..8af23be 100644
--- a/ui/frob-prompt.c
+++ b/ui/frob-prompt.c
@@ -21,8 +21,8 @@
 
 #include "config.h"
 
-#include "gcr/gcr.h"
-#include "gcr/gcr-base.h"
+#include <gcr/gcr.h>
+#include <ui/gcr-ui.h>
 
 #include <gtk/gtk.h>
 #ifdef GDK_WINDOWING_X11
diff --git a/ui/frob-tree-selector.c b/ui/frob-tree-selector.c
index f2a7ef8..2a93274 100644
--- a/ui/frob-tree-selector.c
+++ b/ui/frob-tree-selector.c
@@ -1,7 +1,8 @@
 
 #include "config.h"
 
-#include "gcr/gcr.h"
+#include <gcr/gcr.h>
+#include <ui/gcr-ui.h>
 
 #include <gtk/gtk.h>
 
diff --git a/ui/frob-unlock-options.c b/ui/frob-unlock-options.c
index b9e5b09..cf2f6f0 100644
--- a/ui/frob-unlock-options.c
+++ b/ui/frob-unlock-options.c
@@ -21,7 +21,8 @@
 
 #include "config.h"
 
-#include "gcr/gcr.h"
+#include <gcr/gcr.h>
+#include <ui/gcr-ui.h>
 
 #include <gtk/gtk.h>
 
diff --git a/ui/gcr-prompter-tool.c b/ui/gcr-prompter-tool.c
index 2d3f71e..83f91d1 100644
--- a/ui/gcr-prompter-tool.c
+++ b/ui/gcr-prompter-tool.c
@@ -23,6 +23,7 @@
 #include "config.h"
 
 #include "gcr/gcr.h"
+#include "ui/gcr-ui.h"
 #include "gcr/gcr-dbus-constants.h"
 
 #include <glib/gi18n.h>
diff --git a/ui/gcr-ui.h b/ui/gcr-ui.h
index cbec5b3..2d0c1f7 100644
--- a/ui/gcr-ui.h
+++ b/ui/gcr-ui.h
@@ -28,7 +28,7 @@
 
 #include <glib.h>
 
-#include <gcr/gcr-base.h>
+#include <gcr/gcr.h>
 
 #define __GCR_INSIDE_HEADER__
 
diff --git a/ui/gcr-viewer-widget.h b/ui/gcr-viewer-widget.h
index 93515c5..9da40bd 100644
--- a/ui/gcr-viewer-widget.h
+++ b/ui/gcr-viewer-widget.h
@@ -25,6 +25,9 @@
 
 #include <gtk/gtk.h>
 
+#include <ui/gcr-viewer.h>
+#include <gcr/gcr-parser.h>
+
 #define GCR_TYPE_VIEWER_WIDGET (gcr_viewer_widget_get_type ())
 G_DECLARE_FINAL_TYPE (GcrViewerWidget, gcr_viewer_widget,
                       GCR, VIEWER_WIDGET,
diff --git a/ui/gcr-viewer-window.c b/ui/gcr-viewer-window.c
index a25e10e..904af47 100644
--- a/ui/gcr-viewer-window.c
+++ b/ui/gcr-viewer-window.c
@@ -24,6 +24,10 @@
 
 #include "gcr-viewer-window.h"
 
+#include <ui/gcr-viewer-widget.h>
+#include <ui/gcr-import-button.h>
+
+
 #include <glib/gi18n-lib.h>
 #include <gtk/gtk.h>
 
diff --git a/ui/gcr-viewer-window.h b/ui/gcr-viewer-window.h
index de42926..a179f89 100644
--- a/ui/gcr-viewer-window.h
+++ b/ui/gcr-viewer-window.h
@@ -27,7 +27,8 @@
 
 #ifndef GCR_DISABLE_DEPRECATED
 
-#include "gcr/gcr.h"
+#include <gcr/gcr.h>
+#include <ui/gcr-viewer.h>
 
 #define GCR_TYPE_VIEWER_WINDOW               (gcr_viewer_window_get_type ())
 #define GCR_VIEWER_WINDOW(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_VIEWER_WINDOW, 
GcrViewerWindow))
diff --git a/ui/meson.build b/ui/meson.build
index e656ea2..ba8e873 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -82,7 +82,7 @@ gcr_ui_deps = [
   p11kit_dep,
   libegg_dep,
   gck_dep,
-  gcr_base_dep,
+  gcr_dep,
   gtk_dep,
 ]
 
@@ -119,7 +119,7 @@ gcr_ui_pkgconf_deps = [
   gio_dep,
   gobject_dep,
   'gck-@0@'.format(gck_major_version),
-  'gcr-base-@0@'.format(gcr_major_version),
+  'gcr-@0@'.format(gcr_major_version),
   gtk_dep,
 ]
 pkgconfig.generate(gcr_ui_lib,


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