include config.h before anything else and add a GConfClient reference to
2007-05-01 Jens Granseuer <jensgr@gmx.net> * appearance-main.c: (init_appearance_data), (main): * appearance.h: include config.h before anything else and add a GConfClient reference to the AppearanceData struct svn path=/trunk/; revision=7529
This commit is contained in:
parent
1b63c9b245
commit
93bc8933ef
4 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2007-05-01 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* appearance-main.c: (init_appearance_data), (main):
|
||||
* appearance.h:
|
||||
|
||||
include config.h before anything else and add a GConfClient
|
||||
reference to the AppearanceData struct
|
||||
|
||||
2007-04-30 Thomas Wood <thos@gnome.org>
|
||||
|
||||
* appearance-main.c: (main):
|
||||
|
|
|
@ -4,7 +4,9 @@ gnome_appearance_properties_SOURCES= \
|
|||
appearance.h \
|
||||
appearance-main.c \
|
||||
appearance-themes.c \
|
||||
appearance-themes.h
|
||||
appearance-themes.h \
|
||||
appearance-ui.c \
|
||||
appearance-ui.h
|
||||
|
||||
gnome_appearance_properties_LDADD = \
|
||||
$(GNOMECC_CAPPLETS_LIBS) \
|
||||
|
|
|
@ -48,6 +48,7 @@ init_appearance_data (int argc, char **argv)
|
|||
|
||||
if (ui) {
|
||||
data = g_new (AppearanceData, 1);
|
||||
data->client = gconf_client_get_default ();
|
||||
data->xml = ui;
|
||||
data->argc = argc;
|
||||
data->argv = argv;
|
||||
|
@ -94,6 +95,7 @@ main (int argc, char **argv)
|
|||
gtk_main ();
|
||||
|
||||
/* free stuff */
|
||||
g_object_unref (data->client);
|
||||
g_object_unref (data->xml);
|
||||
g_free (data);
|
||||
g_object_unref (program);
|
||||
|
|
|
@ -18,14 +18,17 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <glade/glade.h>
|
||||
#include <libgnomevfs/gnome-vfs.h>
|
||||
#include <config.h>
|
||||
#include <gconf/gconf-client.h>
|
||||
|
||||
#define WID(x) (glade_xml_get_widget (data->xml, x))
|
||||
|
||||
typedef struct {
|
||||
GConfClient *client;
|
||||
int argc;
|
||||
char **argv;
|
||||
GladeXML *xml;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue