"Fossies" - the Fresh Open Source Software Archive 
Member "mono-6.12.0.122/external/bockbuild/packages/gtk+.py" (22 Feb 2021, 15342 Bytes) of package /linux/misc/mono-sources/mono/mono-6.12.0.122.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "gtk+.py":
6.12.0.107_vs_6.12.0.122.
1 class GtkPackage (GitHubPackage):
2
3 def __init__(self):
4 GitHubPackage.__init__(self, 'GNOME', 'gtk', '2.24', '280fc402be5fb46b66bcd32056963bb1afb8b54b',
5 configure='./autogen.sh --prefix="%{package_prefix}"',
6 configure_flags=[
7 '--with-gdktarget=%{gdk_target}',
8 # '--disable-cups',
9 ]
10 )
11 self.gdk_target = 'x11'
12
13 if Package.profile.name == 'darwin':
14 self.gdk_target = 'quartz'
15 self.sources.extend([
16 # Custom gtkrc
17 'patches/gtkrc',
18
19 # smooth scrolling, scrollbars, overscroll, retina,
20 # gtknsview
21 'patches/gtk/0001-Add-invariant-that-a-child-is-unmapped-if-parent-is-.patch',
22 'patches/gtk/0002-Maintain-map-unmap-invariants-in-GtkRecentChooserDia.patch',
23 'patches/gtk/0003-GtkPlug-preserve-map-unmap-invariants.patch',
24 'patches/gtk/0004-Add-gdk_screen_get_monitor_workarea-and-use-it-all-o.patch',
25 'patches/gtk/0005-gtk-don-t-scroll-combo-box-menus-if-less-than-3-item.patch',
26 'patches/gtk/0006-gtk-paint-only-the-exposed-region-in-gdk_window_expo.patch',
27 'patches/gtk/0007-Implement-gtk-enable-overlay-scrollbars-GtkSetting.patch',
28 'patches/gtk/0008-Smooth-scrolling.patch',
29 'patches/gtk/0009-gtk-Add-a-way-to-do-event-capture.patch',
30 'patches/gtk/0010-gtk-don-t-let-insensitive-children-eat-scroll-events.patch',
31 'patches/gtk/0011-scrolledwindow-Kinetic-scrolling-support.patch',
32 'patches/gtk/0012-gtk-paint-to-the-right-windows-in-gtk_scrolled_windo.patch',
33 'patches/gtk/0013-GtkScrolledWindow-add-overlay-scrollbars.patch',
34 'patches/gtk/0014-gtk-add-event-handling-to-GtkScrolledWindow-s-overla.patch',
35 'patches/gtk/0015-Use-gtk-enable-overlay-scrollbars-in-GtkScrolledWind.patch',
36 'patches/gtk/0016-gtk-correctly-handle-toggling-of-the-scrollbar-visib.patch',
37 'patches/gtk/0017-gtk-handle-gtk-primary-button-warps-slider-for-the-o.patch',
38 'patches/gtk/0018-Introduce-phase-field-in-GdkEventScroll.patch',
39 'patches/gtk/0019-Add-hack-to-lock-flow-of-scroll-events-to-window-whe.patch',
40 'patches/gtk/0020-Introduce-a-background-window.patch',
41 'patches/gtk/0021-Make-scrolled-window-work-well-with-Mac-touchpad.patch',
42 'patches/gtk/0022-Use-start-end-phase-in-event-handling.patch',
43 'patches/gtk/0023-Improve-overshooting-behavior.patch',
44 'patches/gtk/0024-Cancel-out-smaller-delta-component.patch',
45 'patches/gtk/0025-quartz-Add-a-dummy-NSView-serving-as-layer-view.patch',
46 'patches/gtk/0026-gtk-port-overlay-scrollbars-to-native-CALayers.patch',
47 'patches/gtk/0027-Refrain-from-starting-fading-out-while-a-gesture-is-.patch',
48 'patches/gtk/0028-gtk-don-t-show-the-olverlay-scrollbars-if-only-the-s.patch',
49 'patches/gtk/0029-Reclamp-unclamped-adjustments-after-resize.patch',
50 'patches/gtk/0030-gtk-fix-size_request-of-scrolled-window.patch',
51 'patches/gtk/0031-Hackish-fix-for-bug-8493-Min-size-of-GtkScrolledWind.patch',
52 'patches/gtk/0032-Add-momentum_phase-to-GdkEventScroll.patch',
53 'patches/gtk/0033-Never-intervene-in-the-event-stream-for-legacy-mice.patch',
54 'patches/gtk/0034-Do-not-start-overshooting-for-legacy-mouse-scroll-ev.patch',
55 'patches/gtk/0035-gtk-remove-the-overlay-scrollbar-grab-on-unrealize.patch',
56 'patches/gtk/0036-gtk-add-GtkScrolledWindow-API-to-disable-overshoot-p.patch',
57 'patches/gtk/0037-quartz-return-events-on-embedded-foreign-NSViews-bac.patch',
58 'patches/gtk/0038-quartz-don-t-forward-events-to-the-toplevel-nswindow.patch',
59 'patches/gtk/0039-gdk-add-a-move-native-children-signal-to-GdkWindow.patch',
60 'patches/gtk/0040-gtk-add-new-widget-GtkNSView-which-alows-to-embed-an.patch',
61 'patches/gtk/0041-tests-add-a-notebook-to-testnsview.c.patch',
62 'patches/gtk/0042-gtk-connect-GtkNSView-to-move-native-children-and-re.patch',
63 'patches/gtk/0043-tests-add-a-scrolled-window-test-widget-to-testnsvie.patch',
64 'patches/gtk/0044-gtknsview-clip-drawRect-to-a-parent-GtkViewport-s-wi.patch',
65 'patches/gtk/0045-gtk-clip-NSViews-to-the-scrolled-window-s-overshoot_.patch',
66 'patches/gtk/0046-gtk-implement-clipping-to-multiple-parent-viewports-.patch',
67 'patches/gtk/0047-gtk-first-attempt-to-also-clip-NSWindow-s-field-edit.patch',
68 'patches/gtk/0048-gtk-also-clip-the-NSView-s-subviews.patch',
69 'patches/gtk/0049-nsview-also-swizzle-DidAddSubview-and-clip-all-subvi.patch',
70 'patches/gtk/0050-nsview-clip-text-field-cursor-drawing.patch',
71 'patches/gtk/0051-nsview-factor-out-almost-all-code-from-the-overridde.patch',
72 'patches/gtk/0052-nsview-also-focus-the-GtkNSView-if-a-focussable-subv.patch',
73 'patches/gtk/0053-gtk-add-an-overlay-policy-API-to-GtkScrolledWindow.patch',
74 'patches/gtk/0054-quartz-add-gdk_screen_-and-gdk_window_get_scale_fact.patch',
75 'patches/gtk/0055-gtk-add-gtk_widget_get_scale_factor.patch',
76 'patches/gtk/0056-iconfactory-Add-_scaled-variants.patch',
77 'patches/gtk/0057-widget-Add-_scaled-variants-for-icon-rendering.patch',
78 'patches/gtk/0058-icontheme-Add-support-for-high-resolution-icons.patch',
79 'patches/gtk/0059-iconfactory-Add-scale-info-to-GtkIconSource.patch',
80 'patches/gtk/0060-iconfactory-Add-gtk_cairo_set_source_icon_set.patch',
81 'patches/gtk/0061-image-Use-scaled-icons-on-windows-with-a-scaling-fac.patch',
82 'patches/gtk/0062-cellrendererpixbuf-Use-scaled-icons-on-windows-with-.patch',
83 'patches/gtk/0063-entry-Use-scaled-icons-on-windows-with-a-scale-facto.patch',
84 'patches/gtk/0064-gdk-Lookup-double-scaled-variants-on-pixbufs.patch',
85 'patches/gtk/0065-Make-usual-calls-to-get-a-GdkPixbuf-attach-a-2x-vari.patch',
86 'patches/gtk/0066-cellrendererpixbuf-let-2x-variants-go-through-pixel-.patch',
87 'patches/gtk/0067-quartz-Make-event-loop-deal-with-recursive-poll-invo.patch',
88 'patches/gtk/0068-nsview-implement-a-few-text-view-command-accelerator.patch',
89 'patches/gtk/0069-menu-scrolling.patch',
90 'patches/gtk/0070-tooltips-focus.patch',
91 'patches/gtk/0071-light-and-dark-overlay-scrollbars.patch',
92 'patches/gtk/0072-let-global-keyboard-shortcuts-pass-through.patch',
93 'patches/gtk/0073-disable-combobox-scrolling.patch',
94 'patches/gtk/0074-fix-NULL-pointer-in-clipboard.patch',
95 'patches/gtk/0075-filechooserwidget-location-entry-activation.patch',
96 'patches/gtk/0076-iconfactory-treat-gt-1-0-icons-as-2-0.patch',
97
98 # Bug 702841 - GdkQuartz does not distinguish Eisu, Kana and Space keys on Japanese keyrboard
99 # https://bugzilla.gnome.org/show_bug.cgi?id=702841
100 'patches/gtk/bgo702841-fix-kana-eisu-keys.patch',
101
102 # make new modifier behviour opt-in, so as not to break old
103 # versions of MonoDevelop
104 'patches/gdk-quartz-set-fix-modifiers-hack-v3.patch',
105
106 # attempt to work around 2158 - [GTK] crash triggering context menu
107 # also prints some warnings that may help to debug the real issue
108 # https://bugzilla.xamarin.com/attachment.cgi?id=1644
109 'patches/gtk/bxc2158_workaround_crash_triggering_context_menu.patch',
110
111 # Zoom, rotate, swipe events
112 'patches/gtk-gestures.patch',
113
114 # Fix gtk_window_begin_move_drag on Quartz
115 'patches/gtk-quartz-move-drag.patch',
116
117 # Bug 3457 - [GTK] Support more standard keyboard shortcuts in dialogs
118 # https://bugzilla.xamarin.com/attachment.cgi?id=2240
119 'patches/gtk/bxc3457_more_standard_keyboard_shortcuts.patch',
120
121 # Bug 10256 - Mac window manipulation tools get confused by Xamarin Studio
122 # https://bugzilla.xamarin.com/attachment.cgi?id=3465
123 'patches/gtk/bxc_10256_window_tools_get_confused.diff',
124
125 # 'patches/gtk/gdk-pixmap-get-cgimage-2.patch',
126
127 # https://bugzilla.xamarin.com/show_bug.cgi?id=18157
128 'patches/gtk/gtk-check-grab_toplevel-is-destroyed.patch',
129
130 # https://bugzilla.xamarin.com/show_bug.cgi?id=18241
131 # https://bugzilla.xamarin.com/show_bug.cgi?id=17631
132 # https://bugzilla.xamarin.com/show_bug.cgi?id=17692
133 'patches/gtk/gtk-imquartz-defer-signals-in-output_result.patch',
134
135 # https://bugzilla.xamarin.com/show_bug.cgi?id=17401
136 'patches/gtk/gtknsview-defer-map-and-lock-in-clipping.patch',
137 'patches/gtk/gtknsview-timeout-fix.patch',
138
139 'patches/gtk/nsview-embedding.patch',
140
141 'patches/gtk/enable-swizzle-property.patch',
142
143 # https://bugzilla.xamarin.com/show_bug.cgi?id=12618
144 'patches/gtk/disable-eye-dropper.patch',
145
146 # https://bugzilla.xamarin.com/show_bug.cgi?id=13100
147 'patches/gtk/flip-command-mask-between-mod1-and-mod2.patch',
148 'patches/gtk/nsview-embedding-fix-keyboard-routing.patch',
149 'patches/gtk/nsview-check-for-superview.patch',
150
151 'patches/gtk/gtknsview-forward-cmdz-to-textview-undo-manager.patch',
152
153 # https://bugzilla.xamarin.com/show_bug.cgi?id=20732
154 'patches/gtk/embedded-nstextview-has-focus.patch',
155 'patches/gtk/remove-demos-from-build.patch',
156
157 # This fixes an issue in where in some situations the user needed
158 # to click a native text entry twice in order to be able to
159 # focus it.
160 'patches/gtk/gtknsview-only-unset-first-responder-if-it-is-our-view.patch',
161
162 # For the test framework to be able to traverse down the
163 # NSView hierarchy
164 'patches/gtk/gtknsview-getter.patch',
165
166 # https://bugzilla.xamarin.com/show_bug.cgi?id=29301#c3
167 'patches/gtk/gtknsview-fix-invalid-casts.patch',
168
169 # https://bugzilla.xamarin.com/show_bug.cgi?id=29001
170 'patches/gtk/quartz-call-undo-redo-on-cmdz.patch',
171
172 'patches/gtk/scrolled-window-draw-child-bg.patch',
173
174 # https://bugzilla.xamarin.com/show_bug.cgi?id=37239
175 'patches/gtk/fix-imquartz-crasher.patch',
176
177 # https://bugzilla.gnome.org/show_bug.cgi?id=630226
178 # https://bugzilla.xamarin.com/show_bug.cgi?id=34973
179 'patches/gtk/remove-mouse-scrolling-from-GtkNotebook-tabs.patch',
180
181 # https://bugzilla.xamarin.com/show_bug.cgi?id=37951
182 'patches/gtk/dont-call-CopySymbolicHotKeys-so-much.patch',
183
184 # https://bugzilla.xamarin.com/show_bug.cgi?id=38664
185 'patches/gtk/combobox-crossing-events.patch',
186
187 # https://bugzilla.xamarin.com/show_bug.cgi?id=41657
188 'patches/gtk/bxc-41657.patch',
189
190 'patches/gtk/emit-container-add.patch',
191 'patches/gtk/create-accessibility-object.patch',
192
193 'patches/gtk/make-gtkpaned-emit-signals.patch',
194 'patches/gtk/0001-A11y-Fix-dialog-accessibility.patch',
195 'patches/gtk/0001-A11y-Emit-the-container-add-signal-when-inserting-a-.patch',
196
197 # https://bugzilla.xamarin.com/show_bug.cgi?id=51382
198 # https://bugzilla.xamarin.com/show_bug.cgi?id=51375
199 'patches/gtk/recompute-viewport-allocation-for-overlay-scrollbars.patch',
200 'patches/gtk/0001-A11y-Make-GtkTable-emit-the-container-add-signal.patch',
201
202 'patches/gtk/gtk-add-new-osx-versions.patch',
203 # 'patches/gtk/gtk-new-screen-updates-api.patch',
204
205 # https://bugzilla.xamarin.com/show_bug.cgi?id=5162
206 # 'patches/gtk/get-ascii-capable-keyboard-input-source.patch',
207
208 # https://developercommunity.visualstudio.com/content/problem/104471/visual-studio-for-mac-720540-cannot-launch-exc-bre.html
209 'patches/gtk/update_only_apple_keyboard_layout.patch',
210
211 'patches/gtk/gtk-backing-scale-factor.patch',
212
213 #'patches/gtk/gtk-fix-find_nsview_at_pos-recursive.patch',
214
215 # https://devdiv.visualstudio.com/DevDiv/_workitems/edit/569768
216 'patches/gtk/gtk-imquartz-commit-on-focus-out.patch',
217
218 # https://devdiv.visualstudio.com/DevDiv/_workitems/edit/737323
219 'patches/gtk/gtk-nsview-subview-focus-fixes.patch',
220 'patches/gtk/gtk-nsview-focus-tabbing.patch',
221 'patches/gtk/popup-combo-box-with-arrows.patch',
222 'patches/gtk/0001-prevent-gdk-quartz-window-delegate-replacement.patch',
223 'patches/gtk/0077-fix-nsview-embedding-mouse-move-event-when-popup-window-appears.patch',
224
225 # https://devdiv.visualstudio.com/DevDiv/_workitems/edit/821841
226 'patches/gtk/nsview-embedding-skip-hidden-subviews.patch',
227 'patches/gtk/0001-gtk-combo-box-native-menu-hook.patch',
228
229 'patches/gtk/gtkviewport-autoscroll.patch',
230
231 # https://devdiv.visualstudio.com/DevDiv/_workitems/edit/993471
232 'patches/gtk/gtk-pboard-types.patch',
233 'patches/gtk/define-NSPasteboardTypeURL.patch',
234 'patches/gtk/Fix-1080409-StackOverflow-exception-opening-Gtk-host.patch',
235
236 # https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1092021/
237 'patches/gtk/0078-Optimize-querying-symbolic-hotkeys.patch'
238 ])
239
240 def prep(self):
241 Package.prep(self)
242 if Package.profile.name == 'darwin':
243 for p in range(2, len(self.local_sources)):
244 self.sh(
245 'patch -p1 --ignore-whitespace < "%{local_sources[' + str(p) + ']}"')
246
247 def install(self):
248 Package.install(self)
249 if Package.profile.name == 'darwin':
250 self.install_gtkrc()
251
252 def install_gtkrc(self):
253 gtkrc = self.local_sources[1]
254 destdir = os.path.join(self.staged_prefix, "etc", "gtk-2.0")
255 if not os.path.exists(destdir):
256 os.makedirs(destdir)
257 self.sh('cp %s %s' % (gtkrc, destdir))
258
259 GtkPackage()