/* This file is part of LED Pattern Editor. * * Copyright (C) 2010 Philipp Zabel * * LED Pattern Editor is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * LED Pattern Editor is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with LED Pattern Editor. If not, see . */ public static Osso.Status execute (Osso.Context osso, void* data, bool user_activated) { var window = data as Gtk.Window; var list = mce_ini_parse (); var dialog = new LedPatternDialog (list); dialog.set_transient_for (window); int response = dialog.run (); dialog.destroy (); if (response == Gtk.ResponseType.OK) { mce_ini_store (list); } return Osso.Status.OK; } public static Osso.Status save_state (Osso.Context osso, void* data) { return Osso.Status.OK; }