Update gtk4-test

This commit is contained in:
daleclack 2021-02-07 10:56:07 +08:00
parent 5100030623
commit 8be7cd952b
4 changed files with 8 additions and 0 deletions

Binary file not shown.

BIN
Gtk4/gtk4-test/res/icon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -42,6 +42,8 @@ static void gtkmain(GtkApplication *app,gpointer user_data){
window=gtk_application_window_new(app);
gtk_window_set_default_size(GTK_WINDOW(window),480,360);
gtk_window_set_title(GTK_WINDOW(window),"Gtk4 test");
//Window icon
gtk_window_set_icon_name(GTK_WINDOW(window),"gtk3-demo");
//GtkFixed
fixed=gtk_fixed_new();
//Image as background

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=gtk4-test
Icon=gtk4-icon
StartupNotify=true
Exec=bin/gtk4-test