new_button (Gtk::Stock::NEW)
{
list = Gtk::ListStore::create (cols);
+ list->set_sort_column (cols.label, Gtk::SORT_ASCENDING);
entry.set_model (list);
entry.set_text_column (cols.label);
{
if (!profile_manager) { return; }
+ Gtk::MessageDialog dialog (_("Do you really want to remove this preset?"),
+ false,
+ Gtk::MESSAGE_QUESTION,
+ Gtk::BUTTONS_YES_NO);
+
+ if (Gtk::RESPONSE_YES != dialog.run ()) {
+ /* User has selected "no" or closed the dialog, better
+ * abort
+ */
+ return;
+ }
+
profile_manager->remove_preset();
entry.get_entry()->set_text ("");
sync_with_manager ();