aboutsummaryrefslogtreecommitdiffstats
path: root/notes/test-notes.c
blob: 1114b57e66c036f92ca41c387cbb4d0b9770bd83 (plain) (blame)
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
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */

#include <config.h>
#include <gnome.h>
#include <gdk/gdkx.h>

#include <gal/widgets/e-canvas.h>
#include <gal/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");
    g_signal_connect((note), "changed",
                G_CALLBACK (text_changed), NULL);
    
    gtk_widget_show (note);
    gtk_main ();
    
    return 0;
}