def resize( self ): try: cwidth = int( globals.config.width ) except: cwidth = 100 width = max( 1, int( gtk.gdk.screen_width() * cwidth / 100 ) ) height = max( 1, int( globals.config.height ) ) abstract.FoopanelWindow.resize( self, width, height ) globals.requested_size = ( width, height ) globals.width, globals.height = self.get_size() self.reposition() functions.execute_registered( 'on_resize' )
def __init__( self ): gtk.HBox.__init__( self, False, 5 ) self.set_name( "PluginManager" ) globals.plugin_manager = self self.pack_start( FooMenu(), False, True ) #globals.pulsar = AnimatedImage(os.path.join(path_here, "..", "pulsar.gif")) #self.pack_start(globals.pulsar, False, False) self.show_all() #loader = PluginLoader() #print "starting loader" #loader.start() for plugin, settings in globals.config.plugins: functions.load_plugin( plugin, settings ) functions.execute_registered( 'on_finish' )