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.
This commit is contained in:
parent
799134a7ba
commit
65aea316b8
2 changed files with 22 additions and 0 deletions
19
configure.ac
19
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 =======================================
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue