NetSurf
Functions
viewsource.c File Reference
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include "utils/utils.h"
#include "utils/utf8.h"
#include "utils/nsurl.h"
#include "utils/messages.h"
#include "netsurf/browser_window.h"
#include "netsurf/content.h"
#include "gtk/viewdata.h"
#include "gtk/viewsource.h"
Include dependency graph for viewsource.c:

Go to the source code of this file.

Functions

nserror nsgtk_viewsource (GtkWindow *parent, struct browser_window *bw)
 

Function Documentation

◆ nsgtk_viewsource()

nserror nsgtk_viewsource ( GtkWindow *  parent,
struct browser_window bw 
)

Definition at line 33 of file viewsource.c.

References browser_window_access_url(), browser_window_get_content(), CONTENT_ENCODING_NORMAL, content_get_encoding(), content_get_source_data(), content_get_type(), CONTENT_HTML, messages_get(), NSERROR_BAD_CONTENT, NSERROR_BAD_PARAMETER, NSERROR_NOMEM, NSERROR_OK, nsgtk_viewdata(), nsurl_access(), nsurl_nice(), SLEN, and utf8_from_enc().

Referenced by viewsource_button_clicked_cb().

Here is the call graph for this function:
Here is the caller graph for this function: