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.
This commit is contained in:
Glynn Foster 2003-01-18 14:54:44 +00:00 committed by Glynn Foster
parent dee9ebb40b
commit 10e683c2e7
4 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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> 2003-01-18 Glynn Foster <glynn.foster@sun.com>
* help/C/zenity.xml: Update the docs a little. I have absolutely * help/C/zenity.xml: Update the docs a little. I have absolutely

View File

@ -1,5 +1,6 @@
imagesdir = $(datadir)/zenity/ imagesdir = $(datadir)/zenity/
images_DATA = \ images_DATA = \
zenity.png \
zenity-calendar.png \ zenity-calendar.png \
zenity-list.png \ zenity-list.png \
zenity-file.png \ zenity-file.png \

BIN
data/zenity.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -54,7 +54,9 @@ void
zenity_about (ZenityData *data) zenity_about (ZenityData *data)
{ {
GladeXML *glade_dialog = NULL; GladeXML *glade_dialog = NULL;
GdkPixbuf *pixbuf;
GtkWidget *label; GtkWidget *label;
GtkWidget *image;
gchar *text; gchar *text;
glade_dialog = zenity_util_load_glade_file ("zenity_about_dialog"); 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_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (zenity_about_dialog_response), data); 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.png"));
* zenity_util_set_window_icon (dialog, ZENITY_IMAGE_FULLPATH (""));
*/ 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"); label = glade_xml_get_widget (glade_dialog, "zenity_about_version");
text = g_strdup_printf ("<span size=\"xx-large\" weight=\"bold\">Zenity %s</span>", VERSION); text = g_strdup_printf ("<span size=\"xx-large\" weight=\"bold\">Zenity %s</span>", VERSION);