Commit 8bf9719d authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington
Browse files

Trivial files I'd written before getting stuck on the OAF thing, that

2000-01-26  Havoc Pennington  <hp@pobox.com>

	* src/nautilus-gconf.h, src/nautilus-gconf.c: Trivial files I'd
		written before getting stuck on the OAF thing, that might be of
			interest. I have some other bits I did that aren't
worth checking
	in, Ramiro said he's doing the prefs dialog.
parent 6ae5e7ad
2000-01-26 Havoc Pennington <hp@pobox.com>
* src/nautilus-gconf.h, src/nautilus-gconf.c: Trivial files I'd
written before getting stuck on the OAF thing, that might be of
interest. I have some other bits I did that aren't worth checking
in, Ramiro said he's doing the prefs dialog.
2000-01-26 John Sullivan <sullivan@eazel.com>
Moved list view sort indicator to left of right-justified
......
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- c-set-style: linux */
/* nautilus-gconf.c - GConf-related functions
Copyright (C) 2000 Red Hat, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Havoc Pennington <hp@redhat.com>
*/
#include "nautilus-gconf.h"
static GConfClient *global_client = NULL;
GConfClient *
nautilus_gconf_client_get (void)
{
if (global_client == NULL) {
global_client = gconf_client_new();
/* Make sure we own the client */
gtk_object_ref(GTK_OBJECT(global_client));
gtk_object_sink(GTK_OBJECT(global_client));
}
return global_client;
}
void
nautilus_gconf_shutdown (void)
{
if (global_client != NULL) {
gtk_object_unref(GTK_OBJECT(global_client));
}
}
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- c-set-style: linux */
/* nautilus-gconf.h - GConf-related functions
Copyright (C) 2000 Red Hat, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Havoc Pennington <hp@redhat.com>
*/
#ifndef NAUTILUS_GCONF_H
#define NAUTILUS_GCONF_H 1
#include <gconf/gconf-client.h>
/* Returns global GConfClient object. GConfClient stores our
client-side cache of configuration data, and automatically creates
error dialogs in response to GConf errors.
Note that gnome-libs 2 provides a global GConfClient object also.
When we port to gnome-libs 2, we may want to change these functions
to simply return the GNOME object. */
GConfClient *nautilus_gconf_client_get (void);
/* Shut down the client cleanly, on application exit */
void nautilus_gconf_shutdown (void);
#endif /* NAUTILUS_GCONF_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment