Mercurial > geeqie.yaz
comparison src/main.c @ 782:3f7a0420c293
Allow to modify the aspect of Geeqie through the use of a
gtkrc file that may be present in the geeqie rc directory.
Patch by Aldric RENAUDIN and me.
author | zas_ |
---|---|
date | Tue, 03 Jun 2008 15:54:05 +0000 |
parents | 2d2cca2bceb0 |
children | d6a7fb4b8e7c |
comparison
equal
deleted
inserted
replaced
781:2d2cca2bceb0 | 782:3f7a0420c293 |
---|---|
649 setup_default_options(options); | 649 setup_default_options(options); |
650 load_options(options); | 650 load_options(options); |
651 | 651 |
652 parse_command_line(argc, argv, &cmd_path, &cmd_file, &cmd_list, &collection_list, &geometry); | 652 parse_command_line(argc, argv, &cmd_path, &cmd_file, &cmd_list, &collection_list, &geometry); |
653 | 653 |
654 /* If a gtkrc file exists in the rc directory, add it to the | |
655 * list of files to be parsed at the end of gtk_init() */ | |
656 buf = g_build_filename(homedir(), GQ_RC_DIR, "gtkrc", NULL); | |
657 bufl = path_from_utf8(buf); | |
658 if (access(bufl, R_OK) == 0) | |
659 gtk_rc_add_default_file(bufl); | |
660 g_free(bufl); | |
661 g_free(buf); | |
662 | |
654 gtk_init(&argc, &argv); | 663 gtk_init(&argc, &argv); |
655 | 664 |
656 if (gtk_major_version < GTK_MAJOR_VERSION || | 665 if (gtk_major_version < GTK_MAJOR_VERSION || |
657 (gtk_major_version == GTK_MAJOR_VERSION && gtk_minor_version < GTK_MINOR_VERSION) ) | 666 (gtk_major_version == GTK_MAJOR_VERSION && gtk_minor_version < GTK_MINOR_VERSION) ) |
658 { | 667 { |