gnome-control-center r9095 - trunk/libwindow-settings
- From: ssp svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r9095 - trunk/libwindow-settings
- Date: Fri, 24 Oct 2008 20:08:56 +0000 (UTC)
Author: ssp
Date: Fri Oct 24 20:08:55 2008
New Revision: 9095
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9095&view=rev
Log:
Fri Oct 24 16:08:17 2008 SÃren Sandmann <sandmann redhat com>
* gnome-wm-manager.c (gnome_wm_manager_init): Use glib path
builders instead of the ones in libgnome.
Modified:
trunk/libwindow-settings/ChangeLog
trunk/libwindow-settings/Makefile.am
trunk/libwindow-settings/gnome-wm-manager.c
Modified: trunk/libwindow-settings/Makefile.am
==============================================================================
--- trunk/libwindow-settings/Makefile.am (original)
+++ trunk/libwindow-settings/Makefile.am Fri Oct 24 20:08:55 2008
@@ -4,7 +4,8 @@
-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
-DGNOME_ICONDIR=\""$(datadir)/pixmaps"\" \
-DG_LOG_DOMAIN=\"capplet-common\" \
- -DGNOME_WINDOW_MANAGER_MODULE_PATH=\""$(WM_MODULE_DIR)"\" \
+ -DGNOME_WM_PROPERTY_PATH=\"$(datadir)/gnome/wm-properties\" \
+ -DGNOME_WINDOW_MANAGER_MODULE_PATH=\""$(WM_MODULE_DIR)"\" \
-I$(top_srcdir)/ \
@CAPPLET_CFLAGS@ \
-DMETACITY_THEME_DIR=\""$(datadir)/themes"\"
Modified: trunk/libwindow-settings/gnome-wm-manager.c
==============================================================================
--- trunk/libwindow-settings/gnome-wm-manager.c (original)
+++ trunk/libwindow-settings/gnome-wm-manager.c Fri Oct 24 20:08:55 2008
@@ -32,7 +32,6 @@
#include <glib/gi18n.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
-#include <libgnome/gnome-util.h>
#include <sys/types.h>
#include <dirent.h>
@@ -93,8 +92,7 @@
continue;
result = g_list_prepend (result,
- g_concat_dir_and_file (directory,
- child->d_name));
+ g_build_filename (directory, child->d_name, NULL));
}
closedir (dir);
@@ -225,11 +223,11 @@
done_scan = TRUE;
- tempdir = gnome_unconditional_datadir_file ("gnome/wm-properties/");
+ tempdir = g_build_filename (GNOME_WM_PROPERTY_PATH, "gnome", "wm-properties", NULL);
scan_wm_directory (tempdir, FALSE);
g_free (tempdir);
-
- tempdir = gnome_util_home_file("wm-properties/");
+
+ tempdir = g_build_filename (g_get_home_dir(), ".gnome2", "wm-properties", NULL);
scan_wm_directory (tempdir, TRUE);
g_free (tempdir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]