NetSurf
|
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"
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) |
Implementation of gtk about dialog.
Definition in file about.c.
|
static |
Open a url and a browser window/tab.
url_text | The 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().
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().
|
static |
About dialog response handling.
dialog | The dialog widget |
response_id | The response ID from the user clicking. |
user_data | The 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().