[Thunar-dev] What's wrong with this code? ThuanrFile is incomplete type?
Aaron Lewis
the.warl0ck.1989 at gmail.com
Sun Mar 10 08:35:14 CET 2013
Hi,
I'm modifying a patch to make the code cleaner,
The original one is attached
static gboolean thunar_window_open_term(ThunarWindow *window) {
char *argv[6] = {
"exo-open",
"--launch",
"TerminalEmulator",
"--working-directory",
g_file_get_path(window->current_directory->gfile)
};
return g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL,
NULL, NULL, NULL);
}
But window->current_directory->gfile won't deference (the GFile part),
any ideas?
thunar-window.c:402:46: error: dereferencing pointer to incomplete type
Version: 1.6.2
--
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open_xfce4_term_here.patch
Type: application/octet-stream
Size: 4157 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20130310/8d62824d/attachment.obj>
More information about the Thunar-dev
mailing list