Mercurial > geeqie
comparison src/rcfile.c @ 283:e213fb025621
GQVIEW_* -> GQ_*
author | zas_ |
---|---|
date | Tue, 08 Apr 2008 23:16:12 +0000 |
parents | 9995c5fb202a |
children | d1f74154463e |
comparison
equal
deleted
inserted
replaced
282:c2cb12def9d6 | 283:e213fb025621 |
---|---|
592 SecureSaveInfo *ssi; | 592 SecureSaveInfo *ssi; |
593 gchar *rc_path; | 593 gchar *rc_path; |
594 gchar *rc_pathl; | 594 gchar *rc_pathl; |
595 gint i; | 595 gint i; |
596 | 596 |
597 rc_path = g_strconcat(homedir(), "/", GQVIEW_RC_DIR, "/", RC_FILE_NAME, NULL); | 597 rc_path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_FILE_NAME, NULL); |
598 | 598 |
599 rc_pathl = path_from_utf8(rc_path); | 599 rc_pathl = path_from_utf8(rc_path); |
600 ssi = secure_open(rc_pathl); | 600 ssi = secure_open(rc_pathl); |
601 g_free(rc_pathl); | 601 g_free(rc_pathl); |
602 if (!ssi) | 602 if (!ssi) |
761 | 761 |
762 secure_fprintf(ssi, "\n##### External Programs #####\n"); | 762 secure_fprintf(ssi, "\n##### External Programs #####\n"); |
763 secure_fprintf(ssi, "# Maximum of 10 programs (external_1 through external_10)\n"); | 763 secure_fprintf(ssi, "# Maximum of 10 programs (external_1 through external_10)\n"); |
764 secure_fprintf(ssi, "# format: external_n: \"menu name\" \"command line\"\n\n"); | 764 secure_fprintf(ssi, "# format: external_n: \"menu name\" \"command line\"\n\n"); |
765 | 765 |
766 for (i = 0; i < GQVIEW_EDITOR_SLOTS; i++) | 766 for (i = 0; i < GQ_EDITOR_SLOTS; i++) |
767 { | 767 { |
768 gchar *qname = escquote_value(editor_name[i]); | 768 gchar *qname = escquote_value(editor_name[i]); |
769 gchar *qcommand = escquote_value(editor_command[i]); | 769 gchar *qcommand = escquote_value(editor_command[i]); |
770 secure_fprintf(ssi, "external_%d: %s %s\n", i+1, qname, qcommand); | 770 secure_fprintf(ssi, "external_%d: %s %s\n", i+1, qname, qcommand); |
771 g_free(qname); | 771 g_free(qname); |
841 gint c,l,i; | 841 gint c,l,i; |
842 | 842 |
843 for (i = 0; ExifUIList[i].key; i++) | 843 for (i = 0; ExifUIList[i].key; i++) |
844 ExifUIList[i].current = ExifUIList[i].default_value; | 844 ExifUIList[i].current = ExifUIList[i].default_value; |
845 | 845 |
846 rc_path = g_strconcat(homedir(), "/", GQVIEW_RC_DIR, "/", RC_FILE_NAME, NULL); | 846 rc_path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_FILE_NAME, NULL); |
847 | 847 |
848 rc_pathl = path_from_utf8(rc_path); | 848 rc_pathl = path_from_utf8(rc_path); |
849 f = fopen(rc_pathl,"r"); | 849 f = fopen(rc_pathl,"r"); |
850 g_free(rc_pathl); | 850 g_free(rc_pathl); |
851 if (!f) | 851 if (!f) |
1085 /* External Programs */ | 1085 /* External Programs */ |
1086 | 1086 |
1087 if (strncasecmp(option, "external_", 9) == 0) | 1087 if (strncasecmp(option, "external_", 9) == 0) |
1088 { | 1088 { |
1089 i = strtol(option + 9, NULL, 0); | 1089 i = strtol(option + 9, NULL, 0); |
1090 if (i > 0 && i <= GQVIEW_EDITOR_SLOTS) | 1090 if (i > 0 && i <= GQ_EDITOR_SLOTS) |
1091 { | 1091 { |
1092 const gchar *ptr; | 1092 const gchar *ptr; |
1093 i--; | 1093 i--; |
1094 g_free(editor_name[i]); | 1094 g_free(editor_name[i]); |
1095 g_free(editor_command[i]); | 1095 g_free(editor_command[i]); |