summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/application.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2013-11-05 15:29:54 -0500
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2013-11-05 15:31:11 -0500
commitcdc2f07a1efa7a23878bf5cf6d8dca4170ffc561 (patch)
tree5a75b84565837fa4de07be8b1e622c0ece452479 /demos/gtk-demo/application.c
parentfc71414ada5b270a4c6c9775225f5cdc5d303f63 (diff)
downloadgtk+-cdc2f07a1efa7a23878bf5cf6d8dca4170ffc561.tar.gz
demo: use the installed named icon
Diffstat (limited to 'demos/gtk-demo/application.c')
-rw-r--r--demos/gtk-demo/application.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/demos/gtk-demo/application.c b/demos/gtk-demo/application.c
index 048535aaa5..d250586286 100644
--- a/demos/gtk-demo/application.c
+++ b/demos/gtk-demo/application.c
@@ -95,7 +95,6 @@ activate_about (GSimpleAction *action,
gpointer user_data)
{
GtkWidget *window = user_data;
- GdkPixbuf *pixbuf;
const gchar *authors[] = {
"Peter Mattis",
@@ -113,8 +112,6 @@ activate_about (GSimpleAction *action,
NULL
};
- pixbuf = gdk_pixbuf_new_from_resource ("/application/gtk-logo-48.png", NULL);
-
gtk_show_about_dialog (GTK_WINDOW (window),
"program-name", "GTK+ Code Demos",
"version", g_strdup_printf ("%s,\nRunning against GTK+ %d.%d.%d",
@@ -128,10 +125,9 @@ activate_about (GSimpleAction *action,
"comments", "Program to demonstrate GTK+ functions.",
"authors", authors,
"documenters", documentors,
- "logo", pixbuf,
+ "logo-icon-name", "gtk3-demo",
"title", "About GTK+ Code Demos",
NULL);
- g_object_unref (pixbuf);
}
static void