Removed background rendering code from the background capplet and moved it

to a separate static library.
This commit is contained in:
Bradford Hovinen (Gdict maintainer) 2001-12-06 23:53:58 +00:00
parent 4571311094
commit 669a1e2f3a
11 changed files with 22 additions and 12 deletions

View file

@ -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 #I removed the root-manager for now
# #
# it generated this error : # it generated this error :

View file

@ -3,12 +3,10 @@ cappletgroup =
bin_PROGRAMS = background-properties-control bin_PROGRAMS = background-properties-control
bin_SCRIPTS = background-properties-capplet 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_control_SOURCES = \
background-properties-capplet.c \ background-properties-capplet.c
preferences.c preferences.h \
applier.c applier.h
DESKTOP_EXEC_LINE = gnomecc --run-capplet background-properties DESKTOP_EXEC_LINE = gnomecc --run-capplet background-properties
BONOBO_CONF_DEFINE=-DBONOBO_CONF_ENABLE BONOBO_CONF_DEFINE=-DBONOBO_CONF_ENABLE
@ -45,7 +43,7 @@ install-data-local:
install-data-am: install-data-local install-data-am: install-data-local
####@###GNOMECC_CAPPLETS_DESKTOP_IN_RULE@ ####@###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) CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES)
EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST) $(defaults_DATA) $(oaf_DATA).in EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST) $(defaults_DATA) $(oaf_DATA).in
iconsdir = $(GNOMECC_ICONS_DIR) iconsdir = $(GNOMECC_ICONS_DIR)

View file

@ -254,6 +254,7 @@ create_dialog (void)
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
g_type_init ();
glade_init (); glade_init ();
capplet_init (argc, argv, apply_settings, create_dialog, setup_dialog, get_legacy_settings); capplet_init (argc, argv, apply_settings, create_dialog, setup_dialog, get_legacy_settings);

View file

@ -144,6 +144,7 @@ control-center.spec
Makefile Makefile
po/Makefile.in po/Makefile.in
control-center/Makefile control-center/Makefile
libbackground/Makefile
capplets/Makefile capplets/Makefile
capplets/common/Makefile capplets/common/Makefile
capplets/background/Makefile capplets/background/Makefile

View file

@ -32,9 +32,6 @@
#include "capplet-dir-view.h" #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_list;
extern CappletDirViewImpl capplet_dir_view_tree; extern CappletDirViewImpl capplet_dir_view_tree;
@ -42,9 +39,6 @@ CappletDirViewImpl *capplet_dir_view_impl[] = {
NULL, NULL,
&capplet_dir_view_list, &capplet_dir_view_list,
&capplet_dir_view_tree, &capplet_dir_view_tree,
#ifdef USE_HTML
&capplet_dir_view_html
#endif
}; };
static GtkObjectClass *parent_class; static GtkObjectClass *parent_class;

0
libbackground/ChangeLog Normal file
View file

16
libbackground/Makefile.am Normal file
View 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