-
Notifications
You must be signed in to change notification settings - Fork 415
Update libezgl external subtree #1845
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
Conversation
c2be3f3be The user-defined mouse-press callback is not called in panning mode bedc70dae Add a default constructor for point2d cf4d8540f Change the default mouse button used for panning to left 455aa0527 Add justification options for png surfaces ce4129b95 Add a scaling factor for png surfaces 2c14c50f8 Uniquify application identifier to allow multiple program instances at the same time fc2c014d4 Force the surface scaling factor to 1 to support HiDPI displays 69bee9383 Change can_focus property for created buttons c2686ec29 Fix a bug in set_visible_world 88eca9721 Add checks for rotation angles and suface creation 0921d40ec Add ECE297-related code for building the GUI from file a5aece82f Add ECE297-related code for disabling the event loop git-subtree-dir: libs/EXTERNAL/libezgl git-subtree-split: c2be3f3bee394632cee92382fc8e65353a0a2153
libezgl: Updating libs/EXTERNAL/libezgl/ (external git subtree from https://github.com/mariobadr/ezgl.git master)
19164c97e Fix shadow warnings git-subtree-dir: libs/EXTERNAL/libezgl git-subtree-split: 19164c97e193afc0794bcf2ee5aef984bbb19702
libezgl: Updating libs/EXTERNAL/libezgl/ (external git subtree from https://github.com/mariobadr/ezgl.git master)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @samehattia . I have some suggestions for readability / commenting / variable naming in a few places that I think would be good to incorporate.
Looks like all the runs on kokoro failed due to a build error -- a missing gtk function. The githhub actions completed though, so that implies there is some difference in what gtk version is installed / downloaded on kokoro vs. the github action runners. I'm no expert on where those setup configurations are set -- @MohamedElgammal and @kgugala : do you know where those are set / how to align them?
|
@samehattia : it would also be good for you to make sure you run the UI (can run the vtr quick start example with --disp on), and click on everything (see the graphics documentation on the vtr documenation page) and confirm that everything works, panning works, etc. Once you've done that, please note that you've done it in this PR for posterity. |
Looks like the problem function is See vtr-verilog-to-routing/.github/scripts/install_dependencies.sh vs. vtr-verilog-to-routing/.github/kokoro/steps/hostsetup.sh The apt vs. apt-get difference shouldn't matter. |
@vaughnbetz You are right. kokoro is using Ubunutu 16.04 repos in which the default gtk version is 3.18. The problem function is supported in 3.20+. Two solutions I can think of:
|
Longer term, we are working on replacing Kokoro with GitHub Actions runners. |
FYI - @QuantamHD |
@samehattia : I suggest guarding the call with an #ifdef for now, unless @mithro or a delegate can update kokoro in the near future. I am not sure how easy it is to upgrade kokoro. |
0e2bcd140 Remove disable_event_loop redundant code a0a0dbccb Support GTK versions older than 3.20 38a352b29 Refactor mouse panning code 8f63dcb50 Add a g_warning() for invalid surfaces dd4ea1372 Add clarifying comments 69d908547 Always uniquify application_id in the application::settings constructor git-subtree-dir: libs/EXTERNAL/libezgl git-subtree-split: 0e2bcd1400bbaf03842da4fedbc822405e5d2628
libezgl: Updating libs/EXTERNAL/libezgl/ (external git subtree from https://github.com/mariobadr/ezgl.git master)
@vaughnbetz I've included your suggestions. I've also tested the UI using the VTR quick start example with --disp on, and everything looks fine. |
Thanks Sameh! |
Description
Update libezgl subtree to the latest version. The latest version adds some bug fixes and functionality (scaling and justification options), and most importantly, uses the left mouse button for panning instead of the middle mouse button.
Related Issue
Motivation and Context
Panning with the left mouse button is easier than the middle button with touchpads. It is also more common.
How Has This Been Tested?
The graphics are tested using the -disp on option. The update does not require any modifications to the VTR code.
Types of changes
Checklist: