NetSurf
Functions | Variables
misc.c File Reference

Implementation of netsurf miscellaneous operations table. More...

#include <string.h>
#include <stdbool.h>
#include <gtk/gtk.h>
#include "utils/config.h"
#include "utils/errors.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/nsurl.h"
#include "netsurf/misc.h"
#include "desktop/save_pdf.h"
#include "gtk/compat.h"
#include "gtk/warn.h"
#include "gtk/schedule.h"
#include "gtk/resources.h"
#include "gtk/cookies.h"
#include "gtk/misc.h"
Include dependency graph for misc.c:

Go to the source code of this file.

Functions

static nserror gui_launch_url (struct nsurl *url)
 
static void nsgtk_PDF_set_pass (GtkButton *w, gpointer data)
 
static void nsgtk_PDF_no_pass (GtkButton *w, gpointer data)
 
static void nsgtk_pdf_password (char **owner_pass, char **user_pass, char *path)
 

Variables

static struct gui_misc_table misc_table
 
struct gui_misc_tablensgtk_misc_table = &misc_table
 

Detailed Description

Implementation of netsurf miscellaneous operations table.

Definition in file misc.c.

Function Documentation

◆ gui_launch_url()

static nserror gui_launch_url ( struct nsurl url)
static

Definition at line 44 of file misc.c.

References messages_get(), NSERROR_NO_FETCH_HANDLER, NSERROR_OK, nsgtk_show_uri(), nsgtk_warning(), and nsurl_access().

Here is the call graph for this function:

◆ nsgtk_PDF_no_pass()

static void nsgtk_PDF_no_pass ( GtkButton *  w,
gpointer  data 
)
static

Definition at line 124 of file misc.c.

References path(), and save_pdf().

Referenced by nsgtk_pdf_password().

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

◆ nsgtk_pdf_password()

static void nsgtk_pdf_password ( char **  owner_pass,
char **  user_pass,
char *  path 
)
static

Definition at line 140 of file misc.c.

References NSERROR_OK, nsgtk_builder_new_from_resname(), nsgtk_PDF_no_pass(), nsgtk_PDF_set_pass(), NSLOG, and path().

Here is the call graph for this function:

◆ nsgtk_PDF_set_pass()

static void nsgtk_PDF_set_pass ( GtkButton *  w,
gpointer  data 
)
static

Definition at line 61 of file misc.c.

References path(), and save_pdf().

Referenced by nsgtk_pdf_password().

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

Variable Documentation

◆ misc_table

struct gui_misc_table misc_table
static
Initial value:
= {
.schedule = nsgtk_schedule,
.launch_url = gui_launch_url,
.pdf_password = nsgtk_pdf_password,
.present_cookies = nsgtk_cookies_present,
}
nserror nsgtk_cookies_present(const char *search_term)
make the cookie window visible.
Definition: cookies.c:311
static nserror gui_launch_url(struct nsurl *url)
Definition: misc.c:44
static void nsgtk_pdf_password(char **owner_pass, char **user_pass, char *path)
Definition: misc.c:140
nserror nsgtk_schedule(int t, void(*callback)(void *p), void *cbctx)
Definition: schedule.c:103

Definition at line 184 of file misc.c.

◆ nsgtk_misc_table

struct gui_misc_table* nsgtk_misc_table = &misc_table

Definition at line 192 of file misc.c.

Referenced by main().