1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
class GtkPackage (GnomePackage):
def __init__ (self):
GnomePackage.__init__ (self, 'gtk+',
version_major = '2.24',
version_minor = '8',
configure_flags = [
'--with-gdktarget=%{gdk_target}',
# '--disable-cups',
]
)
self.gdk_target = 'x11'
if Package.profile.name == 'darwin':
self.gdk_target = 'quartz'
self.sources.extend ([
# post-2.24.8 commits from 2.24 branch
# quartz: fix a race condition when waking up the CGRunLoopgtk
'http://git.gnome.org/browse/gtk+/patch/?id=0729cdc9a1e8003c41d3ebf20eecfe2d1b29ffbe',
# Revert "iconview: layout items immediately when setting a GtkTreeModel"
'http://git.gnome.org/browse/gtk+/patch/?id=5c3bb1839cac52828756f9ddb98f49d586853991',
# notebook: don't leak the action widgets
'http://git.gnome.org/browse/gtk+/patch/?id=4c35d987dfe3b169f0448d5c27e5ebad06f91cab',
# Bug 663856 - Make option-foo accelerators use the right symbol
'http://git.gnome.org/browse/gtk+/patch/?id=2e06f63743010da065f59234e7f5062205e31b43',
# [Bug 664238] GTK apps crash when dragging somethinggtk
'http://git.gnome.org/browse/gtk+/patch/?id=7c77f9a69ab4dfea9f015cf09db6d501576523aa',
# smooth scrolling, https://bugzilla.gnome.org/show_bug.cgi?id=516725
'http://bugzilla-attachments.gnome.org/attachment.cgi?id=200174',
# make new modifier behviour opt-in, so as not to break old versions of MonoDevelop
'patches/gdk-quartz-set-fix-modifiers-hack.patch',
])
def prep (self):
Package.prep (self)
if Package.profile.name == 'darwin':
for p in range (1, len (self.sources)):
self.sh ('patch -p1 < "%{sources[' + str (p) + ']}"')
GtkPackage ()
|