Mercurial > audlegacy
diff src/audacious/interface.c @ 4751:b87f8c707b7f
branch merge
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Wed, 06 Aug 2008 22:33:27 +0300 |
parents | ad06ffc54c23 |
children | 9b9bcf252a10 |
line wrap: on
line diff
--- a/src/audacious/interface.c Wed Aug 06 22:30:35 2008 +0300 +++ b/src/audacious/interface.c Wed Aug 06 22:33:27 2008 +0300 @@ -1,6 +1,7 @@ /* * Audacious2 * Copyright (c) 2008 William Pitcock <nenolod@dereferenced.org> + * Copyright (c) 2008 Tomasz Moń <desowin@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,9 +23,25 @@ #include <mowgli.h> #include "interface.h" +#include "ui_fileopener.h" +#include "ui_urlopener.h" +#include "ui_preferences.h" +#include "ui_jumptotrack.h" +#include "ui_credits.h" static mowgli_dictionary_t *interface_dict_ = NULL; +static InterfaceOps interface_ops = { + .create_prefs_window = create_prefs_window, + .show_prefs_window = show_prefs_window, + .hide_prefs_window = hide_prefs_window, + + .filebrowser_show = run_filebrowser, + .urlopener_show = show_add_url_window, + .jump_to_track_show = ui_jump_to_track, + .aboutwin_show = show_about_window, +}; + void interface_register(Interface *i) { @@ -42,13 +59,10 @@ mowgli_dictionary_delete(interface_dict_, i->id); } -/* - * TODO: - * - set up InterfaceOps struct for the Interface to use - */ void interface_run(Interface *i) { + i->ops = &interface_ops; i->init(); }