#include #include static gchar* current_theme = NULL; static gchar **new_rc_files = NULL; static gint new_count = 0; #define GNOME_PAD_SMALL 4 static GtkWidget* create_form (void) { GtkWidget *widget, *table, *hbox; GtkWidget *scrolled_window, *menubar, *menu; GtkListStore *store; GtkTreeIter iter; GSList *group; /* 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); for (i = 0; i < 4; i++) { gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, _(column1[i]), 1, _(column2[i]), -1); } /* 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