From 0b64df140c87c81d5046c0a97b5a655ca7af170b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 16 Oct 2014 09:55:01 +0100 Subject: Update amiga frontend for split operation table header changes --- amiga/context_menu.c | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'amiga/context_menu.c') diff --git a/amiga/context_menu.c b/amiga/context_menu.c index 5e35f5d0e..a9a5f63f7 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -23,10 +23,21 @@ #include #include #include - #include +#include + +#include "utils/nsoption.h" +#include "utils/utf8.h" +#include "utils/messages.h" +#include "utils/utils.h" +#include "render/form.h" +#include "desktop/browser_history.h" +#include "desktop/browser_private.h" +#include "desktop/hotlist.h" +#include "desktop/searchweb.h" +#include "desktop/textinput.h" +#include "desktop/gui_window.h" -#include "amiga/context_menu.h" #include "amiga/clipboard.h" #include "amiga/bitmap.h" #include "amiga/file.h" @@ -34,22 +45,12 @@ #include "amiga/gui.h" #include "amiga/history_local.h" #include "amiga/iff_dr2d.h" -#include "utils/nsoption.h" #include "amiga/plugin_hack.h" #include "amiga/theme.h" #include "amiga/tree.h" #include "amiga/utf8.h" -#include "desktop/browser_history.h" -#include "desktop/browser_private.h" -#include "desktop/hotlist.h" -#include "desktop/searchweb.h" -#include "desktop/textinput.h" -#include "render/form.h" -#include "utils/utf8.h" -#include "utils/messages.h" -#include "utils/utils.h" +#include "amiga/context_menu.h" -#include static uint32 ami_context_menu_hook(struct Hook *hook, Object *item, APTR reserved); static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR reserved); @@ -556,8 +557,6 @@ void ami_context_menu_free(void) BOOL ami_context_menu_mouse_trap(struct gui_window_2 *gwin, BOOL trap) { - int top, left, width, height; - if(nsoption_bool(context_menu) == false) return FALSE; if((nsoption_bool(kiosk_mode) == false) && (trap == FALSE)) @@ -584,11 +583,8 @@ BOOL ami_context_menu_mouse_trap(struct gui_window_2 *gwin, BOOL trap) void ami_context_menu_show(struct gui_window_2 *gwin,int x,int y) { struct hlcache_handle *cc = gwin->bw->current_content; - int box_x=0; - int box_y=0; bool no_more_menus = false; bool menuhascontent = false; - ULONG ret = 0; struct contextual_content ccdata; if(!cc) return; @@ -734,9 +730,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved { struct ami_file_input_menu_data *file_input = userdata; - char *utf8_fn; char fname[1024]; - int x,y; strlcpy(fname,filereq->fr_Drawer,1024); AddPart(fname,filereq->fr_File,1024); -- cgit v1.2.3