gtk_paradise 0.5.446 → 0.5.447

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: c3d8e57448641f5c7126971dfa85fd5b7d3ac6703a715b6598948583da2a54e8
4
- data.tar.gz: bd3d65005cb612f461db03d151fc7918b3c1a45fc15041ec3280ca002c7f2e35
3
+ metadata.gz: c032ef161e3dc0d38cb158c529e235d26d9bb67a658e84bbee2a2161b9be44ce
4
+ data.tar.gz: be260171fee84b9bd11328f5106d23ba474e3c6946965e731a04a408687eb79c
5
5
  SHA512:
6
- metadata.gz: 8d283888fff9c201a093e1b728720558a63f475e08c0f55fb3ad6287dff71d6305e82580c0c1243b8cd62104a2aa9380cd287126209b732f501c54705e43e9fa
7
- data.tar.gz: 1dd30608c6aeb94ddab76ab4d5181774665049bb268acd05885cc63a7aaf121fe87234f04fb442e354a202fe16df5db1e936971655d3a82ada89cffafe209bfb
6
+ metadata.gz: 53dec8f0f87c53d47dba2533a49f4994bf45902af3d7dc81e910a959aa4cab7946e3ef3717ef105709f571b333bc8e9c56127ded8df24345820602d1a2acde5a
7
+ data.tar.gz: f9dc938dc6d6e2e8f05bf80df9e6cdfe7fd780b04ac4d60f36096f143262828e63bf707d8ecffc6b76ee8beb54fec241c68eb019c339035e292d8d6bad3e0d18
data/README.md CHANGED
@@ -2187,32 +2187,6 @@ the future this may become more dynamic or selectable, but for now, if
2187
2187
  you need different colours, simply keep on clicking that button on the
2188
2188
  button of the widget.
2189
2189
 
2190
- ## Gtk::Grid
2191
-
2192
- **class Gtk::Grid** can be used to position widgets in a grid-like
2193
- layout.
2194
-
2195
- Usage example:
2196
-
2197
- grid = Gtk::Grid.new
2198
-
2199
- b1 = Gtk::Button.new(label: 'Button')
2200
- grid.attach(b1, 0, 0, 1, 1)
2201
-
2202
- b2 = Gtk::CheckButton.new()
2203
- grid.attach(b2, 1, 0, 1, 1)
2204
-
2205
- b3 = Gtk::RadioButton.new(label: 'abc')
2206
- grid.attach(b3, 2, 0, 1, 1)
2207
-
2208
- The values that can be supplied to **.attach()** are as follows:
2209
-
2210
- child # the widget to add
2211
- left # the column number to attach the left side of child to
2212
- top # the row number to attach the top side of child to
2213
- width # the number of columns that child will span
2214
- height # the number of rows that child will span
2215
-
2216
2190
  ## Gtk::Editor
2217
2191
 
2218
2192
  I am working on a gtk-editor for ruby-gtk3 as well.
@@ -2393,12 +2367,36 @@ You could also use this via a reinstate-back delay, like:
2393
2367
  Note that this has not very well been tested so far. I just wanted
2394
2368
  to see if it is possible in ruby-gtk3 and CSS, and it indeed is! \o/
2395
2369
 
2396
- ## Gtk::Grid and gtk_grid
2370
+ ## Gtk::Grid and gtk_grid()
2397
2371
 
2398
- The gtk_paradise project makes use of gtk_grid() to create a grid
2372
+ **class Gtk::Grid** can be used to position widgets in a grid-like
2399
2373
  layout.
2400
2374
 
2401
- Example:
2375
+ Specific usage example in plain **ruby-gtk3**:
2376
+
2377
+ grid = Gtk::Grid.new
2378
+
2379
+ b1 = Gtk::Button.new(label: 'Button')
2380
+ grid.attach(b1, 0, 0, 1, 1)
2381
+
2382
+ b2 = Gtk::CheckButton.new()
2383
+ grid.attach(b2, 1, 0, 1, 1)
2384
+
2385
+ b3 = Gtk::RadioButton.new(label: 'abc')
2386
+ grid.attach(b3, 2, 0, 1, 1)
2387
+
2388
+ The values that can be supplied to **.attach()** are as follows:
2389
+
2390
+ child # the widget to add
2391
+ left # the column number to attach the left side of child to
2392
+ top # the row number to attach the top side of child to
2393
+ width # the number of columns that child will span
2394
+ height # the number of rows that child will span
2395
+
2396
+ The gtk_paradise project makes use of **gtk_grid()** in order to
2397
+ create a grid layout, if you make use of **Gtk::BaseModule**.
2398
+
2399
+ Example for this:
2402
2400
 
2403
2401
  @grid = gtk_grid
2404
2402
  @grid.set_column_spacing(6)
data/doc/README.gen CHANGED
@@ -2185,32 +2185,6 @@ the future this may become more dynamic or selectable, but for now, if
2185
2185
  you need different colours, simply keep on clicking that button on the
2186
2186
  button of the widget.
2187
2187
 
2188
- ## Gtk::Grid
2189
-
2190
- **class Gtk::Grid** can be used to position widgets in a grid-like
2191
- layout.
2192
-
2193
- Usage example:
2194
-
2195
- grid = Gtk::Grid.new
2196
-
2197
- b1 = Gtk::Button.new(label: 'Button')
2198
- grid.attach(b1, 0, 0, 1, 1)
2199
-
2200
- b2 = Gtk::CheckButton.new()
2201
- grid.attach(b2, 1, 0, 1, 1)
2202
-
2203
- b3 = Gtk::RadioButton.new(label: 'abc')
2204
- grid.attach(b3, 2, 0, 1, 1)
2205
-
2206
- The values that can be supplied to **.attach()** are as follows:
2207
-
2208
- child # the widget to add
2209
- left # the column number to attach the left side of child to
2210
- top # the row number to attach the top side of child to
2211
- width # the number of columns that child will span
2212
- height # the number of rows that child will span
2213
-
2214
2188
  ## Gtk::Editor
2215
2189
 
2216
2190
  I am working on a gtk-editor for ruby-gtk3 as well.
@@ -2391,12 +2365,36 @@ You could also use this via a reinstate-back delay, like:
2391
2365
  Note that this has not very well been tested so far. I just wanted
2392
2366
  to see if it is possible in ruby-gtk3 and CSS, and it indeed is! \o/
2393
2367
 
2394
- ## Gtk::Grid and gtk_grid
2368
+ ## Gtk::Grid and gtk_grid()
2395
2369
 
2396
- The gtk_paradise project makes use of gtk_grid() to create a grid
2370
+ **class Gtk::Grid** can be used to position widgets in a grid-like
2397
2371
  layout.
2398
2372
 
2399
- Example:
2373
+ Specific usage example in plain **ruby-gtk3**:
2374
+
2375
+ grid = Gtk::Grid.new
2376
+
2377
+ b1 = Gtk::Button.new(label: 'Button')
2378
+ grid.attach(b1, 0, 0, 1, 1)
2379
+
2380
+ b2 = Gtk::CheckButton.new()
2381
+ grid.attach(b2, 1, 0, 1, 1)
2382
+
2383
+ b3 = Gtk::RadioButton.new(label: 'abc')
2384
+ grid.attach(b3, 2, 0, 1, 1)
2385
+
2386
+ The values that can be supplied to **.attach()** are as follows:
2387
+
2388
+ child # the widget to add
2389
+ left # the column number to attach the left side of child to
2390
+ top # the row number to attach the top side of child to
2391
+ width # the number of columns that child will span
2392
+ height # the number of rows that child will span
2393
+
2394
+ The gtk_paradise project makes use of **gtk_grid()** in order to
2395
+ create a grid layout, if you make use of **Gtk::BaseModule**.
2396
+
2397
+ Example for this:
2400
2398
 
2401
2399
  @grid = gtk_grid
2402
2400
  @grid.set_column_spacing(6)
@@ -515,11 +515,11 @@ button1:hover {
515
515
  .plum { color: plum }
516
516
  .powderblue { color: powderblue }
517
517
  .purple { color: purple }
518
- .red { color: red }
519
- .rosybrown { color: rosybrown }
520
- .royalblue { color: royalblue }
518
+ .red { color: red }
519
+ .rosybrown { color: rosybrown }
520
+ .royalblue { color: royalblue }
521
521
  .saddlebrown { color: saddlebrown }
522
- .salmon { color: salmon }
522
+ .salmon { color: salmon }
523
523
  .sandybrown { color: sandybrown }
524
524
  .seagreen { color: seagreen }
525
525
  .seashell { color: seashell }
@@ -74,6 +74,20 @@ class Grid
74
74
  ::Gtk::Grid.increment_the_grid_top_position # Add +1 to the grid-counter too.
75
75
  end; alias right set_right # === right
76
76
 
77
+ # ========================================================================= #
78
+ # === no_column_spacing
79
+ # ========================================================================= #
80
+ def no_column_spacing
81
+ set_column_spacing(0)
82
+ end
83
+
84
+ # ========================================================================= #
85
+ # === no_row_spacing
86
+ # ========================================================================= #
87
+ def no_row_spacing
88
+ set_row_spacing(0)
89
+ end
90
+
77
91
  end
78
92
 
79
93
  # =========================================================================== #
@@ -13,6 +13,36 @@ class Widget
13
13
  require 'gtk_paradise/toplevel_methods/determine_which_gtk_version_is_in_use.rb'
14
14
  require 'gtk_paradise/fonts/fonts.rb'
15
15
 
16
+ # ========================================================================= #
17
+ # === add_css_class
18
+ #
19
+ # This method can be used to quickly add a css class.
20
+ #
21
+ # Example how to use it via the gtk_paradise gem:
22
+ #
23
+ # label = gtk_label('This is a test')
24
+ # label.add_css_class('BG_black')
25
+ # label.add_css_class('yellow')
26
+ #
27
+ # ========================================================================= #
28
+ def add_css_class(i)
29
+ style_context.add_class(i) if respond_to? :style_context
30
+ end; alias css_class add_css_class # === css_class
31
+ alias css add_css_class # === css
32
+ alias set_class add_css_class # === set_class
33
+ alias add_class add_css_class # === add_class
34
+
35
+ # ========================================================================= #
36
+ # === remove_css_class
37
+ #
38
+ # This method can be used to remove a particular CSS class from a
39
+ # widget.
40
+ # ========================================================================= #
41
+ def remove_css_class(this_css_class)
42
+ context = style_context
43
+ context.remove_class(this_css_class)
44
+ end
45
+
16
46
  # ========================================================================= #
17
47
  # === focus_in_event
18
48
  # ========================================================================= #
@@ -292,36 +322,6 @@ class Widget
292
322
  select_region(0, 0)
293
323
  end
294
324
 
295
- # ========================================================================= #
296
- # === add_css_class
297
- #
298
- # This method can be used to quickly add a css class.
299
- #
300
- # Example how to use it via the gtk_paradise gem:
301
- #
302
- # label = gtk_label('This is a test')
303
- # label.add_css_class('BG_black')
304
- # label.add_css_class('yellow')
305
- #
306
- # ========================================================================= #
307
- def add_css_class(i)
308
- style_context.add_class(i) if respond_to? :style_context
309
- end; alias css_class add_css_class # === css_class
310
- alias css add_css_class # === css
311
- alias set_class add_css_class # === set_class
312
- alias add_class add_css_class # === add_class
313
-
314
- # ========================================================================= #
315
- # === remove_css_class
316
- #
317
- # This method can be used to remove a particular CSS class from a
318
- # widget.
319
- # ========================================================================= #
320
- def remove_css_class(this_css_class)
321
- context = style_context
322
- context.remove_class(this_css_class)
323
- end
324
-
325
325
  # ========================================================================= #
326
326
  # === enable_markup
327
327
  # ========================================================================= #
@@ -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.446'
12
+ VERSION_OF_THE_GTK_PARADISE_PROJECT = '0.5.447'
13
13
 
14
14
  # ========================================================================= #
15
15
  # === LAST_UPDATE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk_paradise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.446
4
+ version: 0.5.447
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Heiler