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.
- checksums.yaml +4 -4
- data/README.md +4521 -2997
- data/bin/genity +26 -0
- data/bin/gtk_editor +7 -0
- data/doc/README.gen +4484 -2975
- data/doc/todo/TODO_FOR_THE_GTK_PARADISE_PROJECT.md +281 -218
- data/doc/todo/recurring_todo_tasks.md +4 -3
- data/gtk_paradise.gemspec +28 -17
- data/lib/gtk_paradise/app/app.rb +77 -45
- data/lib/gtk_paradise/app/{app_module.rb → app_module/app_module.rb} +1064 -899
- data/lib/gtk_paradise/base_module/base_module.rb +7043 -33
- data/lib/gtk_paradise/base_module/class_methods/class_methods.rb +0 -0
- data/lib/gtk_paradise/base_module/css.rb +200 -268
- data/lib/gtk_paradise/base_module/experimental.rb +119 -0
- data/lib/gtk_paradise/base_module/html_support.rb +40 -15
- data/lib/gtk_paradise/base_module/these_methods_work_for_gtk3_and_gtk4.rb +155 -0
- data/lib/gtk_paradise/base_module_and_app_module/base_module_and_app_module.rb +1 -1
- data/lib/gtk_paradise/colours/colour_palette/material_design.rb +239 -0
- data/lib/gtk_paradise/colours/gtk_colour_constants.rb +8 -2
- data/lib/gtk_paradise/colours/parse.rb +8 -1
- data/lib/gtk_paradise/commandline/commandline.rb +20 -19
- data/lib/gtk_paradise/constants/constants.rb +227 -7
- data/lib/gtk_paradise/css_files/borders.css +81 -0
- data/lib/gtk_paradise/css_files/colours.css +329 -328
- data/lib/gtk_paradise/css_files/css_accordion.css +6 -2
- data/lib/gtk_paradise/css_files/hover_effects.css +588 -0
- data/lib/gtk_paradise/css_files/project.css +153 -189
- data/lib/gtk_paradise/drawing/README.md +3 -0
- data/lib/gtk_paradise/drawing/drawing.rb +68 -0
- data/lib/gtk_paradise/{base_module/colours.rb → drawing/event.rb} +37 -45
- data/lib/gtk_paradise/drawing/star.rb +96 -0
- data/lib/gtk_paradise/drawing/tool.rb +268 -0
- data/lib/gtk_paradise/drawing/turtle.rb +138 -0
- data/lib/gtk_paradise/emojis/emojis.rb +14 -13
- data/lib/gtk_paradise/examples/advanced/001_5x5_grid_example.rb +35 -50
- data/lib/gtk_paradise/examples/advanced/002_advanced_drag_and_drop_example.rb +21 -13
- data/lib/gtk_paradise/examples/advanced/003_html_like_support.rb +4 -25
- data/lib/gtk_paradise/examples/advanced/004_on_hover_example_on_gtk_entry.rb +4 -4
- data/lib/gtk_paradise/examples/advanced/005_csv_example.rb +6 -2
- data/lib/gtk_paradise/examples/advanced/007_label_responding_to_events_example.rb +1 -10
- data/lib/gtk_paradise/examples/advanced/008_options_example.rb +6 -3
- data/lib/gtk_paradise/examples/advanced/009_key_events.rb +1 -1
- data/lib/gtk_paradise/examples/advanced/010_extensive_text_view_example.rb +18 -17
- data/lib/gtk_paradise/examples/advanced/011_moving_blocks_example.rb +3 -3
- data/lib/gtk_paradise/examples/advanced/012_cell_data_sorting_example.rb +3 -4
- data/lib/gtk_paradise/examples/advanced/013_advanced_css_example.rb +86 -49
- data/lib/gtk_paradise/examples/advanced/014_popup_example.rb +9 -9
- data/lib/gtk_paradise/examples/advanced/015_advanced_button_example.rb +7 -19
- data/lib/gtk_paradise/examples/advanced/017_lean_CSS_example.rb +10 -13
- data/lib/gtk_paradise/examples/advanced/018_coloured_text_example.rb +7 -13
- data/lib/gtk_paradise/examples/advanced/019_gtk_entry_showing_the_cursor_position.rb +1 -1
- data/lib/gtk_paradise/examples/advanced/020_scale_this_image.rb +1 -10
- data/lib/gtk_paradise/examples/advanced/021_scroll_events_on_gtk_entry.rb +4 -0
- data/lib/gtk_paradise/examples/advanced/022_autogenerated_CSS_rounded_borders.rb +142 -0
- data/lib/gtk_paradise/examples/advanced/023_append_image_to_buffer.rb +145 -0
- data/lib/gtk_paradise/examples/advanced/024_notebook_with_tab_example.rb +151 -0
- data/lib/gtk_paradise/examples/advanced/025_showing_a_gold_caret_on_black_background.rb +144 -0
- data/lib/gtk_paradise/examples/advanced/026_status_bar_example.rb +153 -0
- data/lib/gtk_paradise/examples/advanced/027_customized_frame_example.rb +141 -0
- data/lib/gtk_paradise/examples/advanced/028_widgets_described_in_a_yaml_file.rb +240 -0
- data/lib/gtk_paradise/examples/cairo/basic_cairo_shapes.rb +1 -1
- data/lib/gtk_paradise/examples/cairo/cairo_transparent_rectangles.rb +9 -5
- data/lib/gtk_paradise/examples/cairo/cairo_write_via_custom_font.rb +81 -0
- data/lib/gtk_paradise/examples/cairo/donut_shape.rb +19 -6
- data/lib/gtk_paradise/examples/cairo/ping_pong_game.rb +2 -3
- data/lib/gtk_paradise/examples/controller/README.md +4 -0
- data/lib/gtk_paradise/examples/controller/controller.rb +2 -0
- data/lib/gtk_paradise/examples/css/001_border_examples.rb +30 -13
- data/lib/gtk_paradise/examples/css/002_import_CSS_file.rb +10 -5
- data/lib/gtk_paradise/examples/drawing/001_example.rb +61 -0
- data/lib/gtk_paradise/examples/drawing/002_example.rb +51 -0
- data/lib/gtk_paradise/examples/drawing/003_example.rb +38 -0
- data/lib/gtk_paradise/examples/drawing/004_example.rb +36 -0
- data/lib/gtk_paradise/examples/drawing/005_example.rb +92 -0
- data/lib/gtk_paradise/examples/drawing/006_example.rb +58 -0
- data/lib/gtk_paradise/examples/drawing/007_example.rb +22 -0
- data/lib/gtk_paradise/examples/drawing/008_example.rb +43 -0
- data/lib/gtk_paradise/examples/drawing/009_example.rb +43 -0
- data/lib/gtk_paradise/examples/drawing/010_example.rb +25 -0
- data/lib/gtk_paradise/examples/drawing/011_example.rb +72 -0
- data/lib/gtk_paradise/examples/drawing/012_example.rb +59 -0
- data/lib/gtk_paradise/examples/drawing/README.md +3 -0
- data/lib/gtk_paradise/examples/drawing/moving_turtle_example.rb +43 -0
- data/lib/gtk_paradise/examples/gdk/001_gdk_screen_properties.rb +58 -0
- data/lib/gtk_paradise/examples/gdk_pixbuf/save_image_example.rb +1 -1
- data/lib/gtk_paradise/examples/gir_ffi/001_hello_world.rb +29 -0
- data/lib/gtk_paradise/examples/gir_ffi/002_upgraded_hello_world.rb +40 -0
- data/lib/gtk_paradise/examples/gir_ffi/003_gtk_application_example.rb +30 -0
- data/lib/gtk_paradise/examples/gir_ffi/004_treeview_example.rb +64 -0
- data/lib/gtk_paradise/examples/gir_ffi/005_complex_example.rb +104 -0
- data/lib/gtk_paradise/examples/gir_ffi/README.md +5 -0
- data/lib/gtk_paradise/examples/glib/parse_glib_settings.rb +1 -1
- data/lib/gtk_paradise/examples/gtk2/008_list_store_example.rb +1 -1
- data/lib/gtk_paradise/examples/gtk3/{061_gtk_entry.rb → 001_gtk_entry.rb} +11 -6
- data/lib/gtk_paradise/examples/gtk3/{009_scrolled_window_example.rb → 002_scrolled_window_example.rb} +6 -4
- data/lib/gtk_paradise/examples/gtk3/{062_toggle_button_example.rb → 003_toggle_button_example.rb} +3 -2
- data/lib/gtk_paradise/examples/gtk3/{081_simple_dialog_example.rb → 004_simple_dialog_example.rb} +19 -12
- data/lib/gtk_paradise/examples/gtk3/005_spinner_example.rb +30 -10
- data/lib/gtk_paradise/examples/gtk3/006_text_view_example.rb +78 -0
- data/lib/gtk_paradise/examples/gtk3/{079_two_windows_example.rb → 007_two_windows_example.rb} +3 -1
- data/lib/gtk_paradise/examples/gtk3/008_search_bar_example.rb +91 -0
- data/lib/gtk_paradise/examples/gtk3/{002_simple_window.rb → 009_simple_window.rb} +14 -6
- data/lib/gtk_paradise/examples/gtk3/{025_switch_example.rb → 010_switch_example.rb} +6 -7
- data/lib/gtk_paradise/examples/gtk3/011_colour_chooser_example.rb +71 -0
- data/lib/gtk_paradise/examples/gtk3/012_show_the_xid_example.rb +18 -0
- data/lib/gtk_paradise/examples/gtk3/013_grab_pointer_forcefully.rb +31 -0
- data/lib/gtk_paradise/examples/gtk3/{083_bottom_left_placement.rb → 015_bottom_left_placement.rb} +3 -1
- data/lib/gtk_paradise/examples/gtk3/{082_scrolling_example.rb → 016_scrolling_example.rb} +2 -2
- data/lib/gtk_paradise/examples/gtk3/{080_extensive_markup_example.rb → 017_extensive_markup_example.rb} +8 -7
- data/lib/gtk_paradise/examples/gtk3/{078_message_dialog_example.rb → 018_message_dialog_example.rb} +3 -5
- data/lib/gtk_paradise/examples/gtk3/{075_tiny_button_via_css.rb → 021_tiny_button_via_css.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/{001_font_related_information.rb → 022_font_related_information.rb} +1 -1
- data/lib/gtk_paradise/examples/gtk3/023_sorted_tree.rb +166 -0
- data/lib/gtk_paradise/examples/gtk3/{004_small_paned_example.rb → 024_small_paned_example.rb} +4 -3
- data/lib/gtk_paradise/examples/gtk3/{007_progress_bar_example.rb → 026_progress_bar_example.rb} +1 -2
- data/lib/gtk_paradise/examples/gtk3/{008_menubar_example.rb → 027_menubar_example.rb} +1 -1
- data/lib/gtk_paradise/examples/gtk3/{010_paned_widget_example.rb → 028_paned_widget_example.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/{011_sockets.rb → 029_sockets.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/{012_notebook_example.rb → 030_notebook_example.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/{013_icon_theme_example.rb → 031_icon_theme_example.rb} +6 -0
- data/lib/gtk_paradise/examples/gtk3/{014_switcher_window.rb → 032_switcher_window.rb} +16 -10
- 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
- data/lib/gtk_paradise/examples/gtk3/{017_grid_example.rb → 035_grid_example.rb} +5 -1
- data/lib/gtk_paradise/examples/gtk3/{018_buttons_showcasing_the_relief.rb → 036_buttons_showcasing_the_relief.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/{019_text_buffer_example.rb → 037_text_buffer_example.rb} +12 -10
- data/lib/gtk_paradise/examples/gtk3/{022_popup_example.rb → 040_popup_example.rb} +2 -2
- data/lib/gtk_paradise/examples/gtk3/{023_horizontal_and_vertical_scale.rb → 041_horizontal_and_vertical_scale.rb} +1 -1
- data/lib/gtk_paradise/examples/gtk3/{026_hover_button_example_via_css.rb → 043_hover_button_example_via_css.rb} +3 -1
- data/lib/gtk_paradise/examples/gtk3/{027_spin_button_example.rb → 044_spin_button_example.rb} +4 -3
- data/lib/gtk_paradise/examples/gtk3/{028_radio_menu_item_example.rb → 045_radio_menu_item_example.rb} +4 -1
- data/lib/gtk_paradise/examples/gtk3/{029_gtk_dialog_sample.rb → 046_gtk_dialog_sample.rb} +4 -1
- data/lib/gtk_paradise/examples/gtk3/{030_draw_rectangles.rb → 047_draw_rectangles.rb} +1 -1
- data/lib/gtk_paradise/examples/gtk3/{031_colour_choose_button.rb → 048_colour_choose_button.rb} +17 -3
- data/lib/gtk_paradise/examples/gtk3/{032_drag_and_drop_example.rb → 049_drag_and_drop_example.rb} +13 -5
- data/lib/gtk_paradise/examples/gtk3/{033_cell_renderer_pixbuf_example.rb → 050_cell_renderer_pixbuf_example.rb} +17 -6
- data/lib/gtk_paradise/examples/gtk3/051_combo_box_example.rb +74 -0
- 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
- data/lib/gtk_paradise/examples/gtk3/{036_revealer_example.rb → 053_revealer_example.rb} +10 -6
- 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
- data/lib/gtk_paradise/examples/gtk3/{039_threads_example.rb → 055_threads_example.rb} +1 -1
- data/lib/gtk_paradise/examples/gtk3/{042_colourized_button_example.rb → 058_colourized_button_example.rb} +1 -2
- data/lib/gtk_paradise/examples/gtk3/{043_form_example.rb → 059_form_example.rb} +1 -3
- data/lib/gtk_paradise/examples/gtk3/{044_check_button.rb → 060_check_button.rb} +4 -2
- data/lib/gtk_paradise/examples/gtk3/{046_event_box_example.rb → 062_event_box_example.rb} +2 -1
- data/lib/gtk_paradise/examples/gtk3/{047_examples_with_css.rb → 063_examples_with_css.rb} +91 -3
- data/lib/gtk_paradise/examples/gtk3/{048_accel_group_example.rb → 064_accel_group_example.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/{049_change_the_application_theme.rb → 065_change_the_application_theme.rb} +4 -2
- data/lib/gtk_paradise/examples/gtk3/{050_header_bar_example.rb → 066_header_bar_example.rb} +3 -0
- data/lib/gtk_paradise/examples/gtk3/{051_gtk_label_example.rb → 067_gtk_label_example.rb} +3 -2
- data/lib/gtk_paradise/examples/gtk3/{052_popover_example.rb → 068_popover_example.rb} +2 -2
- data/lib/gtk_paradise/examples/gtk3/{053_entry_completion.rb → 069_entry_completion.rb} +2 -0
- data/lib/gtk_paradise/examples/gtk3/{055_button_demo.rb → 071_button_demo.rb} +6 -5
- data/lib/gtk_paradise/examples/gtk3/{056_text_iterator_example.rb → 072_text_iterator_example.rb} +30 -21
- data/lib/gtk_paradise/examples/gtk3/{057_image_example.rb → 073_image_example.rb} +1 -1
- data/lib/gtk_paradise/examples/gtk3/{058_frame_example.rb → 074_frame_example.rb} +1 -1
- data/lib/gtk_paradise/examples/gtk3/{059_gtk_expander.rb → 075_gtk_expander.rb} +2 -0
- data/lib/gtk_paradise/examples/gtk3/{060_ten_vboxes_example.rb → 076_ten_vboxes_example.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/{063_button_box_example.rb → 077_button_box_example.rb} +11 -1
- data/lib/gtk_paradise/examples/gtk3/{064_tree_view_column_example.rb → 078_tree_view_column_example.rb} +2 -1
- data/lib/gtk_paradise/examples/gtk3/{066_vertical_boxes.rb → 080_vertical_boxes.rb} +2 -1
- data/lib/gtk_paradise/examples/gtk3/{067_vbox_with_spacing_and_border_width.rb → 081_vbox_with_spacing_and_border_width.rb} +2 -1
- data/lib/gtk_paradise/examples/gtk3/{069_file_chooser_dialog.rb → 082_file_chooser_dialog.rb} +3 -0
- data/lib/gtk_paradise/examples/gtk3/{070_bindings.rb → 083_bindings.rb} +14 -8
- data/lib/gtk_paradise/examples/gtk3/{072_recent_chooser_dialog.rb → 084_recent_chooser_dialog.rb} +2 -2
- data/lib/gtk_paradise/examples/gtk3/{073_showcase_the_cursors.rb → 085_showcase_the_cursors.rb} +30 -5
- data/lib/gtk_paradise/examples/gtk3/{074_app_chooser_button_example.rb → 086_app_chooser_button_example.rb} +1 -0
- data/lib/gtk_paradise/examples/gtk3/087_calendar_example.rb +41 -0
- data/lib/gtk_paradise/examples/gtk4/001_gtk_entry.rb +88 -0
- data/lib/gtk_paradise/examples/gtk4/002_scrolled_window_example.rb +62 -0
- data/lib/gtk_paradise/examples/gtk4/003_toggle_button_example.rb +23 -0
- data/lib/gtk_paradise/examples/gtk4/004_simple_dialog_example.rb +41 -0
- data/lib/gtk_paradise/examples/gtk4/005_spinner_example.rb +64 -0
- data/lib/gtk_paradise/examples/gtk4/006_text_view_example.rb +77 -0
- data/lib/gtk_paradise/examples/gtk4/007_two_windows_example.rb +55 -0
- data/lib/gtk_paradise/examples/gtk4/008_search_bar_example.rb +88 -0
- data/lib/gtk_paradise/examples/gtk4/009_text_view_example.rb +30 -0
- data/lib/gtk_paradise/examples/gtk4/010_switch_example.rb +52 -0
- data/lib/gtk_paradise/examples/gtk4/074_frame_example.rb +105 -0
- data/lib/gtk_paradise/examples/gtk4/076_ten_vboxes_example.rb +35 -0
- data/lib/gtk_paradise/examples/gtk4/087_calendar_example.rb +47 -0
- data/lib/gtk_paradise/examples/gtk4/100_changed_events_example.rb +77 -0
- data/lib/gtk_paradise/examples/gtk4/101_actionbar_example.rb +55 -0
- data/lib/gtk_paradise/examples/gtk4/102_picture_example.rb +35 -0
- data/lib/gtk_paradise/examples/pango/pango_power.rb +1 -0
- data/lib/gtk_paradise/experimental/experimental.rb +3 -11
- data/lib/gtk_paradise/experimental/experimental_for_gtk4.rb +92 -0
- data/lib/gtk_paradise/fonts/fonts.rb +5 -1
- data/lib/gtk_paradise/gdk/cursor.rb +2 -2
- data/lib/gtk_paradise/{base_module/e.rb → gdk/event_crossing.rb} +6 -8
- data/lib/gtk_paradise/gdk/gdk.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/about.rb +11 -2
- data/lib/gtk_paradise/gtk_classes/about_dialog.rb +6 -2
- data/lib/gtk_paradise/gtk_classes/alignment.rb +4 -1
- data/lib/gtk_paradise/gtk_classes/application.rb +94 -4
- data/lib/gtk_paradise/gtk_classes/application_window.rb +25 -0
- data/lib/gtk_paradise/gtk_classes/box.rb +116 -279
- data/lib/gtk_paradise/gtk_classes/button.rb +55 -37
- data/lib/gtk_paradise/gtk_classes/button_box.rb +9 -1
- data/lib/gtk_paradise/gtk_classes/cell_renderer_text.rb +5 -3
- data/lib/gtk_paradise/gtk_classes/check_button.rb +27 -8
- data/lib/gtk_paradise/gtk_classes/combo_box.rb +4 -1
- data/lib/gtk_paradise/gtk_classes/combo_box_entry.rb +17 -11
- data/lib/gtk_paradise/gtk_classes/combo_box_text.rb +21 -19
- data/lib/gtk_paradise/gtk_classes/dialog.rb +2 -2
- data/lib/gtk_paradise/gtk_classes/entry.rb +256 -124
- data/lib/gtk_paradise/gtk_classes/entry_completion.rb +4 -0
- data/lib/gtk_paradise/gtk_classes/event_box.rb +21 -2
- data/lib/gtk_paradise/gtk_classes/event_button.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/expander.rb +8 -1
- data/lib/gtk_paradise/gtk_classes/file_chooser_dialog.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/file_filter.rb +4 -2
- data/lib/gtk_paradise/gtk_classes/file_selection.rb +4 -3
- data/lib/gtk_paradise/gtk_classes/frame.rb +19 -1
- data/lib/gtk_paradise/gtk_classes/grid.rb +206 -160
- data/lib/gtk_paradise/gtk_classes/hbox.rb +145 -0
- data/lib/gtk_paradise/gtk_classes/header_bar.rb +19 -8
- data/lib/gtk_paradise/gtk_classes/image.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/label.rb +174 -135
- data/lib/gtk_paradise/gtk_classes/menu.rb +7 -3
- data/lib/gtk_paradise/gtk_classes/menu_bar.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/menu_item.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/notebook.rb +114 -64
- data/lib/gtk_paradise/gtk_classes/paned.rb +52 -0
- data/lib/gtk_paradise/gtk_classes/radio_menu_item.rb +19 -1
- data/lib/gtk_paradise/gtk_classes/scale_button.rb +16 -1
- data/lib/gtk_paradise/gtk_classes/scrolled_window.rb +8 -6
- data/lib/gtk_paradise/gtk_classes/search_bar.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/source_buffer.rb +4 -5
- data/lib/gtk_paradise/gtk_classes/spin_button.rb +9 -1
- data/lib/gtk_paradise/gtk_classes/spinner.rb +32 -2
- data/lib/gtk_paradise/gtk_classes/status_icon.rb +2 -0
- data/lib/gtk_paradise/gtk_classes/statusbar.rb +1 -0
- data/lib/gtk_paradise/gtk_classes/style_context.rb +71 -0
- data/lib/gtk_paradise/gtk_classes/text_buffer.rb +45 -19
- data/lib/gtk_paradise/gtk_classes/text_view.rb +20 -3
- data/lib/gtk_paradise/gtk_classes/toggle_button.rb +3 -0
- data/lib/gtk_paradise/gtk_classes/toolbar.rb +2 -2
- data/lib/gtk_paradise/gtk_classes/tree_iter.rb +1 -1
- data/lib/gtk_paradise/gtk_classes/tree_view.rb +93 -70
- data/lib/gtk_paradise/gtk_classes/tree_view_column.rb +2 -1
- data/lib/gtk_paradise/gtk_classes/vbox.rb +71 -10
- data/lib/gtk_paradise/gtk_classes/vscale.rb +2 -2
- data/lib/gtk_paradise/gtk_classes/widget.rb +1057 -590
- data/lib/gtk_paradise/gtk_classes/window.rb +37 -2
- data/lib/gtk_paradise/hello_world/README.md +1 -1
- data/lib/gtk_paradise/hello_world/hello_world_gtk4.rb +20 -0
- data/lib/gtk_paradise/images/icons/close_image.png +0 -0
- data/lib/gtk_paradise/images/icons/closed.png +0 -0
- data/lib/gtk_paradise/images/icons/directory.png +0 -0
- data/lib/gtk_paradise/images/icons/icon_cool.gif +0 -0
- data/lib/gtk_paradise/images/icons/icon_lol.gif +0 -0
- data/lib/gtk_paradise/images/icons/icon_smile.gif +0 -0
- data/lib/gtk_paradise/images/icons/opened.png +0 -0
- data/lib/gtk_paradise/images/internal/gtk_label_example.png +0 -0
- data/lib/gtk_paradise/images/misc/wiki_logo.png +0 -0
- data/lib/gtk_paradise/images/small/GREEN_CIRCLE.png +0 -0
- data/lib/gtk_paradise/images/small/README.md +2 -0
- data/lib/gtk_paradise/images/small/RED_CIRCLE.png +0 -0
- data/lib/gtk_paradise/pango/{pango_fonts.rb → fonts.rb} +2 -2
- data/lib/gtk_paradise/pango/{pango.rb → layout.rb} +1 -1
- data/lib/gtk_paradise/pango/pango_renderer.rb +9 -2
- data/lib/gtk_paradise/project/project.rb +4 -3
- data/lib/gtk_paradise/prototypes/README.md +8 -0
- data/lib/gtk_paradise/prototypes/gtk3_standalone.rb +8 -21
- data/lib/gtk_paradise/prototypes/gtk4_standalone.rb +135 -0
- data/lib/gtk_paradise/prototypes/shared_code.rb +5 -15
- data/lib/gtk_paradise/prototypes/unified_gtk_prototype.rb +179 -0
- data/lib/gtk_paradise/require_gtk4.rb +7 -0
- data/lib/gtk_paradise/requires/require_base_module.rb +7 -0
- data/lib/gtk_paradise/requires/require_files_irrespective_of_the_gtk_version_at_hand.rb +25 -16
- data/lib/gtk_paradise/requires/require_gtk2.rb +6 -4
- data/lib/gtk_paradise/requires/{require_gtk2_or_gtk3.rb → require_gtk2_or_gtk3_or_gtk4.rb} +33 -12
- data/lib/gtk_paradise/requires/require_gtk3.rb +5 -20
- data/lib/gtk_paradise/requires/require_gtk4.rb +13 -0
- data/lib/gtk_paradise/requires/require_gtk_runner.rb +1 -0
- data/lib/gtk_paradise/requires/require_the_base_module_and_gtk_run.rb +1 -1
- data/lib/gtk_paradise/requires/require_the_base_module_the_app_module_and_the_toplevel_methods.rb +9 -0
- data/lib/gtk_paradise/requires/require_the_classes_files_for_gtk4.rb +11 -0
- data/lib/gtk_paradise/requires/require_the_colours_gem.rb +9 -0
- data/lib/gtk_paradise/requires/require_the_default_gtk_version.rb +4 -2
- data/lib/gtk_paradise/requires/require_the_toplevel_methods.rb +1 -1
- data/lib/gtk_paradise/run.rb +1 -0
- data/lib/gtk_paradise/run_this_widget/run_this_widget.rb +7 -3
- data/lib/gtk_paradise/threads/threads.rb +15 -10
- data/lib/gtk_paradise/toplevel_methods/css.rb +183 -35
- data/lib/gtk_paradise/toplevel_methods/cursor.rb +17 -3
- data/lib/gtk_paradise/toplevel_methods/determine_which_gtk_version_is_in_use.rb +90 -8
- data/lib/gtk_paradise/toplevel_methods/events.rb +6 -0
- data/lib/gtk_paradise/toplevel_methods/keys.rb +1 -1
- data/lib/gtk_paradise/toplevel_methods/screen_resolution.rb +32 -5
- data/lib/gtk_paradise/toplevel_methods/text_buffer_tags.rb +13 -4
- data/lib/gtk_paradise/toplevel_methods/tokenizer.rb +18 -3
- data/lib/gtk_paradise/toplevel_methods/{misc.rb → toplevel_methods.rb} +728 -181
- data/lib/gtk_paradise/utility_scripts/commandline_to_automatic_gui.rb +244 -0
- data/lib/gtk_paradise/version/version.rb +2 -2
- data/lib/gtk_paradise/widgets/gtk2/cat_merge.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk2/cell_renderer_progress_example.rb +0 -5
- data/lib/gtk_paradise/widgets/gtk2/foto_lister.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk2/gidnight_commander/gidnight_commander.rb +3 -3
- data/lib/gtk_paradise/widgets/gtk2/hbox_example.rb +1 -5
- data/lib/gtk_paradise/widgets/gtk2/multiple_select_in_a_tree_view_widget.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk2/paned_example.rb +1 -1
- data/lib/gtk_paradise/widgets/gtk2/slider_changing_button.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk2/status_icon_example.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk2/table2.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk2/toolbar_example.rb +2 -6
- data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/audio_button}/audio_button.rb +15 -26
- data/lib/gtk_paradise/widgets/gtk3/burn_this_iso_file/burn_this_iso_file.rb +2 -6
- data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/button_open_remote_webpage}/button_open_remote_webpage.rb +105 -50
- data/lib/gtk_paradise/widgets/gtk3/button_with_border/button_with_border.rb +155 -0
- data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/button_xorg_buffer}/button_xorg_buffer.rb +76 -18
- data/lib/gtk_paradise/widgets/gtk3/calculator/calculator.rb +183 -76
- data/lib/gtk_paradise/widgets/gtk3/checkbox_image/checkbox_image.rb +3 -7
- data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/coloured_button}/coloured_button.rb +94 -24
- data/lib/gtk_paradise/widgets/gtk3/coloured_square/coloured_square.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk3/coloured_unit/coloured_unit.rb +151 -0
- data/lib/gtk_paradise/widgets/gtk3/cpu_widget/cpu_widget.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk3/directory_content_widget/directory_content_widget.rb +937 -7
- data/lib/gtk_paradise/widgets/gtk3/editor/connect_skeleton.rb +33 -38
- data/lib/gtk_paradise/widgets/gtk3/editor/create.rb +66 -41
- data/lib/gtk_paradise/widgets/gtk3/editor/editor.rb +256 -270
- data/lib/gtk_paradise/widgets/gtk3/editor/internal_widgets/goto_line_widget.rb +52 -65
- data/lib/gtk_paradise/widgets/gtk3/editor/misc.rb +358 -111
- data/lib/gtk_paradise/widgets/gtk3/files_in_directory/files_in_directory.rb +2 -7
- data/lib/gtk_paradise/widgets/gtk3/flexible_vte/flexible_vte.rb +3 -7
- data/lib/gtk_paradise/widgets/gtk3/font_size_widget/action_button.rb +1 -5
- data/lib/gtk_paradise/widgets/gtk3/font_size_widget/font_size_widget.rb +2 -6
- data/lib/gtk_paradise/widgets/{gtk2 → gtk3}/gidnight_commander/gidnight_commander.config +1 -2
- data/lib/gtk_paradise/widgets/gtk3/gidnight_commander/gidnight_commander.rb +165 -125
- data/lib/gtk_paradise/widgets/gtk3/image_close_on_click_action/image_close_on_click_action.rb +34 -2
- data/lib/gtk_paradise/widgets/gtk3/image_viewer/image_viewer.rb +23 -26
- data/lib/gtk_paradise/widgets/gtk3/information_about_the_harddisc/harddisc_information.rb +161 -0
- data/lib/gtk_paradise/widgets/gtk3/insert_character/insert_character.rb +24 -29
- data/lib/gtk_paradise/widgets/gtk3/linux_users/linux_users.rb +32 -32
- data/lib/gtk_paradise/widgets/gtk3/my_calendar/my_calendar.rb +330 -7
- data/lib/gtk_paradise/widgets/gtk3/my_image_menu_item/my_image_menu_item.rb +179 -0
- data/lib/gtk_paradise/widgets/gtk3/non_numbers_only/non_numbers_only.rb +136 -0
- data/lib/gtk_paradise/widgets/gtk3/note_window/note_window.rb +199 -0
- data/lib/gtk_paradise/widgets/gtk3/notebook_controller/notebook_controller.rb +311 -7
- data/lib/gtk_paradise/widgets/gtk3/notebook_tab_with_icon/notebook_tab_with_icon.rb +402 -7
- data/lib/gtk_paradise/widgets/gtk3/numbered_lines/numbered_lines.rb +128 -82
- data/lib/gtk_paradise/widgets/{version_agnostic → gtk3/numbers_only}/numbers_only.rb +15 -3
- data/lib/gtk_paradise/widgets/gtk3/ping_widget/ping_widget.rb +491 -8
- data/lib/gtk_paradise/widgets/gtk3/regex_matcher/regex_matcher.rb +362 -43
- data/lib/gtk_paradise/widgets/gtk3/rename_widget/rename_widget.rb +8 -25
- data/lib/gtk_paradise/widgets/gtk3/show_which_key_was_pressed/show_which_key_was_pressed.rb +190 -0
- data/lib/gtk_paradise/widgets/gtk3/stopwatch/stopwatch.rb +318 -7
- data/lib/gtk_paradise/widgets/gtk3/sys_message/sys_message.rb +219 -7
- data/lib/gtk_paradise/widgets/gtk3/system_information/system_information.rb +58 -34
- data/lib/gtk_paradise/widgets/gtk3/tabble/admin_panel.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk3/tabble/image_and_button.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk3/tabble/tabble.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk3/view_webpage/view_webpage.rb +2 -6
- data/lib/gtk_paradise/widgets/gtk3/wiki/README.md +4 -0
- data/lib/gtk_paradise/widgets/gtk3/wiki/wiki.rb +388 -0
- data/lib/gtk_paradise/widgets/gtk4/ping_widget/ping_widget.rb +4 -0
- data/lib/gtk_paradise/widgets/gtk4/show_icon_theme/show_icon_theme.rb +134 -0
- data/lib/gtk_paradise/widgets/gtk4/sys_message/sys_message.rb +269 -0
- data/lib/gtk_paradise/widgets/{gtk2/stopwatch/stopwatch.rb → gtk4/xpm_loader/xpm_loader.rb} +13 -11
- data/lib/gtk_paradise/widgets/shared_code/browser/browser_module.rb +4 -16
- data/lib/gtk_paradise/widgets/shared_code/cdripper/cdripper_module.rb +1 -1
- data/lib/gtk_paradise/widgets/shared_code/colour_filled_widget/colour_filled_widget_module.rb +25 -28
- data/lib/gtk_paradise/widgets/shared_code/colour_palette/colour_palette_module.rb +2 -2
- data/lib/gtk_paradise/widgets/shared_code/contacts/contacts_module.rb +62 -64
- data/lib/gtk_paradise/widgets/shared_code/flip_state_widget/flip_state_widget_module.rb +3 -19
- data/lib/gtk_paradise/widgets/shared_code/information_about_the_harddisc/harddisc_information.rb +0 -155
- data/lib/gtk_paradise/widgets/shared_code/information_about_the_harddisc/information_about_the_harddisc_module.rb +0 -444
- data/lib/gtk_paradise/widgets/shared_code/lsmod/lsmod_module.rb +22 -26
- data/lib/gtk_paradise/widgets/shared_code/lspci/lspci_module.rb +24 -36
- data/lib/gtk_paradise/widgets/shared_code/mini_clock/mini_clock_module.rb +74 -58
- data/lib/gtk_paradise/widgets/shared_code/my_calendar/my_calendar_module.rb +0 -327
- data/lib/gtk_paradise/widgets/shared_code/pid_displayer/pid_displayer_module.rb +53 -41
- data/lib/gtk_paradise/widgets/shared_code/random_image/random_image_module.rb +46 -29
- data/lib/gtk_paradise/widgets/shared_code/select_file/select_file_module.rb +1 -1
- data/lib/gtk_paradise/widgets/shared_code/show_icon_theme/show_icon_theme_module.rb +56 -44
- data/lib/gtk_paradise/widgets/shared_code/simple_clock/simple_clock_module.rb +1 -12
- data/lib/gtk_paradise/widgets/shared_code/stopwatch/stopwatch_module.rb +0 -341
- data/lib/gtk_paradise/widgets/shared_code/sys_message/sys_message_module.rb +0 -211
- data/lib/gtk_paradise/widgets/shared_code/tabby/tabby_module.rb +3 -15
- data/lib/gtk_paradise/widgets/shared_code/xpm_loader/xpm_loader_module.rb +15 -23
- data/lib/gtk_paradise/www/index.cgi +2 -2
- data/lib/gtk_paradise/yaml/browser_URLs.yml +3 -4
- data/lib/gtk_paradise/yaml/configuration_options_for_class_gtk_runner.yml +6 -6
- data/lib/gtk_paradise/yaml/experimental/README.md +3 -0
- data/lib/gtk_paradise/yaml/experimental/all_widgets.yml +37 -0
- data/lib/gtk_paradise/yaml/menu.yml +6 -3
- data/lib/gtk_paradise/yaml/notebook_controller.yml +62 -29
- data/lib/gtk_paradise.rb +0 -5
- data/test/gtk2/testing_combo_box.rb +1 -0
- data/test/gtk2/testing_display.rb +23 -0
- data/test/gtk2/testing_gtk_image.rb +4 -3
- data/test/gtk2/testing_hbox_and_vbox.rb +37 -0
- data/test/gtk2/testing_label_with_ampersand.rb +5 -2
- data/test/gtk2/testing_notebook.rb +11 -5
- data/test/gtk3/test_widget.rb +2 -1
- data/test/gtk3/testing_app.rb +0 -1
- data/test/gtk3/testing_base_module.rb +2 -1
- data/test/gtk3/testing_numbered_lines.rb +20 -0
- data/test/gtk3/testing_project_base_directory.rb +6 -1
- data/test/gtk3/testing_the_html_pseudo_tags.rb +2 -2
- data/test/gtk4/testing_gtk_entry.rb +24 -0
- data/test/misc/testing_a_gtk_frame.rb +14 -0
- data/test/misc/testing_gtk4_simplifications.rb +105 -0
- data/test/misc/testing_gtk_paradise_runner.rb +19 -4
- data/test/misc/testing_the_gtk_classes.rb +83 -0
- metadata +246 -199
- data/lib/gtk_paradise/base_module/change_directory.rb +0 -22
- data/lib/gtk_paradise/base_module/combo_box_and_combo_box_entry.rb +0 -113
- data/lib/gtk_paradise/base_module/commandline_arguments.rb +0 -36
- data/lib/gtk_paradise/base_module/configuration.rb +0 -50
- data/lib/gtk_paradise/base_module/constants.rb +0 -23
- data/lib/gtk_paradise/base_module/debug.rb +0 -127
- data/lib/gtk_paradise/base_module/draggable.rb +0 -95
- data/lib/gtk_paradise/base_module/emoji.rb +0 -107
- data/lib/gtk_paradise/base_module/esystem.rb +0 -22
- data/lib/gtk_paradise/base_module/events.rb +0 -111
- data/lib/gtk_paradise/base_module/fonts.rb +0 -119
- data/lib/gtk_paradise/base_module/graphics_display.rb +0 -47
- data/lib/gtk_paradise/base_module/gtk3.rb +0 -43
- data/lib/gtk_paradise/base_module/gtk_buttons.rb +0 -562
- data/lib/gtk_paradise/base_module/gtk_entry.rb +0 -126
- data/lib/gtk_paradise/base_module/gtk_fixed.rb +0 -18
- data/lib/gtk_paradise/base_module/gtk_grid.rb +0 -61
- data/lib/gtk_paradise/base_module/gtk_image.rb +0 -501
- data/lib/gtk_paradise/base_module/gtk_label.rb +0 -211
- data/lib/gtk_paradise/base_module/gtk_notebook.rb +0 -88
- data/lib/gtk_paradise/base_module/gtk_scrolled_window.rb +0 -155
- data/lib/gtk_paradise/base_module/misc.rb +0 -2949
- data/lib/gtk_paradise/base_module/pango.rb +0 -24
- data/lib/gtk_paradise/base_module/popover.rb +0 -241
- data/lib/gtk_paradise/base_module/register_sigint.rb +0 -20
- data/lib/gtk_paradise/base_module/reset.rb +0 -128
- data/lib/gtk_paradise/base_module/return_corresponding_gtk_stock_item.rb +0 -92
- data/lib/gtk_paradise/base_module/roebe.rb +0 -19
- data/lib/gtk_paradise/base_module/table.rb +0 -438
- data/lib/gtk_paradise/base_module/time.rb +0 -35
- data/lib/gtk_paradise/constants/available_cursors.rb +0 -52
- data/lib/gtk_paradise/constants/fonts.rb +0 -38
- data/lib/gtk_paradise/constants/misc.rb +0 -56
- data/lib/gtk_paradise/constants/newline.rb +0 -14
- data/lib/gtk_paradise/constants/xbm_icons.rb +0 -121
- data/lib/gtk_paradise/examples/gtk3/003_sorted_tree.rb +0 -141
- data/lib/gtk_paradise/examples/gtk3/034_combo_box_example.rb +0 -49
- data/lib/gtk_paradise/examples/gtk3/068_text_view_example.rb +0 -34
- data/lib/gtk_paradise/examples/gtk3/071_search_bar_example.rb +0 -59
- data/lib/gtk_paradise/gtk_classes/colours/colours.rb +0 -158
- data/lib/gtk_paradise/requires/require_the_minesweeper_files.rb +0 -11
- data/lib/gtk_paradise/toplevel_methods/allow_only_numbers.rb +0 -59
- data/lib/gtk_paradise/toplevel_methods/csv.rb +0 -102
- data/lib/gtk_paradise/toplevel_methods/e.rb +0 -18
- data/lib/gtk_paradise/toplevel_methods/enable_and_disable_warnings.rb +0 -58
- data/lib/gtk_paradise/toplevel_methods/keyboard.rb +0 -25
- data/lib/gtk_paradise/toplevel_methods/main_file.rb +0 -31
- data/lib/gtk_paradise/toplevel_methods/register_sigint.rb +0 -17
- data/lib/gtk_paradise/toplevel_methods/roebe.rb +0 -22
- data/lib/gtk_paradise/toplevel_methods/select_file.rb +0 -168
- data/lib/gtk_paradise/toplevel_methods/spacer.rb +0 -55
- data/lib/gtk_paradise/toplevel_methods/tooltips.rb +0 -71
- data/lib/gtk_paradise/toplevel_methods/we_use_this_gtk_version.rb +0 -65
- data/lib/gtk_paradise/widgets/gtk2/directory_content_widget/directory_content_widget.rb +0 -30
- data/lib/gtk_paradise/widgets/gtk2/my_calendar/my_calendar.config +0 -6
- data/lib/gtk_paradise/widgets/gtk2/my_calendar/my_calendar.rb +0 -34
- data/lib/gtk_paradise/widgets/gtk2/notebook_tab_with_icon/notebook_tab_with_icon.rb +0 -30
- data/lib/gtk_paradise/widgets/gtk2/ping_widget/ping_widget.rb +0 -30
- data/lib/gtk_paradise/widgets/gtk2/sys_message/sys_message.config +0 -6
- data/lib/gtk_paradise/widgets/gtk2/sys_message/sys_message.rb +0 -29
- data/lib/gtk_paradise/widgets/shared_code/directory_content_widget/constants.rb +0 -53
- data/lib/gtk_paradise/widgets/shared_code/directory_content_widget/directory_content_widget_module.rb +0 -777
- data/lib/gtk_paradise/widgets/shared_code/directory_content_widget/handle_this_file_or_symlink.rb +0 -83
- data/lib/gtk_paradise/widgets/shared_code/notebook_controller/notebook_controller_module.rb +0 -339
- data/lib/gtk_paradise/widgets/shared_code/notebook_tab_with_icon/notebook_tab_with_icon_module.rb +0 -297
- data/lib/gtk_paradise/widgets/shared_code/ping_widget/ping_widget_module.rb +0 -326
- data/lib/gtk_paradise/widgets/version_agnostic/button_with_border.rb +0 -63
- data/lib/gtk_paradise/widgets/version_agnostic/coloured_unit.rb +0 -54
- data/lib/gtk_paradise/widgets/version_agnostic/my_image_menu_item.rb +0 -103
- data/lib/gtk_paradise/widgets/version_agnostic/my_menu_item_separator.rb +0 -31
- data/lib/gtk_paradise/widgets/version_agnostic/non_numbers_only.rb +0 -66
- data/lib/gtk_paradise/widgets/version_agnostic/note_window.rb +0 -107
- /data/lib/gtk_paradise/examples/gtk3/{084_undecorated_window_example.rb → 014_undecorated_window_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{077_status_icon_example.rb → 019_status_icon_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{076_stack_example.rb → 020_stack_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{006_password_example.rb → 025_password_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{015_list_box_example.rb → 033_list_box_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{020_radio_button_window.rb → 038_radio_button_window.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{021_scale_button_demo.rb → 039_scale_button_demo.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{024_installation_assistant.rb → 042_installation_assistant.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{035_notebook_css_example.rb → 052_notebook_css_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{040_font_chooser_dialog_example.rb → 056_font_chooser_dialog_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{041_flowbox.rb → 057_flowbox.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{045_fixed_example.rb → 061_fixed_example.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{054_svg_viewer.rb → 070_svg_viewer.rb} +0 -0
- /data/lib/gtk_paradise/examples/gtk3/{065_tooltips_example.rb → 079_tooltips_example.rb} +0 -0
@@ -1,246 +1,309 @@
|
|
1
|
-
|
2
|
-
(
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
(
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
(
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
1
|
+
--------------------------------------------------------------------------------
|
2
|
+
(1) → add a close button to the notebook tabs in the editor. perhaps
|
3
|
+
simplify this via this API:
|
4
|
+
hbox1 = gtk_hbox
|
5
|
+
add_this_tab_with_close_button("Foobar", hbox1)
|
6
|
+
^^^ and document this + screenshot.
|
7
|
+
The close button should be similar to geany or so.
|
8
|
+
download the close button or something like that.
|
9
|
+
this exists somewhere no?
|
10
|
+
hmm yeah in notebook_tab_with_icon.rb
|
11
|
+
It now works, more or less, so the next step is to attach it to
|
12
|
+
the gtk-editor when we rewrite that editor eventually.
|
13
|
+
--------------------------------------------------------------------------------
|
14
|
+
(2) → in gtk-editor
|
15
|
+
- when we load a file, re-calculate the number of lines in that file
|
16
|
+
^^^ and update accordingly
|
17
|
+
and then, change the widget that shows how many numbers are
|
18
|
+
- on changed tab event recalculate the number of lines
|
19
|
+
- on right-click context menu add a rename tab label
|
20
|
+
- fix the entry, aka
|
21
|
+
in the "save as functionality" allow this as
|
22
|
+
a per-tab use, perhaps in a hash or so.we want to have
|
23
|
+
each save-able entry defined below per tab so that we
|
24
|
+
can manipulate many different files.
|
25
|
+
- must rewrite it
|
26
|
+
--------------------------------------------------------------------------------
|
27
|
+
(3) → Fix the .set_title() thing. This does not work - not sure why not.
|
28
|
+
--------------------------------------------------------------------------------
|
29
|
+
(4) → port the gtk-shell to gtk3 too. continue with it!
|
30
|
+
and make vte optional hmmm
|
31
|
+
just rewrite it ...^^^
|
32
|
+
--------------------------------------------------------------------------------
|
33
|
+
(5) → Think about "button {}" as a DSL layer.
|
34
|
+
Make it work for gtk_paradise
|
35
|
+
--------------------------------------------------------------------------------
|
36
|
+
(6) → also learn a bit from pygobject
|
37
|
+
and see if we can port more stuff.
|
38
|
+
Look what can be ported; then look at the gtk3-demo in ruby
|
39
|
+
and then remove this entry here. \o/
|
40
|
+
--------------------------------------------------------------------------------
|
41
|
+
(7) → PORT A LOT OF DOCUMENTATION from gtk.rb as well
|
42
|
+
ALSO add at the least two new images.. either from
|
43
|
+
legacy ... and/or new widgets that are bundled.
|
44
|
+
then remove at the least the lower part of this todo
|
45
|
+
entry. porting documentation will take longer.
|
46
|
+
--------------------------------------------------------------------------------
|
47
|
+
(8) → We have to support HTML tags eventually, such as:
|
48
|
+
div {}
|
49
|
+
The idea here is to be able to do things such as:
|
50
|
+
div('mars1em') {
|
51
|
+
}
|
52
|
+
And then port all my .cgi pages to that in ADDITION.
|
53
|
+
--------------------------------------------------------------------------------
|
54
|
+
(9) → move games into games_paradise huh
|
55
|
+
^^^^ ^^^ at some later point.
|
56
|
+
--------------------------------------------------------------------------------
|
57
|
+
(10) → add a differential background in the treeview widget
|
58
|
+
--------------------------------------------------------------------------------
|
59
|
+
(11) → clone the webmin-functionality into gtk_paradise.
|
60
|
+
At the least the main parts; and ideally in a language
|
61
|
+
that can be agnostic.
|
62
|
+
--------------------------------------------------------------------------------
|
63
|
+
(12) → @hscale.set_value(3.0)
|
64
|
+
^^^^
|
65
|
+
find out how to jump in a custom adjustment. Perhaps re-read this, read
|
66
|
+
tricks too, and then remove this after adding a bit documentation to
|
67
|
+
gtk_paradise.
|
68
|
+
--------------------------------------------------------------------------------
|
69
|
+
(13) → port gidnight commander completely. In particular it must
|
70
|
+
work on windows by default !!!
|
71
|
+
Integrate the view-widget that was created into it, rather
|
72
|
+
than use custom-logic.
|
73
|
+
START WITH GTK3
|
74
|
+
on change in gidnight commander, update gtk-entry too. Aka both
|
75
|
+
entries must be synced to one another - try to connect these two.
|
76
|
+
--------------------------------------------------------------------------------
|
77
|
+
(14) → make gtk-runner a module.
|
78
|
+
then try to include it into ruby-gtk3.
|
79
|
+
^^^ hmmmmm. Has this been done yet? We have to fix
|
80
|
+
the bug with the title being wrong still.
|
81
|
+
Perhaps we should re-do the whole project from
|
82
|
+
the get go, with that focus as primary objective,
|
83
|
+
as little as it seems..
|
84
|
+
--------------------------------------------------------------------------------
|
85
|
+
(15) → ADD and document:
|
86
|
+
@canvas.signal_connect(:key_press_event) do |widget,event|
|
71
87
|
_ = Gdk::Keyval.to_name(event.keyval)
|
72
88
|
case _
|
73
89
|
when 'Up','KP_Up','KP_End','KP_Page_Up'
|
74
|
-
|
90
|
+
move_rect(:up)
|
75
91
|
when 'Down','KP_Down','KP_Page_Down','KP_Home'
|
76
|
-
|
92
|
+
move_rect(:down)
|
77
93
|
when 'Left','KP_Left'
|
78
|
-
|
94
|
+
move_rect(:left)
|
79
95
|
when 'Right','KP_Right'
|
80
|
-
|
96
|
+
move_rect(:right)
|
81
97
|
when 'space'
|
82
|
-
|
98
|
+
e 'space key heisst nach unten fallen lassen'
|
83
99
|
else
|
84
|
-
|
100
|
+
e _
|
85
101
|
end
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
(
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
AND then document admin panel a bit more, and then upload this.
|
112
|
-
well eprhaps don't use display_this_file since it requires an
|
113
|
-
existing file.
|
114
|
-
OR:
|
115
|
-
adjust this:
|
102
|
+
end
|
103
|
+
^^^ up_key?,
|
104
|
+
down_key?
|
105
|
+
^^^ and document this
|
106
|
+
--------------------------------------------------------------------------------
|
107
|
+
(16) → integrate ms_sys_control.
|
108
|
+
update it... reconsider it as a subclass of Gtk::Runner (probably not)
|
109
|
+
require 'gtk_paradise/widgets/mswin/ms_sys_control.rb'
|
110
|
+
then embed it into the admin_panel. Unfortunately the admin panel
|
111
|
+
is getting too slow so we need a solution there.
|
112
|
+
--------------------------------------------------------------------------------
|
113
|
+
(17) → include vte into gtk_paradise
|
114
|
+
^^^ we need a few vte examples really. do they even work ....
|
115
|
+
hmmmmmmm.
|
116
|
+
It shall showcase what is possible here.
|
117
|
+
--------------------------------------------------------------------------------
|
118
|
+
(18) → in gtk-paradise add a class that can be used to view
|
119
|
+
a file. perhaps use Gtk.display_this_file('/Depot/j/TODO.md') too
|
120
|
+
for it. Make it a standalone class, and then add it to
|
121
|
+
ADmin Panel
|
122
|
+
AND then document admin panel a bit more, and then upload this.
|
123
|
+
well eprhaps don't use display_this_file since it requires an
|
124
|
+
existing file.
|
125
|
+
OR:
|
126
|
+
adjust this:
|
116
127
|
# ======================================================================= #
|
117
|
-
|
118
|
-
|
119
|
-
|
128
|
+
# Next we have to return this widget.
|
129
|
+
# ======================================================================= #
|
130
|
+
Gtk.textview(
|
120
131
|
:default,
|
121
132
|
:default,
|
122
133
|
:default,
|
123
134
|
use_this_text_buffer
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
(20)
|
128
|
-
- continue with:
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
(
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
(22)
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
(
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
(25) - Continue with view_webpage_module.rb. We want to be able to use this
|
160
|
-
as a "browser" source viewer or something. It shall download a webpage
|
161
|
-
and then render the content in a textview.
|
162
|
-
Perhaps first create a local file.
|
163
|
-
Once that works, document this.
|
164
|
-
|
165
|
-
-------------------------------------------------------------------------------
|
166
|
-
(26) create a manifest.yml, for studium
|
135
|
+
)
|
136
|
+
^^^
|
137
|
+
--------------------------------------------------------------------------------
|
138
|
+
(19) → (20)
|
139
|
+
- continue with:
|
140
|
+
TranslateGtkCCodeIntoRubyCode
|
141
|
+
--------------------------------------------------------------------------------
|
142
|
+
(20) → (21)
|
143
|
+
add:
|
144
|
+
Gtk.show_this_image()
|
145
|
+
^^^
|
146
|
+
and then show_this_image() in gtk-paradise base module.
|
147
|
+
perhaps take the image-creation from random_image.rb
|
148
|
+
to a general purpose image loader, that also shows
|
149
|
+
the original length.
|
150
|
+
--------------------------------------------------------------------------------
|
151
|
+
(21) → port pyform example
|
152
|
+
^ we have one .rb file as example but we need
|
153
|
+
to still automate this via an array or hash
|
154
|
+
as input data structure; and add a screenshot
|
155
|
+
once that eventually works.
|
156
|
+
--------------------------------------------------------------------------------
|
157
|
+
(22) → in a notebook tab, make the selected variant
|
158
|
+
have another colour; and then when this works
|
159
|
+
also make it BIGGER and appear out or so.
|
160
|
+
--------------------------------------------------------------------------------
|
161
|
+
(23) → Create a scramble-example via gtk-canvas.
|
162
|
+
--------------------------------------------------------------------------------
|
163
|
+
(24) → Continue with view_webpage_module.rb. We want to be able to use this
|
164
|
+
as a "browser" source viewer or something. It shall download a webpage
|
165
|
+
and then render the content in a textview.
|
166
|
+
Perhaps first create a local file.
|
167
|
+
Once that works, document this.
|
168
|
+
--------------------------------------------------------------------------------
|
169
|
+
(25) → create a manifest.yml, for studium
|
167
170
|
^^^ hmm
|
168
171
|
called via reset
|
169
172
|
make a DSL-variant for yaml files for now.
|
170
173
|
What the hell does that mean? Hmmm .....
|
171
174
|
The idea was to describe GUI components in such a
|
172
175
|
file without needing to write ruby code as is.
|
173
|
-
|
174
|
-
(
|
175
|
-
|
176
|
-
|
177
|
-
(
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
(
|
182
|
-
|
183
|
-
(
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
(
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
(33) need to check for speed and improve it. gtk_paradise is getting
|
176
|
+
--------------------------------------------------------------------------------
|
177
|
+
(26) → continue with conky. make it ideally so that we can
|
178
|
+
cherry-pick what we want to use.
|
179
|
+
--------------------------------------------------------------------------------
|
180
|
+
(27) → Think of a way to turn commandline programs into generic UIs.
|
181
|
+
This probably has to work via a --help call, so that these
|
182
|
+
options can become a GUI.
|
183
|
+
--------------------------------------------------------------------------------
|
184
|
+
(28) → enhance view-webpage. also add ruby-gtk2 ...
|
185
|
+
--------------------------------------------------------------------------------
|
186
|
+
(29) → increase_the_font_size_to(to = '150%')
|
187
|
+
old_font = ::Gtk::Settings.default.gtk_font_name
|
188
|
+
^^^ this is a bit buggy. we should query the current font in use
|
189
|
+
for a particular widget, and then make modifications based
|
190
|
+
on it, rather than using the Gtk::Settings.default variant.
|
191
|
+
--------------------------------------------------------------------------------
|
192
|
+
(30) → - write a demo-example
|
193
|
+
demo-gtk2 # also for ruby-gtk2
|
194
|
+
demo-gtk3 # and for ruby-gtk3
|
195
|
+
^^^
|
196
|
+
It shall showcase all that is available dynamically.
|
197
|
+
--------------------------------------------------------------------------------
|
198
|
+
(31) → need to check for speed and improve it. gtk_paradise is getting
|
197
199
|
too slow ... :(
|
198
|
-
|
199
|
-
(
|
200
|
-
|
201
|
-
^^^^
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
(36) Make it possible to use only the CSS rules that are actually in use,
|
216
|
-
rather than all CSS.
|
217
|
-
For this to work we must register the CSS classes in use.
|
218
|
-
And then use some api such as:
|
200
|
+
--------------------------------------------------------------------------------
|
201
|
+
(32) → notebook_controller.yml
|
202
|
+
^^^^ make sure this works properly. and remove old code too I think.
|
203
|
+
^^^^ so that we have an overview of everything that works as-is.
|
204
|
+
and ... we may have to check which widgets are too slow. Rewrite
|
205
|
+
these.
|
206
|
+
--------------------------------------------------------------------------------
|
207
|
+
(33) → create an EverestClone; in functionality.
|
208
|
+
It does not need to copy everything, but simply a GUI that nicely shows
|
209
|
+
the graphics, CPU etc... of the given computer system
|
210
|
+
This looks like so:
|
211
|
+
https://www.chip.de/ii/1/3/5/3/1/1/5/8763c7fb0dbf0499.png
|
212
|
+
--------------------------------------------------------------------------------
|
213
|
+
(34) → Make it possible to use only the CSS rules that are actually in use,
|
214
|
+
rather than all CSS.
|
215
|
+
For this to work we must register the CSS classes in use.
|
216
|
+
And then use some api such as:
|
219
217
|
use_lean_CSS_rules
|
220
218
|
^^^ and document it too.
|
221
219
|
017_lean_CSS_example.rb
|
222
220
|
^^^^
|
223
|
-
|
224
|
-
(
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
221
|
+
--------------------------------------------------------------------------------
|
222
|
+
(35) → Also, consider adding more images to the top-bar. hmmm. but which
|
223
|
+
images?
|
224
|
+
Finally, add a top-to-bottm dragger between control panel
|
225
|
+
and the text-view stuff.
|
226
|
+
- the go-to-widget must be improved. use some modal window or
|
227
|
+
something like that. and the functionality has a bug,
|
228
|
+
we count char-marks too.
|
229
|
+
--------------------------------------------------------------------------------
|
230
|
+
(36) → add these cute scroll events:
|
231
|
+
entry1.on_scroll_up_event {
|
232
|
+
e 'EIN SCROLL UP EVENT!!!!!!'
|
233
|
+
}
|
234
|
+
entry1.on_scroll_down_event {
|
235
|
+
e 'EIN SCROLL UP EVENT!!!!!!'
|
236
|
+
}
|
237
|
+
--------------------------------------------------------------------------------
|
238
|
+
(37) → https://i.imgur.com/zA9GqtR.png
|
239
|
+
^^^ re-create scramble somehow.
|
240
|
+
--------------------------------------------------------------------------------
|
241
|
+
(38) → add an imgur-uploader, a small widget for that.
|
242
|
+
--------------------------------------------------------------------------------
|
243
|
+
(39) → in the wiki.rb file: we need to add more functionality, until we can
|
244
|
+
easily run a wiki. We must enable links in text-view widgets, and
|
245
|
+
look for a general parser thingy.
|
246
|
+
--------------------------------------------------------------------------------
|
247
|
+
(40) → clone the functionality of cuiterm, at the least with a border around
|
248
|
+
a text view or something like that.
|
249
|
+
--------------------------------------------------------------------------------
|
250
|
+
(41) → add a keyboard with buttons, so that people can simulate having a keyboard
|
251
|
+
as user interface. perhaps implement via grid.
|
252
|
+
--------------------------------------------------------------------------------
|
253
|
+
(42) → add a cursor-example, e. g. when hovering into a box, change the cursor.
|
254
|
+
and when hovering out, restore the old cursor again.
|
255
|
+
--------------------------------------------------------------------------------
|
256
|
+
(43) → Finish rubular port in ruby-gtk3; make it as identical to rubular.com
|
257
|
+
as possible.
|
258
|
+
--------------------------------------------------------------------------------
|
259
|
+
(44) → improve the drawing model, in particular ingtegrate it into the
|
260
|
+
Gtk namespace, and move the examples to the other examples.
|
261
|
+
and port it to ruby-gtk3. as well
|
262
|
+
as add more documentation to it!
|
263
|
+
--------------------------------------------------------------------------------
|
264
|
+
(45) → Add a button-maker thingy in pseudo-CSS, for gtk_paradise,
|
265
|
+
aka:
|
266
|
+
buttons:
|
267
|
+
button1:
|
268
|
+
css_class: 'mars1em pad5px bblack1'
|
269
|
+
on_clicked: do_something1
|
270
|
+
button2:
|
271
|
+
css_class: 'mars1em pad5px bblack1'
|
272
|
+
on_clicked: do_something2
|
273
|
+
^^^ test these in a yaml file. This works now.
|
274
|
+
What is missing is better documentation, and adding more
|
275
|
+
options for flexibility.
|
276
|
+
Also add:
|
277
|
+
rounded_border: xyz
|
278
|
+
As a shortcut.
|
279
|
+
--------------------------------------------------------------------------------
|
280
|
+
(46) → add a zenity-clone in ruby-gtk3 and commandline support for this.
|
281
|
+
--------------------------------------------------------------------------------
|
282
|
+
(47) → 002_text_view_example.rb
|
283
|
+
|
284
|
+
this in gtk4 has to be fixed
|
285
|
+
-----------------------------------------------------------------------------------
|
286
|
+
(48) -> in the editor, add a mini-shell from Roebe::Shell, only for the input
|
287
|
+
and a tiny scroll bar on the bottom. perhaps even style it with black
|
288
|
+
background and white font? or yellow font? anyway, it is more important
|
289
|
+
that this actually works.
|
290
|
+
--------------------------------------------------------------------------------
|
291
|
+
(48) -> extend the unified gtk installer
|
292
|
+
|
293
|
+
This should ideally work with gtk2, gtk3 and gtk4 one day.
|
294
|
+
|
295
|
+
However had, for the time being we will focus on ruby-gtk3 and
|
296
|
+
ignore the other two variants.
|
297
|
+
|
298
|
+
We have to find a solution for the colour stuff in gtk2 for
|
299
|
+
instance; in CSS this is easier.
|
235
300
|
|
236
|
-
entry1.on_scroll_up_event {
|
237
|
-
e 'EIN SCROLL UP EVENT!!!!!!'
|
238
|
-
}
|
239
|
-
entry1.on_scroll_down_event {
|
240
|
-
e 'EIN SCROLL UP EVENT!!!!!!'
|
241
|
-
}
|
242
301
|
-------------------------------------------------------------------------------
|
243
|
-
(
|
244
|
-
|
302
|
+
(49) -> improve the support for ruby-gtk2 into gtk-paradise gem.
|
303
|
+
in general.
|
304
|
+
|
305
|
+
test it slowly hmmmmmm..
|
306
|
+
|
307
|
+
^^^ yeah spend some time doing this now.
|
245
308
|
|
246
|
-
|
309
|
+
--------------------------------------------------------------------------------
|
@@ -1,9 +1,10 @@
|
|
1
|
-
- Improve the existing documentation.
|
1
|
+
- Improve the existing documentation. In particular add more images
|
2
|
+
and style the webpage a bit.
|
2
3
|
- Continue porting the old documentation to the gtk_paradise project.
|
3
|
-
Once complete, remove the entry here.
|
4
|
+
Once complete, remove the entry ^^^ here.
|
4
5
|
- Continue porting the old ruby-gtk-examples.
|
5
6
|
- Find more CSS examples and more examples in general. These
|
6
7
|
latter examples must be added into examples/css/ and document
|
7
8
|
something "visually" (aka they have to work, and ideally
|
8
9
|
should be small, when possible).
|
9
|
-
|
10
|
+
- Port more zenity-options + examples + documentation.
|
data/gtk_paradise.gemspec
CHANGED
@@ -12,29 +12,39 @@ Gem::Specification.new { |s|
|
|
12
12
|
|
13
13
|
DESCRIPTION = <<-EOF
|
14
14
|
|
15
|
-
This library is called gtk_paradise (release saga 0.
|
15
|
+
This library is called gtk_paradise (release saga 0.11.x), the
|
16
16
|
successor to the older gtk_module project.
|
17
17
|
|
18
|
-
The gtk_paradise library extends the Gtk/Gdk part of ruby-gtk
|
19
|
-
|
20
|
-
different GTK-widgets. See the online-documentation of this gem for
|
21
|
-
more information in this regard.
|
18
|
+
The gtk_paradise library extends the Gtk/Gdk part of ruby-gtk -
|
19
|
+
in particular for ruby-gtk2, ruby-gtk3 and ruby-gtk3.
|
22
20
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
This gem includes some add-on colours, helper-methods to
|
22
|
+
different GTK-widgets as well as extensive CSS rules that
|
23
|
+
could be used "from the get go" (for ruby-gtk3 and ruby-gtk4).
|
24
|
+
|
25
|
+
See the online-documentation of this gem for more information
|
26
|
+
in this regard.
|
27
|
+
|
28
|
+
The central idea powering this gem is to make the ruby-gtk bindings
|
29
|
+
more "ruby-like" rather than retain them to be a 1:1 mapping to
|
30
|
+
the underlying C source code.
|
31
|
+
|
32
|
+
The custom widgets bundled into this gem are an attempt to further
|
33
|
+
make working with the ruby-gtk bindings easier. That way, the
|
34
|
+
time investment by users of this gem is reduced, such as when
|
35
|
+
they wish to create new applications and new projects from
|
36
|
+
scratch.
|
29
37
|
|
30
38
|
This project is still rather beta-ish, though. APIs may change
|
31
|
-
a lot, still
|
32
|
-
|
33
|
-
|
34
|
-
in the long
|
39
|
+
a lot, still - do not expect stability for the time being. It is
|
40
|
+
not recommend to use this project in production yet, unless you
|
41
|
+
are willing to see things potentially break all over everywhere,
|
42
|
+
every now and then. Long-term stability is planned in the long
|
43
|
+
run, though. Once achieved it will be announced on the README.md
|
44
|
+
as well as enter the 1.0.x release series.
|
35
45
|
|
36
|
-
For more information
|
37
|
-
documentation for this gem, at:
|
46
|
+
For more information pertaining to this project, please have a
|
47
|
+
look at the documentation for this gem, at:
|
38
48
|
|
39
49
|
https://www.rubydoc.info/gems/gtk_paradise/
|
40
50
|
|
@@ -56,6 +66,7 @@ This should be doable via:
|
|
56
66
|
|
57
67
|
gem install gtk3
|
58
68
|
gem install gtk2
|
69
|
+
gem install gtk4
|
59
70
|
|
60
71
|
Make sure to have the required headers/devel-packages installed for gtk3 or
|
61
72
|
gtk2 respectively. The main focus is on ruby-gtk3 these days, so ruby-gtk2
|