diff --git a/gtk/.cproject b/gtk/.cproject new file mode 100644 index 0000000..105a972 --- /dev/null +++ b/gtk/.cproject @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gtk/.gitignore b/gtk/.gitignore new file mode 100644 index 0000000..3df573f --- /dev/null +++ b/gtk/.gitignore @@ -0,0 +1 @@ +/Debug/ diff --git a/gtk/.project b/gtk/.project new file mode 100644 index 0000000..390a3f3 --- /dev/null +++ b/gtk/.project @@ -0,0 +1,26 @@ + + + gtk + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/gtk/.settings/language.settings.xml b/gtk/.settings/language.settings.xml new file mode 100644 index 0000000..73a87aa --- /dev/null +++ b/gtk/.settings/language.settings.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/gtk/hello_world.c b/gtk/hello_world.c new file mode 100644 index 0000000..ccf20d6 --- /dev/null +++ b/gtk/hello_world.c @@ -0,0 +1,31 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +static void activate (GtkApplication* app, gpointer user_data) +{ + GtkWidget *window; + + window = gtk_application_window_new (app); + gtk_window_set_title (GTK_WINDOW (window), "Window"); + gtk_window_set_default_size (GTK_WINDOW (window), 200, 200); + gtk_widget_show_all (window); +} + +int main (int argc, char **argv) +{ + GtkApplication *app; + int status; + + app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE); + g_signal_connect (app, "activate", G_CALLBACK (activate), NULL); + status = g_application_run (G_APPLICATION (app), argc, argv); + g_object_unref (app); + + return status; +}