diff options
author | Anders Carlsson <andersca@src.gnome.org> | 2000-06-07 06:34:12 +0800 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2000-06-07 06:34:12 +0800 |
commit | ff31a1c535578b75c986e555026764dbc51e359d (patch) | |
tree | 6e6a8fad4af5370f4b45f874e9360b69013e9af4 /notes/test-notes.c | |
parent | c219c79496fca669af1ae093a660a1ce4d81a682 (diff) | |
download | gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar.gz gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar.zst gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.zip |
Stuff
svn path=/trunk/; revision=3447
Diffstat (limited to 'notes/test-notes.c')
-rw-r--r-- | notes/test-notes.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/notes/test-notes.c b/notes/test-notes.c new file mode 100644 index 0000000000..8352ea789f --- /dev/null +++ b/notes/test-notes.c @@ -0,0 +1,34 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ + +#include <config.h> +#include <gnome.h> +#include <gdk/gdkx.h> + +#include "e-util/e-canvas.h" +#include "widgets/e-text/e-text.h" + +#include "e-note.h" + +void +text_changed (GtkWidget *widget, gpointer data) +{ + g_print ("Text changed!\n"); +} + +gint +main (gint argc, gchar **argv) +{ + GtkWidget *note; + + gnome_init ("NotesTest", "0.0.1", argc, argv); + + note = e_note_new (); + e_note_set_text (E_NOTE (note), "This is a text note widget"); + gtk_signal_connect (GTK_OBJECT (note), "changed", + GTK_SIGNAL_FUNC (text_changed), NULL); + + gtk_widget_show (note); + gtk_main (); + + return 0; +} |