easyeffects icon indicating copy to clipboard operation
easyeffects copied to clipboard

Migration to Adaptive Dialogs

Open Digitalone1 opened this issue 1 year ago • 3 comments
trafficstars

In Libadwaita 1.6 some widgets will be deprecated:

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/migrating-to-adaptive-dialogs.html

Libadwaita 1.5 introduces AdwDialog and replacements for AdwMessageDialog, AdwPreferencesWindow and AdwAboutWindow that derive from it.

While the old widgets are not deprecated yet, they will be in the next release.

To use AdwDialog, your parent window must be an instance of either AdwWindow or AdwApplicationWindow. You should migrate to these widgets if you’re still using GtkWindow or GtkApplicationWindow, respectively.

Stop using window titlebar, instead, create an AdwToolbarView and add the titlebar to it as a top bar. Set the window child as the toolbar view content. Set the toolbar view as the AdwWindow:content property on the window.

If you have GtkSearchBar, GtkActionBar etc in a GtkBox, move them to the toolbar view as well as top/bottom bars respectively.

Digitalone1 avatar Mar 26 '24 14:03 Digitalone1

@wwmm if you start the migration, please do it in another branch, otherwise the merge with community presets will be problematic.

Digitalone1 avatar Mar 26 '24 14:03 Digitalone1

@wwmm if you start the migration, please do it in another branch, otherwise the merge with community presets will be problematic.

Ok. It is unlikely I will have time to look into this before your PR.

wwmm avatar Mar 26 '24 14:03 wwmm

@wwmm please, pin this issue.

Digitalone1 avatar Mar 31 '24 18:03 Digitalone1

@wwmm Since the app will move to Qt, I think this can be unpinned and closed.

Digitalone1 avatar Aug 31 '24 06:08 Digitalone1