summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-18 14:54:44 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-18 14:54:44 +0000
commit10e683c2e7fa6b71ce7baaa15185477d544d885f (patch)
treebe888e98af0681b94db1948527ed3976ada19434
parentUpdate the docs a little. I have absolutely no clue how the doc people (diff)
downloadzenity-10e683c2e7fa6b71ce7baaa15185477d544d885f.tar.gz
zenity-10e683c2e7fa6b71ce7baaa15185477d544d885f.tar.bz2
zenity-10e683c2e7fa6b71ce7baaa15185477d544d885f.zip
Hooray! Zenity now has an about window icon. It's very zen too.
2003-01-18 Glynn Foster <glynn.foster@sun.com> * data/Makefile.am, data/zenity.png, src/about.c: Hooray! Zenity now has an about window icon. It's very zen too.
-rw-r--r--ChangeLog5
-rw-r--r--data/Makefile.am1
-rw-r--r--data/zenity.pngbin0 -> 2342 bytes
-rw-r--r--src/about.c15
4 files changed, 18 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index be9d0da4..f0effc2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2003-01-18 Glynn Foster <glynn.foster@sun.com>
+ * data/Makefile.am, data/zenity.png, src/about.c: Hooray!
+ Zenity now has an about window icon. It's very zen too.
+
+2003-01-18 Glynn Foster <glynn.foster@sun.com>
+
* help/C/zenity.xml: Update the docs a little. I have absolutely
no clue how the doc people don't get tired of this.
diff --git a/data/Makefile.am b/data/Makefile.am
index 33ba8d0e..9f5fbc65 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,5 +1,6 @@
imagesdir = $(datadir)/zenity/
images_DATA = \
+ zenity.png \
zenity-calendar.png \
zenity-list.png \
zenity-file.png \
diff --git a/data/zenity.png b/data/zenity.png
new file mode 100644
index 00000000..3c9c59ad
--- /dev/null
+++ b/data/zenity.png
Binary files differ
diff --git a/src/about.c b/src/about.c
index c121cdc5..d260f608 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 ("<span size=\"xx-large\" weight=\"bold\">Zenity %s</span>", VERSION);
bgstack15