[gtk+] demos/application: Call the right program
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] demos/application: Call the right program
- Date: Wed, 2 Nov 2016 04:25:25 +0000 (UTC)
commit 21b061b0dd7b88360291445d4fea99c25fa11443
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Nov 2 12:23:41 2016 +0800
demos/application: Call the right program
We need to update the call to gtk4-application-demo, plus include the
correct icon file for this.
demos/gtk-demo/application.c | 2 +-
demos/gtk-demo/application_demo.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/application.c b/demos/gtk-demo/application.c
index 289f73a..6233f72 100644
--- a/demos/gtk-demo/application.c
+++ b/demos/gtk-demo/application.c
@@ -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);
}
diff --git a/demos/gtk-demo/application_demo.c b/demos/gtk-demo/application_demo.c
index 4174bbb..d2eb69f 100644
--- a/demos/gtk-demo/application_demo.c
+++ b/demos/gtk-demo/application_demo.c
@@ -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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]