#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; GSList *group; gchar *titles[2] = {N_("One"),N_("Two")}; /* just 8 short names that will serve as samples for titles in demo */ gchar *row1[2] = {N_("Eenie"), N_("Meenie")}; gchar *row2[2] = {N_("Mynie"), N_("Moe")}; gchar *row3[2] = {N_("Catcha"), N_("Tiger")}; gchar *row4[2] = {N_("By Its"), N_("Toe")}; gchar **rc_files; gint rc_file_count; gchar *home_dir; gint i; for (i=0;i<2;i++) { titles[i]=_(titles[i]); row1[i]=_(row1[i]); row2[i]=_(row2[i]); row3[i]=_(row3[i]); row4[i]=_(row4[i]); } /* 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