Update constraint-editor-application.c
The following Merge Request (MR) has been forwarded from GitHub in order to prevent the GNOME Project from losing contributions coming from un-official channels. And for contributors to not see their valuable contributions not being accounted for.
Relevant information:
Github handle: Swapnilden
MR URL: https://github.com/GNOME/gtk/pull/25
Patch URL: https://github.com/GNOME/gtk/pull/25.patch
Body of the MR:
In this updated version:
1.) I've added a placeholder function is_valid_constraint_file to check if a file is a valid constraint file before opening it.
2.) I've added error handling to display a message dialog if the file being opened is invalid. This provides feedback to the user and prevents attempting to open invalid files.
3.) I've updated the CSS loading code to allow loading custom CSS files (custom.css), providing users with the option to customize the application's appearance.