mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Fix some build warnings.
This commit is contained in:
parent
eecb074f7b
commit
045905b93e
@ -143,7 +143,7 @@ static const char *cocoa_hotlist_path( void )
|
||||
{
|
||||
struct browser_window *bw = [[(NetSurfApp *)NSApp frontTab] browser];
|
||||
if (bw && bw->current_content) {
|
||||
const char *url = nsurl_access(content_get_url( bw->current_content ));
|
||||
const char *url = nsurl_access(hlcache_handle_get_url( bw->current_content ));
|
||||
hotlist_add_page( url );
|
||||
}
|
||||
}
|
||||
|
@ -522,7 +522,7 @@ static browser_mouse_state cocoa_mouse_flags_for_event( NSEvent *evt )
|
||||
browser_window_get_contextual_content( browser, point.x, point.y, &cont);
|
||||
|
||||
if (cont.object != NULL) {
|
||||
NSString *imageURL = [NSString stringWithUTF8String: nsurl_access(content_get_url( cont.object ))];
|
||||
NSString *imageURL = [NSString stringWithUTF8String: nsurl_access(hlcache_handle_get_url( cont.object ))];
|
||||
|
||||
[[popupMenu addItemWithTitle: NSLocalizedString( @"Open image in new tab", @"Context menu" )
|
||||
action: @selector(cmOpenURLInTab:)
|
||||
|
Loading…
Reference in New Issue
Block a user