fa08c4d1f9
The transferbar is separated from the browser, albeit it is still created and filled from within the browser so it is not completely independent. The new class now keeps a list of TransferInfo items to keep track of transfers and queries the status from the download object. Destroying a button belonging to a transfer is connected to removing it from the list and cleaning up the info structure. Also the Clear button is updated from the destroy handler.
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
#! /usr/bin/env python
|
|
# WAF build script for midori
|
|
# This file is licensed under the terms of the expat license, see the file EXPAT.
|
|
|
|
import platform
|
|
|
|
progressive = True
|
|
libs = 'M UNIQUE LIBSOUP GMODULE GTHREAD LIBIDN GIO GTK SQLITE ' \
|
|
'LIBNOTIFY WEBKIT LIBXML X11 XSS WS2_32 OPENSSL HILDON HILDON_FM'
|
|
|
|
if progressive or Options.commands['check']:
|
|
obj = bld.new_task_gen ('cc', 'staticlib')
|
|
obj.target = 'midori-core'
|
|
obj.includes = '.. ../katze . ../toolbars'
|
|
obj.find_sources_in_dirs ('../katze . ../panels ../toolbars', excludes=['main.c'])
|
|
obj.uselib = libs
|
|
obj.add_marshal_file ('marshal.list', 'midori_cclosure_marshal')
|
|
obj.install_path = None
|
|
bld.add_group ()
|
|
|
|
if progressive:
|
|
obj = bld.new_task_gen ('cc', 'program')
|
|
obj.target = 'midori'
|
|
obj.includes = '.. ../katze . ../panels'
|
|
obj.source = './main.c'
|
|
obj.uselib = libs
|
|
obj.uselib_local = 'midori-core'
|
|
if bld.env['WINRC']:
|
|
obj.source += ' ../data/midori.rc'
|
|
else:
|
|
obj = bld.new_task_gen ('cc', 'program')
|
|
obj.target = 'midori'
|
|
obj.includes = '.. ../katze . ../panels'
|
|
obj.find_sources_in_dirs ('../katze . ../panels')
|
|
obj.add_marshal_file ('marshal.list', 'midori_cclosure_marshal')
|
|
obj.uselib = libs
|
|
if bld.env['WINRC']:
|
|
obj.source += ' ../data/midori.rc'
|