gtk_paradise 0.9.120 → 0.11.19

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.

Files changed (492) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4521 -2997
  3. data/bin/genity +26 -0
  4. data/bin/gtk_editor +7 -0
  5. data/doc/README.gen +4484 -2975
  6. data/doc/todo/TODO_FOR_THE_GTK_PARADISE_PROJECT.md +281 -218
  7. data/doc/todo/recurring_todo_tasks.md +4 -3
  8. data/gtk_paradise.gemspec +28 -17
  9. data/lib/gtk_paradise/app/app.rb +77 -45
  10. data/lib/gtk_paradise/app/{app_module.rb → app_module/app_module.rb} +1064 -899
  11. data/lib/gtk_paradise/base_module/base_module.rb +7043 -33
  12. data/lib/gtk_paradise/base_module/class_methods/class_methods.rb +0 -0
  13. data/lib/gtk_paradise/base_module/css.rb +200 -268
  14. data/lib/gtk_paradise/base_module/experimental.rb +119 -0
  15. data/lib/gtk_paradise/base_module/html_support.rb +40 -15
  16. data/lib/gtk_paradise/base_module/these_methods_work_for_gtk3_and_gtk4.rb +155 -0
  17. data/lib/gtk_paradise/base_module_and_app_module/base_module_and_app_module.rb +1 -1
  18. data/lib/gtk_paradise/colours/colour_palette/material_design.rb +239 -0
  19. data/lib/gtk_paradise/colours/gtk_colour_constants.rb +8 -2
  20. data/lib/gtk_paradise/colours/parse.rb +8 -1
  21. data/lib/gtk_paradise/commandline/commandline.rb +20 -19
  22. data/lib/gtk_paradise/constants/constants.rb +227 -7
  23. data/lib/gtk_paradise/css_files/borders.css +81 -0
  24. data/lib/gtk_paradise/css_files/colours.css +329 -328
  25. data/lib/gtk_paradise/css_files/css_accordion.css +6 -2
  26. data/lib/gtk_paradise/css_files/hover_effects.css +588 -0
  27. data/lib/gtk_paradise/css_files/project.css +153 -189
  28. data/lib/gtk_paradise/drawing/README.md +3 -0
  29. data/lib/gtk_paradise/drawing/drawing.rb +68 -0
  30. data/lib/gtk_paradise/{base_module/colours.rb → drawing/event.rb} +37 -45
  31. data/lib/gtk_paradise/drawing/star.rb +96 -0
  32. data/lib/gtk_paradise/drawing/tool.rb +268 -0
  33. data/lib/gtk_paradise/drawing/turtle.rb +138 -0
  34. data/lib/gtk_paradise/emojis/emojis.rb +14 -13
  35. data/lib/gtk_paradise/examples/advanced/001_5x5_grid_example.rb +35 -50
  36. data/lib/gtk_paradise/examples/advanced/002_advanced_drag_and_drop_example.rb +21 -13
  37. data/lib/gtk_paradise/examples/advanced/003_html_like_support.rb +4 -25
  38. data/lib/gtk_paradise/examples/advanced/004_on_hover_example_on_gtk_entry.rb +4 -4
  39. data/lib/gtk_paradise/examples/advanced/005_csv_example.rb +6 -2
  40. data/lib/gtk_paradise/examples/advanced/007_label_responding_to_events_example.rb +1 -10
  41. data/lib/gtk_paradise/examples/advanced/008_options_example.rb +6 -3
  42. data/lib/gtk_paradise/examples/advanced/009_key_events.rb +1 -1
  43. data/lib/gtk_paradise/examples/advanced/010_extensive_text_view_example.rb +18 -17
  44. data/lib/gtk_paradise/examples/advanced/011_moving_blocks_example.rb +3 -3
  45. data/lib/gtk_paradise/examples/advanced/012_cell_data_sorting_example.rb +3 -4
  46. data/lib/gtk_paradise/examples/advanced/013_advanced_css_example.rb +86 -49
  47. data/lib/gtk_paradise/examples/advanced/014_popup_example.rb +9 -9
  48. data/lib/gtk_paradise/examples/advanced/015_advanced_button_example.rb +7 -19
  49. data/lib/gtk_paradise/examples/advanced/017_lean_CSS_example.rb +10 -13
  50. data/lib/gtk_paradise/examples/advanced/018_coloured_text_example.rb +7 -13
  51. data/lib/gtk_paradise/examples/advanced/019_gtk_entry_showing_the_cursor_position.rb +1 -1
  52. data/lib/gtk_paradise/examples/advanced/020_scale_this_image.rb +1 -10
  53. data/lib/gtk_paradise/examples/advanced/021_scroll_events_on_gtk_entry.rb +4 -0
  54. data/lib/gtk_paradise/examples/advanced/022_autogenerated_CSS_rounded_borders.rb +142 -0
  55. data/lib/gtk_paradise/examples/advanced/023_append_image_to_buffer.rb +145 -0
  56. data/lib/gtk_paradise/examples/advanced/024_notebook_with_tab_example.rb +151 -0
  57. data/lib/gtk_paradise/examples/advanced/025_showing_a_gold_caret_on_black_background.rb +144 -0
  58. data/lib/gtk_paradise/examples/advanced/026_status_bar_example.rb +153 -0
  59. data/lib/gtk_paradise/examples/advanced/027_customized_frame_example.rb +141 -0
  60. data/lib/gtk_paradise/examples/advanced/028_widgets_described_in_a_yaml_file.rb +240 -0
  61. data/lib/gtk_paradise/examples/cairo/basic_cairo_shapes.rb +1 -1
  62. data/lib/gtk_paradise/examples/cairo/cairo_transparent_rectangles.rb +9 -5
  63. data/lib/gtk_paradise/examples/cairo/cairo_write_via_custom_font.rb +81 -0
  64. data/lib/gtk_paradise/examples/cairo/donut_shape.rb +19 -6
  65. data/lib/gtk_paradise/examples/cairo/ping_pong_game.rb +2 -3
  66. data/lib/gtk_paradise/examples/controller/README.md +4 -0
  67. data/lib/gtk_paradise/examples/controller/controller.rb +2 -0
  68. data/lib/gtk_paradise/examples/css/001_border_examples.rb +30 -13
  69. data/lib/gtk_paradise/examples/css/002_import_CSS_file.rb +10 -5
  70. data/lib/gtk_paradise/examples/drawing/001_example.rb +61 -0
  71. data/lib/gtk_paradise/examples/drawing/002_example.rb +51 -0
  72. data/lib/gtk_paradise/examples/drawing/003_example.rb +38 -0
  73. data/lib/gtk_paradise/examples/drawing/004_example.rb +36 -0
  74. data/lib/gtk_paradise/examples/drawing/005_example.rb +92 -0
  75. data/lib/gtk_paradise/examples/drawing/006_example.rb +58 -0
  76. data/lib/gtk_paradise/examples/drawing/007_example.rb +22 -0
  77. data/lib/gtk_paradise/examples/drawing/008_example.rb +43 -0
  78. data/lib/gtk_paradise/examples/drawing/009_example.rb +43 -0
  79. data/lib/gtk_paradise/examples/drawing/010_example.rb +25 -0
  80. data/lib/gtk_paradise/examples/drawing/011_example.rb +72 -0
  81. data/lib/gtk_paradise/examples/drawing/012_example.rb +59 -0
  82. data/lib/gtk_paradise/examples/drawing/README.md +3 -0
  83. data/lib/gtk_paradise/examples/drawing/moving_turtle_example.rb +43 -0
  84. data/lib/gtk_paradise/examples/gdk/001_gdk_screen_properties.rb +58 -0
  85. data/lib/gtk_paradise/examples/gdk_pixbuf/save_image_example.rb +1 -1
  86. data/lib/gtk_paradise/examples/gir_ffi/001_hello_world.rb +29 -0
  87. data/lib/gtk_paradise/examples/gir_ffi/002_upgraded_hello_world.rb +40 -0
  88. data/lib/gtk_paradise/examples/gir_ffi/003_gtk_application_example.rb +30 -0
  89. data/lib/gtk_paradise/examples/gir_ffi/004_treeview_example.rb +64 -0
  90. data/lib/gtk_paradise/examples/gir_ffi/005_complex_example.rb +104 -0
  91. data/lib/gtk_paradise/examples/gir_ffi/README.md +5 -0
  92. data/lib/gtk_paradise/examples/glib/parse_glib_settings.rb +1 -1
  93. data/lib/gtk_paradise/examples/gtk2/008_list_store_example.rb +1 -1
  94. data/lib/gtk_paradise/examples/gtk3/{061_gtk_entry.rb → 001_gtk_entry.rb} +11 -6
  95. data/lib/gtk_paradise/examples/gtk3/{009_scrolled_window_example.rb → 002_scrolled_window_example.rb} +6 -4
  96. data/lib/gtk_paradise/examples/gtk3/{062_toggle_button_example.rb → 003_toggle_button_example.rb} +3 -2
  97. data/lib/gtk_paradise/examples/gtk3/{081_simple_dialog_example.rb → 004_simple_dialog_example.rb} +19 -12
  98. data/lib/gtk_paradise/examples/gtk3/005_spinner_example.rb +30 -10
  99. data/lib/gtk_paradise/examples/gtk3/006_text_view_example.rb +78 -0
  100. data/lib/gtk_paradise/examples/gtk3/{079_two_windows_example.rb → 007_two_windows_example.rb} +3 -1
  101. data/lib/gtk_paradise/examples/gtk3/008_search_bar_example.rb +91 -0
  102. data/lib/gtk_paradise/examples/gtk3/{002_simple_window.rb → 009_simple_window.rb} +14 -6
  103. data/lib/gtk_paradise/examples/gtk3/{025_switch_example.rb → 010_switch_example.rb} +6 -7
  104. data/lib/gtk_paradise/examples/gtk3/011_colour_chooser_example.rb +71 -0
  105. data/lib/gtk_paradise/examples/gtk3/012_show_the_xid_example.rb +18 -0
  106. data/lib/gtk_paradise/examples/gtk3/013_grab_pointer_forcefully.rb +31 -0
  107. data/lib/gtk_paradise/examples/gtk3/{083_bottom_left_placement.rb → 015_bottom_left_placement.rb} +3 -1
  108. data/lib/gtk_paradise/examples/gtk3/{082_scrolling_example.rb → 016_scrolling_example.rb} +2 -2
  109. data/lib/gtk_paradise/examples/gtk3/{080_extensive_markup_example.rb → 017_extensive_markup_example.rb} +8 -7
  110. data/lib/gtk_paradise/examples/gtk3/{078_message_dialog_example.rb → 018_message_dialog_example.rb} +3 -5
  111. data/lib/gtk_paradise/examples/gtk3/{075_tiny_button_via_css.rb → 021_tiny_button_via_css.rb} +1 -0
  112. data/lib/gtk_paradise/examples/gtk3/{001_font_related_information.rb → 022_font_related_information.rb} +1 -1
  113. data/lib/gtk_paradise/examples/gtk3/023_sorted_tree.rb +166 -0
  114. data/lib/gtk_paradise/examples/gtk3/{004_small_paned_example.rb → 024_small_paned_example.rb} +4 -3
  115. data/lib/gtk_paradise/examples/gtk3/{007_progress_bar_example.rb → 026_progress_bar_example.rb} +1 -2
  116. data/lib/gtk_paradise/examples/gtk3/{008_menubar_example.rb → 027_menubar_example.rb} +1 -1
  117. data/lib/gtk_paradise/examples/gtk3/{010_paned_widget_example.rb → 028_paned_widget_example.rb} +1 -0
  118. data/lib/gtk_paradise/examples/gtk3/{011_sockets.rb → 029_sockets.rb} +1 -0
  119. data/lib/gtk_paradise/examples/gtk3/{012_notebook_example.rb → 030_notebook_example.rb} +1 -0
  120. data/lib/gtk_paradise/examples/gtk3/{013_icon_theme_example.rb → 031_icon_theme_example.rb} +6 -0
  121. data/lib/gtk_paradise/examples/gtk3/{014_switcher_window.rb → 032_switcher_window.rb} +16 -10
  122. data/lib/gtk_paradise/examples/gtk3/{016_hello_world_in_gtk3_and_bold_font.rb → 034_hello_world_in_gtk3_and_bold_font.rb} +1 -1
  123. data/lib/gtk_paradise/examples/gtk3/{017_grid_example.rb → 035_grid_example.rb} +5 -1
  124. data/lib/gtk_paradise/examples/gtk3/{018_buttons_showcasing_the_relief.rb → 036_buttons_showcasing_the_relief.rb} +1 -0
  125. data/lib/gtk_paradise/examples/gtk3/{019_text_buffer_example.rb → 037_text_buffer_example.rb} +12 -10
  126. data/lib/gtk_paradise/examples/gtk3/{022_popup_example.rb → 040_popup_example.rb} +2 -2
  127. data/lib/gtk_paradise/examples/gtk3/{023_horizontal_and_vertical_scale.rb → 041_horizontal_and_vertical_scale.rb} +1 -1
  128. data/lib/gtk_paradise/examples/gtk3/{026_hover_button_example_via_css.rb → 043_hover_button_example_via_css.rb} +3 -1
  129. data/lib/gtk_paradise/examples/gtk3/{027_spin_button_example.rb → 044_spin_button_example.rb} +4 -3
  130. data/lib/gtk_paradise/examples/gtk3/{028_radio_menu_item_example.rb → 045_radio_menu_item_example.rb} +4 -1
  131. data/lib/gtk_paradise/examples/gtk3/{029_gtk_dialog_sample.rb → 046_gtk_dialog_sample.rb} +4 -1
  132. data/lib/gtk_paradise/examples/gtk3/{030_draw_rectangles.rb → 047_draw_rectangles.rb} +1 -1
  133. data/lib/gtk_paradise/examples/gtk3/{031_colour_choose_button.rb → 048_colour_choose_button.rb} +17 -3
  134. data/lib/gtk_paradise/examples/gtk3/{032_drag_and_drop_example.rb → 049_drag_and_drop_example.rb} +13 -5
  135. data/lib/gtk_paradise/examples/gtk3/{033_cell_renderer_pixbuf_example.rb → 050_cell_renderer_pixbuf_example.rb} +17 -6
  136. data/lib/gtk_paradise/examples/gtk3/051_combo_box_example.rb +74 -0
  137. data/lib/gtk_paradise/examples/gtk3/{037_css_example_of_a_button_changing_the_background_colour_on_click_event.rb → 053_css_example_of_a_button_changing_the_background_colour_on_click_event.rb} +14 -4
  138. data/lib/gtk_paradise/examples/gtk3/{036_revealer_example.rb → 053_revealer_example.rb} +10 -6
  139. data/lib/gtk_paradise/examples/gtk3/{038_ten_labels_in_a_vertical_box_example.rb → 054_ten_labels_in_a_vertical_box_example.rb} +1 -1
  140. data/lib/gtk_paradise/examples/gtk3/{039_threads_example.rb → 055_threads_example.rb} +1 -1
  141. data/lib/gtk_paradise/examples/gtk3/{042_colourized_button_example.rb → 058_colourized_button_example.rb} +1 -2
  142. data/lib/gtk_paradise/examples/gtk3/{043_form_example.rb → 059_form_example.rb} +1 -3
  143. data/lib/gtk_paradise/examples/gtk3/{044_check_button.rb → 060_check_button.rb} +4 -2
  144. data/lib/gtk_paradise/examples/gtk3/{046_event_box_example.rb → 062_event_box_example.rb} +2 -1
  145. data/lib/gtk_paradise/examples/gtk3/{047_examples_with_css.rb → 063_examples_with_css.rb} +91 -3
  146. data/lib/gtk_paradise/examples/gtk3/{048_accel_group_example.rb → 064_accel_group_example.rb} +1 -0
  147. data/lib/gtk_paradise/examples/gtk3/{049_change_the_application_theme.rb → 065_change_the_application_theme.rb} +4 -2
  148. data/lib/gtk_paradise/examples/gtk3/{050_header_bar_example.rb → 066_header_bar_example.rb} +3 -0
  149. data/lib/gtk_paradise/examples/gtk3/{051_gtk_label_example.rb → 067_gtk_label_example.rb} +3 -2
  150. data/lib/gtk_paradise/examples/gtk3/{052_popover_example.rb → 068_popover_example.rb} +2 -2
  151. data/lib/gtk_paradise/examples/gtk3/{053_entry_completion.rb → 069_entry_completion.rb} +2 -0
  152. data/lib/gtk_paradise/examples/gtk3/{055_button_demo.rb → 071_button_demo.rb} +6 -5
  153. data/lib/gtk_paradise/examples/gtk3/{056_text_iterator_example.rb → 072_text_iterator_example.rb} +30 -21
  154. data/lib/gtk_paradise/examples/gtk3/{057_image_example.rb → 073_image_example.rb} +1 -1
  155. data/lib/gtk_paradise/examples/gtk3/{058_frame_example.rb → 074_frame_example.rb} +1 -1
  156. data/lib/gtk_paradise/examples/gtk3/{059_gtk_expander.rb → 075_gtk_expander.rb} +2 -0
  157. data/lib/gtk_paradise/examples/gtk3/{060_ten_vboxes_example.rb → 076_ten_vboxes_example.rb} +1 -0
  158. data/lib/gtk_paradise/examples/gtk3/{063_button_box_example.rb → 077_button_box_example.rb} +11 -1
  159. data/lib/gtk_paradise/examples/gtk3/{064_tree_view_column_example.rb → 078_tree_view_column_example.rb} +2 -1
  160. data/lib/gtk_paradise/examples/gtk3/{066_vertical_boxes.rb → 080_vertical_boxes.rb} +2 -1
  161. data/lib/gtk_paradise/examples/gtk3/{067_vbox_with_spacing_and_border_width.rb → 081_vbox_with_spacing_and_border_width.rb} +2 -1
  162. data/lib/gtk_paradise/examples/gtk3/{069_file_chooser_dialog.rb → 082_file_chooser_dialog.rb} +3 -0
  163. data/lib/gtk_paradise/examples/gtk3/{070_bindings.rb → 083_bindings.rb} +14 -8
  164. data/lib/gtk_paradise/examples/gtk3/{072_recent_chooser_dialog.rb → 084_recent_chooser_dialog.rb} +2 -2
  165. data/lib/gtk_paradise/examples/gtk3/{073_showcase_the_cursors.rb → 085_showcase_the_cursors.rb} +30 -5
  166. data/lib/gtk_paradise/examples/gtk3/{074_app_chooser_button_example.rb → 086_app_chooser_button_example.rb} +1 -0
  167. data/lib/gtk_paradise/examples/gtk3/087_calendar_example.rb +41 -0
  168. data/lib/gtk_paradise/examples/gtk4/001_gtk_entry.rb +88 -0
  169. data/lib/gtk_paradise/examples/gtk4/002_scrolled_window_example.rb +62 -0
  170. data/lib/gtk_paradise/examples/gtk4/003_toggle_button_example.rb +23 -0
  171. data/lib/gtk_paradise/examples/gtk4/004_simple_dialog_example.rb +41 -0
  172. data/lib/gtk_paradise/examples/gtk4/005_spinner_example.rb +64 -0
  173. data/lib/gtk_paradise/examples/gtk4/006_text_view_example.rb +77 -0
  174. data/lib/gtk_paradise/examples/gtk4/007_two_windows_example.rb +55 -0
  175. data/lib/gtk_paradise/examples/gtk4/008_search_bar_example.rb +88 -0
  176. data/lib/gtk_paradise/examples/gtk4/009_text_view_example.rb +30 -0
  177. data/lib/gtk_paradise/examples/gtk4/010_switch_example.rb +52 -0
  178. data/lib/gtk_paradise/examples/gtk4/074_frame_example.rb +105 -0
  179. data/lib/gtk_paradise/examples/gtk4/076_ten_vboxes_example.rb +35 -0
  180. data/lib/gtk_paradise/examples/gtk4/087_calendar_example.rb +47 -0
  181. data/lib/gtk_paradise/examples/gtk4/100_changed_events_example.rb +77 -0
  182. data/lib/gtk_paradise/examples/gtk4/101_actionbar_example.rb +55 -0
  183. data/lib/gtk_paradise/examples/gtk4/102_picture_example.rb +35 -0
  184. data/lib/gtk_paradise/examples/pango/pango_power.rb +1 -0
  185. data/lib/gtk_paradise/experimental/experimental.rb +3 -11
  186. data/lib/gtk_paradise/experimental/experimental_for_gtk4.rb +92 -0
  187. data/lib/gtk_paradise/fonts/fonts.rb +5 -1
  188. data/lib/gtk_paradise/gdk/cursor.rb +2 -2
  189. data/lib/gtk_paradise/{base_module/e.rb → gdk/event_crossing.rb} +6 -8
  190. data/lib/gtk_paradise/gdk/gdk.rb +1 -1
  191. data/lib/gtk_paradise/gtk_classes/about.rb +11 -2
  192. data/lib/gtk_paradise/gtk_classes/about_dialog.rb +6 -2
  193. data/lib/gtk_paradise/gtk_classes/alignment.rb +4 -1
  194. data/lib/gtk_paradise/gtk_classes/application.rb +94 -4
  195. data/lib/gtk_paradise/gtk_classes/application_window.rb +25 -0
  196. data/lib/gtk_paradise/gtk_classes/box.rb +116 -279
  197. data/lib/gtk_paradise/gtk_classes/button.rb +55 -37
  198. data/lib/gtk_paradise/gtk_classes/button_box.rb +9 -1
  199. data/lib/gtk_paradise/gtk_classes/cell_renderer_text.rb +5 -3
  200. data/lib/gtk_paradise/gtk_classes/check_button.rb +27 -8
  201. data/lib/gtk_paradise/gtk_classes/combo_box.rb +4 -1
  202. data/lib/gtk_paradise/gtk_classes/combo_box_entry.rb +17 -11
  203. data/lib/gtk_paradise/gtk_classes/combo_box_text.rb +21 -19
  204. data/lib/gtk_paradise/gtk_classes/dialog.rb +2 -2
  205. data/lib/gtk_paradise/gtk_classes/entry.rb +256 -124
  206. data/lib/gtk_paradise/gtk_classes/entry_completion.rb +4 -0
  207. data/lib/gtk_paradise/gtk_classes/event_box.rb +21 -2
  208. data/lib/gtk_paradise/gtk_classes/event_button.rb +1 -1
  209. data/lib/gtk_paradise/gtk_classes/expander.rb +8 -1
  210. data/lib/gtk_paradise/gtk_classes/file_chooser_dialog.rb +1 -1
  211. data/lib/gtk_paradise/gtk_classes/file_filter.rb +4 -2
  212. data/lib/gtk_paradise/gtk_classes/file_selection.rb +4 -3
  213. data/lib/gtk_paradise/gtk_classes/frame.rb +19 -1
  214. data/lib/gtk_paradise/gtk_classes/grid.rb +206 -160
  215. data/lib/gtk_paradise/gtk_classes/hbox.rb +145 -0
  216. data/lib/gtk_paradise/gtk_classes/header_bar.rb +19 -8
  217. data/lib/gtk_paradise/gtk_classes/image.rb +1 -1
  218. data/lib/gtk_paradise/gtk_classes/label.rb +174 -135
  219. data/lib/gtk_paradise/gtk_classes/menu.rb +7 -3
  220. data/lib/gtk_paradise/gtk_classes/menu_bar.rb +1 -1
  221. data/lib/gtk_paradise/gtk_classes/menu_item.rb +1 -1
  222. data/lib/gtk_paradise/gtk_classes/notebook.rb +114 -64
  223. data/lib/gtk_paradise/gtk_classes/paned.rb +52 -0
  224. data/lib/gtk_paradise/gtk_classes/radio_menu_item.rb +19 -1
  225. data/lib/gtk_paradise/gtk_classes/scale_button.rb +16 -1
  226. data/lib/gtk_paradise/gtk_classes/scrolled_window.rb +8 -6
  227. data/lib/gtk_paradise/gtk_classes/search_bar.rb +1 -1
  228. data/lib/gtk_paradise/gtk_classes/source_buffer.rb +4 -5
  229. data/lib/gtk_paradise/gtk_classes/spin_button.rb +9 -1
  230. data/lib/gtk_paradise/gtk_classes/spinner.rb +32 -2
  231. data/lib/gtk_paradise/gtk_classes/status_icon.rb +2 -0
  232. data/lib/gtk_paradise/gtk_classes/statusbar.rb +1 -0
  233. data/lib/gtk_paradise/gtk_classes/style_context.rb +71 -0
  234. data/lib/gtk_paradise/gtk_classes/text_buffer.rb +45 -19
  235. data/lib/gtk_paradise/gtk_classes/text_view.rb +20 -3
  236. data/lib/gtk_paradise/gtk_classes/toggle_button.rb +3 -0
  237. data/lib/gtk_paradise/gtk_classes/toolbar.rb +2 -2
  238. data/lib/gtk_paradise/gtk_classes/tree_iter.rb +1 -1
  239. data/lib/gtk_paradise/gtk_classes/tree_view.rb +93 -70
  240. data/lib/gtk_paradise/gtk_classes/tree_view_column.rb +2 -1
  241. data/lib/gtk_paradise/gtk_classes/vbox.rb +71 -10
  242. data/lib/gtk_paradise/gtk_classes/vscale.rb +2 -2
  243. data/lib/gtk_paradise/gtk_classes/widget.rb +1057 -590
  244. data/lib/gtk_paradise/gtk_classes/window.rb +37 -2
  245. data/lib/gtk_paradise/hello_world/README.md +1 -1
  246. data/lib/gtk_paradise/hello_world/hello_world_gtk4.rb +20 -0
  247. data/lib/gtk_paradise/images/icons/close_image.png +0 -0
  248. data/lib/gtk_paradise/images/icons/closed.png +0 -0
  249. data/lib/gtk_paradise/images/icons/directory.png +0 -0
  250. data/lib/gtk_paradise/images/icons/icon_cool.gif +0 -0
  251. data/lib/gtk_paradise/images/icons/icon_lol.gif +0 -0
  252. data/lib/gtk_paradise/images/icons/icon_smile.gif +0 -0
  253. data/lib/gtk_paradise/images/icons/opened.png +0 -0
  254. data/lib/gtk_paradise/images/internal/gtk_label_example.png +0 -0
  255. data/lib/gtk_paradise/images/misc/wiki_logo.png +0 -0
  256. data/lib/gtk_paradise/images/small/GREEN_CIRCLE.png +0 -0
  257. data/lib/gtk_paradise/images/small/README.md +2 -0
  258. data/lib/gtk_paradise/images/small/RED_CIRCLE.png +0 -0
  259. data/lib/gtk_paradise/pango/{pango_fonts.rb → fonts.rb} +2 -2
  260. data/lib/gtk_paradise/pango/{pango.rb → layout.rb} +1 -1
  261. data/lib/gtk_paradise/pango/pango_renderer.rb +9 -2
  262. data/lib/gtk_paradise/project/project.rb +4 -3
  263. data/lib/gtk_paradise/prototypes/README.md +8 -0
  264. data/lib/gtk_paradise/prototypes/gtk3_standalone.rb +8 -21
  265. data/lib/gtk_paradise/prototypes/gtk4_standalone.rb +135 -0
  266. data/lib/gtk_paradise/prototypes/shared_code.rb +5 -15
  267. data/lib/gtk_paradise/prototypes/unified_gtk_prototype.rb +179 -0
  268. data/lib/gtk_paradise/require_gtk4.rb +7 -0
  269. data/lib/gtk_paradise/requires/require_base_module.rb +7 -0
  270. data/lib/gtk_paradise/requires/require_files_irrespective_of_the_gtk_version_at_hand.rb +25 -16
  271. data/lib/gtk_paradise/requires/require_gtk2.rb +6 -4
  272. data/lib/gtk_paradise/requires/{require_gtk2_or_gtk3.rb → require_gtk2_or_gtk3_or_gtk4.rb} +33 -12
  273. data/lib/gtk_paradise/requires/require_gtk3.rb +5 -20
  274. data/lib/gtk_paradise/requires/require_gtk4.rb +13 -0
  275. data/lib/gtk_paradise/requires/require_gtk_runner.rb +1 -0
  276. data/lib/gtk_paradise/requires/require_the_base_module_and_gtk_run.rb +1 -1
  277. data/lib/gtk_paradise/requires/require_the_base_module_the_app_module_and_the_toplevel_methods.rb +9 -0
  278. data/lib/gtk_paradise/requires/require_the_classes_files_for_gtk4.rb +11 -0
  279. data/lib/gtk_paradise/requires/require_the_colours_gem.rb +9 -0
  280. data/lib/gtk_paradise/requires/require_the_default_gtk_version.rb +4 -2
  281. data/lib/gtk_paradise/requires/require_the_toplevel_methods.rb +1 -1
  282. data/lib/gtk_paradise/run.rb +1 -0
  283. data/lib/gtk_paradise/run_this_widget/run_this_widget.rb +7 -3
  284. data/lib/gtk_paradise/threads/threads.rb +15 -10
  285. data/lib/gtk_paradise/toplevel_methods/css.rb +183 -35
  286. data/lib/gtk_paradise/toplevel_methods/cursor.rb +17 -3
  287. data/lib/gtk_paradise/toplevel_methods/determine_which_gtk_version_is_in_use.rb +90 -8
  288. data/lib/gtk_paradise/toplevel_methods/events.rb +6 -0
  289. data/lib/gtk_paradise/toplevel_methods/keys.rb +1 -1
  290. data/lib/gtk_paradise/toplevel_methods/screen_resolution.rb +32 -5
  291. data/lib/gtk_paradise/toplevel_methods/text_buffer_tags.rb +13 -4
  292. data/lib/gtk_paradise/toplevel_methods/tokenizer.rb +18 -3
  293. data/lib/gtk_paradise/toplevel_methods/{misc.rb → toplevel_methods.rb} +728 -181
  294. data/lib/gtk_paradise/utility_scripts/commandline_to_automatic_gui.rb +244 -0
  295. data/lib/gtk_paradise/version/version.rb +2 -2
  296. data/lib/gtk_paradise/widgets/gtk2/cat_merge.rb +2 -6
  297. data/lib/gtk_paradise/widgets/gtk2/cell_renderer_progress_example.rb +0 -5
  298. data/lib/gtk_paradise/widgets/gtk2/foto_lister.rb +2 -6
  299. data/lib/gtk_paradise/widgets/gtk2/gidnight_commander/gidnight_commander.rb +3 -3
  300. data/lib/gtk_paradise/widgets/gtk2/hbox_example.rb +1 -5
  301. data/lib/gtk_paradise/widgets/gtk2/multiple_select_in_a_tree_view_widget.rb +2 -6
  302. data/lib/gtk_paradise/widgets/gtk2/paned_example.rb +1 -1
  303. data/lib/gtk_paradise/widgets/gtk2/slider_changing_button.rb +2 -6
  304. data/lib/gtk_paradise/widgets/gtk2/status_icon_example.rb +2 -6
  305. data/lib/gtk_paradise/widgets/gtk2/table2.rb +2 -6
  306. data/lib/gtk_paradise/widgets/gtk2/toolbar_example.rb +2 -6
  307. data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/audio_button}/audio_button.rb +15 -26
  308. data/lib/gtk_paradise/widgets/gtk3/burn_this_iso_file/burn_this_iso_file.rb +2 -6
  309. data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/button_open_remote_webpage}/button_open_remote_webpage.rb +105 -50
  310. data/lib/gtk_paradise/widgets/gtk3/button_with_border/button_with_border.rb +155 -0
  311. data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/button_xorg_buffer}/button_xorg_buffer.rb +76 -18
  312. data/lib/gtk_paradise/widgets/gtk3/calculator/calculator.rb +183 -76
  313. data/lib/gtk_paradise/widgets/gtk3/checkbox_image/checkbox_image.rb +3 -7
  314. data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/coloured_button}/coloured_button.rb +94 -24
  315. data/lib/gtk_paradise/widgets/gtk3/coloured_square/coloured_square.rb +2 -6
  316. data/lib/gtk_paradise/widgets/gtk3/coloured_unit/coloured_unit.rb +151 -0
  317. data/lib/gtk_paradise/widgets/gtk3/cpu_widget/cpu_widget.rb +2 -6
  318. data/lib/gtk_paradise/widgets/gtk3/directory_content_widget/directory_content_widget.rb +937 -7
  319. data/lib/gtk_paradise/widgets/gtk3/editor/connect_skeleton.rb +33 -38
  320. data/lib/gtk_paradise/widgets/gtk3/editor/create.rb +66 -41
  321. data/lib/gtk_paradise/widgets/gtk3/editor/editor.rb +256 -270
  322. data/lib/gtk_paradise/widgets/gtk3/editor/internal_widgets/goto_line_widget.rb +52 -65
  323. data/lib/gtk_paradise/widgets/gtk3/editor/misc.rb +358 -111
  324. data/lib/gtk_paradise/widgets/gtk3/files_in_directory/files_in_directory.rb +2 -7
  325. data/lib/gtk_paradise/widgets/gtk3/flexible_vte/flexible_vte.rb +3 -7
  326. data/lib/gtk_paradise/widgets/gtk3/font_size_widget/action_button.rb +1 -5
  327. data/lib/gtk_paradise/widgets/gtk3/font_size_widget/font_size_widget.rb +2 -6
  328. data/lib/gtk_paradise/widgets/{gtk2 → gtk3}/gidnight_commander/gidnight_commander.config +1 -2
  329. data/lib/gtk_paradise/widgets/gtk3/gidnight_commander/gidnight_commander.rb +165 -125
  330. data/lib/gtk_paradise/widgets/gtk3/image_close_on_click_action/image_close_on_click_action.rb +34 -2
  331. data/lib/gtk_paradise/widgets/gtk3/image_viewer/image_viewer.rb +23 -26
  332. data/lib/gtk_paradise/widgets/gtk3/information_about_the_harddisc/harddisc_information.rb +161 -0
  333. data/lib/gtk_paradise/widgets/gtk3/insert_character/insert_character.rb +24 -29
  334. data/lib/gtk_paradise/widgets/gtk3/linux_users/linux_users.rb +32 -32
  335. data/lib/gtk_paradise/widgets/gtk3/my_calendar/my_calendar.rb +330 -7
  336. data/lib/gtk_paradise/widgets/gtk3/my_image_menu_item/my_image_menu_item.rb +179 -0
  337. data/lib/gtk_paradise/widgets/gtk3/non_numbers_only/non_numbers_only.rb +136 -0
  338. data/lib/gtk_paradise/widgets/gtk3/note_window/note_window.rb +199 -0
  339. data/lib/gtk_paradise/widgets/gtk3/notebook_controller/notebook_controller.rb +311 -7
  340. data/lib/gtk_paradise/widgets/gtk3/notebook_tab_with_icon/notebook_tab_with_icon.rb +402 -7
  341. data/lib/gtk_paradise/widgets/gtk3/numbered_lines/numbered_lines.rb +128 -82
  342. data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/numbers_only}/numbers_only.rb +15 -3
  343. data/lib/gtk_paradise/widgets/gtk3/ping_widget/ping_widget.rb +491 -8
  344. data/lib/gtk_paradise/widgets/gtk3/regex_matcher/regex_matcher.rb +362 -43
  345. data/lib/gtk_paradise/widgets/gtk3/rename_widget/rename_widget.rb +8 -25
  346. data/lib/gtk_paradise/widgets/gtk3/show_which_key_was_pressed/show_which_key_was_pressed.rb +190 -0
  347. data/lib/gtk_paradise/widgets/gtk3/stopwatch/stopwatch.rb +318 -7
  348. data/lib/gtk_paradise/widgets/gtk3/sys_message/sys_message.rb +219 -7
  349. data/lib/gtk_paradise/widgets/gtk3/system_information/system_information.rb +58 -34
  350. data/lib/gtk_paradise/widgets/gtk3/tabble/admin_panel.rb +2 -6
  351. data/lib/gtk_paradise/widgets/gtk3/tabble/image_and_button.rb +2 -6
  352. data/lib/gtk_paradise/widgets/gtk3/tabble/tabble.rb +2 -6
  353. data/lib/gtk_paradise/widgets/gtk3/view_webpage/view_webpage.rb +2 -6
  354. data/lib/gtk_paradise/widgets/gtk3/wiki/README.md +4 -0
  355. data/lib/gtk_paradise/widgets/gtk3/wiki/wiki.rb +388 -0
  356. data/lib/gtk_paradise/widgets/gtk4/ping_widget/ping_widget.rb +4 -0
  357. data/lib/gtk_paradise/widgets/gtk4/show_icon_theme/show_icon_theme.rb +134 -0
  358. data/lib/gtk_paradise/widgets/gtk4/sys_message/sys_message.rb +269 -0
  359. data/lib/gtk_paradise/widgets/{gtk2/stopwatch/stopwatch.rb → gtk4/xpm_loader/xpm_loader.rb} +13 -11
  360. data/lib/gtk_paradise/widgets/shared_code/browser/browser_module.rb +4 -16
  361. data/lib/gtk_paradise/widgets/shared_code/cdripper/cdripper_module.rb +1 -1
  362. data/lib/gtk_paradise/widgets/shared_code/colour_filled_widget/colour_filled_widget_module.rb +25 -28
  363. data/lib/gtk_paradise/widgets/shared_code/colour_palette/colour_palette_module.rb +2 -2
  364. data/lib/gtk_paradise/widgets/shared_code/contacts/contacts_module.rb +62 -64
  365. data/lib/gtk_paradise/widgets/shared_code/flip_state_widget/flip_state_widget_module.rb +3 -19
  366. data/lib/gtk_paradise/widgets/shared_code/information_about_the_harddisc/harddisc_information.rb +0 -155
  367. data/lib/gtk_paradise/widgets/shared_code/information_about_the_harddisc/information_about_the_harddisc_module.rb +0 -444
  368. data/lib/gtk_paradise/widgets/shared_code/lsmod/lsmod_module.rb +22 -26
  369. data/lib/gtk_paradise/widgets/shared_code/lspci/lspci_module.rb +24 -36
  370. data/lib/gtk_paradise/widgets/shared_code/mini_clock/mini_clock_module.rb +74 -58
  371. data/lib/gtk_paradise/widgets/shared_code/my_calendar/my_calendar_module.rb +0 -327
  372. data/lib/gtk_paradise/widgets/shared_code/pid_displayer/pid_displayer_module.rb +53 -41
  373. data/lib/gtk_paradise/widgets/shared_code/random_image/random_image_module.rb +46 -29
  374. data/lib/gtk_paradise/widgets/shared_code/select_file/select_file_module.rb +1 -1
  375. data/lib/gtk_paradise/widgets/shared_code/show_icon_theme/show_icon_theme_module.rb +56 -44
  376. data/lib/gtk_paradise/widgets/shared_code/simple_clock/simple_clock_module.rb +1 -12
  377. data/lib/gtk_paradise/widgets/shared_code/stopwatch/stopwatch_module.rb +0 -341
  378. data/lib/gtk_paradise/widgets/shared_code/sys_message/sys_message_module.rb +0 -211
  379. data/lib/gtk_paradise/widgets/shared_code/tabby/tabby_module.rb +3 -15
  380. data/lib/gtk_paradise/widgets/shared_code/xpm_loader/xpm_loader_module.rb +15 -23
  381. data/lib/gtk_paradise/www/index.cgi +2 -2
  382. data/lib/gtk_paradise/yaml/browser_URLs.yml +3 -4
  383. data/lib/gtk_paradise/yaml/configuration_options_for_class_gtk_runner.yml +6 -6
  384. data/lib/gtk_paradise/yaml/experimental/README.md +3 -0
  385. data/lib/gtk_paradise/yaml/experimental/all_widgets.yml +37 -0
  386. data/lib/gtk_paradise/yaml/menu.yml +6 -3
  387. data/lib/gtk_paradise/yaml/notebook_controller.yml +62 -29
  388. data/lib/gtk_paradise.rb +0 -5
  389. data/test/gtk2/testing_combo_box.rb +1 -0
  390. data/test/gtk2/testing_display.rb +23 -0
  391. data/test/gtk2/testing_gtk_image.rb +4 -3
  392. data/test/gtk2/testing_hbox_and_vbox.rb +37 -0
  393. data/test/gtk2/testing_label_with_ampersand.rb +5 -2
  394. data/test/gtk2/testing_notebook.rb +11 -5
  395. data/test/gtk3/test_widget.rb +2 -1
  396. data/test/gtk3/testing_app.rb +0 -1
  397. data/test/gtk3/testing_base_module.rb +2 -1
  398. data/test/gtk3/testing_numbered_lines.rb +20 -0
  399. data/test/gtk3/testing_project_base_directory.rb +6 -1
  400. data/test/gtk3/testing_the_html_pseudo_tags.rb +2 -2
  401. data/test/gtk4/testing_gtk_entry.rb +24 -0
  402. data/test/misc/testing_a_gtk_frame.rb +14 -0
  403. data/test/misc/testing_gtk4_simplifications.rb +105 -0
  404. data/test/misc/testing_gtk_paradise_runner.rb +19 -4
  405. data/test/misc/testing_the_gtk_classes.rb +83 -0
  406. metadata +246 -199
  407. data/lib/gtk_paradise/base_module/change_directory.rb +0 -22
  408. data/lib/gtk_paradise/base_module/combo_box_and_combo_box_entry.rb +0 -113
  409. data/lib/gtk_paradise/base_module/commandline_arguments.rb +0 -36
  410. data/lib/gtk_paradise/base_module/configuration.rb +0 -50
  411. data/lib/gtk_paradise/base_module/constants.rb +0 -23
  412. data/lib/gtk_paradise/base_module/debug.rb +0 -127
  413. data/lib/gtk_paradise/base_module/draggable.rb +0 -95
  414. data/lib/gtk_paradise/base_module/emoji.rb +0 -107
  415. data/lib/gtk_paradise/base_module/esystem.rb +0 -22
  416. data/lib/gtk_paradise/base_module/events.rb +0 -111
  417. data/lib/gtk_paradise/base_module/fonts.rb +0 -119
  418. data/lib/gtk_paradise/base_module/graphics_display.rb +0 -47
  419. data/lib/gtk_paradise/base_module/gtk3.rb +0 -43
  420. data/lib/gtk_paradise/base_module/gtk_buttons.rb +0 -562
  421. data/lib/gtk_paradise/base_module/gtk_entry.rb +0 -126
  422. data/lib/gtk_paradise/base_module/gtk_fixed.rb +0 -18
  423. data/lib/gtk_paradise/base_module/gtk_grid.rb +0 -61
  424. data/lib/gtk_paradise/base_module/gtk_image.rb +0 -501
  425. data/lib/gtk_paradise/base_module/gtk_label.rb +0 -211
  426. data/lib/gtk_paradise/base_module/gtk_notebook.rb +0 -88
  427. data/lib/gtk_paradise/base_module/gtk_scrolled_window.rb +0 -155
  428. data/lib/gtk_paradise/base_module/misc.rb +0 -2949
  429. data/lib/gtk_paradise/base_module/pango.rb +0 -24
  430. data/lib/gtk_paradise/base_module/popover.rb +0 -241
  431. data/lib/gtk_paradise/base_module/register_sigint.rb +0 -20
  432. data/lib/gtk_paradise/base_module/reset.rb +0 -128
  433. data/lib/gtk_paradise/base_module/return_corresponding_gtk_stock_item.rb +0 -92
  434. data/lib/gtk_paradise/base_module/roebe.rb +0 -19
  435. data/lib/gtk_paradise/base_module/table.rb +0 -438
  436. data/lib/gtk_paradise/base_module/time.rb +0 -35
  437. data/lib/gtk_paradise/constants/available_cursors.rb +0 -52
  438. data/lib/gtk_paradise/constants/fonts.rb +0 -38
  439. data/lib/gtk_paradise/constants/misc.rb +0 -56
  440. data/lib/gtk_paradise/constants/newline.rb +0 -14
  441. data/lib/gtk_paradise/constants/xbm_icons.rb +0 -121
  442. data/lib/gtk_paradise/examples/gtk3/003_sorted_tree.rb +0 -141
  443. data/lib/gtk_paradise/examples/gtk3/034_combo_box_example.rb +0 -49
  444. data/lib/gtk_paradise/examples/gtk3/068_text_view_example.rb +0 -34
  445. data/lib/gtk_paradise/examples/gtk3/071_search_bar_example.rb +0 -59
  446. data/lib/gtk_paradise/gtk_classes/colours/colours.rb +0 -158
  447. data/lib/gtk_paradise/requires/require_the_minesweeper_files.rb +0 -11
  448. data/lib/gtk_paradise/toplevel_methods/allow_only_numbers.rb +0 -59
  449. data/lib/gtk_paradise/toplevel_methods/csv.rb +0 -102
  450. data/lib/gtk_paradise/toplevel_methods/e.rb +0 -18
  451. data/lib/gtk_paradise/toplevel_methods/enable_and_disable_warnings.rb +0 -58
  452. data/lib/gtk_paradise/toplevel_methods/keyboard.rb +0 -25
  453. data/lib/gtk_paradise/toplevel_methods/main_file.rb +0 -31
  454. data/lib/gtk_paradise/toplevel_methods/register_sigint.rb +0 -17
  455. data/lib/gtk_paradise/toplevel_methods/roebe.rb +0 -22
  456. data/lib/gtk_paradise/toplevel_methods/select_file.rb +0 -168
  457. data/lib/gtk_paradise/toplevel_methods/spacer.rb +0 -55
  458. data/lib/gtk_paradise/toplevel_methods/tooltips.rb +0 -71
  459. data/lib/gtk_paradise/toplevel_methods/we_use_this_gtk_version.rb +0 -65
  460. data/lib/gtk_paradise/widgets/gtk2/directory_content_widget/directory_content_widget.rb +0 -30
  461. data/lib/gtk_paradise/widgets/gtk2/my_calendar/my_calendar.config +0 -6
  462. data/lib/gtk_paradise/widgets/gtk2/my_calendar/my_calendar.rb +0 -34
  463. data/lib/gtk_paradise/widgets/gtk2/notebook_tab_with_icon/notebook_tab_with_icon.rb +0 -30
  464. data/lib/gtk_paradise/widgets/gtk2/ping_widget/ping_widget.rb +0 -30
  465. data/lib/gtk_paradise/widgets/gtk2/sys_message/sys_message.config +0 -6
  466. data/lib/gtk_paradise/widgets/gtk2/sys_message/sys_message.rb +0 -29
  467. data/lib/gtk_paradise/widgets/shared_code/directory_content_widget/constants.rb +0 -53
  468. data/lib/gtk_paradise/widgets/shared_code/directory_content_widget/directory_content_widget_module.rb +0 -777
  469. data/lib/gtk_paradise/widgets/shared_code/directory_content_widget/handle_this_file_or_symlink.rb +0 -83
  470. data/lib/gtk_paradise/widgets/shared_code/notebook_controller/notebook_controller_module.rb +0 -339
  471. data/lib/gtk_paradise/widgets/shared_code/notebook_tab_with_icon/notebook_tab_with_icon_module.rb +0 -297
  472. data/lib/gtk_paradise/widgets/shared_code/ping_widget/ping_widget_module.rb +0 -326
  473. data/lib/gtk_paradise/widgets/version_agnostic/button_with_border.rb +0 -63
  474. data/lib/gtk_paradise/widgets/version_agnostic/coloured_unit.rb +0 -54
  475. data/lib/gtk_paradise/widgets/version_agnostic/my_image_menu_item.rb +0 -103
  476. data/lib/gtk_paradise/widgets/version_agnostic/my_menu_item_separator.rb +0 -31
  477. data/lib/gtk_paradise/widgets/version_agnostic/non_numbers_only.rb +0 -66
  478. data/lib/gtk_paradise/widgets/version_agnostic/note_window.rb +0 -107
  479. /data/lib/gtk_paradise/examples/gtk3/{084_undecorated_window_example.rb → 014_undecorated_window_example.rb} +0 -0
  480. /data/lib/gtk_paradise/examples/gtk3/{077_status_icon_example.rb → 019_status_icon_example.rb} +0 -0
  481. /data/lib/gtk_paradise/examples/gtk3/{076_stack_example.rb → 020_stack_example.rb} +0 -0
  482. /data/lib/gtk_paradise/examples/gtk3/{006_password_example.rb → 025_password_example.rb} +0 -0
  483. /data/lib/gtk_paradise/examples/gtk3/{015_list_box_example.rb → 033_list_box_example.rb} +0 -0
  484. /data/lib/gtk_paradise/examples/gtk3/{020_radio_button_window.rb → 038_radio_button_window.rb} +0 -0
  485. /data/lib/gtk_paradise/examples/gtk3/{021_scale_button_demo.rb → 039_scale_button_demo.rb} +0 -0
  486. /data/lib/gtk_paradise/examples/gtk3/{024_installation_assistant.rb → 042_installation_assistant.rb} +0 -0
  487. /data/lib/gtk_paradise/examples/gtk3/{035_notebook_css_example.rb → 052_notebook_css_example.rb} +0 -0
  488. /data/lib/gtk_paradise/examples/gtk3/{040_font_chooser_dialog_example.rb → 056_font_chooser_dialog_example.rb} +0 -0
  489. /data/lib/gtk_paradise/examples/gtk3/{041_flowbox.rb → 057_flowbox.rb} +0 -0
  490. /data/lib/gtk_paradise/examples/gtk3/{045_fixed_example.rb → 061_fixed_example.rb} +0 -0
  491. /data/lib/gtk_paradise/examples/gtk3/{054_svg_viewer.rb → 070_svg_viewer.rb} +0 -0
  492. /data/lib/gtk_paradise/examples/gtk3/{065_tooltips_example.rb → 079_tooltips_example.rb} +0 -0
@@ -12,10 +12,13 @@ class Editor < ::Gtk::Box # === Gtk::Editor
12
12
 
13
13
  require 'gtk_paradise/widgets/gtk3/editor/internal_widgets/goto_line_widget.rb'
14
14
 
15
- # ========================================================================= #
16
- # === NAMESPACE
17
- # ========================================================================= #
18
- NAMESPACE = inspect
15
+ begin
16
+ require 'roebe/toplevel_methods/misc.rb'
17
+ rescue LoadError; end
18
+
19
+ begin
20
+ require 'roebe/classes/mbl.rb'
21
+ rescue LoadError; end
19
22
 
20
23
  # ========================================================================= #
21
24
  # === TITLE
@@ -70,7 +73,16 @@ class Editor < ::Gtk::Box # === Gtk::Editor
70
73
  HASH_DESIGNATED_KEY_COMBINATIONS = {
71
74
  'strg+o': 'do_open_a_local_file',
72
75
  'strg+s': 'do_save_into_the_file',
73
- 'strg+g': 'go_to_that_line_after_asking_the_user'
76
+ 'strg+g': 'go_to_that_line_after_asking_the_user',
77
+ 'alt+1': 'activate_this_tab(1)',
78
+ 'alt+2': 'activate_this_tab(2)',
79
+ 'alt+3': 'activate_this_tab(3)',
80
+ 'alt+4': 'activate_this_tab(4)',
81
+ 'alt+5': 'activate_this_tab(5)',
82
+ 'alt+6': 'activate_this_tab(6)',
83
+ 'alt+7': 'activate_this_tab(7)',
84
+ 'alt+8': 'activate_this_tab(8)',
85
+ 'alt+9': 'activate_this_tab(9)'
74
86
  }
75
87
 
76
88
  # ========================================================================= #
@@ -78,23 +90,12 @@ class Editor < ::Gtk::Box # === Gtk::Editor
78
90
  # ========================================================================= #
79
91
  def reset
80
92
  reset_the_internal_variables
93
+ infer_the_namespace
81
94
  # ======================================================================= #
82
95
  # === @configuration
83
96
  # ======================================================================= #
84
- @configuration = [true, __dir__, NAMESPACE]
85
- # ======================================================================= #
86
- # === @title
87
- # ======================================================================= #
88
- set_title(TITLE)
89
- # ======================================================================= #
90
- # === @width
91
- # ======================================================================= #
92
- set_width(WIDTH)
93
- # ======================================================================= #
94
- # === @height
95
- # ======================================================================= #
96
- set_height(HEIGHT)
97
- set_use_this_font(use_which_font?)
97
+ @configuration = [true, __dir__, namespace?]
98
+ title_width_height_font(TITLE, WIDTH, HEIGHT, use_which_font?)
98
99
  infer_the_size_automatically
99
100
  # ======================================================================= #
100
101
  # === @hash_all_tags
@@ -117,11 +118,11 @@ class Editor < ::Gtk::Box # === Gtk::Editor
117
118
  # ======================================================================= #
118
119
  @hash_all_tab_widgets = {}
119
120
  @cooldown_start = nil
120
- handle_CSS_rules
121
121
  # ======================================================================= #
122
122
  # === @goto_line_widget
123
123
  # ======================================================================= #
124
124
  @goto_line_widget = ::Gtk::GotoLineWidget.new
125
+ handle_CSS_rules
125
126
  end
126
127
 
127
128
  # ========================================================================= #
@@ -158,13 +159,6 @@ class Editor < ::Gtk::Box # === Gtk::Editor
158
159
  @use_widget_with_different_colour_buttons = false
159
160
  end
160
161
 
161
- # ========================================================================= #
162
- # === notebook?
163
- # ========================================================================= #
164
- def notebook?
165
- @notebook
166
- end
167
-
168
162
  # ========================================================================= #
169
163
  # === smallest_non_monospaced_font?
170
164
  # ========================================================================= #
@@ -292,6 +286,145 @@ class Editor < ::Gtk::Box # === Gtk::Editor
292
286
  @context_menu.css_class('bblack3_and_padding')
293
287
  end
294
288
 
289
+ # ========================================================================= #
290
+ # === go_to_a_specific_line (goto tag)
291
+ # ========================================================================= #
292
+ def go_to_a_specific_line(
293
+ go_to_this_line = 3
294
+ )
295
+ go_to_this_line = go_to_this_line.to_i
296
+ current_buffer = current_buffer?
297
+ lines = current_buffer.text?.lines
298
+ go_to_this_line -= 1 unless go_to_this_line < 1
299
+ if go_to_this_line.size > lines.size
300
+ go_to_this_line = lines.size
301
+ end
302
+ # ======================================================================= #
303
+ # We must calculate the true cursor position next. We do this by
304
+ # calculating the number of lines via a method available in the
305
+ # gtk_paradise gem.
306
+ # ======================================================================= #
307
+ real_cursor_position = Gtk.return_n_characters_up_to_array_position(go_to_this_line)
308
+ current_buffer.place_cursor_at_this_position(
309
+ real_cursor_position
310
+ )
311
+ do_place_the_cursor
312
+ end; alias go_to_that_line go_to_a_specific_line # === go_to_that_line
313
+
314
+ # ========================================================================= #
315
+ # === dialog_for_go_to_a_specific_line
316
+ # ========================================================================= #
317
+ def dialog_for_go_to_a_specific_line
318
+ @goto_line_widget.show_all # Always show it when this is called.
319
+ @goto_line_widget.runner_widget.show_all if @goto_line_widget.runner_widget
320
+ # ======================================================================= #
321
+ # We must re-sync onto the real buffer.
322
+ # ======================================================================= #
323
+ @goto_line_widget.connect_to_this_text_buffer(current_text_buffer?)
324
+ # ======================================================================= #
325
+ # The rest is only called if the goto-line widget hasn't been run yet.
326
+ # ======================================================================= #
327
+ unless @goto_line_widget.runner_widget?
328
+ @goto_line_widget.set_parent_widget(self)
329
+ r = ::Gtk.run
330
+ r.title = 'Goto Line'
331
+ r << @goto_line_widget
332
+ r.automatic_size_then_automatic_title
333
+ @goto_line_widget.set_runner_widget(r)
334
+ r.top_left_then_run
335
+ end
336
+ end; alias go_to_that_line_after_asking_the_user dialog_for_go_to_a_specific_line # === go_to_that_line_after_asking_the_user
337
+
338
+ # ========================================================================= #
339
+ # === grab_focus
340
+ # ========================================================================= #
341
+ def grab_focus(
342
+ text_view = main_textview?
343
+ )
344
+ text_view.grab_focus
345
+ end; alias activate_cursor grab_focus # === activate_cursor
346
+ alias do_place_the_cursor grab_focus # === do_place_the_cursor
347
+
348
+ # ========================================================================= #
349
+ # === consider_adding_a_vte_terminal_to_this_notebook (vte tag)
350
+ # ========================================================================= #
351
+ def consider_adding_a_vte_terminal_to_this_notebook(
352
+ notebook, tab_title = '3'
353
+ )
354
+ begin
355
+ require 'vte3'
356
+ rescue LoadError; end
357
+ if Object.const_defined?(:Vte) and Vte.const_defined?(:PtyFlags)
358
+ # ===================================================================== #
359
+ # Add a tab for VTE specifically.
360
+ # ===================================================================== #
361
+ terminal = Vte::Terminal.new
362
+ if terminal.respond_to? :use_this_font=
363
+ terminal.use_this_font = smallest_font?
364
+ end
365
+ if terminal.respond_to? :spawn_sync
366
+ _succeeded, _pid = terminal.spawn_sync(
367
+ ::Vte::PtyFlags::DEFAULT,
368
+ return_pwd,
369
+ [ENV['SHELL'] || '/bin/sh'],
370
+ nil,
371
+ GLib::Spawn::CHILD_INHERITS_STDIN | GLib::Spawn::SEARCH_PATH
372
+ )
373
+ notebook.add_tab(terminal, tab_title)
374
+ else
375
+ e 'The vte-terminal does not respond to spawn_sync().'
376
+ e 'Investigate again at a later time.'
377
+ end
378
+ end
379
+ end
380
+
381
+ # ========================================================================= #
382
+ # === activate_this_tab
383
+ #
384
+ # The input-argument starts at 1, which means "activate the
385
+ # first tab".
386
+ # ========================================================================= #
387
+ def activate_this_tab(i = 1)
388
+ notebook?.activate_this_tab(i.to_i - 1)
389
+ end
390
+
391
+ # ========================================================================= #
392
+ # === update_the_label_indicating_the_cursor_position
393
+ #
394
+ # This method may only display the given argument - it may not modify
395
+ # the argument.
396
+ # ========================================================================= #
397
+ def update_the_label_indicating_the_cursor_position(
398
+ i = text_buffer?.cursor_position?
399
+ )
400
+ @label_indicate_the_cursor_position.set_markify_text(
401
+ "Cursor position: <b>#{i}</b>"
402
+ )
403
+ end
404
+
405
+ # ========================================================================= #
406
+ # === return_current_notebook_tab
407
+ # ========================================================================= #
408
+ def return_current_notebook_tab(
409
+ notebook = notebook?
410
+ )
411
+ return notebook.get_nth_page(active_notebook_tab?)
412
+ end
413
+
414
+ # ========================================================================= #
415
+ # === current_textview?
416
+ # ========================================================================= #
417
+ def current_textview?
418
+ this_id = return_current_notebook_tab.object_id
419
+ hash = @hash_all_tab_widgets
420
+ if hash.has_key? this_id
421
+ pointer = hash[this_id]
422
+ return pointer[:text_view]
423
+ end
424
+ return nil
425
+ end; alias textview? current_textview? # === textview?
426
+ alias main_textview? current_textview? # === main_textview?
427
+
295
428
  # ========================================================================= #
296
429
  # === do_colourize_the_text_for_ruby_code
297
430
  #
@@ -406,75 +539,137 @@ class Editor < ::Gtk::Box # === Gtk::Editor
406
539
  current_buffer.append_markup(copy)
407
540
  }
408
541
  _iter_position = current_buffer.place_cursor_at_this_position(old_cursor_position)
542
+ # ======================================================================= #
543
+ # The next method call is experimental as of February 2022.
544
+ # ======================================================================= #
545
+ do_recalculate_the_number_of_lines
409
546
  grab_focus # And we place the cursor here.
410
547
  end; alias treat_the_buffer_as_a_ruby_file do_colourize_the_text_for_ruby_code # === treat_the_buffer_as_a_ruby_file
411
548
  alias do_colourize_the_text do_colourize_the_text_for_ruby_code # === do_colourize_the_text
412
549
  alias do_colourize_the_buffer do_colourize_the_text_for_ruby_code # === do_colourize_the_buffer
413
550
 
414
551
  # ========================================================================= #
415
- # === go_to_a_specific_line (goto tag)
552
+ # === do_recalculate_the_number_of_lines
416
553
  # ========================================================================= #
417
- def go_to_a_specific_line(
418
- go_to_this_line = 3
554
+ def do_recalculate_the_number_of_lines
555
+ _ = current_buffer?.text?
556
+ numbered_lines?.repopulate_towards(_.count("\n") + 1)
557
+ end
558
+
559
+ # ========================================================================= #
560
+ # === notebook?
561
+ # ========================================================================= #
562
+ def notebook?
563
+ @notebook
564
+ end
565
+
566
+ # ========================================================================= #
567
+ # === numbered_lines?
568
+ #
569
+ # This method will always return the correct numbered_lines widget.
570
+ # ========================================================================= #
571
+ def numbered_lines?(
572
+ hash = @hash_all_tab_widgets
419
573
  )
420
- go_to_this_line = go_to_this_line.to_i
421
- current_buffer = current_buffer?
422
- lines = current_buffer.text?.lines
423
- go_to_this_line -= 1 unless go_to_this_line < 1
424
- if go_to_this_line.size > lines.size
425
- go_to_this_line = lines.size
574
+ this_id = return_current_notebook_tab.object_id
575
+ if hash.has_key? this_id
576
+ pointer = hash[this_id]
577
+ return pointer[:numbered_lines]
426
578
  end
427
- # ======================================================================= #
428
- # We must calculate the true cursor position next. We do this by
429
- # calculating the number of lines via a method available in the
430
- # gtk_paradise gem.
431
- # ======================================================================= #
432
- real_cursor_position = Gtk.return_n_characters_up_to_array_position(go_to_this_line)
433
- current_buffer.place_cursor_at_this_position(
434
- real_cursor_position
435
- )
436
- do_place_the_cursor
437
- end; alias go_to_that_line go_to_a_specific_line # === go_to_that_line
579
+ return nil
580
+ end
438
581
 
439
582
  # ========================================================================= #
440
- # === dialog_for_go_to_a_specific_line
583
+ # === do_create_a_new_file_chooser_dialog (open tag, open file tag)
584
+ #
585
+ # This method is run when the user wants to open a local file.
441
586
  # ========================================================================= #
442
- def dialog_for_go_to_a_specific_line
443
- @goto_line_widget.show_all # Always show it when this is called.
444
- @goto_line_widget.runner_widget.show_all if @goto_line_widget.runner_widget
445
- # ======================================================================= #
446
- # We must re-sync onto the real buffer.
447
- # ======================================================================= #
448
- @goto_line_widget.connect_to_this_text_buffer(current_text_buffer?)
449
- # ======================================================================= #
450
- # The rest is only called if the goto-line widget hasn't been run yet.
451
- # ======================================================================= #
452
- unless @goto_line_widget.runner_widget?
453
- @goto_line_widget.set_parent_widget(self)
454
- r = ::Gtk.run
455
- r.title = 'Goto Line'
456
- r << @goto_line_widget
457
- r.automatic_size_then_automatic_title
458
- @goto_line_widget.set_runner_widget(r)
459
- r.top_left_then_run
587
+ def do_create_a_new_file_chooser_dialog(
588
+ i = main_file?.to_s
589
+ )
590
+ create_a_new_file_chooser_dialog(self) {{
591
+ start_dir: return_pwd,
592
+ show_hidden_files: :yes,
593
+ current_folder: ENV['MY_DATA'],
594
+ additional_directories: [
595
+ ENV['PC'],
596
+ ENV['MY_TEMP'],
597
+ ENV['RSRC'],
598
+ '/Depot/j/',
599
+ '/Depot/jj/',
600
+ '/Depot/jjj/',
601
+ '/Depot/jjjj/'
602
+ ]
603
+ }}
604
+ _ = ::Gtk.main_file?.to_s
605
+ if _ and File.exist?(_) and current_buffer?
606
+ hash = @hash_all_tab_widgets
607
+ this_id = return_current_notebook_tab.object_id
608
+ @entry_save_into_this_local_file.set_text(_) # Also sync it onto the file-path entry.
609
+ set_name_of_the_current_tab(File.basename(_))
610
+ dataset = File.read(_).to_s # Read in the file here.
611
+ current_buffer?.set_text(dataset)
612
+ n_newlines = dataset.count("\n")
613
+ numbered_lines?.repopulate_towards(n_newlines)
614
+
615
+ if hash.has_key? this_id
616
+ hash[this_id][:file_path] = _
617
+ end
618
+
619
+ # ===================================================================== #
620
+ # === Handle .rb files next and colourize them accordingly
621
+ # ===================================================================== #
622
+ if _.end_with? '.rb'
623
+ treat_the_buffer_as_a_ruby_file
624
+ end
625
+ update_the_label_showing_how_many_lines_are_in_the_current_buffer
460
626
  end
461
- end; alias go_to_that_line_after_asking_the_user dialog_for_go_to_a_specific_line # === go_to_that_line_after_asking_the_user
627
+ end; alias do_open_a_local_file do_create_a_new_file_chooser_dialog # === do_open_a_local_file
628
+ alias open_file do_create_a_new_file_chooser_dialog # === open_file
462
629
 
463
630
  # ========================================================================= #
464
- # === update_the_label_indicating_the_cursor_position
631
+ # === active_notebook_tab?
465
632
  #
466
- # This method may only display the given argument - it may not modify
467
- # the argument.
633
+ # This method will return the current notebook page.
468
634
  # ========================================================================= #
469
- def update_the_label_indicating_the_cursor_position(
470
- i = text_buffer?.cursor_position?
471
- )
472
- @label_indicate_the_cursor_position.set_text(
473
- "Cursor position: <b>#{i}</b>"
635
+ def active_notebook_tab?
636
+ @notebook.page
637
+ end
638
+
639
+ # ========================================================================= #
640
+ # === menu (menu tag)
641
+ # ========================================================================= #
642
+ def menu(
643
+ i = commandline_arguments?
474
644
  )
475
- @label_indicate_the_cursor_position.do_markify
645
+ if i.is_a? Array
646
+ i.each {|entry| menu(entry) }
647
+ else
648
+ # ===================================================================== #
649
+ # === Locally existing files
650
+ #
651
+ # Next add support for reading in the content of locally existing
652
+ # files. This requires of us to clear the old buffer content first.
653
+ # ===================================================================== #
654
+ if i and File.file?(i)
655
+ set_tab_title(File.basename(i))
656
+ content = File.read(i).to_s
657
+ # @notebook.first_tab?.set_text(content)
658
+ main_text_buffer?.set_text('') # Clear the old buffer.
659
+ set_buffer(content)
660
+ end
661
+ end
476
662
  end
477
663
 
664
+ # ========================================================================= #
665
+ # === set_name_of_the_current_tab
666
+ # ========================================================================= #
667
+ def set_name_of_the_current_tab(tab_label)
668
+ notebook?.set_tab_label_text(
669
+ return_current_notebook_tab, tab_label
670
+ )
671
+ end; alias set_tab_title set_name_of_the_current_tab # === set_tab_title
672
+
478
673
  # ========================================================================= #
479
674
  # === return_widget_containing_special_buttons
480
675
  # ========================================================================= #
@@ -488,6 +683,9 @@ class Editor < ::Gtk::Box # === Gtk::Editor
488
683
  # ===================================================================== #
489
684
  ruby_header = button('ruby_header')
490
685
  ruby_header.css_class('border_1px_steelblue')
686
+ ruby_header.hint = "This button will append:\n\n<b>"+
687
+ Roebe.return_ruby_header+
688
+ '</b>'
491
689
  ruby_header.on_clicked {
492
690
  current_text_buffer?.delete_the_selected_text
493
691
  current_text_buffer?.append_after_the_cursor(
@@ -495,13 +693,12 @@ class Editor < ::Gtk::Box # === Gtk::Editor
495
693
  )
496
694
  do_colourize_the_buffer
497
695
  }
498
- hbox.minimal(ruby_header, 1)
499
696
  # ===================================================================== #
500
697
  # === ruby_end
501
698
  # ===================================================================== #
502
699
  ruby_end = button('ruby_end')
503
700
  ruby_end.css_class('border_1px_steelblue')
504
- ruby_end.hint = 'This button will append <b>'+
701
+ ruby_end.hint = "This button will append:\n\n<b>"+
505
702
  Roebe.ruby_main_string+
506
703
  '</b>'
507
704
  ruby_end.on_clicked {
@@ -521,48 +718,98 @@ class Editor < ::Gtk::Box # === Gtk::Editor
521
718
  do_colourize_the_buffer
522
719
  end
523
720
  }
524
- hbox.minimal(ruby_end, 1)
721
+ # ===================================================================== #
722
+ # === ruby_class
723
+ # ===================================================================== #
724
+ ruby_class = button('ruby_class')
725
+ ruby_class.css_class('border_1px_steelblue')
726
+ ruby_class.hint = "This button will append some class definition.\n"
727
+ ruby_class.on_clicked {
728
+ _ = nil
729
+ current_text_buffer = current_text_buffer?
730
+ if current_text_buffer
731
+ # ================================================================= #
732
+ # Remove any old text.
733
+ # ================================================================= #
734
+ current_text_buffer.delete_the_selected_text
735
+ do_place_the_cursor
736
+ new_string = "\n# === Foobar\nclass Foobar\nend\n"
737
+ current_text_buffer.append_after_the_cursor(new_string)
738
+ do_colourize_the_buffer
739
+ end
740
+ }
741
+ # ===================================================================== #
742
+ # === ruby_initialize
743
+ # ===================================================================== #
744
+ ruby_initialize = button('ruby_initialize')
745
+ ruby_initialize.css_class('border_1px_steelblue')
746
+ ruby_initialize.hint = "This button will just append <b>def initialize</b>.\n"
747
+ ruby_initialize.on_clicked {
748
+ _ = nil
749
+ current_text_buffer = current_text_buffer?
750
+ if current_text_buffer
751
+ # ================================================================= #
752
+ # Remove any old text.
753
+ # ================================================================= #
754
+ current_text_buffer.delete_the_selected_text
755
+ do_place_the_cursor
756
+ new_string = "\n#{Roebe.default_comment_line}\n"\
757
+ "# === initialize\n"\
758
+ "#{Roebe.default_comment_line}\ndef initialize\nend\n"
759
+ current_text_buffer.append_after_the_cursor(new_string)
760
+ do_colourize_the_buffer
761
+ end
762
+ }
763
+ # ===================================================================== #
764
+ # === java_create_a_new_class
765
+ # ===================================================================== #
766
+ java_create_a_new_class = button('java_new_class')
767
+ java_create_a_new_class.css_class('border_1px_steelblue')
768
+ java_create_a_new_class.hint =
769
+ "This button will create a new Java class, in the main buffer.\n"
770
+ java_create_a_new_class.on_clicked {
771
+ current_text_buffer = current_text_buffer?
772
+ if current_text_buffer
773
+ # ================================================================= #
774
+ # Remove any old text.
775
+ # ================================================================= #
776
+ current_text_buffer.delete_the_selected_text
777
+ do_place_the_cursor
778
+ new_string = Roebe::Mbl.return_java_string_for_this_class_name('Foobar')
779
+ current_text_buffer.append_after_the_cursor(new_string)
780
+ do_colourize_the_buffer
781
+ end
782
+ }
783
+ vbox1 = vbox
784
+ vbox1.minimal(ruby_header, 1)
785
+ vbox1.minimal(ruby_end, 1)
786
+ vbox1.minimal(ruby_class, 1)
787
+ vbox1.minimal(ruby_initialize, 1)
788
+ vbox1.minimal(java_create_a_new_class, 1)
789
+ scrolling_widget = scrolling_for(vbox1) { :always_up_and_down }
790
+ hbox.minimal(scrolling_widget, 2)
525
791
  hbox.minimal(@entry_for_comments, 1)
792
+ # hbox.css_class('BG_Black') # If you want a background colour, use this one here.
526
793
  rescue LoadError; end
527
794
  return hbox
528
795
  end
529
796
 
530
797
  # ========================================================================= #
531
- # === grab_focus
798
+ # === update_the_label_showing_how_many_lines_are_in_the_current_buffer
532
799
  # ========================================================================= #
533
- def grab_focus(
534
- text_view = main_textview?
800
+ def update_the_label_showing_how_many_lines_are_in_the_current_buffer(
801
+ text_to_display =
802
+ buffer_content?
535
803
  )
536
- text_view.grab_focus
537
- end; alias activate_cursor grab_focus # === activate_cursor
538
- alias do_place_the_cursor grab_focus # === do_place_the_cursor
539
-
540
- # ========================================================================= #
541
- # === consider_adding_a_vte_terminal_to_this_notebook
542
- # ========================================================================= #
543
- def consider_adding_a_vte_terminal_to_this_notebook(
544
- notebook, tab_title = '3'
545
- )
546
- begin
547
- require 'vte3'
548
- rescue LoadError; end
549
- if Object.const_defined? :Vte
550
- # ===================================================================== #
551
- # Add a tab for VTE specifically.
552
- # ===================================================================== #
553
- terminal = Vte::Terminal.new
554
- if terminal.respond_to? :use_this_font=
555
- terminal.use_this_font = smallest_font?
804
+ if @label_n_lines_in_the_file and text_to_display
805
+ if text_to_display.respond_to? :text?
806
+ text_to_display = text_to_display.text?
556
807
  end
557
- _succeeded, _pid = terminal.spawn_sync(
558
- ::Vte::PtyFlags::DEFAULT,
559
- Dir.pwd,
560
- [ENV['SHELL'] || '/bin/sh'],
561
- nil,
562
- GLib::Spawn::CHILD_INHERITS_STDIN | GLib::Spawn::SEARCH_PATH
563
- )
564
- notebook.add_tab(terminal, tab_title)
808
+ @label_n_lines_in_the_file.set_markify_text(
809
+ '<b>'+text_to_display.to_s+'</b> lines'
810
+ )
565
811
  end
566
- end
812
+ end; alias update_n_lines update_the_label_showing_how_many_lines_are_in_the_current_buffer # === update_n_lines
813
+ alias update_the_label_displaying_how_many_lines_are_in_the_given_file update_the_label_showing_how_many_lines_are_in_the_current_buffer # === update_the_label_displaying_how_many_lines_are_in_the_given_file
567
814
 
568
815
  end; end
@@ -13,14 +13,8 @@ module Gtk
13
13
 
14
14
  class FilesInDirectory < ::Gtk::Box # === Gtk::FilesInDirectory
15
15
 
16
- require 'gtk_paradise/requires/require_the_base_module.rb'
17
16
  include ::Gtk::BaseModule
18
17
 
19
- # ========================================================================= #
20
- # === NAMESPACE
21
- # ========================================================================= #
22
- NAMESPACE = inspect
23
-
24
18
  # ========================================================================= #
25
19
  # === TITLE
26
20
  # ========================================================================= #
@@ -66,10 +60,11 @@ class FilesInDirectory < ::Gtk::Box # === Gtk::FilesInDirectory
66
60
  # ========================================================================= #
67
61
  def reset
68
62
  reset_the_internal_variables
63
+ infer_the_namespace
69
64
  # ======================================================================= #
70
65
  # === @configuration
71
66
  # ======================================================================= #
72
- @configuration = [true, __dir__, NAMESPACE]
67
+ @configuration = [true, __dir__, namespace?]
73
68
  # ======================================================================= #
74
69
  # === @title
75
70
  # ======================================================================= #
@@ -19,11 +19,6 @@ class FlexibleVte < ::Gtk::Box
19
19
  require 'gtk_paradise/requires/require_the_base_module.rb'
20
20
  include ::Gtk::BaseModule
21
21
 
22
- # ========================================================================= #
23
- # === NAMESPACE
24
- # ========================================================================= #
25
- NAMESPACE = inspect
26
-
27
22
  # ========================================================================= #
28
23
  # === TITLE
29
24
  # ========================================================================= #
@@ -75,14 +70,15 @@ class FlexibleVte < ::Gtk::Box
75
70
  # ========================================================================= #
76
71
  def reset
77
72
  reset_the_internal_variables
73
+ infer_the_namespace
78
74
  # ======================================================================= #
79
75
  # === @configuration
80
76
  # ======================================================================= #
81
- @configuration = [true, __dir__, NAMESPACE]
77
+ @configuration = [true, __dir__, namespace?]
82
78
  # ======================================================================= #
83
79
  # === @title
84
80
  # ======================================================================= #
85
- @title = TITLE
81
+ set_title(TITLE)
86
82
  # ======================================================================= #
87
83
  # === @width
88
84
  # ======================================================================= #
@@ -20,11 +20,6 @@ class ActionButton < ::Gtk::Button # === Gtk::FontSizeWidget::ActionButton
20
20
  require 'gtk_paradise/requires/require_the_base_module.rb'
21
21
  include ::Gtk::BaseModule
22
22
 
23
- # ========================================================================= #
24
- # === NAMESPACE
25
- # ========================================================================= #
26
- NAMESPACE = inspect
27
-
28
23
  # ========================================================================= #
29
24
  # === initialize
30
25
  # ========================================================================= #
@@ -44,6 +39,7 @@ class ActionButton < ::Gtk::Button # === Gtk::FontSizeWidget::ActionButton
44
39
  # === reset (reset tag)
45
40
  # ========================================================================= #
46
41
  def reset
42
+ infer_the_namespace
47
43
  # ======================================================================= #
48
44
  # === @text_displayed_on_the_button
49
45
  # ======================================================================= #