2006-06-28 23:50:17 +04:00
#
# Copyright (C) 2006 Red Hat, Inc.
# Copyright (C) 2006 Daniel P. Berrange <berrange@redhat.com>
#
# 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.
#
# 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.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
2007-11-20 19:12:20 +03:00
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
2006-06-28 23:50:17 +04:00
#
2006-06-14 18:59:40 +04:00
2012-02-01 04:07:32 +04:00
import logging
2010-12-09 01:26:19 +03:00
from virtManager . baseclass import vmmGObjectUI
class vmmAbout ( vmmGObjectUI ) :
def __init__ ( self ) :
2012-02-02 02:26:46 +04:00
vmmGObjectUI . __init__ ( self , " vmm-about.ui " , " vmm-about " )
2006-06-14 18:59:40 +04:00
2013-02-16 22:31:46 +04:00
self . builder . connect_signals ( {
2006-06-14 18:59:40 +04:00
" on_vmm_about_delete_event " : self . close ,
2006-09-11 20:34:46 +04:00
" on_vmm_about_response " : self . close ,
2012-11-08 17:15:02 +04:00
} )
2006-06-14 18:59:40 +04:00
def show ( self ) :
2012-02-01 03:16:54 +04:00
logging . debug ( " Showing about " )
2010-12-09 01:26:19 +03:00
self . topwin . set_version ( self . config . get_appversion ( ) )
self . topwin . present ( )
2006-06-14 18:59:40 +04:00
2010-11-29 22:06:43 +03:00
def close ( self , ignore1 = None , ignore2 = None ) :
2012-02-01 03:16:54 +04:00
logging . debug ( " Closing about " )
2010-12-09 01:26:19 +03:00
self . topwin . hide ( )
2006-06-14 18:59:40 +04:00
return 1
2010-12-09 01:26:19 +03:00
2011-07-24 05:16:54 +04:00
def _cleanup ( self ) :
pass