1 /* This file is part of LED Pattern Editor.
3 * Copyright (C) 2010 Philipp Zabel
5 * LED Pattern Editor is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * LED Pattern Editor is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with LED Pattern Editor. If not, see <http://www.gnu.org/licenses/>.
19 public static Osso.Status execute (Osso.Context osso, void* data, bool user_activated) {
20 var window = data as Gtk.Window;
22 var list = mce_ini_parse ();
24 var dialog = new LedPatternDialog (list);
25 dialog.set_transient_for (window);
27 int response = dialog.run ();
29 if (response == Gtk.ResponseType.OK) {
33 return Osso.Status.OK;
36 public static Osso.Status save_state (Osso.Context osso, void* data) {
37 return Osso.Status.OK;