Added ABOUT window

This commit is contained in:
Sergio Costas 2014-08-04 17:18:56 +02:00
parent 7a9468170e
commit 956816acaa
7 changed files with 88 additions and 2 deletions

41
data/interface/wabout.ui Normal file
View file

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkAboutDialog" id="about_devedeng">
<property name="can_focus">False</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
<property name="has_resize_grip">False</property>
<property name="program_name">Devede NG</property>
<property name="copyright" translatable="yes">2014 Raster Software Vigo</property>
<property name="authors">Sergio Costas Rodríguez</property>
<property name="logo">devede.png</property>
<property name="logo_icon_name"/>
<property name="license_type">gpl-3-0</property>
<child internal-child="vbox">
<object class="GtkBox" id="aboutdialog-vbox1">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="aboutdialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</interface>

View file

@ -159,6 +159,7 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<signal name="activate" handler="on_about_activate" swapped="no"/>
</object> </object>
</child> </child>
</object> </object>

BIN
data/pixmaps/devede.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

38
src/devede/about.py Normal file
View file

@ -0,0 +1,38 @@
# Copyright 2014 (C) Raster Software Vigo (Sergio Costas)
#
# This file is part of DeVeDe-NG
#
# DeVeDe-NG 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 3 of the License, or
# (at your option) any later version.
#
# DeVeDe-NG 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 this program. If not, see <http://www.gnu.org/licenses/>
from gi.repository import Gtk
import os
import devede.configuration_data
class about_window:
def __init__(self):
self.config = devede.configuration_data.configuration.get_config()
builder = Gtk.Builder()
builder.set_translation_domain(self.config.gettext_domain)
builder.add_from_file(os.path.join(self.config.glade,"wabout.ui"))
builder.connect_signals(self)
w_window = builder.get_object("about_devedeng")
w_window.set_version(self.config.version)
w_window.show_all()
w_window.run()
w_window.destroy()

View file

@ -35,6 +35,7 @@ class configuration(GObject.GObject):
def __init__(self): def __init__(self):
GObject.GObject.__init__(self) GObject.GObject.__init__(self)
self.version = "0.1 Alpha 1"
def fill_config(self): def fill_config(self):

View file

@ -77,7 +77,7 @@ class mplayer_detector(devede.executor.executor):
if (check_audio): if (check_audio):
frames = "0" frames = "0"
else: else:
frames = "1" frames = "5"
command_line = ["mplayer","-loop","1","-identify", "-vo", "null", "-ao", "null", "-frames", frames , file_name] command_line = ["mplayer","-loop","1","-identify", "-vo", "null", "-ao", "null", "-frames", frames , file_name]

View file

@ -33,6 +33,7 @@ import devede.mkisofs
import devede.end_job import devede.end_job
import devede.vcdimager_converter import devede.vcdimager_converter
import devede.shutdown import devede.shutdown
import devede.about
class devede_project: class devede_project:
@ -480,3 +481,7 @@ class devede_project:
def on_settings_activate(self,b): def on_settings_activate(self,b):
w = devede.settings.settings_window() w = devede.settings.settings_window()
def on_about_activate(self,b):
w = devede.about.about_window()