[gnome-music: 1/6] add about dialog
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music: 1/6] add about dialog
- Date: Thu, 8 Aug 2013 11:17:06 +0000 (UTC)
commit 7ae000267f9db5f84ec5eea4a709a68206e2427f
Author: Lubosz Sarnecki <lubosz gmail com>
Date: Tue Aug 6 16:06:19 2013 +0200
add about dialog
data/AboutDialog.ui | 37 +++++++++++++++++++++++++++++++++++++
data/gnome-music.gresource.xml | 1 +
gnomemusic/application.py | 10 +++++++++-
3 files changed, 47 insertions(+), 1 deletions(-)
---
diff --git a/data/AboutDialog.ui b/data/AboutDialog.ui
new file mode 100644
index 0000000..420eeb4
--- /dev/null
+++ b/data/AboutDialog.ui
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="gnome-music">
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkAboutDialog" id="about_dialog">
+ <property name="version">@PACKAGE_VERSION@</property>
+ <property name="copyright" translatable="yes">Copyright © 2013 GNOME Music Developers</property>
+ <property name="comments" translatable="yes">A Music player and management application for
GNOME.</property>
+ <property name="website">https://wiki.gnome.org/Music</property>
+ <property name="website_label" translatable="yes">Visit GNOME Music web site</property>
+ <property name="license" translatable="yes">Music 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.
+
+ Music 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.
+
+ You should have received a copy of the GNU General Public License
+ along with Music; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.</property>
+ <property name="authors">Maintainers:
+ Seif Lotfy <seif lotfy com>
+ Vadim Rutkovsky <vrutkovs redhat com>
+
+Contributors:
+ Eslam Mostafa <cseslam gmail com>
+ Juan Suarez <jasuarez igalia com>
+ Guillaume Quintard <guillaume quintard gmail com></property>
+ <property name="artists">William Jon McCann <william jon mccann gmail com>
+ Jakub Steiner <jimmac gmail com>
+ Allan Day <allanpday gmail com></property>
+ <property name="logo-icon-name">gnome-music</property>
+ </object>
+</interface>
diff --git a/data/gnome-music.gresource.xml b/data/gnome-music.gresource.xml
index 28b6607..92a4560 100644
--- a/data/gnome-music.gresource.xml
+++ b/data/gnome-music.gresource.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Music">
+ <file preprocess="xml-stripblanks">AboutDialog.ui</file>
<file preprocess="xml-stripblanks">app-menu.ui</file>
<file>application.css</file>
<file preprocess="xml-stripblanks">AlbumWidget.ui</file>
diff --git a/gnomemusic/application.py b/gnomemusic/application.py
index b9ebc78..9ce32f0 100644
--- a/gnomemusic/application.py
+++ b/gnomemusic/application.py
@@ -52,7 +52,15 @@ class Application(Gtk.Application):
pass
def about(self, action, param):
- pass
+ builder = Gtk.Builder()
+ builder.add_from_resource('/org/gnome/Music/AboutDialog.ui')
+ about = builder.get_object('about_dialog')
+ about.set_version("0.3")
+ about.connect("response", self.about_response)
+ about.show()
+
+ def about_response(self, dialog, response):
+ dialog.destroy()
def do_startup(self):
Gtk.Application.do_startup(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]