Removed background rendering code from the background capplet and moved it
to a separate static library.
This commit is contained in:
parent
4571311094
commit
669a1e2f3a
11 changed files with 22 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
SUBDIRS = libsounds capplets control-center idl po
|
||||
SUBDIRS = libsounds libbackground capplets control-center idl po
|
||||
#I removed the root-manager for now
|
||||
#
|
||||
# it generated this error :
|
||||
|
|
|
@ -3,12 +3,10 @@ cappletgroup =
|
|||
bin_PROGRAMS = background-properties-control
|
||||
bin_SCRIPTS = background-properties-capplet
|
||||
|
||||
background_properties_control_LDADD = $(GNOMECC_CAPPLETS_LIBS)
|
||||
background_properties_control_LDADD = $(GNOMECC_CAPPLETS_LIBS) $(top_builddir)/libbackground/libbackground.a
|
||||
|
||||
background_properties_control_SOURCES = \
|
||||
background-properties-capplet.c \
|
||||
preferences.c preferences.h \
|
||||
applier.c applier.h
|
||||
background-properties-capplet.c
|
||||
|
||||
DESKTOP_EXEC_LINE = gnomecc --run-capplet background-properties
|
||||
BONOBO_CONF_DEFINE=-DBONOBO_CONF_ENABLE
|
||||
|
@ -45,7 +43,7 @@ install-data-local:
|
|||
install-data-am: install-data-local
|
||||
####@###GNOMECC_CAPPLETS_DESKTOP_IN_RULE@
|
||||
|
||||
INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) $(BONOBO_CONF_DEFINE)
|
||||
INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) $(BONOBO_CONF_DEFINE) -I$(top_srcdir)/libbackground
|
||||
CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES)
|
||||
EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST) $(defaults_DATA) $(oaf_DATA).in
|
||||
iconsdir = $(GNOMECC_ICONS_DIR)
|
||||
|
|
|
@ -254,6 +254,7 @@ create_dialog (void)
|
|||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
g_type_init ();
|
||||
glade_init ();
|
||||
|
||||
capplet_init (argc, argv, apply_settings, create_dialog, setup_dialog, get_legacy_settings);
|
||||
|
|
|
@ -144,6 +144,7 @@ control-center.spec
|
|||
Makefile
|
||||
po/Makefile.in
|
||||
control-center/Makefile
|
||||
libbackground/Makefile
|
||||
capplets/Makefile
|
||||
capplets/common/Makefile
|
||||
capplets/background/Makefile
|
||||
|
|
|
@ -32,9 +32,6 @@
|
|||
|
||||
#include "capplet-dir-view.h"
|
||||
|
||||
#ifdef USE_HTML
|
||||
extern CappletDirViewImpl capplet_dir_view_html;
|
||||
#endif
|
||||
extern CappletDirViewImpl capplet_dir_view_list;
|
||||
extern CappletDirViewImpl capplet_dir_view_tree;
|
||||
|
||||
|
@ -42,9 +39,6 @@ CappletDirViewImpl *capplet_dir_view_impl[] = {
|
|||
NULL,
|
||||
&capplet_dir_view_list,
|
||||
&capplet_dir_view_tree,
|
||||
#ifdef USE_HTML
|
||||
&capplet_dir_view_html
|
||||
#endif
|
||||
};
|
||||
|
||||
static GtkObjectClass *parent_class;
|
||||
|
|
0
libbackground/ChangeLog
Normal file
0
libbackground/ChangeLog
Normal file
16
libbackground/Makefile.am
Normal file
16
libbackground/Makefile.am
Normal file
|
@ -0,0 +1,16 @@
|
|||
EXTRA_DIST = ChangeLog
|
||||
|
||||
INCLUDES = \
|
||||
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
|
||||
-DGNOME_ICONDIR=\""${prefix}/share/pixmaps"\" \
|
||||
-DG_LOG_DOMAIN=\"capplet-common\" \
|
||||
-I$(top_srcdir)/ \
|
||||
-I$(top_srcdir)/intl \
|
||||
@CAPPLET_CFLAGS@
|
||||
|
||||
noinst_LIBRARIES = libbackground.a
|
||||
|
||||
libbackground_a_SOURCES = \
|
||||
applier.c applier.h \
|
||||
preferences.c preferences.h
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue