71 gtk_widget_destroy(GTK_WIDGET(pi_win->
dlg));
72 g_object_unref(G_OBJECT(pi_win->
builder));
102 bool did_something =
false;
107 if (did_something ==
true) {
149 .background_images =
true,
181 gtk_builder_connect_signals(ncwin->
builder, NULL);
183 ncwin->
dlg = GTK_WINDOW(gtk_builder_get_object(ncwin->
builder,
187 gtk_window_set_type_hint(GTK_WINDOW(ncwin->
dlg),
188 GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU);
190 gtk_window_set_modal(GTK_WINDOW(ncwin->
dlg), TRUE);
192 gtk_window_group_add_window(gtk_window_get_group(scaffwin),
193 GTK_WINDOW(ncwin->
dlg));
195 gtk_window_set_transient_for(GTK_WINDOW(ncwin->
dlg), scaffwin);
197 gtk_window_set_screen(GTK_WINDOW(ncwin->
dlg),
198 gtk_widget_get_screen(GTK_WIDGET(scaffwin)));
205 gtk_builder_get_object(ncwin->
builder,
"PGIDrawingArea"));
208 g_signal_connect(G_OBJECT(ncwin->
dlg),
213 g_signal_connect(G_OBJECT(ncwin->
dlg),
218 g_signal_connect(G_OBJECT(ncwin->
dlg),
219 "button-press-event",
230 g_object_unref(G_OBJECT(ncwin->
dlg));
237 g_object_unref(G_OBJECT(ncwin->
dlg));
242 gtk_widget_show(GTK_WIDGET(ncwin->
dlg));
244 gtk_widget_grab_focus(GTK_WIDGET(ncwin->
dlg));
253 NSLOG(netsurf, INFO,
"win=%p x=%d y=%d", win, x, y);
255 gtk_window_move(GTK_WINDOW(win->
dlg), x, y);
Browser window creation and manipulation interface.
nserror
Enumeration of error codes.
@ NSERROR_NOT_IMPLEMENTED
Functionality is not implemented.
@ NSERROR_NOMEM
Memory exhaustion.
Target independent plotting GTK+ interface.
nserror nsgtk_corewindow_init(struct nsgtk_corewindow *nsgtk_cw)
initialise elements of gtk core window.
nserror nsgtk_corewindow_fini(struct nsgtk_corewindow *nsgtk_cw)
finalise elements of gtk core window.
const struct plotter_table nsgtk_plotters
GTK plotter table.
struct netsurf_table * guit
The global interface table.
Interface to core interface table.
Interface to platform-specific miscellaneous browser operation table.
browser_mouse_state
Mouse state: 1 is primary mouse button.
Target independent plotting interface.
Interface to key press operations.
#define NSLOG(catname, level, logmsg, args...)
const char * messages_get_errorcode(nserror code)
lookup of a message by errorcode from the standard Messages hash.
Localised message support (interface).
nserror page_info_destroy(struct page_info *pi)
Destroy a page info corewindow.
nserror page_info_redraw(const struct page_info *pi, int x, int y, const struct rect *clip, const struct redraw_context *ctx)
Redraw the page info window.
nserror page_info_create(struct core_window *cw_h, struct browser_window *bw, struct page_info **pi_out)
Create a page info corewindow.
bool page_info_keypress(struct page_info *pi, int32_t key)
Key press handling.
nserror page_info_mouse_action(struct page_info *pi, enum browser_mouse_state mouse, int x, int y, bool *did_something)
Mouse action handling.
Pave info viewer window interface.
static gboolean nsgtk_pi_delete_event(GtkWidget *w, GdkEvent *event, gpointer data)
destroy a previously created page information window
void nsgtk_page_info_set_position(struct nsgtk_pi_window *win, int x, int y)
Position the given page information window at the given coordinates.
static nserror nsgtk_pi_mouse(struct nsgtk_corewindow *nsgtk_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse action for certificate verify on core window
nserror nsgtk_page_info(struct browser_window *bw)
Page information window.
static nserror nsgtk_pi_key(struct nsgtk_corewindow *nsgtk_cw, uint32_t nskey)
callback for keypress for certificate verify on core window
static nserror nsgtk_pi_draw(struct nsgtk_corewindow *nsgtk_cw, struct rect *r)
callback on draw event for certificate verify on core window
static void nsgtk_pi_close_callback(void *pw)
Called to cause the page-info window to close cleanly.
nserror nsgtk_builder_new_from_resname(const char *resname, GtkBuilder **builder_out)
Create gtk builder object for the named ui resource.
Interface to gtk builtin resource handling.
GtkWindow * nsgtk_scaffolding_window(struct nsgtk_scaffolding *g)
Get the gtk window for a scaffolding.
nserror nsgtk_scaffolding_position_page_info(struct nsgtk_scaffolding *gs, struct nsgtk_pi_window *win)
Position the page-info popup in the right place.
struct nsgtk_scaffolding * nsgtk_current_scaffolding(void)
Obtain the most recently used scaffolding element.
nserror(* schedule)(int t, void(*callback)(void *p), void *p)
Schedule a callback.
struct gui_misc_table * misc
Browser table.
nserror(* key)(struct nsgtk_corewindow *nsgtk_cw, uint32_t nskey)
callback for keypress on nsgtk core window
nserror(* draw)(struct nsgtk_corewindow *nsgtk_cw, struct rect *r)
callback to draw on drawable area of nsgtk core window
nserror(* mouse)(struct nsgtk_corewindow *nsgtk_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse event on nsgtk core window
GtkDrawingArea * drawing_area
GTK drawable widget.
GTK certificate viewing window context.
struct nsgtk_corewindow core
GTK core window context.
struct page_info * pi
Core page-info window.
GtkBuilder * builder
GTK builder for window.
GtkWindow * dlg
GTK window being shown.
The page info window structure.
bool interactive
Redraw to show interactive features.