Change gnome2-* to gnome-* ditto ditto ditto ditto ditto ditto ditto ditto

Tue Apr  9 11:43:08 2002  Jonathan Blandford  <jrb@gnome.org>

	* capplets/accessibility/keyboard/Makefile.am: Change gnome2-* to
	gnome-*
	* capplets/default-applications/Makefile.am: ditto
	* capplets/file-types/Makefile.am: ditto
	* capplets/font/Makefile.am: ditto
	* capplets/keyboard/Makefile.am: ditto
	* capplets/mouse/Makefile.am: ditto
	* capplets/sound/Makefile.am: ditto
	* capplets/theme-switcher/Makefile.am: ditto
	* capplets/ui-properties/Makefile.am: ditto
	* control-center/Makefile.am: ditto
	* gnome-settings-daemon/Makefile.am: ditto

	* gnome-keybinding-properties.c (setup_dialog): man, was this code
	silly.  Also, themes are case sensitive.
	(is_metacity_running): Add support for metacity keybindings.  This
	is off by default until I write code to actually detect metacity.

Tue Apr  9 11:58:10 2002  Jonathan Blandford  <jrb@gnome.org>

	* Makefile.am: Add commented out disk support until I finish the code.
This commit is contained in:
Jonathan Blandford 2002-04-10 06:08:08 +00:00 committed by Jonathan Blandford
parent 5a1e076eed
commit 6f1fa592ec
26 changed files with 697 additions and 130 deletions

View file

@ -7,6 +7,8 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <libgnomevfs/gnome-vfs-ops.h>
#include "theme-common.h"
static GList *
@ -89,3 +91,45 @@ theme_common_list_free (GList *list)
g_list_foreach (list, g_free, NULL);
g_list_free (list);
}
static void
theme_dir_changed_callback (GnomeVFSMonitorHandle *handle,
const gchar *monitor_uri,
const gchar *info_uri,
GnomeVFSMonitorEventType event_type,
gpointer user_data)
{
g_print ("%s\n", monitor_uri);
g_closure_invoke ((GClosure *) user_data, NULL, 0, NULL, NULL);
}
void
theme_common_register_theme_change (GCallback func,
gpointer data)
{
GnomeVFSResult result;
GnomeVFSMonitorHandle *handle = NULL;
gchar *text_uri;
GClosure *closure;
/* We're unlikely to ever need to cancel this with the control center */
closure = g_cclosure_new (func, data, NULL);
text_uri = g_build_filename (g_get_home_dir (), ".themes", NULL);
gnome_vfs_monitor_add (&handle,
text_uri,
GNOME_VFS_MONITOR_DIRECTORY,
theme_dir_changed_callback,
closure);
g_free (text_uri);
text_uri = gtk_rc_get_theme_dir ();
gnome_vfs_monitor_add (&handle,
text_uri,
GNOME_VFS_MONITOR_DIRECTORY,
theme_dir_changed_callback,
closure);
g_free (text_uri);
}