diff --git a/Gtk3/gtk3-test/gtk3-test.cbp b/Gtk3/gtk3-test/gtk3-test.cbp new file mode 100644 index 0000000..e1aed49 --- /dev/null +++ b/Gtk3/gtk3-test/gtk3-test.cbp @@ -0,0 +1,37 @@ + + + + + + diff --git a/Gtk3/gtk3-test/gtk3-test.depend b/Gtk3/gtk3-test/gtk3-test.depend new file mode 100644 index 0000000..77051f2 --- /dev/null +++ b/Gtk3/gtk3-test/gtk3-test.depend @@ -0,0 +1,4 @@ +# depslib dependency file v1.0 +1605149352 source:/root/gtk3-test/main.cpp + + diff --git a/Gtk3/gtk3-test/gtk3-test.layout b/Gtk3/gtk3-test/gtk3-test.layout new file mode 100644 index 0000000..dfc8fec --- /dev/null +++ b/Gtk3/gtk3-test/gtk3-test.layout @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Gtk3/gtk3-test/main.cpp b/Gtk3/gtk3-test/main.cpp new file mode 100644 index 0000000..f0e3725 --- /dev/null +++ b/Gtk3/gtk3-test/main.cpp @@ -0,0 +1,19 @@ +#include + +static void activate(GtkApplication *app,gpointer user_data){ + GtkWidget *window; + window=gtk_application_window_new(app); + gtk_window_set_position(GTK_WINDOW(window),GTK_WIN_POS_CENTER); + gtk_window_set_title(GTK_WINDOW(window),"gtk3 test"); + 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; +}