Include config.h and add some comments.

2007-04-30  Thomas Wood  <thos@gnome.org>

	* appearance-main.c: (main):
	* appearance.h:

	Include config.h and add some comments.

svn path=/trunk/; revision=7528
This commit is contained in:
Thomas Wood 2007-04-30 17:50:37 +00:00 committed by Thomas Wood
parent abaddb861e
commit 1b63c9b245
3 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2007-04-30 Thomas Wood <thos@gnome.org>
* appearance-main.c: (main):
* appearance.h:
Include config.h and add some comments.
2007-04-30 Denis Washington <denisw@svn.gnome.org>
* appearance.glade: replace occurrences of "colour" with "color".

View file

@ -28,10 +28,8 @@
#include <libgnomeui/gnome-ui-init.h>
/* ---------------------------------- */
#define VERSION "0.0"
static AppearanceData *
init (int argc, char **argv)
init_appearance_data (int argc, char **argv)
{
AppearanceData *data = NULL;
gchar *gladefile;
@ -66,7 +64,7 @@ main (int argc, char **argv)
GnomeProgram *program;
/* init */
data = init (argc, argv);
data = init_appearance_data (argc, argv);
if (!data)
return 1;
@ -81,15 +79,20 @@ main (int argc, char **argv)
/* init tabs */
themes_init (data);
/*
* fonts_init (data);
* desktop_init (data);
* etc...
*/
/* prepare the main window */
w = WID ("appearance_window");
gtk_widget_show_all (w);
g_signal_connect (G_OBJECT (w), "delete-event", (GCallback) gtk_main_quit, NULL);
/* start the mainloop */
gtk_main ();
/* free stuff */
g_object_unref (data->xml);
g_free (data);

View file

@ -21,6 +21,7 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <libgnomevfs/gnome-vfs.h>
#include <config.h>
#define WID(x) (glade_xml_get_widget (data->xml, x))