1 #ifndef __DIALOG_EVENTS_H__
2 #define __DIALOG_EVENTS_H__
4 /**
5 * \brief Event handler for dialog windows
6 *
7 * Authors:
8 * bulia byak <bulia@dr.com>
9 *
10 * Copyright (C) 2003 authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include <gtk/gtkstyle.h>
16 #include <gtk/gtkwindow.h>
17 #include <forward.h>
19 /*
20 * event callback can only accept one argument, but we need two,
21 * hence this struct.
22 * each dialog has a local static copy:
23 * win is the dialog window
24 * stop is the transientize semaphore: when 0, retransientizing this dialog
25 * is allowed
26 */
28 typedef struct {
29 GtkWidget *win;
30 guint stop;
31 } win_data;
34 gboolean sp_dialog_event_handler ( GtkWindow *win,
35 GdkEvent *event,
36 gpointer data );
38 void sp_dialog_defocus ( GtkWindow *win );
39 void sp_dialog_defocus_callback ( GtkWindow *win, gpointer data );
40 void sp_dialog_defocus_on_enter ( GtkWidget *w );
41 void sp_transientize ( GtkWidget *win );
43 void on_transientize ( SPDesktop *desktop,
44 win_data *wd );
46 void sp_transientize_callback ( Inkscape::Application *inkscape,
47 SPDesktop *desktop,
48 win_data *wd );
50 void on_dialog_hide (GtkWidget *w);
51 void on_dialog_unhide (GtkWidget *w);
52 gboolean sp_dialog_hide (GtkObject *object, gpointer data);
53 gboolean sp_dialog_unhide (GtkObject *object, gpointer data);
55 #endif
57 /*
58 Local Variables:
59 mode:c++
60 c-file-style:"stroustrup"
61 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62 indent-tabs-mode:nil
63 fill-column:99
64 End:
65 */
66 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :