From aade47f766344129a8589662a3ef2e275cc5a04c Mon Sep 17 00:00:00 2001 From: Richard Hestilow Date: Sun, 27 Jan 2002 18:42:15 +0000 Subject: [PATCH] Include string.h. (create_form): Defer modifying default rc files until 2002-01-27 Richard Hestilow * control/control.c: Include string.h. (create_form): Defer modifying default rc files until property is set. (set_prop_cb): Set default files here instead. --- capplets/theme-switcher/ChangeLog | 6 ++ capplets/theme-switcher/control/control.c | 72 +++++++++++------------ 2 files changed, 42 insertions(+), 36 deletions(-) diff --git a/capplets/theme-switcher/ChangeLog b/capplets/theme-switcher/ChangeLog index f6fe91ee4..e1815e4ab 100644 --- a/capplets/theme-switcher/ChangeLog +++ b/capplets/theme-switcher/ChangeLog @@ -1,3 +1,9 @@ +2002-01-27 Richard Hestilow + + * control/control.c: Include string.h. + (create_form): Defer modifying default rc files until property is set. + (set_prop_cb): Set default files here instead. + 2002-01-21 Anders Carlsson * main.c: Get the theme name right. diff --git a/capplets/theme-switcher/control/control.c b/capplets/theme-switcher/control/control.c index 12d020288..a6262f340 100644 --- a/capplets/theme-switcher/control/control.c +++ b/capplets/theme-switcher/control/control.c @@ -1,9 +1,9 @@ #include #include +#include static gchar* current_theme = NULL; static gchar **new_rc_files = NULL; -static gint new_count = 0; #define GNOME_PAD_SMALL 4 @@ -18,9 +18,6 @@ create_form (void) /* just 8 short names that will serve as samples for titles in demo */ char *column1[4] = { N_("Eenie"), N_("Mynie"), N_("Catcha"), N_("By Its") }; char *column2[4] = { N_("Meenie"), N_("Moe"), N_("Tiger"), N_("Toe") }; - gchar **rc_files; - gint rc_file_count; - const gchar *home_dir; gint i; store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); @@ -36,29 +33,6 @@ create_form (void) } - /* Strip out ~/.gtkrc from the set of initial default files. - * to suppress reading of the previous rc file. - */ - - rc_files = gtk_rc_get_default_files(); - for (rc_file_count = 0; rc_files[rc_file_count]; rc_file_count++) - /* Nothing */; - - new_rc_files = g_new (gchar *, rc_file_count + 2); - - home_dir = g_get_home_dir(); - new_count = 0; - - for (i = 0; i