summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_callbacks.h
blob: 42c86bb1eff4d432662300ef85bef2023c755976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* Sticky Notes
 * Copyright (C) 2002-2003 Loban A Rahman
 *
 * 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, 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., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */

#ifndef __STICKYNOTES_CALLBACKS_H__
#define __STICKYNOTES_CALLBACKS_H__

#include <stickynotes.h>

/* Callbacks for the sticky notes windows */
gboolean
stickynote_toggle_lock_cb (GtkWidget  *widget,
                           StickyNote *note);
gboolean
stickynote_close_cb (GtkWidget  *widget,
                     StickyNote *note);
gboolean
stickynote_resize_cb (GtkWidget      *widget,
                      GdkEventButton *event,
                      StickyNote     *note);
gboolean
stickynote_move_cb (GtkWidget      *widget,
                    GdkEventButton *event,
                    StickyNote     *note);
gboolean
stickynote_configure_cb (GtkWidget         *widget,
                         GdkEventConfigure *event,
                         StickyNote        *note);
gboolean
stickynote_delete_cb (GtkWidget  *widget,
                      GdkEvent   *event,
                      StickyNote *note);
gboolean
stickynote_show_popup_menu (GtkWidget      *widget,
                            GdkEventButton *event,
                            GtkWidget      *popup_menu);

/* Callbacks for the sticky notes popup menu */
void
popup_create_cb (GtkWidget  *widget,
                 StickyNote *note);
void
popup_destroy_cb (GtkWidget  *widget,
                  StickyNote *note);
void
popup_toggle_lock_cb (GtkToggleAction *action,
                      StickyNote      *note);
void
popup_properties_cb (GtkWidget  *widget,
                     StickyNote *note);

/* Callbacks for sticky notes properties dialog */
void
properties_apply_title_cb (StickyNote *note);
void
properties_apply_color_cb (StickyNote *note);
void
properties_apply_font_cb (StickyNote *note);
void
properties_color_cb (GtkWidget  *button,
                     StickyNote *note);
void
properties_font_cb (GtkWidget  *button,
                    StickyNote *note);
void
properties_activate_cb (GtkWidget  *widget,
                        StickyNote *note);

#endif /* __STICKYNOTES_CALLBACKS_H__ */