-
Notifications
You must be signed in to change notification settings - Fork 6
/
GtkWebBrowser.st
56 lines (40 loc) · 930 Bytes
/
GtkWebBrowser.st
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
GtkBrowsingTool subclass: GtkWebBrowser [
| webview |
GtkWebBrowser class >> openOn: aString [
<category: 'user interface'>
^ (self openSized: 450@375)
url: aString
]
GtkWebBrowser class >> open [
<category: 'user interface'>
^ self openSized: 450@375
]
accelPath [
<category: 'accelerator path'>
^ '<Smallzilla>'
]
windowTitle [
^ 'Smallzilla'
]
aboutTitle [
^ 'About Smallzilla'
]
buildCentralWidget [
<category: 'intialize-release'>
webview := GtkWebView new
openUrl: 'http://smalltalk.gnu.org/';
showAll;
yourself.
^ (GTK.GtkScrolledWindow withChild: webview)
showAll;
yourself
]
url: aString [
<category: 'webkit events'>
webview openUrl: aString
]
hasChanged [
<category: 'testing'>
^ false
]
]