about dialog update.

2006-05-19  Lucas Rocha  <lucasr@gnome.org>

	* src/about.c (zenity_about): about dialog update.
This commit is contained in:
Lucas Rocha 2006-05-19 20:00:29 +00:00 committed by Lucas Almeida Rocha
parent 4b0d957186
commit 1bf8562a2e
2 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-05-19 Lucas Rocha <lucasr@gnome.org>
* src/about.c (zenity_about): about dialog update.
2006-05-16 Lucas Rocha <lucasr@gnome.org>
* configure.in: post release version bump.

View File

@ -61,6 +61,20 @@ static const char *documenters[] = {
static gchar *translators;
const char *license[] = {
N_("This program is free software; you can redistribute it and/or modify "
"it under the terms of the GNU General Public License as published by "
"the Free Software Foundation; either version 2 of the License, or "
"(at your option) any later version.\n"),
N_("This program is distributed in the hope that it will be useful, "
"but WITHOUT ANY WARRANTY; without even the implied warranty of "
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "
"GNU General Public License for more details.\n"),
N_("You should have received a copy of the GNU General Public License "
"along with this program; if not, write to the Free Software "
"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.")
};
static gint
zenity_move_clothes_event (GnomeCanvasItem *item,
GdkEvent *event,
@ -244,10 +258,15 @@ zenity_about (ZenityData *data)
{
GdkPixbuf *logo;
GtkWidget *help_button;
char *license_trans;
translators = _("translator-credits");
logo = gdk_pixbuf_new_from_file (ZENITY_IMAGE_FULLPATH ("zenity.png"), NULL);
license_trans = g_strconcat (_(license[0]), "\n", _(license[1]), "\n",
_(license[2]), "\n", NULL);
dialog = gtk_about_dialog_new ();
g_object_set (G_OBJECT (dialog),
@ -258,8 +277,13 @@ zenity_about (ZenityData *data)
"authors", authors,
"documenters", documenters,
"translator-credits", translators,
"website", "http://live.gnome.org/Zenity",
"logo", logo,
"wrap-license", TRUE,
"license", license_trans,
NULL);
g_free (license_trans);
zenity_util_set_window_icon (dialog, NULL, ZENITY_IMAGE_FULLPATH ("zenity.png"));