cocoawebview 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/cocoawebview/cocoawebview.m +1 -4
- data/lib/cocoawebview/version.rb +1 -1
- data/lib/cocoawebview.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c80c17f0587af34667682432b333f7843f65dac96f707883cf8b5a287d42320
|
4
|
+
data.tar.gz: 0b14d8bc43ad02263f5afe91f187f6f0fb86427dffd429ec0106c11aa25892dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcd142915acc1e77d6c09b897b89d9eb341dc32317ef7363a1e960f08c84951b11fc87468cc59d62affbd89cfbcc8d0dfea808c484effddd6f93b670ed3d8eba
|
7
|
+
data.tar.gz: 77fff479d4d46be2216718ee8a2dc899b58daace4b48d98b82ff182d2a3b1f859ab524cbf08ba5ffc9d48edb712bd3fe821553d34cc9aca59fcee935dbe9dcb1
|
@@ -207,10 +207,7 @@ VALUE webview_initialize(VALUE self, VALUE debug, VALUE style) {
|
|
207
207
|
flag = NO;
|
208
208
|
}
|
209
209
|
|
210
|
-
|
211
|
-
int c_style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable |
|
212
|
-
NSWindowStyleMaskMiniaturizable | NSWindowStyleMaskFullSizeContentView;
|
213
|
-
style &= ~NSWindowStyleMaskFullScreen;
|
210
|
+
int c_style = NUM2INT(style);
|
214
211
|
CocoaWebview *webview = [[CocoaWebview alloc] initWithFrame:NSMakeRect(100, 100, 400, 500) debug:flag style:c_style];
|
215
212
|
|
216
213
|
[webview setReleasedWhenClosed:NO];
|
data/lib/cocoawebview/version.rb
CHANGED
data/lib/cocoawebview.rb
CHANGED
@@ -24,11 +24,11 @@ module CocoaWebview
|
|
24
24
|
class CocoaWebview
|
25
25
|
attr_accessor :callback
|
26
26
|
|
27
|
-
def self.create(debug: false, min: true,
|
27
|
+
def self.create(debug: false, min: true, resize: true, close: true, &block)
|
28
28
|
style = NSWindowStyleMaskTitled | NSWindowStyleMaskFullSizeContentView
|
29
29
|
|
30
30
|
style = style | NSWindowStyleMaskMiniaturizable if min
|
31
|
-
style = style | NSWindowStyleMaskResizable if
|
31
|
+
style = style | NSWindowStyleMaskResizable if resize
|
32
32
|
style = style | NSWindowStyleMaskClosable if close
|
33
33
|
|
34
34
|
style &= ~NSWindowStyleMaskFullScreen
|