Mercurial > audlegacy-plugins
comparison src/skins/plugin.c @ 2816:a7a260032a5e
use InterfaceOps
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 13 Jul 2008 13:06:03 +0200 |
parents | 14a58e80ecfe |
children | d75f0db10f53 |
comparison
equal
deleted
inserted
replaced
2815:cc6f02424609 | 2816:a7a260032a5e |
---|---|
29 #include <audacious/i18n.h> | 29 #include <audacious/i18n.h> |
30 #include <libintl.h> | 30 #include <libintl.h> |
31 | 31 |
32 gchar *skins_paths[SKINS_PATH_COUNT] = {}; | 32 gchar *skins_paths[SKINS_PATH_COUNT] = {}; |
33 | 33 |
34 static Interface skins_gp = | 34 Interface skins_interface = |
35 { | 35 { |
36 .id = "skinned", | 36 .id = "skinned", |
37 .desc = "Audacious Skinned GUI", | 37 .desc = "Audacious Skinned GUI", |
38 .init = skins_init, | 38 .init = skins_init, |
39 .fini = skins_cleanup, | 39 .fini = skins_cleanup |
40 .conf = skins_configure | |
41 }; | 40 }; |
42 | 41 |
43 SIMPLE_INTERFACE_PLUGIN("skinned", &skins_gp); | 42 SIMPLE_INTERFACE_PLUGIN("skinned", &skins_interface); |
44 gboolean plugin_is_active = FALSE; | 43 gboolean plugin_is_active = FALSE; |
44 static GtkWidget *cfgdlg; | |
45 | 45 |
46 static void skins_free_paths(void) { | 46 static void skins_free_paths(void) { |
47 int i; | 47 int i; |
48 | 48 |
49 for (i = 0; i < SKINS_PATH_COUNT; i++) { | 49 for (i = 0; i < SKINS_PATH_COUNT; i++) { |
83 ui_manager_init(); | 83 ui_manager_init(); |
84 ui_manager_create_menus(); | 84 ui_manager_create_menus(); |
85 | 85 |
86 init_skins(config.skin); | 86 init_skins(config.skin); |
87 mainwin_setup_menus(); | 87 mainwin_setup_menus(); |
88 | |
89 skins_interface.ops->create_prefs_window(); | |
90 cfgdlg = skins_configure(); | |
91 aud_prefswin_page_new(cfgdlg, N_("Skinned Interface"), DATA_DIR "/images/appearance.png"); | |
88 | 92 |
89 aud_hook_call("create prefswin", NULL); | 93 aud_hook_call("create prefswin", NULL); |
90 | 94 |
91 if (config.player_visible) mainwin_real_show(); | 95 if (config.player_visible) mainwin_real_show(); |
92 if (config.equalizer_visible) equalizerwin_show(TRUE); | 96 if (config.equalizer_visible) equalizerwin_show(TRUE); |