diff options
author | Jose Maria Celorio <chema@src.gnome.org> | 2001-07-18 06:36:24 +0000 |
---|---|---|
committer | Jose Maria Celorio <chema@src.gnome.org> | 2001-07-18 06:36:24 +0000 |
commit | ab0fef8323889ce988ff8396b0ae4099f841e8cd (patch) | |
tree | 2cdec34e447fbfc94d2d27b6bea777faee8363bb | |
parent | 35d967aed2132b888dae2a391eb916b87435a8ac (diff) | |
download | gnome-control-center-ab0fef8323889ce988ff8396b0ae4099f841e8cd.tar.gz |
Fix fix fix fix fix & clean stuff. With their changelog entries for your
pleasure.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | acconfig.h | 2 | ||||
-rw-r--r-- | capplets/common/.cvsignore | 1 | ||||
-rw-r--r-- | capplets/default-applications/ChangeLog | 6 | ||||
-rw-r--r-- | capplets/default-applications/Makefile.am | 2 | ||||
-rw-r--r-- | capplets/default-applications/default-applications.desktop.in.in | 2 | ||||
-rw-r--r-- | capplets/mouse/ChangeLog | 7 | ||||
-rw-r--r-- | capplets/mouse/mouse-properties.glade | 2 | ||||
-rw-r--r-- | capplets/mouse/prefs-widget.c | 9 | ||||
-rw-r--r-- | capplets/screensaver/ChangeLog | 12 | ||||
-rw-r--r-- | capplets/screensaver/Makefile.am | 2 | ||||
-rw-r--r-- | capplets/screensaver/expr.c | 1 | ||||
-rw-r--r-- | capplets/screensaver/prefs-widget.c | 12 | ||||
-rw-r--r-- | capplets/screensaver/screensaver-prefs-dialog.c | 6 | ||||
-rw-r--r-- | capplets/screensaver/screensaver.desktop.in.in | 2 | ||||
-rw-r--r-- | capplets/screensaver/screensavers/Makefile.am | 182 | ||||
-rw-r--r-- | capplets/screensaver/selection-dialog.c | 4 | ||||
-rw-r--r-- | configure.in | 80 | ||||
-rw-r--r-- | control-center/ChangeLog | 6 | ||||
-rw-r--r-- | control-center/capplet-dir.c | 12 | ||||
-rw-r--r-- | control-center/main.c | 12 |
21 files changed, 215 insertions, 153 deletions
@@ -1,3 +1,9 @@ +2001-07-18 Chema Celorio <chema@celorio.com> + + * configure.in (GNOMECC_SCREENSAVERS_DIR): define GNOMECC_SCREENSAVERS_DIR + (dnl): remove the check for bonobo-conf and check in the PKG_CONFIG macro + (capplet_modules): add versions that we require + 2001-07-17 Chema Celorio <chema@celorio.com> * configure.in: define the directories diff --git a/acconfig.h b/acconfig.h index 26c07d915..4c3f51333 100644 --- a/acconfig.h +++ b/acconfig.h @@ -11,6 +11,8 @@ #undef GNOMECC_ICONS_DIR #undef GNOMECC_GLADE_DIR #undef GNOMECC_PIXMAPS_DIR +#undef GNOMECC_SCREENSAVERS_DIR + #undef PACKAGE #undef VERSION diff --git a/capplets/common/.cvsignore b/capplets/common/.cvsignore index 051d1bd50..bc7736a39 100644 --- a/capplets/common/.cvsignore +++ b/capplets/common/.cvsignore @@ -1,3 +1,4 @@ Makefile Makefile.in .deps +stamp-h.in
\ No newline at end of file diff --git a/capplets/default-applications/ChangeLog b/capplets/default-applications/ChangeLog index 1431dbc40..172751536 100644 --- a/capplets/default-applications/ChangeLog +++ b/capplets/default-applications/ChangeLog @@ -1,3 +1,9 @@ +2001-07-18 Chema Celorio <chema@celorio.com> + + * default-applications.desktop.in.in (Exec): use the right binary name + + * Makefile.am (INCLUDES): we are not using GNOMESYSCONFDIR. remove + 2001-07-17 Chema Celorio <chema@celorio.com> * Makefile.am (SUBDIRS): clean diff --git a/capplets/default-applications/Makefile.am b/capplets/default-applications/Makefile.am index f6184c01f..57fa459bc 100644 --- a/capplets/default-applications/Makefile.am +++ b/capplets/default-applications/Makefile.am @@ -19,7 +19,7 @@ pixmap_DATA = @XML_I18N_MERGE_DESKTOP_RULE@ @GNOMECC_CAPPLETS_DESKTOP_IN_RULE@ -INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) -DGNOMESYSCONFDIR=\""$(sysconfdir)"\" +INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES) EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST) iconsdir = $(GNOMECC_ICONS_DIR) diff --git a/capplets/default-applications/default-applications.desktop.in.in b/capplets/default-applications/default-applications.desktop.in.in index f54b94f26..cd1475f99 100644 --- a/capplets/default-applications/default-applications.desktop.in.in +++ b/capplets/default-applications/default-applications.desktop.in.in @@ -1,7 +1,7 @@ [Desktop Entry] _Name=Default Applications _Comment=Choose the applications used by default -Exec=default-application-properties-capplet +Exec=default-applications-properties Icon= Terminal=0 Type=Application diff --git a/capplets/mouse/ChangeLog b/capplets/mouse/ChangeLog index 154be9b07..8860888a7 100644 --- a/capplets/mouse/ChangeLog +++ b/capplets/mouse/ChangeLog @@ -1,3 +1,10 @@ +2001-07-18 Chema Celorio <chema@celorio.com> + + * prefs-widget.c (set_pixmap_file): the path of the pixmaps was + changed + + * mouse-properties.glade: set a group for the radio buttons + 2001-07-17 Bradford Hovinen <hovinen@ximian.com> * Makefile.am (EXTRA_DIST): Changed Applications_DATA to diff --git a/capplets/mouse/mouse-properties.glade b/capplets/mouse/mouse-properties.glade index 80d0929cf..4685373b6 100644 --- a/capplets/mouse/mouse-properties.glade +++ b/capplets/mouse/mouse-properties.glade @@ -127,6 +127,7 @@ <label>Left handed</label> <active>False</active> <draw_indicator>True</draw_indicator> + <group>radio_group</group> <child> <left_attach>0</left_attach> <right_attach>1</right_attach> @@ -155,6 +156,7 @@ <label>Right handed</label> <active>False</active> <draw_indicator>True</draw_indicator> + <group>radio_group</group> <child> <left_attach>1</left_attach> <right_attach>2</right_attach> diff --git a/capplets/mouse/prefs-widget.c b/capplets/mouse/prefs-widget.c index 4e21e68be..5797a6c73 100644 --- a/capplets/mouse/prefs-widget.c +++ b/capplets/mouse/prefs-widget.c @@ -104,8 +104,8 @@ prefs_widget_init (PrefsWidget *prefs_widget) "prefs_widget"); gtk_container_add (GTK_CONTAINER (prefs_widget), widget); - set_pixmap_file (prefs_widget, "mouse_left_pixmap", "mouse-left.png"); - set_pixmap_file (prefs_widget, "mouse_right_pixmap", "mouse-right.png"); + set_pixmap_file (prefs_widget, "mouse_left_pixmap", GNOMECC_PIXMAPS_DIR "/mouse-left.png"); + set_pixmap_file (prefs_widget, "mouse_right_pixmap", GNOMECC_PIXMAPS_DIR "/mouse-right.png"); glade_xml_signal_connect_data (prefs_widget->dialog_data, "left_handed_selected_cb", @@ -317,7 +317,6 @@ set_pixmap_file (PrefsWidget *prefs_widget, const gchar *widget_name, const gcha GdkPixbuf *pixbuf; GdkPixmap *pixmap; GdkBitmap *mask; - gchar *path; g_return_if_fail (IS_PREFS_WIDGET (prefs_widget)); g_return_if_fail (widget_name != NULL); @@ -326,9 +325,7 @@ set_pixmap_file (PrefsWidget *prefs_widget, const gchar *widget_name, const gcha widget = WID (widget_name); g_return_if_fail (widget != NULL); - path = gnome_pixmap_file (filename); - pixbuf = gdk_pixbuf_new_from_file (path); - g_free (path); + pixbuf = gdk_pixbuf_new_from_file (filename); if (pixbuf) { gdk_pixbuf_render_pixmap_and_mask (pixbuf, &pixmap, &mask, diff --git a/capplets/screensaver/ChangeLog b/capplets/screensaver/ChangeLog index 92b98cfef..19602eef9 100644 --- a/capplets/screensaver/ChangeLog +++ b/capplets/screensaver/ChangeLog @@ -1,3 +1,15 @@ +2001-07-18 Chema Celorio <chema@celorio.com> + + * screensaver.desktop.in.in: use the right binary name + + * expr.c: include string.h + + * Makefile.am (INCLUDES): remove the -DSSPROP_DIR we now use a define in acclocal.h + + * screensavers/Makefile.am (Screensaversdir): use GNOMECC_SCREENSAVERS_DIR + + * prefs-widget.c (prefs_widget_init): remove a warning + 2001-07-17 Chema Celorio <chema@celorio.com> * Makefile.am (SUBDIRS): clean diff --git a/capplets/screensaver/Makefile.am b/capplets/screensaver/Makefile.am index e00d2a8a2..5f1daf54c 100644 --- a/capplets/screensaver/Makefile.am +++ b/capplets/screensaver/Makefile.am @@ -26,7 +26,7 @@ pixmap_DATA = no-hack.png @XML_I18N_MERGE_DESKTOP_RULE@ @GNOMECC_CAPPLETS_DESKTOP_IN_RULE@ -INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) -DSSPROP_DATADIR=\""${prefix}/share"\" +INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES) EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST) iconsdir = $(GNOMECC_ICONS_DIR) diff --git a/capplets/screensaver/expr.c b/capplets/screensaver/expr.c index 3d81cff57..04f64f885 100644 --- a/capplets/screensaver/expr.c +++ b/capplets/screensaver/expr.c @@ -25,6 +25,7 @@ # include <config.h> #endif +#include <string.h> #include "expr.h" typedef enum { diff --git a/capplets/screensaver/prefs-widget.c b/capplets/screensaver/prefs-widget.c index 284f14bf2..2a1af184b 100644 --- a/capplets/screensaver/prefs-widget.c +++ b/capplets/screensaver/prefs-widget.c @@ -162,7 +162,7 @@ prefs_widget_init (PrefsWidget *prefs_widget) prefs_widget->priv = g_new0 (PrefsWidgetPrivate, 1); prefs_widget->priv->xml = - glade_xml_new (GLADE_DATADIR "/screensaver-properties.glade", + glade_xml_new (GNOMECC_GLADE_DIR "/screensaver-properties.glade", NULL); if (!prefs_widget->priv->xml) return; @@ -171,11 +171,11 @@ prefs_widget_init (PrefsWidget *prefs_widget) titles[i] = gettext (titles[i]); skel = -"<ETableSpecification cursor-mode=\"line\" selection-mode=\"single\" draw-focus=\"true\"> - <ETableColumn model_col=\"0\" draw_grid=\"true\" _title=\"%s\" expansion=\"0.0\" minimum_width=\"20\" resizable=\"false\" cell=\"checkbox\" compare=\"integer\"/> - <ETableColumn model_col=\"1\" draw_grid=\"true\" _title=\"%s\" expansion=\"1.0\" resizable=\"true\" cell=\"string\" compare=\"string\"/> - %s - </ETableSpecification>"; +"<ETableSpecification cursor-mode=\"line\" selection-mode=\"single\" draw-focus=\"true\">" +" <ETableColumn model_col=\"0\" draw_grid=\"true\" _title=\"%s\" expansion=\"0.0\" minimum_width=\"20\" resizable=\"false\" cell=\"checkbox\" compare=\"integer\"/>" +" <ETableColumn model_col=\"1\" draw_grid=\"true\" _title=\"%s\" expansion=\"1.0\" resizable=\"true\" cell=\"string\" compare=\"string\"/>" +" %s" +" </ETableSpecification>"; spec = g_strdup_printf (skel, titles[0], titles[1], table_compute_state (SM_CHOOSE_FROM_LIST)); prefs_widget->priv->etm = diff --git a/capplets/screensaver/screensaver-prefs-dialog.c b/capplets/screensaver/screensaver-prefs-dialog.c index 524f90741..348118074 100644 --- a/capplets/screensaver/screensaver-prefs-dialog.c +++ b/capplets/screensaver/screensaver-prefs-dialog.c @@ -753,14 +753,14 @@ get_argument_data (Screensaver *saver) else lang = g_strdup (""); - file_name = g_strconcat (SSPROP_DATADIR "/screensavers/", + file_name = g_strconcat (GNOMECC_SCREENSAVERS_DIR "/screensavers/", lang, saver->name, ".xml", NULL); doc = xmlParseFile (file_name); g_free (file_name); /* Fall back on default language if given language is not found */ if (!doc && *lang != '\0') { - file_name = g_strconcat (SSPROP_DATADIR "/screensavers/", + file_name = g_strconcat (GNOMECC_SCREENSAVERS_DIR "/screensavers/", saver->name, ".xml", NULL); doc = xmlParseFile (file_name); g_free (file_name); @@ -1680,7 +1680,7 @@ arg_mapping_exists (Screensaver *saver) if (!saver->name) return FALSE; - filename = g_strconcat (SSPROP_DATADIR "/screensavers/", + filename = g_strconcat (GNOMECC_SCREENSAVERS_DIR "/screensavers/", saver->name, ".xml", NULL); if (stat (filename, &buf)) diff --git a/capplets/screensaver/screensaver.desktop.in.in b/capplets/screensaver/screensaver.desktop.in.in index 3250a03e6..8663bb2e2 100644 --- a/capplets/screensaver/screensaver.desktop.in.in +++ b/capplets/screensaver/screensaver.desktop.in.in @@ -1,7 +1,7 @@ [Desktop Entry] _Name=Screensaver _Comment=Configure the settings of the screensaver -Exec=screensaver-properties-capplet +Exec=screensaver-properties Icon=gnome-ccscreensaver.png Terminal=0 Type=Application diff --git a/capplets/screensaver/screensavers/Makefile.am b/capplets/screensaver/screensavers/Makefile.am index 3a13343c8..2dec74efe 100644 --- a/capplets/screensaver/screensavers/Makefile.am +++ b/capplets/screensaver/screensavers/Makefile.am @@ -1,99 +1,99 @@ -Screensaversdir = $(datadir)/screensavers +Screensaversdir = $(GNOMECC_SCREENSAVERS_DIR) Screensavers_DATA = \ - 3d_clock.xml \ - ant.xml \ - atlantis.xml \ + 3d_clock.xml \ + ant.xml \ + atlantis.xml \ attraction.xml \ - blitspin.xml \ - bouboule.xml \ - braid.xml \ - bsod.xml \ - bubble3d.xml \ - bubbles.xml \ - cage.xml \ - compass.xml \ - coral.xml \ - critical.xml \ - crystal.xml \ - cynosure.xml \ - decayscreen.xml \ - deco.xml \ - deluxe.xml \ - demon.xml \ - discrete.xml \ - distort.xml \ - drift.xml \ - epicycle.xml \ - fadeplot.xml \ - flag.xml \ - flame.xml \ - flow.xml \ - forest.xml \ - glplanet.xml \ - galaxy.xml \ - gears.xml \ - goop.xml \ - grav.xml \ - greynetic.xml \ - halo.xml \ - helix.xml \ - hopalong.xml \ - hypercube.xml \ - ifs.xml \ - imsmap.xml \ - interference.xml \ - jigsaw.xml \ - julia.xml \ - kaleidescope.xml \ - kumppa.xml \ - lament.xml \ - laser.xml \ - lightning.xml \ - lisa.xml \ - lissie.xml \ - lmorph.xml \ - loop.xml \ - maze.xml \ - moebius.xml \ - moire.xml \ - moire2.xml \ - morph3d.xml \ - mountain.xml \ - munch.xml \ - noseguy.xml \ - pedal.xml \ - penetrate.xml \ - penrose.xml \ - pipes.xml \ - pyro.xml \ - qix.xml \ - rd-bomb.xml \ - rocks.xml \ - rorschach.xml \ - rotor.xml \ - rubiks_cube.xml \ + blitspin.xml \ + bouboule.xml \ + braid.xml \ + bsod.xml \ + bubble3d.xml \ + bubbles.xml \ + cage.xml \ + compass.xml \ + coral.xml \ + critical.xml \ + crystal.xml \ + cynosure.xml \ + decayscreen.xml\ + deco.xml \ + deluxe.xml \ + demon.xml \ + discrete.xml \ + distort.xml \ + drift.xml \ + epicycle.xml \ + fadeplot.xml \ + flag.xml \ + flame.xml \ + flow.xml \ + forest.xml \ + glplanet.xml \ + galaxy.xml \ + gears.xml \ + goop.xml \ + grav.xml \ + greynetic.xml \ + halo.xml \ + helix.xml \ + hopalong.xml \ + hypercube.xml \ + ifs.xml \ + imsmap.xml \ + interference.xml\ + jigsaw.xml \ + julia.xml \ + kaleidescope.xml\ + kumppa.xml \ + lament.xml \ + laser.xml \ + lightning.xml \ + lisa.xml \ + lissie.xml \ + lmorph.xml \ + loop.xml \ + maze.xml \ + moebius.xml \ + moire.xml \ + moire2.xml \ + morph3d.xml \ + mountain.xml \ + munch.xml \ + noseguy.xml \ + pedal.xml \ + penetrate.xml \ + penrose.xml \ + pipes.xml \ + pyro.xml \ + qix.xml \ + rd-bomb.xml \ + rocks.xml \ + rorschach.xml \ + rotor.xml \ + rubiks_cube.xml\ sierpinski.xml \ - slidescreen.xml \ - slip.xml \ - sonar.xml \ - sphere.xml \ - spiral.xml \ - spotlight.xml \ + slidescreen.xml\ + slip.xml \ + sonar.xml \ + sphere.xml \ + spiral.xml \ + spotlight.xml \ sproingies.xml \ - squiral.xml \ - stairs.xml \ - starfish.xml \ - strange.xml \ + squiral.xml \ + stairs.xml \ + starfish.xml \ + strange.xml \ superquadrics.xml \ - swirl.xml \ - triangle.xml \ - truchet.xml \ - vines.xml \ - worm.xml \ - xflame.xml \ - xjack.xml \ - xlyap.xml \ - xmatrix.xml \ + swirl.xml \ + triangle.xml \ + truchet.xml \ + vines.xml \ + worm.xml \ + xflame.xml \ + xjack.xml \ + xlyap.xml \ + xmatrix.xml \ xroger.xml EXTRA_DIST = $(Screensavers_DATA) README diff --git a/capplets/screensaver/selection-dialog.c b/capplets/screensaver/selection-dialog.c index dfa0fd438..98c6d5283 100644 --- a/capplets/screensaver/selection-dialog.c +++ b/capplets/screensaver/selection-dialog.c @@ -257,7 +257,7 @@ get_known_savers (void) if (known_savers) return known_savers; - parent_dir = opendir (SSPROP_DATADIR "/screensavers"); + parent_dir = opendir (GNOMECC_SCREENSAVERS_DIR "/screensavers"); if (parent_dir == NULL) return NULL; @@ -266,7 +266,7 @@ get_known_savers (void) while ((child_dir = readdir (parent_dir)) != NULL) { if (child_dir->d_name[0] != '.') { fullpath = g_concat_dir_and_file - (SSPROP_DATADIR "/screensavers", + (GNOMECC_SCREENSAVERS_DIR "/screensavers", child_dir->d_name); if (stat (fullpath, &filedata) != -1) { diff --git a/configure.in b/configure.in index 8f87a7600..938ba4cfb 100644 --- a/configure.in +++ b/configure.in @@ -77,16 +77,15 @@ echo "ftp://ftp.labs.redhat.com/pub/imlib/" AC_MSG_ERROR([Fatal Error: no Imlib detected.])]) CFLAGS="-O2 -g -Wall $CFLAGS" +AC_SUBST(CFLAGS) -dnl ============================================= -dnl END : Variables for config_archiverConf.sh.in -dnl ============================================= - +dnl ============================================== +dnl Check for pkg-config +dnl ============================================== AC_PATH_PROG(PKGCONFIG, pkg-config, no) if test "$PKGCONFIG" = no ; then AC_MSG_ERROR(pkg-config was not found. Please install version 0.8.0 or newer from http://www.freedesktop.org/software.) fi - AC_MSG_CHECKING(for pkg-config >= 0.8.0) vers=`$PKGCONFIG --version | awk 'BEGIN { FS = "."; } { print $1 * 1000000 + $2 * 1000 + $3}'` if test "$vers" -ge 8000; then @@ -94,32 +93,47 @@ if test "$vers" -ge 8000; then else AC_MSG_ERROR(You need at least pkg-config 0.8.0 or greater for this version of control-center. Please install a newer version from http://www.freedesktop.org/software.) fi +dnl ============================================== +dnl Check for pkg-config +dnl ============================================== -AC_MSG_CHECKING(for bonobo-conf >= 0.7) -vers=`$PKGCONFIG --version | awk 'BEGIN { FS = "."; } { print $1 * 1000000 + $2 * 1000 + $3}'` -if test "$vers" -ge 7000; then - AC_MSG_RESULT(found) -else - AC_MSG_ERROR(You need at least bonobo-conf 0.7 or greater for this version of control-center.) -fi - -capplet_modules="libcapplet libglade-gnome gdk_pixbuf bonobo_conf gdk_pixbuf_xlib gal $ARCHIVER_MODULE" +dnl ============================================== +dnl Check that we meet the dependencies +dnl ============================================== +capplet_modules="libcapplet >= 1.4.0 libglade-gnome gdk_pixbuf bonobo_conf >= 0.7 gdk_pixbuf_xlib gal > 0.8 $ARCHIVER_MODULE" PKG_CHECK_MODULES(CAPPLET, $capplet_modules) -dnl PKG_CHECK_MODULES(BG_CAPPLET, $capplet_modules gdk_pixbuf_xlib) -dnl PKG_CHECK_MODULES(SCREENSAVER_CAPPLET, $capplet_modules gal) -dnl PKG_CHECK_MODULES(ROLLBACK_CAPPLET, $capplet_modules) PKG_CHECK_MODULES(GNOMECC, gnomeui libglade xml gdk_pixbuf gnomecanvaspixbuf bonobo bonobox gtkhtml) PKG_CHECK_MODULES(RMHELPER, gnomeui gnomecanvaspixbuf) PKG_CHECK_MODULES(ARCHIVER, bonobo bonobo_conf xml) PKG_CHECK_MODULES(MONIKER, bonobo bonobo_conf xml) PKG_CHECK_MODULES(CONFIG_ARCHIVER, gnome xml) +dnl ============================================== +dnl End: Check that we meet the dependencies +dnl ============================================== + +dnl ============================================== +dnl Define the main variables +dnl ============================================== GNOMECC_CAPPLETS_CFLAGS="${CAPPLET_CFLAGS} -I\$(top_srcdir)/intl -I\$(top_srcdir)/ -DG_LOG_DOMAIN=\"\\\"\$(cappletname)-properties\\\"\" -DGLADE_DATADIR=\"\\\"${datadir}/control-center\\\"\" -DGNOMELOCALEDIR=\"\\\"${datadir}/locale\\\"\" -I\$(top_srcdir)/capplets/common " GNOMECC_CAPPLETS_LIBS="${CAPPLET_LIBS} \$(top_builddir)/capplets/common/libcommon.a" +GNOMECC_CAPPLETS_CLEANFILES="\$(desktop) \$(desktop).in" +GNOMECC_CAPPLETS_EXTRA_DIST="ChangeLog \$(desktop).in.in \$(desktop).in \$(desktop) \$(cappletname)-capplet.png \$(cappletname)-properties.glade" + +AC_SUBST(GNOMECC_CAPPLETS_EXTRA_DIST) +AC_SUBST(GNOMECC_CAPPLETS_CLEANFILES) AC_SUBST(GNOMECC_CAPPLETS_CFLAGS) AC_SUBST(GNOMECC_CAPPLETS_LIBS) +dnl ============================================== +dnl End: Define the main variables +dnl ============================================== + + +dnl ============================================== +dnl Define the directories +dnl ============================================== AC_DEFINE_UNQUOTED(GNOMECC_ICONS_DIR, "${prefix}/share/${PACKAGE}/icons") GNOMECC_ICONS_DIR=""${datadir}/${PACKAGE}/icons"" AC_SUBST(GNOMECC_ICONS_DIR) @@ -129,29 +143,18 @@ AC_SUBST(GNOMECC_GLADE_DIR) AC_DEFINE_UNQUOTED(GNOMECC_PIXMAPS_DIR, "${prefix}/share/${PACKAGE}/pixmaps") GNOMECC_PIXMAPS_DIR=""${datadir}/${PACKAGE}/pixmaps"" AC_SUBST(GNOMECC_PIXMAPS_DIR) +AC_DEFINE_UNQUOTED(GNOMECC_SCREENSAVERS_DIR, "${prefix}/share/${PACKAGE}/screensavers") +GNOMECC_SCREENSAVERS_DIR=""${datadir}/${PACKAGE}/screensavers"" +AC_SUBST(GNOMECC_SCREENSAVERS_DIR) +dnl ============================================== +dnl End: Define the directories +dnl ============================================== -AC_SUBST(CFLAGS) -AC_SUBST(LDFLAGS) - -GNOMECC_CAPPLETS_CLEANFILES="\$(desktop) \$(desktop).in" -GNOMECC_CAPPLETS_EXTRA_DIST="ChangeLog \$(desktop).in.in \$(desktop).in \$(desktop) \$(cappletname)-capplet.png \$(cappletname)-properties.glade" - -AC_SUBST(GNOMECC_CAPPLETS_EXTRA_DIST) -AC_SUBST(GNOMECC_CAPPLETS_CLEANFILES) -dnl ======================================= -dnl Variables for config_archiverConf.sh.in -dnl ======================================= - - -dnl consdir = $(GNOMECC_ICONS_DIR)\ -dnl icons_DATA = $(cappletname)-capplet.png\ -dnl Gladedir = $(datadir)/control-center-data\ -dnl Glade_DATA = $(cappletname)-properties.glade\ dnl ============================================== -dnl End : Macro for the common code +dnl Macro for the common code dnl ============================================== AC_DEFUN(AC_PROG_GNOMECC_CAPPLETS, [ @@ -175,6 +178,10 @@ dnl End : Macro for the common code dnl ============================================== + +dnl ======================================= +dnl Variables for config_archiverConf.sh.in +dnl ======================================= CONFIG_ARCHIVER_LIBDIR='-L${libdir}' CONFIG_ARCHIVER_LIBS="$CONFIG_ARCHIVER_LIBS -lconfig_archiver" CONFIG_ARCHIVER_INCLUDEDIR="$CONFIG_ARCHIVER_CFLAGS -I${includedir}" @@ -182,6 +189,9 @@ CONFIG_ARCHIVER_INCLUDEDIR="$CONFIG_ARCHIVER_CFLAGS -I${includedir}" AC_SUBST(CONFIG_ARCHIVER_LIBDIR) AC_SUBST(CONFIG_ARCHIVER_LIBS) AC_SUBST(CONFIG_ARCHIVER_INCLUDEDIR) +dnl ======================================= +dnl End: Variables for config_archiverConf.sh.in +dnl ======================================= AC_OUTPUT([ diff --git a/control-center/ChangeLog b/control-center/ChangeLog index 3ec62f956..156df632d 100644 --- a/control-center/ChangeLog +++ b/control-center/ChangeLog @@ -1,3 +1,9 @@ +2001-07-18 Chema Celorio <chema@celorio.com> + + * capplet-dir.c (get_root_capplet_dir): if the directory is not found, warn + and exit. Don't coredump + * main.c (main): + 2001-07-17 Bradford Hovinen <hovinen@ximian.com> * capplet-dir.c (capplet_cancel_cb): diff --git a/control-center/capplet-dir.c b/control-center/capplet-dir.c index 3298e1954..12d5c6712 100644 --- a/control-center/capplet-dir.c +++ b/control-center/capplet-dir.c @@ -86,7 +86,7 @@ capplet_new (CappletDir *dir, gchar *desktop_path) entry->dir = dir; if (!entry->icon) - entry->icon = PIXMAPS_DIR "/control-center.png"; + entry->icon = GNOMECC_PIXMAPS_DIR "/control-center.png"; entry->pb = gdk_pixbuf_new_from_file (entry->icon); @@ -127,7 +127,7 @@ capplet_dir_new (CappletDir *dir, gchar *dir_path) entry->icon = entry->entry->icon; if (!entry->icon) - entry->icon = PIXMAPS_DIR "/control-center.png"; + entry->icon = GNOMECC_PIXMAPS_DIR "/control-center.png"; entry->pb = gdk_pixbuf_new_from_file (entry->icon); } else { @@ -372,10 +372,14 @@ get_root_capplet_dir (void) static CappletDir *root_dir = NULL; if (root_dir == NULL) { - root_dir = CAPPLET_DIR (capplet_dir_new (NULL, SETTINGS_DIR)); + CappletDirEntry *entry; + entry = capplet_dir_new (NULL, SETTINGS_DIR); + + if (entry) + root_dir = CAPPLET_DIR (entry); if (!root_dir) - g_error ("Could not find directory of control panels"); + g_warning ("Could not find directory of control panels [%s]", SETTINGS_DIR); } return root_dir; diff --git a/control-center/main.c b/control-center/main.c index 1a23be633..afe872a18 100644 --- a/control-center/main.c +++ b/control-center/main.c @@ -66,9 +66,17 @@ main (int argc, char **argv) #endif if (capplet == NULL) { + CappletDirEntry *entry; + CappletDir *dir; + gnomecc_init (); - capplet_dir_entry_activate - (CAPPLET_DIR_ENTRY (get_root_capplet_dir ()), NULL); + dir = get_root_capplet_dir (); + if (!dir) + return -1; + entry = CAPPLET_DIR_ENTRY (dir); + if (!entry) + return -1; + capplet_dir_entry_activate (entry, NULL); } else { if ((app = capplet_control_launch (capplet, _("Configuraiton"))) == NULL) return -1; |