diff options
author | Ori Bernstein <ori@eigenstate.org> | 2017-02-04 14:15:09 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2017-02-04 14:15:09 -0800 |
commit | d58541170b9f956610bc7d8b90a02f429d49e4fd (patch) | |
tree | ca1bec9db928f710dea5090e49e20052ecb86fce | |
parent | 4bee91b03eb8f6d02dc5b9605f9acf0471335a2f (diff) | |
download | mk-master.tar.gz |
-rw-r--r-- | example/hello.c | 3 | ||||
-rw-r--r-- | example/hello.h | 7 | ||||
-rw-r--r-- | example/hellogtk.c | 12 | ||||
-rw-r--r-- | example/main.c | 3 |
4 files changed, 19 insertions, 6 deletions
diff --git a/example/hello.c b/example/hello.c index 32feb10..aa37631 100644 --- a/example/hello.c +++ b/example/hello.c @@ -3,7 +3,8 @@ #include "hello.h" -void hello_showargs(char **args, int nargs) +void +hello_showargs(char **args, int nargs) { size_t i; diff --git a/example/hello.h b/example/hello.h new file mode 100644 index 0000000..95ec0b4 --- /dev/null +++ b/example/hello.h @@ -0,0 +1,7 @@ +#ifndef _HELLO_H_ +#define _HELLO_H_ + +void hello_showgtk(int argc, char *argv[]); +void hello_showargs(char **args, int nargs); + +#endif diff --git a/example/hellogtk.c b/example/hellogtk.c index 9d38a18..9d0903e 100644 --- a/example/hellogtk.c +++ b/example/hellogtk.c @@ -4,23 +4,27 @@ #include "hello.h" -static void hello(GtkWidget *widget, gpointer data) +static void +hello(GtkWidget *widget, gpointer data) { printf("Hello World\n"); } -static gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) +static gboolean +delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { return FALSE; } /* Another callback */ -static void destroy(GtkWidget *widget, gpointer data) +static void +destroy(GtkWidget *widget, gpointer data) { gtk_main_quit(); } -void hello_showgtk(int argc, char *argv[]) +void +hello_showgtk(int argc, char *argv[]) { GtkWidget *window; GtkWidget *button; diff --git a/example/main.c b/example/main.c index e3e33a8..56fbb69 100644 --- a/example/main.c +++ b/example/main.c @@ -2,7 +2,8 @@ #include "hello.h" -int main(int argc, char **argv) +int +main(int argc, char **argv) { int i; |