summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes.h
diff options
context:
space:
mode:
Diffstat (limited to 'stickynotes/stickynotes.h')
-rw-r--r--stickynotes/stickynotes.h123
1 files changed, 64 insertions, 59 deletions
diff --git a/stickynotes/stickynotes.h b/stickynotes/stickynotes.h
index e5a969b4..bee35bad 100644
--- a/stickynotes/stickynotes.h
+++ b/stickynotes/stickynotes.h
@@ -28,71 +28,76 @@
typedef struct
{
- GtkWidget *w_window; /* Sticky Note window */
- GtkWidget *w_menu; /* Sticky Note menu */
- GtkWidget *w_properties; /* Sticky Note properties dialog */
-
- GtkWidget *w_entry; /* Sticky Note title entry */
- GtkWidget *w_color; /* Sticky Note color picker */
- GtkWidget *w_color_label; /* Sticky Note color label */
- GtkWidget *w_font_color; /* Sticky Note font color picker */
- GtkWidget *w_font_color_label; /* Sticky Note font color label */
- GtkWidget *w_font; /* Sticky Note font picker */
- GtkWidget *w_font_label; /* Sticky Note font label */
- GtkWidget *w_def_color; /* Sticky Note default color setting */
- GtkWidget *w_def_font; /* Sticky Note default font setting */
-
- GtkWidget *w_title; /* Sticky Note title */
- GtkWidget *w_body; /* Sticky Note text body */
- GtkWidget *w_scroller; /* Sticky Note scroller */
- GtkWidget *w_lock; /* Sticky Note lock button */
- GtkWidget *w_close; /* Sticky Note close button */
- GtkWidget *w_resize_se; /* Sticky Note resize button (south east) */
- GtkWidget *w_resize_sw; /* Sticky Note resize button (south west) */
-
- GtkSourceBuffer *buffer; /* Sticky Note text buffer for undo/redo */
-
- GtkToggleAction *ta_lock_toggle_item; /* Lock item in the popup menu */
-
- GtkImage *img_lock; /* Lock image */
- GtkImage *img_close; /* Close image */
- GtkImage *img_resize_se; /* SE resize image */
- GtkImage *img_resize_sw; /* SW resize image */
-
- gchar *color; /* Note color */
- gchar *font_color; /* Font color */
- gchar *font; /* Note font */
- gboolean locked; /* Note locked state */
-
- gint x; /* Note x-coordinate */
- gint y; /* Note y-coordinate */
- gint w; /* Note width */
- gint h; /* Note height */
-
- int workspace; /* Workspace the note is on */
+ GtkWidget *w_window; /* Sticky Note window */
+ GtkWidget *w_menu; /* Sticky Note menu */
+ GtkWidget *w_properties; /* Sticky Note properties dialog */
+
+ GtkWidget *w_entry; /* Sticky Note title entry */
+ GtkWidget *w_color; /* Sticky Note color picker */
+ GtkWidget *w_color_label; /* Sticky Note color label */
+ GtkWidget *w_font_color; /* Sticky Note font color picker */
+ GtkWidget *w_font_color_label; /* Sticky Note font color label */
+ GtkWidget *w_font; /* Sticky Note font picker */
+ GtkWidget *w_font_label; /* Sticky Note font label */
+ GtkWidget *w_def_color; /* Sticky Note default color setting */
+ GtkWidget *w_def_font; /* Sticky Note default font setting */
+
+ GtkWidget *w_title; /* Sticky Note title */
+ GtkWidget *w_body; /* Sticky Note text body */
+ GtkWidget *w_scroller; /* Sticky Note scroller */
+ GtkWidget *w_lock; /* Sticky Note lock button */
+ GtkWidget *w_close; /* Sticky Note close button */
+ GtkWidget *w_resize_se; /* Sticky Note resize button (south east) */
+ GtkWidget *w_resize_sw; /* Sticky Note resize button (south west) */
+
+ GtkSourceBuffer *buffer; /* Sticky Note text buffer for undo/redo */
+
+ GtkToggleAction *ta_lock_toggle_item; /* Lock item in the popup menu */
+
+ GtkImage *img_lock; /* Lock image */
+ GtkImage *img_close; /* Close image */
+ GtkImage *img_resize_se; /* SE resize image */
+ GtkImage *img_resize_sw; /* SW resize image */
+
+ gchar *color; /* Note color */
+ gchar *font_color; /* Font color */
+ gchar *font; /* Note font */
+ gboolean locked; /* Note locked state */
+
+ gint x; /* Note x-coordinate */
+ gint y; /* Note y-coordinate */
+ gint w; /* Note width */
+ gint h; /* Note height */
+
+ int workspace; /* Workspace the note is on */
} StickyNote;
-StickyNote * stickynote_new(GdkScreen *screen);
-void stickynote_free(StickyNote *note);
+StickyNote * stickynote_new (GdkScreen *screen);
+void stickynote_free (StickyNote *note);
-gboolean stickynote_get_empty(const StickyNote *note);
+gboolean stickynote_get_empty (const StickyNote *note);
-void stickynote_set_title(StickyNote *note, const gchar* title);
+void stickynote_set_title (StickyNote *note,
+ const gchar *title);
void stickynote_set_color (StickyNote *note,
- const gchar *color_str,
- const gchar *font_color_str,
- gboolean save);
-void stickynote_set_font(StickyNote *note, const gchar* font_str, gboolean save);
-void stickynote_set_locked(StickyNote *note, gboolean locked);
-void stickynote_set_visible(StickyNote *note, gboolean visible);
-
-void stickynote_change_properties(StickyNote *note);
-
-void stickynotes_add(GdkScreen *screen);
-void stickynotes_remove(StickyNote *note);
-void stickynotes_save(void);
+ const gchar *color_str,
+ const gchar *font_color_str,
+ gboolean save);
+void stickynote_set_font (StickyNote *note,
+ const gchar *font_str,
+ gboolean save);
+void stickynote_set_locked (StickyNote *note,
+ gboolean locked);
+void stickynote_set_visible (StickyNote *note,
+ gboolean visible);
+
+void stickynote_change_properties (StickyNote *note);
+
+void stickynotes_add (GdkScreen *screen);
+void stickynotes_remove (StickyNote *note);
+void stickynotes_save (void);
gboolean stickynotes_save_now (void);
-void stickynotes_load(GdkScreen *screen);
+void stickynotes_load (GdkScreen *screen);
#endif /* __STICKYNOTES_H__ */