diff options
author | Bradford Hovinen <hovinen@ximian.com> | 2001-12-20 18:52:39 +0000 |
---|---|---|
committer | Bradford Hovinen (Gdict maintainer) <hovinen@src.gnome.org> | 2001-12-20 18:52:39 +0000 |
commit | 30389610b41d22659294a2cb06d23c6447fe9373 (patch) | |
tree | ac37ba6fdf02c5bb3b8c668704792a544f14cb06 /control-center | |
parent | 2dd5ccf964a0e30a5d6d7abe9b41f0799a1d1670 (diff) | |
download | gnome-control-center-30389610b41d22659294a2cb06d23c6447fe9373.tar.gz |
Add parameter GNOME_PARAM_APP_DATADIR
2001-12-20 Bradford Hovinen <hovinen@ximian.com>
* capplets/screensaver/main.c (main): Add parameter
GNOME_PARAM_APP_DATADIR
* mouse-properties-capplet.c (main): Add parameter
GNOME_PARAM_APP_DATADIR
* configure.in (GNOMECC_DESKTOP_DIR): Define
(GNOMECC_DATA_DIR): Define
Remove AC_DEFINE_UNQUOTED for the rest of the directories
* All: Update to reflect above
Diffstat (limited to 'control-center')
-rw-r--r-- | control-center/capplet-dir.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/control-center/capplet-dir.c b/control-center/capplet-dir.c index 166223805..4987b4289 100644 --- a/control-center/capplet-dir.c +++ b/control-center/capplet-dir.c @@ -119,8 +119,10 @@ capplet_new (CappletDir *dir, gchar *desktop_path) entry->exec = vec; entry->dir = dir; - if (!entry->icon) - entry->icon = GNOMECC_PIXMAPS_DIR "/control-center.png"; + if (entry->icon == NULL) + entry->icon = gnome_program_locate_file + (gnome_program_get (), GNOME_FILE_DOMAIN_APP_PIXMAP, + "control-center.png", TRUE, NULL); entry->pb = gdk_pixbuf_new_from_file (entry->icon, NULL); @@ -166,7 +168,9 @@ capplet_dir_new (CappletDir *dir, gchar *dir_path) GNOME_DESKTOP_ITEM_ICON)); if (!entry->icon) - entry->icon = g_strdup (GNOMECC_PIXMAPS_DIR "/control-center.png"); + entry->icon = gnome_program_locate_file + (gnome_program_get (), GNOME_FILE_DOMAIN_APP_PIXMAP, + "control-center.png", TRUE, NULL); entry->pb = gdk_pixbuf_new_from_file (entry->icon, NULL); } else { |