glib-web 4.39.2 → 4.41.0

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: 93226f57a31d7506df878201485705c4bddf72c12e76701cf256dbcbea1b9f50
4
- data.tar.gz: 535de1bcc5ffcee41c5296425d69e10bbaf86a9cd76920396e876ac7be3a2416
3
+ metadata.gz: c3c5782b7132ed122204cc3314927ada0e3804ea47ee795c34d6311a959580b6
4
+ data.tar.gz: ca30770101141a9388bb11ef182a6c554ada7cc1ba88b068f7e3e0ef130425f6
5
5
  SHA512:
6
- metadata.gz: 1939b128493528c5281b6d93af4b792d3301905b8ccdc771886e42d5be153f193f39f6dee34c14c6d59562b813aedf50e8dde913baff7ac81c5322c1e7f6ab9f
7
- data.tar.gz: 6c8b6491839e5185076831ba5d21bf27901322de5ef8ee7f3e3df71c6751ce95371d91a72af070fe7339d23b246369c13181ba08d8c995c55cc71866ea494806
6
+ metadata.gz: eef32c78bfbd00ae4082fbd0069b7a92045d253411dc70cd2a82a6218f6b59984362652e63c9ad64bbad0d26bef567a23f7e9d3edfca125d97eb8cd2e6379529
7
+ data.tar.gz: 84039000106e73c327d049234261c182d099e5f66412138ea7e5cd3abe4921898c5ba4c72640acc2cbf7036955d0a6c6b9994c66b7ca77b3512693ca9f3418b1
@@ -7,6 +7,7 @@ class Glib::JsonUi::ActionBuilder
7
7
  # @note Does not support markdown formatting. For markdown support, use dialogs/show with a custom body instead.
8
8
  string :message
9
9
 
10
+ action :onOpen
10
11
  action :onLoad
11
12
  action :onClose
12
13
  singleton_array :styleClass, :styleClasses
@@ -20,6 +21,7 @@ class Glib::JsonUi::ActionBuilder
20
21
  length :width
21
22
  bool :closeOnBlur
22
23
  bool :updateExisting
24
+ action :onShow
23
25
  action :onClose
24
26
  singleton_array :styleClass, :styleClasses
25
27
 
@@ -42,6 +44,7 @@ class Glib::JsonUi::ActionBuilder
42
44
  length :height
43
45
  bool :closeOnBlur
44
46
  bool :updateExisting
47
+ action :onOpen
45
48
  action :onClose
46
49
  singleton_array :styleClass, :styleClasses
47
50
  end
@@ -319,6 +319,12 @@ module Glib
319
319
  on_refocus.call @action_builder
320
320
  end
321
321
  end
322
+
323
+ if (on_foreground = options[:foreground])
324
+ json.onForeground do
325
+ on_foreground.call @action_builder
326
+ end
327
+ end
322
328
  end
323
329
  end
324
330
  end