#endif
-/* ----------------------------------------------------------------
- Tab completion routines, can be connected to any gtkentry widget
- using the tab_completion_add_to_entry() function.
- Use remove_trailing_slash() to strip the trailing G_DIR_SEPARATOR.
- ----------------------------------------------------------------*/
+/**
+ * @file
+ * ----------------------------------------------------------------
+ * Tab completion routines, can be connected to any gtkentry widget
+ * using the tab_completion_add_to_entry() function.
+ *
+ * Use remove_trailing_slash() to strip the trailing G_DIR_SEPARATOR.
+ *
+ * ----------------------------------------------------------------
+ */
typedef struct _TabCompData TabCompData;
struct _TabCompData
while ((dir = readdir(dp)) != NULL)
{
gchar *name = dir->d_name;
- if (strcmp(name, ".") != 0 && strcmp(name, "..") != 0)
+ if (strcmp(name, ".") != 0 && strcmp(name, "..") != 0 &&
+ (name[0] != '.' || options->file_filter.show_hidden_files))
{
gchar *abspath = g_build_filename(pathl, name, NULL);
if (entry_text[0] == '\0')
{
- entry_dir = g_strdup(G_DIR_SEPARATOR_S); /* FIXME: root directory win32 */
+ entry_dir = g_strdup(G_DIR_SEPARATOR_S); /** @FIXME root directory win32 */
gtk_entry_set_text(GTK_ENTRY(td->entry), entry_dir);
gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(entry_dir));
g_free(entry_dir);
if (strlen(entry_dir) == 0)
{
g_free(entry_dir);
- entry_dir = g_strdup(G_DIR_SEPARATOR_S); /* FIXME: win32 */
+ entry_dir = g_strdup(G_DIR_SEPARATOR_S); /** @FIXME win32 */
}
if (isdir(entry_dir))