2006-06-28 15:50:17 -04:00
#
2013-10-27 21:59:46 +01:00
# Copyright (C) 2006, 2013 Red Hat, Inc.
2006-06-28 15:50:17 -04:00
# 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 11:12:20 -05:00
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
2006-06-28 15:50:17 -04:00
#
2006-06-14 10:59:40 -04:00
2012-01-31 19:07:32 -05:00
import logging
2010-12-08 17:26:19 -05:00
from virtManager . baseclass import vmmGObjectUI
2013-04-13 14:34:52 -04:00
2010-12-08 17:26:19 -05:00
class vmmAbout ( vmmGObjectUI ) :
def __init__ ( self ) :
2013-09-22 16:10:16 -04:00
vmmGObjectUI . __init__ ( self , " about.ui " , " vmm-about " )
2006-06-14 10:59:40 -04:00
2013-02-16 13:31:46 -05:00
self . builder . connect_signals ( {
2006-06-14 10:59:40 -04:00
" on_vmm_about_delete_event " : self . close ,
2006-09-11 12:34:46 -04:00
" on_vmm_about_response " : self . close ,
2012-11-08 14:15:02 +01:00
} )
2006-06-14 10:59:40 -04:00
def show ( self ) :
2012-01-31 18:16:54 -05:00
logging . debug ( " Showing about " )
2010-12-08 17:26:19 -05:00
self . topwin . set_version ( self . config . get_appversion ( ) )
self . topwin . present ( )
2006-06-14 10:59:40 -04:00
2010-11-29 14:06:43 -05:00
def close ( self , ignore1 = None , ignore2 = None ) :
2012-01-31 18:16:54 -05:00
logging . debug ( " Closing about " )
2010-12-08 17:26:19 -05:00
self . topwin . hide ( )
2006-06-14 10:59:40 -04:00
return 1
2010-12-08 17:26:19 -05:00
2011-07-23 21:16:54 -04:00
def _cleanup ( self ) :
pass