diff options
author | jstebbins <[email protected]> | 2008-09-06 16:48:54 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-06 16:48:54 +0000 |
commit | 88b4851b757a6276f4b717127a5463005b6a868f (patch) | |
tree | c52e671d57ec6b3a40e5f7b2ede8e800ca33e795 /gtk/src/plist.c | |
parent | 6d9a7854ec8143ac4b45b66eb2a32e357ba6cacb (diff) |
LinGui: Add queue save/restore
- 2 instances of libhb are used. One for queue activities and one for scanning
new sources prior to adding to the queue.
- Improve chapter entry usability. In addition to "return" advancing to the
next chapter for editing, up and down arrows will advance to prev/next and
put the cell in edit mode.
- Add an accelerator key to jump to the destination entry box.
- Fix a queue window resize problem.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1668 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/plist.c')
-rw-r--r-- | gtk/src/plist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/plist.c b/gtk/src/plist.c index da7bc55e7..93178b370 100644 --- a/gtk/src/plist.c +++ b/gtk/src/plist.c @@ -382,14 +382,12 @@ ghb_plist_parse(const gchar *buf, gssize len) } GValue* -ghb_plist_parse_file(const gchar *filename) +ghb_plist_parse_file(FILE *fd) { - FILE *fd; gchar *buffer; size_t size; GValue *gval; - fd = fopen(filename, "r"); if (fd == NULL) return NULL; fseek(fd, 0, SEEK_END); @@ -577,11 +575,13 @@ main(gint argc, gchar *argv[]) g_type_init(); - gval = ghb_plist_parse_file(argv[1]); + file = g_fopen(argv[1], "r"); + gval = ghb_plist_parse_file(file); if (argc > 2) ghb_plist_write_file(argv[2], gval); else ghb_plist_write(stdout, gval); + if (file) fclose (file); return 0; } #endif |