visualruby 3.1.9 → 3.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9216c347790872263d9a2b9efbf12b2dc4360d97
4
- data.tar.gz: 04913ad2f67266ba4f8ed45abddf9642b8790e67
3
+ metadata.gz: 27b446e02c09c26206c3d76e1d54a4bfa825f4da
4
+ data.tar.gz: 73bf6db43df29c8cad0c151b55cbe103b5379af1
5
5
  SHA512:
6
- metadata.gz: cbc2f25d7ab4f2d8494712b72da96373cb35ef9653c082de15604336cb08c886cdb289c0a7ab3107845cf45e6fb257938cedf79182a733a16603b56833153ae1
7
- data.tar.gz: 639e297b21968e4e5b00688b05ffb803a5f6f684e5c19ea048fe1bf5d741904303a436dfabc8bb0a9f3c48b13df1c2b01a3e9aaed5b01db939128ed778cdecf5
6
+ metadata.gz: fcab171bd2576fc9035f5db3c1cf23e837985bd8c9f5213d4d2027e6db2ed6578155a541991c6cda8fa70a21574e9cf888c122f82db18b26fca05882f2af92d3
7
+ data.tar.gz: 66f4ee990f3be66acfa8388e3bc4f211cf187d1fe9b1858117c0b307ccce1c4b3ada1ca73c43c6ef426236d533328911a7d07845b5a959ecc5545cd70845abdb
data/.vr_settings.yaml CHANGED
@@ -12,20 +12,21 @@ open_files:
12
12
  - "/home/eric/vrp/vr3/src/editor/VR_Document.rb"
13
13
  - "/home/eric/vrp/vr3/src/editor/VR_TabSearch.rb"
14
14
  - "/home/eric/vrp/vr3/src/version.rb"
15
- - "/home/eric/vrp/vr3/site/Download.md"
16
15
  - "/home/eric/vrp/vr3/lib/treeview/ListView.rb"
17
- - "/home/eric/vrp/vr3/src/main/OpenProject.rb"
16
+ - "/home/eric/vrp/vr3/lib/treeview/columns/TreeViewColumn.rb"
17
+ - "/home/eric/vrp/vr3/lib/treeview/ViewCommon.rb"
18
18
  open_folders:
19
19
  - "/home/eric/vrp/vr3"
20
20
  - "/home/eric/vrp/vr3/examples"
21
21
  - "/home/eric/vrp/vr3/examples/listview"
22
22
  - "/home/eric/vrp/vr3/lib"
23
23
  - "/home/eric/vrp/vr3/lib/treeview"
24
+ - "/home/eric/vrp/vr3/lib/treeview/columns"
24
25
  - "/home/eric/vrp/vr3/site"
25
26
  - "/home/eric/vrp/vr3/src"
26
27
  - "/home/eric/vrp/vr3/src/main"
27
- current_file: "/home/eric/vrp/vr3/src/main/OpenProject.rb"
28
- current_line: 84
28
+ current_file: "/home/eric/vrp/vr3/lib/treeview/columns/TreeViewColumn.rb"
29
+ current_line: 81
29
30
  rdoc_command_line: yardoc lib - site/*.*
30
31
  builder: !ruby/object:Gtk::Builder {}
31
32
  top_level_window: false
@@ -11,7 +11,8 @@ open_files:
11
11
  - "/home/eric/vrp/vr3/examples/listview/bin/SongListView.rb"
12
12
  open_folders:
13
13
  - "/home/eric/vrp/vr3/examples/listview"
14
- current_file: "/home/eric/vrp/vr3/examples/listview/bin/SongListView.rb"
15
- current_line: 28
14
+ - "/home/eric/vrp/vr3/examples/listview/bin"
15
+ current_file: "/home/eric/vrp/vr3/examples/listview/bin/SongListViewGUI.rb"
16
+ current_line: 11
16
17
  rdoc_command_line: rdoc -x README
17
18
  filename: ".vr_settings.yaml"
@@ -8,7 +8,7 @@
8
8
  class SongListView < VR::ListView
9
9
 
10
10
 
11
- AUDIO_ICON = Gdk::Pixbuf.new(:file => File.dirname(__FILE__) + "/audio-x-generic.png")
11
+ AUDIO_ICON = GdkPixbuf::Pixbuf.new(:file => File.dirname(__FILE__) + "/audio-x-generic.png")
12
12
 
13
13
 
14
14
  def initialize
@@ -8,6 +8,7 @@ class SongListViewGUI < SongListView
8
8
  end
9
9
 
10
10
  def self__row_activated(*args)
11
+ alert args[2].col_symbol
11
12
  return unless rows = selected_rows
12
13
  row = rows[0]
13
14
  alert "You selected\n#{row[:song]}\nby #{row[:artist]}"
data/lib/GladeGUI.rb CHANGED
@@ -417,7 +417,7 @@ module GladeGUI
417
417
  # @param [String] widget Name for the widget in the glade form.
418
418
  # @return [String] the key value.
419
419
  def extract_key(widget)
420
- widget.builder_name[/\[.+?\]/]
420
+ widget.builder_name.scan(/\[(.+?)\]/).flatten[0]
421
421
  end
422
422
 
423
423
  # Populates the glade form from the fields of an ActiveRecord object.
@@ -81,6 +81,14 @@ module VR::Col
81
81
  self.sort_column_id = bool ? @view.id(@view.vr_cols.key(self)) : -1
82
82
  end
83
83
 
84
+ def id
85
+ @view.id(col_symbol)
86
+ end
87
+
88
+ def col_symbol
89
+ @view.vr_cols.key(self)
90
+ end
91
+
84
92
  end
85
93
 
86
94
  end
data/src/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = "3.1.9"
1
+ VERSION = "3.1.10"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visualruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Cunningham
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir:
10
10
  - "."
11
11
  cert_chain: []
12
- date: 2017-08-21 00:00:00.000000000 Z
12
+ date: 2017-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk3