summaryrefslogtreecommitdiff
path: root/wallpapers.c
diff options
context:
space:
mode:
Diffstat (limited to 'wallpapers.c')
-rw-r--r--wallpapers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wallpapers.c b/wallpapers.c
index 25a6578..67c9cef 100644
--- a/wallpapers.c
+++ b/wallpapers.c
@@ -13,7 +13,7 @@
#include "wallpapers.h"
-void add_dir_recursive(const gchar *path, sqlite_uint64 parent, GtkStatusbar *statusbar) {
+void wallpapers_add_dir(const gchar *path, sqlite_uint64 parent, GtkStatusbar *statusbar, gboolean recursive ) {
static guint context_id = 0;
GDir *dir;
const gchar *filename;
@@ -73,7 +73,8 @@ void add_dir_recursive(const gchar *path, sqlite_uint64 parent, GtkStatusbar *st
g_free(filepath);
continue;
}
- add_dir_recursive(filepath, dirid, statusbar);
+ if(recursive)
+ wallpapers_add_dir(filepath, dirid, statusbar, recursive);
g_free(filepath);
gdk_threads_enter();
gtk_statusbar_pop(statusbar, context_id);