[Xfce4-commits] <squeeze:stephan/new-ui> Add about dialog
Stephan Arts
noreply at xfce.org
Fri May 10 10:48:03 CEST 2013
Updating branch refs/heads/stephan/new-ui
to 5583b402e97acadeb972030606d0b317d6a33140 (commit)
from f61e6d9e80945af9d08a9b3081f741de71abb3c5 (commit)
commit 5583b402e97acadeb972030606d0b317d6a33140
Author: Stephan Arts <stephan at xfce.org>
Date: Fri May 10 10:41:15 2013 +0200
Add about dialog
src/main_window.c | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index 338b9a1..9a9fb25 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -359,5 +359,35 @@ cb_sq_main_window_about (
gpointer user_data
)
{
+ const gchar *authors[] = {
+ _("Developer:"),
+ "Stephan Arts <stephan at xfce.org>",
+ "Peter de Ridder <peter at xfce.org>",
+ NULL};
+
+ GtkWidget *about_dialog = gtk_about_dialog_new();
+
+ gtk_about_dialog_set_version((GtkAboutDialog *)about_dialog, PACKAGE_VERSION);
+ gtk_about_dialog_set_program_name ((GtkAboutDialog *)about_dialog, PACKAGE_NAME);
+
+ gtk_about_dialog_set_comments((GtkAboutDialog *)about_dialog,
+ _("Squeeze is an archive manager for the Xfce desktop environment."));
+ gtk_about_dialog_set_website((GtkAboutDialog *)about_dialog,
+ "http://squeeze.xfce.org");
+ gtk_about_dialog_set_logo_icon_name((GtkAboutDialog *)about_dialog,
+ "squeeze");
+ gtk_about_dialog_set_authors((GtkAboutDialog *)about_dialog,
+ authors);
+ gtk_about_dialog_set_translator_credits((GtkAboutDialog *)about_dialog,
+ _("translator-credits"));
+ gtk_about_dialog_set_license((GtkAboutDialog *)about_dialog,
+ xfce_get_license_text(XFCE_LICENSE_TEXT_GPL));
+ gtk_about_dialog_set_copyright((GtkAboutDialog *)about_dialog,
+ "Copyright \302\251 2006-2013 Xfce Developers");
+
+ gtk_dialog_run(GTK_DIALOG(about_dialog));
+
+ gtk_widget_destroy(about_dialog);
+
return;
}
More information about the Xfce4-commits
mailing list