cocoawebview 0.3.12 → 0.3.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5ad030fa8a13fb1205fd04ce971a54c7a22eec500e0713514cd638641cf3e67
4
- data.tar.gz: d8ed63d14b27a487e1f2f676b8cf84b8d7911db8c5e5a8fee1b644a9ad3752be
3
+ metadata.gz: 4b99958f5f5331f8902bf5b2e36829992c752d1d1137c79c8a40dac5b532abee
4
+ data.tar.gz: 0a4efac1c163db618cb3de595b19df6103865600ad713b1e1234b6267d668819
5
5
  SHA512:
6
- metadata.gz: b8392de39ee2d2079480709dd7837bdbc9d12516fab98e1faeb0127e8cfca135cc7355f197ad43812721b89da134231c2876d66d74844c5206a0d7796ff16971
7
- data.tar.gz: 6ac809e1940aba92e84e0b4300df4a120b4da25936d5fea5366bee589501fb87f92d91351da6c92579d5dd210c48e27a2dc4acbdcf77f522f0b21a7d1a5b2f46
6
+ metadata.gz: 9fdaa37347f271bc56bfe6c910b60092a8931ffbd3fb256cb192d591d01f29604b73ab1f9afc01ae0bb8a6fcbb8320a5080b9d090d70dd66d46969e5ccc779f8
7
+ data.tar.gz: 83aa2369a6615c8295ea31759988f6a5ddfa66420c42ca4ae229425aad882d6d785f8b429c19cfc4ff4fa5d1513e18f55b080a5d2f6cffeb8fa2edbe1f84580f
@@ -104,19 +104,15 @@ VALUE webview_set_bg(VALUE self, VALUE r, VALUE g, VALUE b, VALUE a);
104
104
  app = a;
105
105
  }
106
106
 
107
- /*
108
- - (void)applicationDidBecomeActive:(NSNotification *)notification {
107
+ - (void)appBecameActive:(NSNotification *)notification {
109
108
  rb_funcall(app, rb_intern("dock_did_click"), 0);
110
109
  }
111
- */
112
-
113
-
114
- - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag {
115
- rb_funcall(app, rb_intern("dock_did_click"), 0);
116
- return YES;
117
- }
118
110
 
119
111
  - (void)applicationDidFinishLaunching:(NSNotification *)notification {
112
+ [[NSNotificationCenter defaultCenter] addObserver:self
113
+ selector:@selector(appBecameActive:)
114
+ name:NSApplicationDidBecomeActiveNotification
115
+ object:nil];
120
116
  rb_funcall(app, rb_intern("app_did_launch"), 0);
121
117
  }
122
118
  @end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cocoawebview
4
- VERSION = "0.3.12"
4
+ VERSION = "0.3.13"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoawebview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy Jeff