summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_callbacks.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2020-12-27 11:46:13 +0100
committerGitHub <[email protected]>2020-12-27 11:46:13 +0100
commit181184aba23ac392a7a6ce92751ab5561721f3c2 (patch)
treef8d06ef68f64428f2b4cba8d273c0744b2ac751f /stickynotes/stickynotes_callbacks.h
parenteddd0898e16124081e226b07fd0901ff0eae2871 (diff)
downloadmate-applets-181184aba23ac392a7a6ce92751ab5561721f3c2.tar.bz2
mate-applets-181184aba23ac392a7a6ce92751ab5561721f3c2.tar.xz
stickynotes: improve code-style
- tabs to spaces - shortened lines - unnecessary casts on functions which accept a gpointer like g_signal_connect
Diffstat (limited to 'stickynotes/stickynotes_callbacks.h')
-rw-r--r--stickynotes/stickynotes_callbacks.h70
1 files changed, 53 insertions, 17 deletions
diff --git a/stickynotes/stickynotes_callbacks.h b/stickynotes/stickynotes_callbacks.h
index 5918be99..42c86bb1 100644
--- a/stickynotes/stickynotes_callbacks.h
+++ b/stickynotes/stickynotes_callbacks.h
@@ -23,26 +23,62 @@
#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);
+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);
+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);
+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__ */