gtk_paradise 0.5.442 → 0.5.443

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gtk_paradise might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeaeb18515c9ea4f117a56d15c99b591ed6f196c70493bf4a1c82e2760582fd9
4
- data.tar.gz: c2a992f4d6cf14a3d701d3efc3e69ed841510a9f9a1bfc84fb03e5ab53c759cf
3
+ metadata.gz: b106f320a22d309d330258211d54d008eb500c63baf9ec59d88fb9ad551e2065
4
+ data.tar.gz: 5ce029de3a96e587f27002fdbb112f511d42b901f67c126b356a3b6dd59f4783
5
5
  SHA512:
6
- metadata.gz: 9648b1b182dd002820aa5df4cdc0f417b44eef9c2da77c91e11af9d341e607e79b7ec67ceca828afd3941687d81b8e9ce5a9ec253a74bf8e6d1afa6b67619ed3
7
- data.tar.gz: dc16ca13b9fa3292b6ea794ffa76858f041ad7263cd1fee693c944428b80cbaae0837b5f87fbc4005b366c6b9c0926e88acc7ae8987f7d36499848a33ffad91d
6
+ metadata.gz: fcc75b5ad52659880fc568ef3f49f4ca1b42c8e8e2a22529d3c4bfe25eacce95f5c9fad9cc0a975b98a9e09b8da8d4bd6e202e6789d394c4ccf6f499454fb128
7
+ data.tar.gz: bcecef0d891e596baf881668cbb25e168b132826d1a2f86f37eb92dd26147d3311bf6cf1b4ce9762ce64a7f340351f4e276d80a08f70aa3ac8b94933e92fb5f8
@@ -16,6 +16,7 @@ class TreeViewColumn
16
16
  def sort_based_on(id = 0)
17
17
  set_sort_column_id(id)
18
18
  end; alias sortable_based_on sort_based_on # === sortable_based_on
19
+ alias sort_via sort_based_on # === sort_via
19
20
 
20
21
  # ========================================================================= #
21
22
  # === cell_renderers?
@@ -9,7 +9,7 @@ module Gtk
9
9
  # ========================================================================= #
10
10
  # === VERSION_OF_THE_GTK_PARADISE_PROJECT
11
11
  # ========================================================================= #
12
- VERSION_OF_THE_GTK_PARADISE_PROJECT = '0.5.442'
12
+ VERSION_OF_THE_GTK_PARADISE_PROJECT = '0.5.443'
13
13
 
14
14
  # ========================================================================= #
15
15
  # === LAST_UPDATE
@@ -128,22 +128,6 @@ module PsauxViewerModule
128
128
  }
129
129
  end
130
130
 
131
- # ========================================================================= #
132
- # === create_the_update_button
133
- #
134
- # This is the button that can be used by the user to update the
135
- # process-listing.
136
- # ========================================================================= #
137
- def create_the_update_button
138
- @button_update_the_content = gtk_button('_Update')
139
- @button_update_the_content.fancy_tooltips = 'Click this button '\
140
- 'to <b>update</b> the liststore shown above.'
141
- @button_update_the_content.set_background_colour :mintcream
142
- @button_update_the_content.on_clicked {
143
- update_the_liststore
144
- }
145
- end
146
-
147
131
  # ========================================================================= #
148
132
  # === run
149
133
  # ========================================================================= #
@@ -169,6 +153,9 @@ module PsauxViewerModule
169
153
  treeview.quick_append('Start', renderer, text: 8)
170
154
  treeview.quick_append('Time', renderer, text: 9)
171
155
  treeview.quick_append('Command', renderer, text: 10)
156
+ columns = treeview.columns?
157
+ columns[1].sort_via(1)
158
+ columns[2].sort_via(2)
172
159
  # ======================================================================= #
173
160
  # Create a separate thread that loops timely to make the
174
161
  # process update transparent.
@@ -203,11 +190,27 @@ module PsauxViewerModule
203
190
  _ = ::Gtk::PsauxViewer.new
204
191
  r = ::Gtk.run
205
192
  r << _
206
- r.set_size_request(
207
- _.width?,
208
- _.height?
209
- )
193
+ r.automatic_title
194
+ r.automatic_size
210
195
  r.top_left_then_run
211
196
  end
212
197
 
198
+ # ========================================================================= #
199
+ # === create_the_update_button
200
+ #
201
+ # This is the button that can be used by the user to update the
202
+ # process-listing.
203
+ # ========================================================================= #
204
+ def create_the_update_button
205
+ @button_update_the_content = gtk_button('_Update')
206
+ @button_update_the_content.bblack1
207
+ @button_update_the_content.make_bold
208
+ @button_update_the_content.hint = 'Click this button '\
209
+ 'to <b>update</b> the liststore shown above.'
210
+ @button_update_the_content.set_background_colour :mintcream
211
+ @button_update_the_content.on_clicked {
212
+ update_the_liststore
213
+ }
214
+ end
215
+
213
216
  end; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk_paradise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.442
4
+ version: 0.5.443
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Heiler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2021-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colours