diff options
Diffstat (limited to 'x11/gtkchtheme/files/patch-main.c')
-rw-r--r-- | x11/gtkchtheme/files/patch-main.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/x11/gtkchtheme/files/patch-main.c b/x11/gtkchtheme/files/patch-main.c new file mode 100644 index 000000000000..1613f819437f --- /dev/null +++ b/x11/gtkchtheme/files/patch-main.c @@ -0,0 +1,33 @@ +--- main.c.orig Wed Jun 23 11:39:35 2004 ++++ main.c Wed Jun 23 11:54:03 2004 +@@ -75,15 +75,18 @@ + + void apply_new_look(gboolean is_preview) + { ++ FILE *gtkrc_fh; ++ gchar *include_file; ++ gchar *default_files[2]; + if(!themename) return; + + cleanup_temporary(); + +- FILE *gtkrc_fh = is_preview ++ gtkrc_fh = is_preview + ? fdopen(g_file_open_tmp("gtkrc.preview-XXXXXXXX", &tmp_rc, NULL), "w+") + : fopen(gtkrc, "w"); + +- gchar *include_file = g_hash_table_lookup(hash, themename); ++ include_file = g_hash_table_lookup(hash, themename); + + fprintf(gtkrc_fh, + "# -- THEME AUTO-WRITTEN DO NOT EDIT\n" "include \"%s\"\n\n", +@@ -101,7 +104,8 @@ + fprintf(gtkrc_fh, "# -- THEME AUTO-WRITTEN DO NOT EDIT\n"); + fclose(gtkrc_fh); + +- gchar *default_files[] = { is_preview ? tmp_rc : gtkrc, NULL }; ++ default_files[0] = is_preview ? tmp_rc : gtkrc; ++ default_files[1] = NULL; + gtk_rc_set_default_files(default_files); + + if (is_preview) |