From 10e683c2e7fa6b71ce7baaa15185477d544d885f Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Sat, 18 Jan 2003 14:54:44 +0000 Subject: Hooray! Zenity now has an about window icon. It's very zen too. 2003-01-18 Glynn Foster * data/Makefile.am, data/zenity.png, src/about.c: Hooray! Zenity now has an about window icon. It's very zen too. --- src/about.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/about.c b/src/about.c index c121cdc..d260f60 100644 --- a/src/about.c +++ b/src/about.c @@ -54,7 +54,9 @@ void zenity_about (ZenityData *data) { GladeXML *glade_dialog = NULL; + GdkPixbuf *pixbuf; GtkWidget *label; + GtkWidget *image; gchar *text; glade_dialog = zenity_util_load_glade_file ("zenity_about_dialog"); @@ -74,9 +76,16 @@ zenity_about (ZenityData *data) g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (zenity_about_dialog_response), data); - /* FIXME: Set an appropriate window icon for the dialog - * zenity_util_set_window_icon (dialog, ZENITY_IMAGE_FULLPATH ("")); - */ + zenity_util_set_window_icon (dialog, ZENITY_IMAGE_FULLPATH ("zenity.png")); + + image = glade_xml_get_widget (glade_dialog, "zenity_about_image"); + + pixbuf = gdk_pixbuf_new_from_file (ZENITY_IMAGE_FULLPATH ("zenity.png"), NULL); + + if (pixbuf != NULL) { + gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf); + g_object_unref (pixbuf); + } label = glade_xml_get_widget (glade_dialog, "zenity_about_version"); text = g_strdup_printf ("Zenity %s", VERSION); -- cgit v1.2.3-54-g00ecf