Desktop
/* $Id: callbacks.h,v 1.1 2006/11/26 22:37:34 khorben Exp $ */
/* Copyright (c) 2006 The DeforaOS Project */
#ifndef SURFER_CALLBACKS_H
# define SURFER_CALLBACKS_H
# include <gtk/gtk.h>
# include <gtkmozembed.h>
/* window */
gboolean on_closex(GtkWidget * widget, GdkEvent * event, gpointer data);
/* file menu */
void on_file_close(GtkWidget * widget, gpointer data);
void on_file_new_window(GtkWidget * widget, gpointer data);
void on_file_refresh(GtkWidget * widget, gpointer data);
void on_file_force_refresh(GtkWidget * widget, gpointer data);
/* edit menu */
void on_edit_preferences(GtkWidget * widget, gpointer data);
/* help menu */
void on_help_about(GtkWidget * widget, gpointer data);
/* toolbar */
void on_back(GtkWidget * widget, gpointer data);
void on_forward(GtkWidget * widget, gpointer data);
void on_fullscreen(GtkToggleToolButton * button, gpointer data);
void on_home(GtkWidget * widget, gpointer data);
void on_path_activate(GtkWidget * widget, gpointer data);
void on_refresh(GtkWidget * widget, gpointer data);
void on_stop(GtkWidget * widget, gpointer data);
/* view */
void on_view_link_message(GtkMozEmbed * view, gpointer data);
void on_view_location(GtkMozEmbed * view, gpointer data);
void on_view_net_start(GtkMozEmbed * view, gpointer data);
void on_view_net_stop(GtkMozEmbed * view, gpointer data);
void on_view_new_window(GtkMozEmbed * view, GtkMozEmbed ** ret, guint mask,
gpointer data);
void on_view_progress(GtkMozEmbed * view, gint cur, gint max, gpointer data);
void on_view_resize(GtkMozEmbed * view, gint width, gint height, gpointer data);
void on_view_title(GtkMozEmbed * view, gpointer data);
#endif