Mercurial > audlegacy
changeset 4528:2638175099e0
Restore util_menu_main_show() for plugins - thanks go to ccr for the first
fix! ;-)
author | mf0102 <0102@gmx.at> |
---|---|
date | Wed, 30 Apr 2008 14:36:50 +0200 |
parents | 53bd726e4461 |
children | 6cf91e97c6d5 |
files | src/audacious/pluginenum.c src/audacious/ui_main.c src/audacious/ui_main.h |
diffstat | 3 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/pluginenum.c Wed Apr 30 04:42:55 2008 +0300 +++ b/src/audacious/pluginenum.c Wed Apr 30 14:36:50 2008 +0200 @@ -372,7 +372,7 @@ .effect_flow = effect_flow, .volumecontrol_flow = volumecontrol_flow, - .util_menu_main_show = NULL, /* deprecated --mf0102 */ + .util_menu_main_show = util_menu_main_show, .get_dock_window_list = get_dock_window_list, .dock_add_window = dock_add_window,
--- a/src/audacious/ui_main.c Wed Apr 30 04:42:55 2008 +0300 +++ b/src/audacious/ui_main.c Wed Apr 30 14:36:50 2008 +0200 @@ -2867,3 +2867,12 @@ { mainwin_quit_cb(); } + +void +util_menu_main_show( gint x , gint y , guint button , guint time ) +{ + /* convenience function that shows the main popup menu wherever requested */ + ui_manager_popup_menu_show( GTK_MENU(mainwin_general_menu), + x , y , button , time ); + return; +}