demos/application: Call the right program

We need to update the call to gtk4-application-demo, plus include the
correct icon file for this.
This commit is contained in:
Chun-wei Fan 2016-11-02 12:23:41 +08:00
parent 2d14217cd7
commit 21b061b0dd
2 changed files with 4 additions and 4 deletions

View File

@ -212,7 +212,7 @@ activate_about (GSimpleAction *action,
"comments", "Program to demonstrate GTK+ functions.",
"authors", authors,
"documenters", documentors,
"logo-icon-name", "gtk3-demo",
"logo-icon-name", "gtk4-demo",
"title", "About GTK+ Code Demos",
NULL);
}

View File

@ -63,10 +63,10 @@ do_application_demo (GtkWidget *toplevel)
const gchar *command;
GError *error = NULL;
if (g_file_test ("./gtk3-demo-application" APP_EXTENSION, G_FILE_TEST_IS_EXECUTABLE))
command = "./gtk3-demo-application" APP_EXTENSION;
if (g_file_test ("./gtk4-demo-application" APP_EXTENSION, G_FILE_TEST_IS_EXECUTABLE))
command = "./gtk4-demo-application" APP_EXTENSION;
else
command = "gtk3-demo-application";
command = "gtk4-demo-application";
if (!g_spawn_command_line_async (command, &error))
{