diff options
author | daniel g. siegel <dgsiegel@gnome.org> | 2009-12-23 12:32:10 +0100 |
---|---|---|
committer | daniel g. siegel <dgsiegel@gnome.org> | 2009-12-23 12:32:10 +0100 |
commit | de1dd8931a01caa3e25de66f896eda06cb755daa (patch) | |
tree | 59bdf86435446e7a302ba8c323130cb260b1fcd3 /tests/cheese-test-chooser.c | |
parent | 518063b1a11264b80291e9762c7d4e12bedfcd5c (diff) | |
download | cheese-de1dd8931a01caa3e25de66f896eda06cb755daa.tar.gz |
re-indent source code to match our style
Diffstat (limited to 'tests/cheese-test-chooser.c')
-rw-r--r-- | tests/cheese-test-chooser.c | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/tests/cheese-test-chooser.c b/tests/cheese-test-chooser.c index a7a877b8..a7cf10e9 100644 --- a/tests/cheese-test-chooser.c +++ b/tests/cheese-test-chooser.c @@ -7,42 +7,44 @@ #include "cheese-avatar-chooser.h" static void -response_cb (GtkDialog *dialog, - int response, - CheeseAvatarChooser *chooser) +response_cb (GtkDialog *dialog, + int response, + CheeseAvatarChooser *chooser) { - if (response == GTK_RESPONSE_ACCEPT) { - GdkPixbuf *pixbuf; - g_message ("got pixbuf captured"); - g_object_get (G_OBJECT (chooser), "pixbuf", &pixbuf, NULL); - } - - gtk_main_quit (); + if (response == GTK_RESPONSE_ACCEPT) + { + GdkPixbuf *pixbuf; + g_message ("got pixbuf captured"); + g_object_get (G_OBJECT (chooser), "pixbuf", &pixbuf, NULL); + } + + gtk_main_quit (); } -int main (int argc, char **argv) +int +main (int argc, char **argv) { - GtkWidget *window; + GtkWidget *window; - g_thread_init (NULL); - gdk_threads_init (); - gst_init (&argc, &argv); + g_thread_init (NULL); + gdk_threads_init (); + gst_init (&argc, &argv); - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); - gtk_init (&argc, &argv); + gtk_init (&argc, &argv); - window = cheese_avatar_chooser_new (); - g_signal_connect (G_OBJECT (window), "response", - G_CALLBACK (response_cb), window); + window = cheese_avatar_chooser_new (); + g_signal_connect (G_OBJECT (window), "response", + G_CALLBACK (response_cb), window); - gtk_widget_show_all (window); + gtk_widget_show_all (window); - gtk_main (); + gtk_main (); - gtk_widget_destroy (window); + gtk_widget_destroy (window); - return 0; + return 0; } |