From 7885f76d408b1a71a0f98e00bc16fe72dd351808 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 3 Feb 2011 20:26:22 +0100 Subject: initial commit Signed-off-by: Florian Pritz --- src/callbacks.h | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/callbacks.h (limited to 'src/callbacks.h') diff --git a/src/callbacks.h b/src/callbacks.h new file mode 100644 index 0000000..a6090ab --- /dev/null +++ b/src/callbacks.h @@ -0,0 +1,60 @@ +/** + * qinfo - GTK+ based ascii art text viewer + * Copyright (C) 2008 Oliver Mader + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef CALLBACKS_H +#define CALLBACKS_H + +#include "qinfo.h" +#include "hyperlink.h" +#include "open.h" +#include "preferences.h" +#include "about.h" + +G_MODULE_EXPORT void on_window_destroy (GtkObject *object, qinfo_t *app); +G_MODULE_EXPORT gboolean on_window_configure_event (GtkWidget *widget, + GdkEventConfigure *event, qinfo_t *app); +G_MODULE_EXPORT void on_open_toolbar_item_clicked (GtkToolButton *button, + qinfo_t *app); +G_MODULE_EXPORT void on_open_toolbar_item_activated (GtkRecentChooser *chooser, + qinfo_t *app); +G_MODULE_EXPORT void on_all_toolbar_item_clicked (GtkToolButton *button, + qinfo_t *app); +G_MODULE_EXPORT void on_copy_toolbar_item_clicked (GtkToolButton *button, + qinfo_t *app); +G_MODULE_EXPORT void on_preferences_toolbar_item_clicked (GtkObject *object, + qinfo_t *app); +G_MODULE_EXPORT void on_preferences_dialog_response (GtkDialog *dialog, + gint response, qinfo_t *app); +G_MODULE_EXPORT void on_about_toolbar_item_clicked (GtkToolButton *button, + qinfo_t *app); +G_MODULE_EXPORT gboolean on_textview_key_press_event (GtkWidget *textview, + GdkEventKey *event, qinfo_t *app); +G_MODULE_EXPORT void on_textview_event_after (GtkWidget *textview, + GdkEvent *event, qinfo_t *app); +G_MODULE_EXPORT gboolean on_textview_motion_notify_event (GtkWidget *textview, + GdkEventMotion *event, qinfo_t *app); +G_MODULE_EXPORT gboolean on_textview_visibility_notify_event ( + GtkWidget *textview, GdkEventVisibility *event, qinfo_t *app); +G_MODULE_EXPORT void on_textview_drag_data_received (GtkWidget *widget, + GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, + guint target_type, guint time, qinfo_t *app); +G_MODULE_EXPORT gboolean on_textview_drag_motion (GtkWidget *widget, + GdkDragContext *drag_context, gint x, gint y, guint time, qinfo_t *app); + +#endif -- cgit v1.2.3-24-g4f1b