Mercurial > audlegacy-plugins
diff src/skins/ui_main.c @ 2837:bdc4fbf878ec
make use of new InterfaceOps
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Mon, 14 Jul 2008 18:07:03 +0200 |
parents | a7a260032a5e |
children | d75f0db10f53 |
line wrap: on
line diff
--- a/src/skins/ui_main.c Mon Jul 14 11:54:07 2008 +0200 +++ b/src/skins/ui_main.c Mon Jul 14 18:07:03 2008 +0200 @@ -81,6 +81,7 @@ #include "ui_skinned_playstatus.h" #include "ui_skinned_monostereo.h" #include "ui_skinned_playlist.h" +#include "ui_main_evlisteners.h" #include <audacious/plugin.h> #include "skins_cfg.h" @@ -848,7 +849,7 @@ aud_playlist_next(playlist); break; case GDK_KP_Insert: - audacious_drct_jtf_show(); + action_jump_to_file(); break; case GDK_Return: case GDK_KP_Enter: @@ -1060,8 +1061,8 @@ /* perhaps make suffix check case-insensitive -- desowin */ if (aud_str_has_prefix_nocase((char*)selection_data->data, "file:///")) { - if (str_has_suffix_nocase((char*)selection_data->data, ".wsz\r\n") || - str_has_suffix_nocase((char*)selection_data->data, ".zip\r\n")) { + if (aud_str_has_suffix_nocase((char*)selection_data->data, ".wsz\r\n") || + aud_str_has_suffix_nocase((char*)selection_data->data, ".zip\r\n")) { on_skin_view_drag_data_received(GTK_WIDGET(user_data), context, x, y, selection_data, info, time, NULL); return; } @@ -1759,7 +1760,7 @@ mainwin_jump_to_time(); break; case MAINWIN_GENERAL_JTF: - audacious_drct_jtf_show(); + action_jump_to_file(); break; case MAINWIN_GENERAL_EXIT: mainwin_quit_cb(); @@ -2695,8 +2696,7 @@ void action_about_audacious( void ) { - gboolean show = TRUE; - aud_hook_call("aboutwin show", &show); + skins_interface.ops->aboutwin_show(); } void @@ -2759,7 +2759,7 @@ void action_jump_to_file( void ) { - audacious_drct_jtf_show(); + skins_interface.ops->jump_to_track_show(); } void