[gnome-control-center/wip/libgnome-control-center: 4/6] Define the extension point name and support variables for panels



commit 65aea316b8b286d82f84dee4bc1a40bb43345a6d
Author: Thomas Wood <thomas wood intel com>
Date:   Wed May 19 16:51:40 2010 +0100

    Define the extension point name and support variables for panels
    
    The extension point name is used to identify modules that implement
    new settings panels using CcPanel.
    
    Also add various libtool flags that will be good practice for new panels.

 configure.ac                       |   19 +++++++++++++++++++
 libgnome-control-center/cc-shell.h |    3 +++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9760386..d729411 100644
--- a/configure.ac
+++ b/configure.ac
@@ -277,6 +277,25 @@ AC_SUBST(GNOMECC_CAPPLETS_CLEANFILES)
 AC_SUBST(GNOMECC_CAPPLETS_CFLAGS)
 AC_SUBST(GNOMECC_CAPPLETS_LIBS)
 
+
+
+dnl =======================================
+dnl Panels
+dnl =======================================
+
+PANELS_DIR="${libdir}/control-center-1/panels"
+AC_SUBST(PANELS_DIR)
+
+PANEL_CFLAGS="-I\$(top_srcdir)/libgnome-control-center/"
+AC_SUBST(PANEL_CFLAGS)
+
+PANEL_LIBS="\$(top_builddir)/libgnome-control-center/libgnome-control-center.la"
+AC_SUBST(PANEL_LIBS)
+
+PANEL_LDFLAGS="-export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'"
+AC_SUBST(PANEL_LDFLAGS)
+
+
 dnl =======================================
 dnl Update Mime Database
 dnl =======================================
diff --git a/libgnome-control-center/cc-shell.h b/libgnome-control-center/cc-shell.h
index 2615b20..55567dc 100644
--- a/libgnome-control-center/cc-shell.h
+++ b/libgnome-control-center/cc-shell.h
@@ -48,6 +48,9 @@ G_BEGIN_DECLS
   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
   CC_TYPE_SHELL, CcShellClass))
 
+
+#define CC_SHELL_PANEL_EXTENSION_POINT "control-center-1"
+
 typedef struct _CcShell CcShell;
 typedef struct _CcShellClass CcShellClass;
 typedef struct _CcShellPrivate CcShellPrivate;



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