#include "ui-common.h"
#include "settings.h"
#include "filter.h"
-#include "hildon-wrappers.h"
+#include "filter-gui.h"
+#include "config-gconf.h"
+gboolean
+filter_dialog(GtkWidget *window)
+{
GtkWidget *dialog;
-GtkWidget *swindow;
GtkWidget *table;
GtkWidget *notebook;
GtkWidget *label;
GtkWidget *num_osm_dist;
GtkWidget *num_maxdrop;
-gboolean
-filter_dialog(void)
-{
dialog = gtk_dialog_new_with_buttons(_("Track Filter"),
- GTK_WINDOW(_window),
+ GTK_WINDOW(window),
GTK_DIALOG_MODAL, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
- NULL);
+ GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL);
-gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),
- notebook = gtk_notebook_new(), TRUE, TRUE, 0);
+gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), notebook = gtk_notebook_new(), TRUE, TRUE, 0);
-gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
- table = gtk_table_new(2,4,FALSE), label = gtk_label_new(_("GPS")));
+gtk_notebook_append_page(GTK_NOTEBOOK(notebook), table = gtk_table_new(2,4,FALSE), label = gtk_label_new(_("GPS")));
gtk_table_attach(GTK_TABLE(table), chk_gps_filter = gtk_check_button_new_with_label(_("Enable track filter")),
0, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 2, 4);