NetSurf
Macros | Functions
about.c File Reference

Implementation of gtk about dialog. More...

#include <stdlib.h>
#include <stdint.h>
#include "utils/messages.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
#include "netsurf/browser_window.h"
#include "desktop/version.h"
#include "gtk/warn.h"
#include "gtk/compat.h"
#include "gtk/about.h"
Include dependency graph for about.c:

Go to the source code of this file.

Macros

#define ABOUT_RESPONSE_ID_LICENCE   1
 
#define ABOUT_RESPONSE_ID_CREDITS   2
 

Functions

static void about_open (const char *url_text)
 Open a url and a browser window/tab. More...
 
static void nsgtk_about_dialog_response (GtkDialog *dialog, gint response_id, gpointer user_data)
 About dialog response handling. More...
 
void nsgtk_about_dialog_init (GtkWindow *parent)
 

Detailed Description

Implementation of gtk about dialog.

Definition in file about.c.

Macro Definition Documentation

◆ ABOUT_RESPONSE_ID_CREDITS

#define ABOUT_RESPONSE_ID_CREDITS   2

Definition at line 39 of file about.c.

◆ ABOUT_RESPONSE_ID_LICENCE

#define ABOUT_RESPONSE_ID_LICENCE   1

Definition at line 38 of file about.c.

Function Documentation

◆ about_open()

static void about_open ( const char *  url_text)
static

Open a url and a browser window/tab.

Parameters
url_textThe text of the url to open

Definition at line 47 of file about.c.

References browser_window_create(), BW_CREATE_HISTORY, BW_CREATE_TAB, messages_get_errorcode(), NSERROR_OK, nsgtk_warning(), nsoption_bool, nsurl_create(), and nsurl_unref().

Referenced by nsgtk_about_dialog_response().

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

◆ nsgtk_about_dialog_init()

void nsgtk_about_dialog_init ( GtkWindow *  parent)

Definition at line 95 of file about.c.

References ABOUT_RESPONSE_ID_CREDITS, ABOUT_RESPONSE_ID_LICENCE, dialog, messages_get(), netsurf_version, nsgtk_about_dialog_response(), nsgtk_dialog_get_content_area(), nsgtk_dialog_set_has_separator(), nsgtk_image_new_from_pixbuf_icon(), nsgtk_vbox_new(), and parent.

Referenced by about_button_clicked_cb(), and nsgtk_on_viewdata_about_activate().

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

◆ nsgtk_about_dialog_response()

static void nsgtk_about_dialog_response ( GtkDialog *  dialog,
gint  response_id,
gpointer  user_data 
)
static

About dialog response handling.

Parameters
dialogThe dialog widget
response_idThe response ID from the user clicking.
user_dataThe value from the signal connection.

Definition at line 76 of file about.c.

References about_open(), ABOUT_RESPONSE_ID_CREDITS, ABOUT_RESPONSE_ID_LICENCE, and dialog.

Referenced by nsgtk_about_dialog_init().

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