gtk_paradise 0.5.439 → 0.5.440
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caa95de4d96d4d5af3aaaaa9232933c6ddd34c4487ac6c1867d91677d9385e90
|
4
|
+
data.tar.gz: e3ed3e0d28addc3683db8dbcd7cacb40b633417931e43e75d1f76106f600dc24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 943fe6a825308330d550bbccc48dbde3b68f404b468530b4607bd215df75a28c6292346642f84734fdfceb2aa7536cc242d6b45faf62a9f203f28d4fc6a10d4f
|
7
|
+
data.tar.gz: bf20c6065b93cf289fa6fd0869e2621e538c5d97fbc38633225cf26f3be286391d604ed57e6683c64e920d9859009e99b1ab216cc409b8388c3ec3f8c80a766c
|
@@ -1095,13 +1095,31 @@ module RunnerModule
|
|
1095
1095
|
alias size_from_child use_default_size_from_the_config_file # === size_from_child
|
1096
1096
|
alias automatic_size use_default_size_from_the_config_file # === automatic_size
|
1097
1097
|
|
1098
|
+
# ========================================================================= #
|
1099
|
+
# === automatic_title_and_size
|
1100
|
+
#
|
1101
|
+
# This method will simply combine automatic_title() with
|
1102
|
+
# automatic_size().
|
1103
|
+
# ========================================================================= #
|
1104
|
+
def automatic_title_and_size(use_this_subwidget = nil)
|
1105
|
+
automatic_title(use_this_subwidget)
|
1106
|
+
automatic_size
|
1107
|
+
end; alias automatic_size_and_automatic_title automatic_title_and_size # === automatic_size_and_automatic_title
|
1108
|
+
alias automatic_title_and_automatic_size automatic_title_and_size # === automatic_title_and_automatic_size
|
1109
|
+
alias automatic_size_and_title automatic_title_and_size # === automatic_size_and_title
|
1110
|
+
|
1098
1111
|
# ========================================================================= #
|
1099
1112
|
# === determine_the_title_from_the_child_widget
|
1113
|
+
#
|
1114
|
+
# The first argument is the widget that we will use, under the assumption
|
1115
|
+
# that it will be the child-widget.
|
1100
1116
|
# ========================================================================= #
|
1101
|
-
def determine_the_title_from_the_child_widget
|
1102
|
-
|
1117
|
+
def determine_the_title_from_the_child_widget(
|
1118
|
+
child_widget = @child_widget
|
1119
|
+
)
|
1120
|
+
if child_widget.respond_to? :title?
|
1103
1121
|
set_title(
|
1104
|
-
|
1122
|
+
child_widget.title?
|
1105
1123
|
)
|
1106
1124
|
else
|
1107
1125
|
e 'The child-widget does not respond to the method called .title?'
|
@@ -1113,19 +1131,6 @@ module RunnerModule
|
|
1113
1131
|
alias title_from_child_widget determine_the_title_from_the_child_widget # === title_from_child_widget
|
1114
1132
|
alias automatic_title determine_the_title_from_the_child_widget # === automatic_title
|
1115
1133
|
|
1116
|
-
# ========================================================================= #
|
1117
|
-
# === automatic_title_and_size
|
1118
|
-
#
|
1119
|
-
# This method will simply combine automatic_title() with
|
1120
|
-
# automatic_size().
|
1121
|
-
# ========================================================================= #
|
1122
|
-
def automatic_title_and_size
|
1123
|
-
automatic_title
|
1124
|
-
automatic_size
|
1125
|
-
end; alias automatic_size_and_automatic_title automatic_title_and_size # === automatic_size_and_automatic_title
|
1126
|
-
alias automatic_title_and_automatic_size automatic_title_and_size # === automatic_title_and_automatic_size
|
1127
|
-
alias automatic_size_and_title automatic_title_and_size # === automatic_size_and_title
|
1128
|
-
|
1129
1134
|
end; end
|
1130
1135
|
|
1131
1136
|
if __FILE__ == $PROGRAM_NAME
|
@@ -9,14 +9,14 @@ module Gtk
|
|
9
9
|
# ========================================================================= #
|
10
10
|
# === VERSION_OF_THE_GTK_PARADISE_PROJECT
|
11
11
|
# ========================================================================= #
|
12
|
-
VERSION_OF_THE_GTK_PARADISE_PROJECT = '0.5.
|
12
|
+
VERSION_OF_THE_GTK_PARADISE_PROJECT = '0.5.440'
|
13
13
|
|
14
14
|
# ========================================================================= #
|
15
15
|
# === LAST_UPDATE
|
16
16
|
#
|
17
17
|
# Keep track as to when this project was last updated.
|
18
18
|
# ========================================================================= #
|
19
|
-
LAST_UPDATE = '
|
19
|
+
LAST_UPDATE = '05.03.2021'
|
20
20
|
|
21
21
|
end
|
22
22
|
|
@@ -228,10 +228,13 @@ class NumberedLines < ::Gtk::Box
|
|
228
228
|
)
|
229
229
|
require 'gtk_paradise/run'
|
230
230
|
_ = ::Gtk::NumberedLines.new(i)
|
231
|
+
pp _.class
|
232
|
+
# Let's add it to a scrolled window.
|
233
|
+
scrolled_window = ::Gtk::ScrolledWindow.new
|
234
|
+
scrolled_window.add(_)
|
231
235
|
r = ::Gtk.run
|
232
|
-
r <<
|
233
|
-
r.
|
234
|
-
r.automatic_title
|
236
|
+
r << scrolled_window
|
237
|
+
r.automatic_size_and_automatic_title
|
235
238
|
r.top_left_then_run
|
236
239
|
end
|
237
240
|
|