Fix fix fix fix fix & clean stuff. With their changelog entries for your

pleasure.
This commit is contained in:
Jose Maria Celorio 2001-07-18 06:36:24 +00:00
parent 35d967aed2
commit ab0fef8323
21 changed files with 215 additions and 153 deletions

View file

@ -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> 2001-07-17 Chema Celorio <chema@celorio.com>
* configure.in: define the directories * configure.in: define the directories

View file

@ -11,6 +11,8 @@
#undef GNOMECC_ICONS_DIR #undef GNOMECC_ICONS_DIR
#undef GNOMECC_GLADE_DIR #undef GNOMECC_GLADE_DIR
#undef GNOMECC_PIXMAPS_DIR #undef GNOMECC_PIXMAPS_DIR
#undef GNOMECC_SCREENSAVERS_DIR
#undef PACKAGE #undef PACKAGE
#undef VERSION #undef VERSION

View file

@ -1,3 +1,4 @@
Makefile Makefile
Makefile.in Makefile.in
.deps .deps
stamp-h.in

View file

@ -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> 2001-07-17 Chema Celorio <chema@celorio.com>
* Makefile.am (SUBDIRS): clean * Makefile.am (SUBDIRS): clean

View file

@ -19,7 +19,7 @@ pixmap_DATA =
@XML_I18N_MERGE_DESKTOP_RULE@ @XML_I18N_MERGE_DESKTOP_RULE@
@GNOMECC_CAPPLETS_DESKTOP_IN_RULE@ @GNOMECC_CAPPLETS_DESKTOP_IN_RULE@
INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) -DGNOMESYSCONFDIR=\""$(sysconfdir)"\" INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS)
CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES) CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES)
EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST) EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST)
iconsdir = $(GNOMECC_ICONS_DIR) iconsdir = $(GNOMECC_ICONS_DIR)

View file

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
_Name=Default Applications _Name=Default Applications
_Comment=Choose the applications used by default _Comment=Choose the applications used by default
Exec=default-application-properties-capplet Exec=default-applications-properties
Icon= Icon=
Terminal=0 Terminal=0
Type=Application Type=Application

View file

@ -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> 2001-07-17 Bradford Hovinen <hovinen@ximian.com>
* Makefile.am (EXTRA_DIST): Changed Applications_DATA to * Makefile.am (EXTRA_DIST): Changed Applications_DATA to

View file

@ -127,6 +127,7 @@
<label>Left handed</label> <label>Left handed</label>
<active>False</active> <active>False</active>
<draw_indicator>True</draw_indicator> <draw_indicator>True</draw_indicator>
<group>radio_group</group>
<child> <child>
<left_attach>0</left_attach> <left_attach>0</left_attach>
<right_attach>1</right_attach> <right_attach>1</right_attach>
@ -155,6 +156,7 @@
<label>Right handed</label> <label>Right handed</label>
<active>False</active> <active>False</active>
<draw_indicator>True</draw_indicator> <draw_indicator>True</draw_indicator>
<group>radio_group</group>
<child> <child>
<left_attach>1</left_attach> <left_attach>1</left_attach>
<right_attach>2</right_attach> <right_attach>2</right_attach>

View file

@ -104,8 +104,8 @@ prefs_widget_init (PrefsWidget *prefs_widget)
"prefs_widget"); "prefs_widget");
gtk_container_add (GTK_CONTAINER (prefs_widget), 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_left_pixmap", GNOMECC_PIXMAPS_DIR "/mouse-left.png");
set_pixmap_file (prefs_widget, "mouse_right_pixmap", "mouse-right.png"); set_pixmap_file (prefs_widget, "mouse_right_pixmap", GNOMECC_PIXMAPS_DIR "/mouse-right.png");
glade_xml_signal_connect_data glade_xml_signal_connect_data
(prefs_widget->dialog_data, "left_handed_selected_cb", (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; GdkPixbuf *pixbuf;
GdkPixmap *pixmap; GdkPixmap *pixmap;
GdkBitmap *mask; GdkBitmap *mask;
gchar *path;
g_return_if_fail (IS_PREFS_WIDGET (prefs_widget)); g_return_if_fail (IS_PREFS_WIDGET (prefs_widget));
g_return_if_fail (widget_name != NULL); 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); widget = WID (widget_name);
g_return_if_fail (widget != NULL); g_return_if_fail (widget != NULL);
path = gnome_pixmap_file (filename); pixbuf = gdk_pixbuf_new_from_file (filename);
pixbuf = gdk_pixbuf_new_from_file (path);
g_free (path);
if (pixbuf) { if (pixbuf) {
gdk_pixbuf_render_pixmap_and_mask (pixbuf, &pixmap, &mask, gdk_pixbuf_render_pixmap_and_mask (pixbuf, &pixmap, &mask,

View file

@ -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> 2001-07-17 Chema Celorio <chema@celorio.com>
* Makefile.am (SUBDIRS): clean * Makefile.am (SUBDIRS): clean

View file

@ -26,7 +26,7 @@ pixmap_DATA = no-hack.png
@XML_I18N_MERGE_DESKTOP_RULE@ @XML_I18N_MERGE_DESKTOP_RULE@
@GNOMECC_CAPPLETS_DESKTOP_IN_RULE@ @GNOMECC_CAPPLETS_DESKTOP_IN_RULE@
INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) -DSSPROP_DATADIR=\""${prefix}/share"\" INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS)
CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES) CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES)
EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST) EXTRA_DIST = $(GNOMECC_CAPPLETS_EXTRA_DIST)
iconsdir = $(GNOMECC_ICONS_DIR) iconsdir = $(GNOMECC_ICONS_DIR)

View file

@ -25,6 +25,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <string.h>
#include "expr.h" #include "expr.h"
typedef enum { typedef enum {

View file

@ -162,7 +162,7 @@ prefs_widget_init (PrefsWidget *prefs_widget)
prefs_widget->priv = g_new0 (PrefsWidgetPrivate, 1); prefs_widget->priv = g_new0 (PrefsWidgetPrivate, 1);
prefs_widget->priv->xml = prefs_widget->priv->xml =
glade_xml_new (GLADE_DATADIR "/screensaver-properties.glade", glade_xml_new (GNOMECC_GLADE_DIR "/screensaver-properties.glade",
NULL); NULL);
if (!prefs_widget->priv->xml) if (!prefs_widget->priv->xml)
return; return;
@ -171,11 +171,11 @@ prefs_widget_init (PrefsWidget *prefs_widget)
titles[i] = gettext (titles[i]); titles[i] = gettext (titles[i]);
skel = skel =
"<ETableSpecification cursor-mode=\"line\" selection-mode=\"single\" draw-focus=\"true\"> "<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=\"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\"/> " <ETableColumn model_col=\"1\" draw_grid=\"true\" _title=\"%s\" expansion=\"1.0\" resizable=\"true\" cell=\"string\" compare=\"string\"/>"
%s " %s"
</ETableSpecification>"; " </ETableSpecification>";
spec = g_strdup_printf (skel, titles[0], titles[1], table_compute_state (SM_CHOOSE_FROM_LIST)); spec = g_strdup_printf (skel, titles[0], titles[1], table_compute_state (SM_CHOOSE_FROM_LIST));
prefs_widget->priv->etm = prefs_widget->priv->etm =

View file

@ -753,14 +753,14 @@ get_argument_data (Screensaver *saver)
else else
lang = g_strdup (""); lang = g_strdup ("");
file_name = g_strconcat (SSPROP_DATADIR "/screensavers/", file_name = g_strconcat (GNOMECC_SCREENSAVERS_DIR "/screensavers/",
lang, saver->name, ".xml", NULL); lang, saver->name, ".xml", NULL);
doc = xmlParseFile (file_name); doc = xmlParseFile (file_name);
g_free (file_name); g_free (file_name);
/* Fall back on default language if given language is not found */ /* Fall back on default language if given language is not found */
if (!doc && *lang != '\0') { if (!doc && *lang != '\0') {
file_name = g_strconcat (SSPROP_DATADIR "/screensavers/", file_name = g_strconcat (GNOMECC_SCREENSAVERS_DIR "/screensavers/",
saver->name, ".xml", NULL); saver->name, ".xml", NULL);
doc = xmlParseFile (file_name); doc = xmlParseFile (file_name);
g_free (file_name); g_free (file_name);
@ -1680,7 +1680,7 @@ arg_mapping_exists (Screensaver *saver)
if (!saver->name) return FALSE; if (!saver->name) return FALSE;
filename = g_strconcat (SSPROP_DATADIR "/screensavers/", filename = g_strconcat (GNOMECC_SCREENSAVERS_DIR "/screensavers/",
saver->name, ".xml", NULL); saver->name, ".xml", NULL);
if (stat (filename, &buf)) if (stat (filename, &buf))

View file

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
_Name=Screensaver _Name=Screensaver
_Comment=Configure the settings of the screensaver _Comment=Configure the settings of the screensaver
Exec=screensaver-properties-capplet Exec=screensaver-properties
Icon=gnome-ccscreensaver.png Icon=gnome-ccscreensaver.png
Terminal=0 Terminal=0
Type=Application Type=Application

View file

@ -1,99 +1,99 @@
Screensaversdir = $(datadir)/screensavers Screensaversdir = $(GNOMECC_SCREENSAVERS_DIR)
Screensavers_DATA = \ Screensavers_DATA = \
3d_clock.xml \ 3d_clock.xml \
ant.xml \ ant.xml \
atlantis.xml \ atlantis.xml \
attraction.xml \ attraction.xml \
blitspin.xml \ blitspin.xml \
bouboule.xml \ bouboule.xml \
braid.xml \ braid.xml \
bsod.xml \ bsod.xml \
bubble3d.xml \ bubble3d.xml \
bubbles.xml \ bubbles.xml \
cage.xml \ cage.xml \
compass.xml \ compass.xml \
coral.xml \ coral.xml \
critical.xml \ critical.xml \
crystal.xml \ crystal.xml \
cynosure.xml \ cynosure.xml \
decayscreen.xml \ decayscreen.xml\
deco.xml \ deco.xml \
deluxe.xml \ deluxe.xml \
demon.xml \ demon.xml \
discrete.xml \ discrete.xml \
distort.xml \ distort.xml \
drift.xml \ drift.xml \
epicycle.xml \ epicycle.xml \
fadeplot.xml \ fadeplot.xml \
flag.xml \ flag.xml \
flame.xml \ flame.xml \
flow.xml \ flow.xml \
forest.xml \ forest.xml \
glplanet.xml \ glplanet.xml \
galaxy.xml \ galaxy.xml \
gears.xml \ gears.xml \
goop.xml \ goop.xml \
grav.xml \ grav.xml \
greynetic.xml \ greynetic.xml \
halo.xml \ halo.xml \
helix.xml \ helix.xml \
hopalong.xml \ hopalong.xml \
hypercube.xml \ hypercube.xml \
ifs.xml \ ifs.xml \
imsmap.xml \ imsmap.xml \
interference.xml \ interference.xml\
jigsaw.xml \ jigsaw.xml \
julia.xml \ julia.xml \
kaleidescope.xml \ kaleidescope.xml\
kumppa.xml \ kumppa.xml \
lament.xml \ lament.xml \
laser.xml \ laser.xml \
lightning.xml \ lightning.xml \
lisa.xml \ lisa.xml \
lissie.xml \ lissie.xml \
lmorph.xml \ lmorph.xml \
loop.xml \ loop.xml \
maze.xml \ maze.xml \
moebius.xml \ moebius.xml \
moire.xml \ moire.xml \
moire2.xml \ moire2.xml \
morph3d.xml \ morph3d.xml \
mountain.xml \ mountain.xml \
munch.xml \ munch.xml \
noseguy.xml \ noseguy.xml \
pedal.xml \ pedal.xml \
penetrate.xml \ penetrate.xml \
penrose.xml \ penrose.xml \
pipes.xml \ pipes.xml \
pyro.xml \ pyro.xml \
qix.xml \ qix.xml \
rd-bomb.xml \ rd-bomb.xml \
rocks.xml \ rocks.xml \
rorschach.xml \ rorschach.xml \
rotor.xml \ rotor.xml \
rubiks_cube.xml \ rubiks_cube.xml\
sierpinski.xml \ sierpinski.xml \
slidescreen.xml \ slidescreen.xml\
slip.xml \ slip.xml \
sonar.xml \ sonar.xml \
sphere.xml \ sphere.xml \
spiral.xml \ spiral.xml \
spotlight.xml \ spotlight.xml \
sproingies.xml \ sproingies.xml \
squiral.xml \ squiral.xml \
stairs.xml \ stairs.xml \
starfish.xml \ starfish.xml \
strange.xml \ strange.xml \
superquadrics.xml \ superquadrics.xml \
swirl.xml \ swirl.xml \
triangle.xml \ triangle.xml \
truchet.xml \ truchet.xml \
vines.xml \ vines.xml \
worm.xml \ worm.xml \
xflame.xml \ xflame.xml \
xjack.xml \ xjack.xml \
xlyap.xml \ xlyap.xml \
xmatrix.xml \ xmatrix.xml \
xroger.xml xroger.xml
EXTRA_DIST = $(Screensavers_DATA) README EXTRA_DIST = $(Screensavers_DATA) README

View file

@ -257,7 +257,7 @@ get_known_savers (void)
if (known_savers) return known_savers; if (known_savers) return known_savers;
parent_dir = opendir (SSPROP_DATADIR "/screensavers"); parent_dir = opendir (GNOMECC_SCREENSAVERS_DIR "/screensavers");
if (parent_dir == NULL) if (parent_dir == NULL)
return NULL; return NULL;
@ -266,7 +266,7 @@ get_known_savers (void)
while ((child_dir = readdir (parent_dir)) != NULL) { while ((child_dir = readdir (parent_dir)) != NULL) {
if (child_dir->d_name[0] != '.') { if (child_dir->d_name[0] != '.') {
fullpath = g_concat_dir_and_file fullpath = g_concat_dir_and_file
(SSPROP_DATADIR "/screensavers", (GNOMECC_SCREENSAVERS_DIR "/screensavers",
child_dir->d_name); child_dir->d_name);
if (stat (fullpath, &filedata) != -1) { if (stat (fullpath, &filedata) != -1) {

View file

@ -77,16 +77,15 @@ echo "ftp://ftp.labs.redhat.com/pub/imlib/"
AC_MSG_ERROR([Fatal Error: no Imlib detected.])]) AC_MSG_ERROR([Fatal Error: no Imlib detected.])])
CFLAGS="-O2 -g -Wall $CFLAGS" CFLAGS="-O2 -g -Wall $CFLAGS"
AC_SUBST(CFLAGS)
dnl ============================================= dnl ==============================================
dnl END : Variables for config_archiverConf.sh.in dnl Check for pkg-config
dnl ============================================= dnl ==============================================
AC_PATH_PROG(PKGCONFIG, pkg-config, no) AC_PATH_PROG(PKGCONFIG, pkg-config, no)
if test "$PKGCONFIG" = no ; then 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.) AC_MSG_ERROR(pkg-config was not found. Please install version 0.8.0 or newer from http://www.freedesktop.org/software.)
fi fi
AC_MSG_CHECKING(for pkg-config >= 0.8.0) AC_MSG_CHECKING(for pkg-config >= 0.8.0)
vers=`$PKGCONFIG --version | awk 'BEGIN { FS = "."; } { print $1 * 1000000 + $2 * 1000 + $3}'` vers=`$PKGCONFIG --version | awk 'BEGIN { FS = "."; } { print $1 * 1000000 + $2 * 1000 + $3}'`
if test "$vers" -ge 8000; then if test "$vers" -ge 8000; then
@ -94,32 +93,47 @@ if test "$vers" -ge 8000; then
else 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.) 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 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) 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(GNOMECC, gnomeui libglade xml gdk_pixbuf gnomecanvaspixbuf bonobo bonobox gtkhtml)
PKG_CHECK_MODULES(RMHELPER, gnomeui gnomecanvaspixbuf) PKG_CHECK_MODULES(RMHELPER, gnomeui gnomecanvaspixbuf)
PKG_CHECK_MODULES(ARCHIVER, bonobo bonobo_conf xml) PKG_CHECK_MODULES(ARCHIVER, bonobo bonobo_conf xml)
PKG_CHECK_MODULES(MONIKER, bonobo bonobo_conf xml) PKG_CHECK_MODULES(MONIKER, bonobo bonobo_conf xml)
PKG_CHECK_MODULES(CONFIG_ARCHIVER, gnome 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_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_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_CFLAGS)
AC_SUBST(GNOMECC_CAPPLETS_LIBS) 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") AC_DEFINE_UNQUOTED(GNOMECC_ICONS_DIR, "${prefix}/share/${PACKAGE}/icons")
GNOMECC_ICONS_DIR=""${datadir}/${PACKAGE}/icons"" GNOMECC_ICONS_DIR=""${datadir}/${PACKAGE}/icons""
AC_SUBST(GNOMECC_ICONS_DIR) AC_SUBST(GNOMECC_ICONS_DIR)
@ -129,29 +143,18 @@ AC_SUBST(GNOMECC_GLADE_DIR)
AC_DEFINE_UNQUOTED(GNOMECC_PIXMAPS_DIR, "${prefix}/share/${PACKAGE}/pixmaps") AC_DEFINE_UNQUOTED(GNOMECC_PIXMAPS_DIR, "${prefix}/share/${PACKAGE}/pixmaps")
GNOMECC_PIXMAPS_DIR=""${datadir}/${PACKAGE}/pixmaps"" GNOMECC_PIXMAPS_DIR=""${datadir}/${PACKAGE}/pixmaps""
AC_SUBST(GNOMECC_PIXMAPS_DIR) 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 ==============================================
dnl End : Macro for the common code dnl Macro for the common code
dnl ============================================== dnl ==============================================
AC_DEFUN(AC_PROG_GNOMECC_CAPPLETS, AC_DEFUN(AC_PROG_GNOMECC_CAPPLETS,
[ [
@ -175,6 +178,10 @@ dnl End : Macro for the common code
dnl ============================================== dnl ==============================================
dnl =======================================
dnl Variables for config_archiverConf.sh.in
dnl =======================================
CONFIG_ARCHIVER_LIBDIR='-L${libdir}' CONFIG_ARCHIVER_LIBDIR='-L${libdir}'
CONFIG_ARCHIVER_LIBS="$CONFIG_ARCHIVER_LIBS -lconfig_archiver" CONFIG_ARCHIVER_LIBS="$CONFIG_ARCHIVER_LIBS -lconfig_archiver"
CONFIG_ARCHIVER_INCLUDEDIR="$CONFIG_ARCHIVER_CFLAGS -I${includedir}" 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_LIBDIR)
AC_SUBST(CONFIG_ARCHIVER_LIBS) AC_SUBST(CONFIG_ARCHIVER_LIBS)
AC_SUBST(CONFIG_ARCHIVER_INCLUDEDIR) AC_SUBST(CONFIG_ARCHIVER_INCLUDEDIR)
dnl =======================================
dnl End: Variables for config_archiverConf.sh.in
dnl =======================================
AC_OUTPUT([ AC_OUTPUT([

View file

@ -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> 2001-07-17 Bradford Hovinen <hovinen@ximian.com>
* capplet-dir.c (capplet_cancel_cb): * capplet-dir.c (capplet_cancel_cb):

View file

@ -86,7 +86,7 @@ capplet_new (CappletDir *dir, gchar *desktop_path)
entry->dir = dir; entry->dir = dir;
if (!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); 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; entry->icon = entry->entry->icon;
if (!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); entry->pb = gdk_pixbuf_new_from_file (entry->icon);
} else { } else {
@ -372,10 +372,14 @@ get_root_capplet_dir (void)
static CappletDir *root_dir = NULL; static CappletDir *root_dir = NULL;
if (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) 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; return root_dir;

View file

@ -66,9 +66,17 @@ main (int argc, char **argv)
#endif #endif
if (capplet == NULL) { if (capplet == NULL) {
CappletDirEntry *entry;
CappletDir *dir;
gnomecc_init (); gnomecc_init ();
capplet_dir_entry_activate dir = get_root_capplet_dir ();
(CAPPLET_DIR_ENTRY (get_root_capplet_dir ()), NULL); if (!dir)
return -1;
entry = CAPPLET_DIR_ENTRY (dir);
if (!entry)
return -1;
capplet_dir_entry_activate (entry, NULL);
} else { } else {
if ((app = capplet_control_launch (capplet, _("Configuraiton"))) == NULL) if ((app = capplet_control_launch (capplet, _("Configuraiton"))) == NULL)
return -1; return -1;