/* * XXX: Currently we just follow the gnome vfs monitor type flags when * deciding how to treat the path. In the future we could try * and determine whether the path points to a directory or a file but * that is racey. */ static void ih_sub_setup (ih_sub_t *sub) { if (sub->is_dir) { sub->dirname = g_strdup (sub->pathname); sub->filename = NULL; } else { sub->dirname = ih_sub_get_dirname (sub->pathname); sub->filename = ih_sub_get_filename (sub->pathname); } ih_sub_fix_dirname (sub); IS_W("sub->dirname = %s\n", sub->dirname); if (sub->filename) { IS_W("sub->filename = %s\n", sub->filename); } }
/* * XXX: Currently we just follow the mate vfs monitor type flags when * deciding how to treat the path. In the future we could try * and determine whether the path points to a directory or a file but * that is racey. */ static void ih_sub_setup (ih_sub_t *sub) { if (sub->type & MATE_VFS_MONITOR_DIRECTORY) { sub->dirname = g_strdup (sub->pathname); sub->filename = NULL; } else { sub->dirname = ih_sub_get_uri_dirname (sub->uri); sub->filename = ih_sub_get_uri_filename (sub->uri); } ih_sub_fix_dirname (sub); IS_W("sub->dirname = %s\n", sub->dirname); if (sub->filename) { IS_W("sub->filename = %s\n", sub->filename); } }