Getting started: Coding style updates

Make the new examples use GTK+ coding style.
This commit is contained in:
Matthias Clasen
2013-07-23 19:04:12 -04:00
parent e6c5faed73
commit 99203f09f2
40 changed files with 939 additions and 869 deletions

View File

@ -2,12 +2,14 @@
#include "exampleappwin.h"
#include <gtk/gtk.h>
struct ExampleAppWindow {
GtkApplicationWindow parent;
struct _ExampleAppWindow
{
GtkApplicationWindow parent;
};
struct ExampleAppWindowClass {
GtkApplicationWindowClass parent_class;
struct _ExampleAppWindowClass
{
GtkApplicationWindowClass parent_class;
};
G_DEFINE_TYPE(ExampleAppWindow, example_app_window, GTK_TYPE_APPLICATION_WINDOW);
@ -25,7 +27,7 @@ example_app_window_class_init (ExampleAppWindowClass *class)
ExampleAppWindow *
example_app_window_new (ExampleApp *app)
{
return g_object_new (EXAMPLE_APP_WINDOW_TYPE, "application", app, NULL);
return g_object_new (EXAMPLE_APP_WINDOW_TYPE, "application", app, NULL);
}
void