+static void
+_value_changed (HildonPickerButton *button, TweakrProfileSection *section)
+{
+ HildonTouchSelector *selector;
+ gint active;
+ GtkWindow *parent;
+
+ selector = hildon_picker_button_get_selector (button);
+ active = hildon_touch_selector_get_active (selector, 0);
+
+ parent = GTK_WINDOW (gtk_widget_get_ancestor (tweakr_section_get_widget
+ (TWEAKR_SECTION (section)),
+ GTK_TYPE_WINDOW));
+#if 0
+ if (active == 0)
+ {
+ GtkWidget *dialog, *entry;
+ gint ret;
+ const gchar *text = NULL;
+
+ dialog = gtk_dialog_new_with_buttons
+ (_("Save current profile with new name"),
+ parent,
+ GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR,
+ GTK_STOCK_OK, GTK_RESPONSE_OK,
+ NULL);
+
+ entry = hildon_entry_new (HILDON_SIZE_FINGER_HEIGHT);
+ gtk_widget_show (entry);
+
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), entry,
+ TRUE, TRUE, 0);
+ while (text == NULL || text [0] == '\0')
+ {
+ GtkTreeModel *model;
+ gint index;
+
+ ret = gtk_dialog_run (GTK_DIALOG (dialog));
+ if (ret == GTK_RESPONSE_OK)
+ {
+ text = hildon_entry_get_text (HILDON_ENTRY (entry));
+ if (text == NULL || text[0] == '\0')
+ {
+ GtkWidget *banner;
+
+ banner = hildon_banner_show_information
+ (dialog, NULL, _("Enter the name first."));
+
+ continue;
+ }
+
+ hildon_touch_selector_append_text (selector, text);
+ model = hildon_touch_selector_get_model (selector, 0);
+ index = gtk_tree_model_iter_n_children (model, NULL);
+ hildon_touch_selector_set_active (selector, 0, index);
+ }
+ else
+ {
+ gtk_widget_destroy (dialog);
+ hildon_touch_selector_set_active (selector, 0,
+ section->previous_selected);
+ break;
+ }
+ gtk_widget_destroy (dialog);
+ }
+ }
+#endif
+ section->previous_selected = hildon_touch_selector_get_active (selector,
+ 0);
+ section->value_changed = TRUE;
+}
+