summaryrefslogtreecommitdiff
path: root/src/dlg-add-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r--src/dlg-add-folder.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c
index ab613ed..eda59af 100644
--- a/src/dlg-add-folder.c
+++ b/src/dlg-add-folder.c
@@ -54,7 +54,6 @@ typedef struct {
char *last_options;
} DialogData;
-
static void
open_file_destroy_cb (GtkWidget *widget,
DialogData *data)
@@ -64,7 +63,6 @@ open_file_destroy_cb (GtkWidget *widget,
g_free (data);
}
-
static gboolean
utf8_only_spaces (const char *text)
{
@@ -82,10 +80,8 @@ utf8_only_spaces (const char *text)
return TRUE;
}
-
static void dlg_add_folder_save_last_options (DialogData *data);
-
static int
file_sel_response_cb (GtkWidget *widget,
int response,
@@ -101,7 +97,6 @@ file_sel_response_cb (GtkWidget *widget,
char *dest_dir;
char *local_filename;
-
dlg_add_folder_save_last_options (data);
if ((response == GTK_RESPONSE_CANCEL) || (response == GTK_RESPONSE_DELETE_EVENT)) {
@@ -178,7 +173,6 @@ file_sel_response_cb (GtkWidget *widget,
return TRUE;
}
-
static int
include_subfold_toggled_cb (GtkWidget *widget,
gpointer callback_data)
@@ -191,13 +185,11 @@ include_subfold_toggled_cb (GtkWidget *widget,
return FALSE;
}
-
static void load_options_cb (GtkWidget *w, DialogData *data);
static void save_options_cb (GtkWidget *w, DialogData *data);
static void clear_options_cb (GtkWidget *w, DialogData *data);
static void dlg_add_folder_load_last_options (DialogData *data);
-
/* create the "add" dialog. */
void
add_folder_cb (GtkWidget *widget,
@@ -239,10 +231,8 @@ add_folder_cb (GtkWidget *widget,
gtk_widget_show (data->dialog);
}
-
/* load/save the dialog options */
-
static void
dlg_add_folder_save_last_used_options (DialogData *data,
const char *options_path)
@@ -251,7 +241,6 @@ dlg_add_folder_save_last_used_options (DialogData *data,
data->last_options = g_strdup (file_name_from_path (options_path));
}
-
static void
sync_widgets_with_options (DialogData *data,
const char *base_dir,
@@ -282,7 +271,6 @@ sync_widgets_with_options (DialogData *data,
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (data->exclude_symlinks), no_symlinks);
}
-
static void
clear_options_cb (GtkWidget *w,
DialogData *data)
@@ -298,7 +286,6 @@ clear_options_cb (GtkWidget *w,
FALSE);
}
-
static gboolean
dlg_add_folder_load_options (DialogData *data,
const char *name)
@@ -365,7 +352,6 @@ dlg_add_folder_load_options (DialogData *data,
return TRUE;
}
-
static void
dlg_add_folder_load_last_options (DialogData *data)
{
@@ -404,7 +390,6 @@ dlg_add_folder_load_last_options (DialogData *data)
g_free (exclude_folders);
}
-
static void
get_options_from_widgets (DialogData *data,
char **base_dir,
@@ -435,7 +420,6 @@ get_options_from_widgets (DialogData *data,
*exclude_folders = "";
}
-
static void
dlg_add_folder_save_current_options (DialogData *data,
GFile *options_file)
@@ -479,7 +463,6 @@ dlg_add_folder_save_current_options (DialogData *data,
g_free (filename);
}
-
static void
dlg_add_folder_save_last_options (DialogData *data)
{
@@ -515,7 +498,6 @@ dlg_add_folder_save_last_options (DialogData *data)
g_free (filename);
}
-
typedef struct {
DialogData *data;
GtkWidget *dialog;
@@ -523,7 +505,6 @@ typedef struct {
GtkTreeModel *aod_model;
} LoadOptionsDialogData;
-
static void
aod_destroy_cb (GtkWidget *widget,
LoadOptionsDialogData *aod_data)
@@ -531,7 +512,6 @@ aod_destroy_cb (GtkWidget *widget,
g_free (aod_data);
}
-
static void
aod_apply_cb (GtkWidget *widget,
gpointer callback_data)
@@ -554,7 +534,6 @@ aod_apply_cb (GtkWidget *widget,
gtk_widget_destroy (aod_data->dialog);
}
-
static void
aod_activated_cb (GtkTreeView *tree_view,
GtkTreePath *path,
@@ -564,7 +543,6 @@ aod_activated_cb (GtkTreeView *tree_view,
aod_apply_cb (NULL, callback_data);
}
-
static void
aod_update_option_list (LoadOptionsDialogData *aod_data)
{
@@ -619,7 +597,6 @@ aod_update_option_list (LoadOptionsDialogData *aod_data)
g_object_unref (options_dir);
}
-
static void
aod_remove_cb (GtkWidget *widget,
LoadOptionsDialogData *aod_data)
@@ -650,7 +627,6 @@ aod_remove_cb (GtkWidget *widget,
g_free (filename);
}
-
static void
load_options_cb (GtkWidget *w,
DialogData *data)
@@ -719,7 +695,6 @@ load_options_cb (GtkWidget *w,
gtk_widget_show (aod_data->dialog);
}
-
static void
save_options_cb (GtkWidget *w,
DialogData *data)