diff options
author | Thomas White <taw27@cam.ac.uk> | 2009-03-16 16:00:22 +0000 |
---|---|---|
committer | Thomas White <taw27@cam.ac.uk> | 2009-03-16 16:00:22 +0000 |
commit | 6ed7222f16f372b0e99faeb2a237b6a5db9d0016 (patch) | |
tree | dfd4b602cc48e5964a60e9c415b1beff0b439751 /src/mainwindow.c | |
parent | 6790d884ccc58bf834997d27b7497226bafa7bdc (diff) |
Whitespace, copyright, email addresses, changelog
This fixes whitespace errors, updates copyright messages to include 2009,
updates the email addresses and web addresses to the new site, and adds
a missing changelog entry for version 0.3.
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 43a8eef..e718073 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -3,7 +3,7 @@ * * Main window * - * (c) 2008 Thomas White <taw27@srcf.ucam.org> + * (c) 2008-2009 Thomas White <taw@bitwiz.org.uk> * * This file is part of OpenMooCow - accelerometer moobox simulator * @@ -46,26 +46,25 @@ MainWindow *mainwindow_open(void) { MainWindow *mw; GtkWidget *eb; - + mw = malloc(sizeof(*mw)); if ( mw == NULL ) return NULL; - + mw->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(mw->window), 240, 320); gtk_window_set_title(GTK_WINDOW(mw->window), "OpenMooCow"); - + eb = gtk_event_box_new(); mw->cow = gtk_image_new_from_file(PIXMAPDIR"/cow.png"); gtk_container_add(GTK_CONTAINER(eb), mw->cow); gtk_container_add(GTK_CONTAINER(mw->window), eb); gtk_widget_add_events(GTK_WIDGET(eb), GDK_BUTTON_PRESS_MASK); gtk_misc_set_alignment(GTK_MISC(mw->cow), 0.5, 1.0); - + g_signal_connect(G_OBJECT(eb), "button_press_event", G_CALLBACK(mainwindow_clicked), mw); g_signal_connect(G_OBJECT(mw->window), "destroy", G_CALLBACK(mainwindow_closed), mw); gtk_widget_show_all(mw->window); - + return mw; } - |