Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start of Gtk3 to Gtk4 #1909

Open
wants to merge 102 commits into
base: stable
Choose a base branch
from
Open

Start of Gtk3 to Gtk4 #1909

wants to merge 102 commits into from

Commits on May 3, 2024

  1. Use GdkEvent accessor functions part1

    In Gtk4 you are no longer able to access the event structure so use the
    accessor functions to retrieve values
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    1daf019 View commit details
    Browse the repository at this point in the history
  2. Use GdkEvent accessor functions part2

    In Gtk4 you are no longer able to access the event structure so use the
    accessor functions to retrieve values
    
    These files access the event structure with no equivalent accessor
    function. Not sure of correct change, may need to wait for Gtk4 change.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    35c5e08 View commit details
    Browse the repository at this point in the history
  3. Use GdkEvent accessor functions part3

    In Gtk4 you are no longer able to access the event structure so use the
    accessor functions to retrieve values.
    
    Register sheet and header changes
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    41dc329 View commit details
    Browse the repository at this point in the history
  4. Use GdkEvent accessor functions part4

    In Gtk4 you are no longer able to access the event structure so use the
    accessor functions to retrieve values
    
    Register components.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    6447d0e View commit details
    Browse the repository at this point in the history
  5. Use GdkEvent accessor functions part5

    In Gtk4 you are no longer able to access the event structure so use the
    accessor functions to retrieve values
    
    ComboCell and CompletionCell needed more changes and not sure why, just
    doing the normal change was not enough as this resulted in characters
    appearing twice on my build machine but not on Windows or Fedora38.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    18b10c8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e7c2921 View commit details
    Browse the repository at this point in the history
  7. Use GtkEventControllerKey combo/completion cell

    By changing to GtkEventControllerKey for combocell and completioncell
    fixes issue for double key presses.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    76c28dc View commit details
    Browse the repository at this point in the history
  8. Push Webkit out of the way

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    deb42ef View commit details
    Browse the repository at this point in the history
  9. Move to Gtk4 version 4.8.3

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    7794b9f View commit details
    Browse the repository at this point in the history
  10. Start to use GtkEventControllerKey

    Start to use GtkEventControllerkey for some key_press_event's, may need
    further changes.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    2374ed8 View commit details
    Browse the repository at this point in the history
  11. Start of gtk_style_context_get changes

    Change some entries to remove state and comment out others not sure
    about.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    5064fce View commit details
    Browse the repository at this point in the history
  12. Comment out all gtk_widget_show_all

    Widgets by default are always visible, may need to change some for
    toplevel windows, dialogs and popovers
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    46822c3 View commit details
    Browse the repository at this point in the history
  13. Change gtk_widget_show/hide part1

    Use gtk_widget_set_visible instead
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    02165c0 View commit details
    Browse the repository at this point in the history
  14. Change gtk_widget_show/hide part2

    Use gtk_widget_set_visible instead
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    2e17d2c View commit details
    Browse the repository at this point in the history
  15. Change gtk_widget_show/hide part3

    Use gtk_widget_set_visible instead
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    ee2f2b4 View commit details
    Browse the repository at this point in the history
  16. Change gtk_entry_get/set_text to gnc version part1

    Add function gnc_entry_get/set_text and use that instead
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    dc39ea6 View commit details
    Browse the repository at this point in the history
  17. Change gtk_entry_get/set_text to gnc version part2

    Add function gnc_entry_get/set_text and use that instead
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    33bea7a View commit details
    Browse the repository at this point in the history
  18. Change gtk_entry_get/set_text to gnc version part3

    Add function gnc_entry_get/set_text and use that instead
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    aaab87f View commit details
    Browse the repository at this point in the history
  19. Change gtk_widget_destroy part1

    Replace gtk_widget_destroy with gtk_window_destroy and comment out, will
     probably need further work with some changes to box_remove or
     g_object_unref
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    cb30ae2 View commit details
    Browse the repository at this point in the history
  20. Change gtk_widget_destroy part2

    Replace gtk_widget_destroy with gtk_window_destroy and comment out, will
     probably need further work with some changes to box_remove or
     g_object_unref
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    4efef28 View commit details
    Browse the repository at this point in the history
  21. Change gtk_widget_destroy part3

    Replace gtk_widget_destroy with gtk_window_destroy and comment out, will
     probably need further work with some changes to box_remove or
     g_object_unref
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    f524ec6 View commit details
    Browse the repository at this point in the history
  22. Change gtk_box_pack_end/start part1

    Change gtk_box_pack_end/start to gtk_box_prepend/append
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    17093bc View commit details
    Browse the repository at this point in the history
  23. Change gtk_box_pack_end/start part2

    Change gtk_box_pack_end/start to gtk_box_prepend/append
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d54e96a View commit details
    Browse the repository at this point in the history
  24. Change gtk_box_pack_end/start part3

    Change gtk_box_pack_end/start to gtk_box_prepend/append
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    0f21e92 View commit details
    Browse the repository at this point in the history
  25. Change gtk_container_add/remove

    Change gtk_container_add/remove to gtk_box_prepend/remove, some may need
     changing to child variant
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    118fa52 View commit details
    Browse the repository at this point in the history
  26. Change gtk_conatiner_set_border

    Add function gnc_box_set_all_margins to replicate container function
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    a35440a View commit details
    Browse the repository at this point in the history
  27. Change some more gtk_container_ functions

    These will need some more work
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    6f7ce42 View commit details
    Browse the repository at this point in the history
  28. Start of some Builder changes

    These might not be correct...
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    b38f9b2 View commit details
    Browse the repository at this point in the history
  29. Change radio to toggle buttons

    GtkRadioButton was removed so change them to check buttons, will need
    further work
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    f3c3f0c View commit details
    Browse the repository at this point in the history
  30. Changes for GtkBin

    Will need more work...
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    834fdb4 View commit details
    Browse the repository at this point in the history
  31. Change GtkAccelGroup to GtkShortcutController

    This may be wrong or not needed...
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    ea0905b View commit details
    Browse the repository at this point in the history
  32. Start changes in html folder

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    aead9a8 View commit details
    Browse the repository at this point in the history
  33. Change gtk_buildable_get_name

    Change gtk_buildable_get_name to gtk_buildable_get_buildable_id
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    fb91971 View commit details
    Browse the repository at this point in the history
  34. Change gtk_window_resize

    gtk_window_resize to gtk_window_set_default_size
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    8ed8fd4 View commit details
    Browse the repository at this point in the history
  35. Change gtk_entry_get/set_width_chars

    Change gtk_entry_get/set_width_chars to
    gtk_editable_get/set_max_width_chars
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    dbbcf95 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    0112aea View commit details
    Browse the repository at this point in the history
  37. Change gtk_widget_get_toplevel

    Change gtk_widget_get_toplevel to gtk_widget_get_root, maybe wrong...
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d2cc4f2 View commit details
    Browse the repository at this point in the history
  38. Changes for gtk_file_chooser

    Will need additional work...
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    ba0b6d3 View commit details
    Browse the repository at this point in the history
  39. Start of changes for gtk_dialog_run part1

    This is mostly commenting it out, may have to use a signal connect on
    the 'response' signal.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    0f15d10 View commit details
    Browse the repository at this point in the history
  40. Start of changes for gtk_dialog_run part2

    This is mostly commenting it out, may have to use a signal connect on
    the 'response' signal.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    e8c87d1 View commit details
    Browse the repository at this point in the history
  41. Start of changes for gtk_dialog_run part3

    This is mostly commenting it out, may have to use a signal connect on
    the 'response' signal.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    3c2716d View commit details
    Browse the repository at this point in the history
  42. Change gtk_widget_grab_default

    Change gtk_widget_grab_default to gtk_window_set_default_widget
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    4e86bd9 View commit details
    Browse the repository at this point in the history
  43. Change gtk_window_get_size

    Change gtk_window_get_size to gtk_window_get_default_size
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    1f55318 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    423537c View commit details
    Browse the repository at this point in the history
  45. Change GdkEventFocus events

    Change to use GtkEventController's with gtk_event_controller_focus_new
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    6664dd9 View commit details
    Browse the repository at this point in the history
  46. Change gdk_event_get_coords

    Change gdk_event_get_coords to gdk_event_get_position
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    575968c View commit details
    Browse the repository at this point in the history
  47. Change gtk_window_set_keep_above

    Change gtk_window_set_keep_above to  gtk_window_present
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    64cfeed View commit details
    Browse the repository at this point in the history
  48. Comment out gtk_events_pending

    Not sure what this will change to, could be g_main_context_pending
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    cafbad6 View commit details
    Browse the repository at this point in the history
  49. Change gtk_scrolled_window_new

    Change gtk_scrolled_window_new, has no parameters and correct adding
    widget to the window by using ...set_child
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    3783e1d View commit details
    Browse the repository at this point in the history
  50. Correct adding widget to a frame widget

    Use the ...set_child to add the frame widget
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    b08896c View commit details
    Browse the repository at this point in the history
  51. Start changes in gnc-icons

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    eba6df0 View commit details
    Browse the repository at this point in the history
  52. Change gtk_label_set_line_wrap

    Use gtk_label_set_wrap instead of ...line_wrap
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    2b2e8c6 View commit details
    Browse the repository at this point in the history
  53. Change gtk_box_reorder_child

    Change gtk_box_reorder_child_after, some need additional work
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    56919ef View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    d5a65df View commit details
    Browse the repository at this point in the history
  55. Change gtk_widget_get_tooltip_text

    gtk_widget_get_tooltip_text returns const
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    255f726 View commit details
    Browse the repository at this point in the history
  56. Change gtk_window_new

    gtk_window_new has no parameters and use the ...set_child function to
    add the child widget
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    4e67a3b View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    6142468 View commit details
    Browse the repository at this point in the history
  58. Change gtk_button_box_new to gtk_box_new

    May need further changes...
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    49572a2 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    bcaaf96 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    ddd137f View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    2f60b5a View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    98463c7 View commit details
    Browse the repository at this point in the history
  63. Changes to keyval

    These maybe wrong and need more work
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d86a1df View commit details
    Browse the repository at this point in the history
  64. Start of changes to gnome-utils folder

    Some of the changes are just commenting out stuff not sure about
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    f631a72 View commit details
    Browse the repository at this point in the history
  65. Start of changes to gnome folder

    Some of the changes are just commenting out stuff not sure about
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    4bae9cb View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    4f972ff View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    54ec86e View commit details
    Browse the repository at this point in the history
  68. Start of changes to others

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    be01b90 View commit details
    Browse the repository at this point in the history
  69. Change gtk_init_check

    Change gtk_init_check, has no parameters
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    15466b9 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    ae52be6 View commit details
    Browse the repository at this point in the history
  71. Change gtk_main

    Change gtk_main to use g_main_context_iteration
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    a51c2b8 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    3355f43 View commit details
    Browse the repository at this point in the history
  73. Start of gnc-splash changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    acd662b View commit details
    Browse the repository at this point in the history
  74. Start of about-dialog changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    631f770 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    723794e View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    b692cbc View commit details
    Browse the repository at this point in the history
  77. Start of gnc-main-window changes, tab edit

    Changes for the notebook tab contents
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    c649dda View commit details
    Browse the repository at this point in the history
  78. Add ability to display toolbar

    This is a horizontal box packed with buttons, there is no scroll window
    or drop down so window will enlarge if there are too many buttons. The
    buttons each have a vertical child box packed with an image and label.
    
    The size of these can be controlled with CSS.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    c868739 View commit details
    Browse the repository at this point in the history
  79. Fix the tree view column menu

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    97b454f View commit details
    Browse the repository at this point in the history
  80. Change the gnc_dialog_run function

    Rename the gnc_dialog_run function to gnc_warning_dialog_run as it uses
    the preference warning settings and make it modal and pause the main
    loop so it can return a value.
    
    Create a new gnc_dialog_run along the lines of above and change only
    references to gtk_dialog_run used to create message dialogs to this
    function.
    
    This may need a rethink but for now is OK if only temporary, eventually
    the widget used will be a GtkAlertDialog.
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    51cf3d3 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    3c9d998 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    1f0a224 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    2b49d45 View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    53f65a8 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    a89bff0 View commit details
    Browse the repository at this point in the history
  86. Add a function to set the current builder object

    All builder ui signals are connected by default and can use the current
    object to pass user data.
    
    This may need changing...
    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    abc34e0 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    80fcf4b View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    df12bab View commit details
    Browse the repository at this point in the history
  89. Start of Commodity changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    b3dc6f3 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    2ef28a9 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    3d14cbd View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    1e4f31b View commit details
    Browse the repository at this point in the history
  93. Fix up commodity source files

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    e7b1fc5 View commit details
    Browse the repository at this point in the history
  94. Fix up price source files

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d34f6d5 View commit details
    Browse the repository at this point in the history
  95. Start of Budget changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    77df727 View commit details
    Browse the repository at this point in the history
  96. Start of fincalc changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    e3b79ed View commit details
    Browse the repository at this point in the history
  97. Start of book close changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    43cb66f View commit details
    Browse the repository at this point in the history
  98. Fixup book close source file

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    56bd06d View commit details
    Browse the repository at this point in the history
  99. Start of imap changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    61e6867 View commit details
    Browse the repository at this point in the history
  100. Start of doclink changes

    Bob-IT committed May 3, 2024
    Configuration menu
    Copy the full SHA
    9696c6c View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Fix test build.

    Macros can't have a space between the name and the opening parenthesis.
    jralls committed May 5, 2024
    Configuration menu
    Copy the full SHA
    8aa4449 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc5f1a1 View commit details
    Browse the repository at this point in the history