Manage OptionEditor labels

Because those Widgets are added to managed frames (for search highlight)
the labels inside also need to be managed and not destroyed with the
Option (which happens first).

This fixes various GTK warnings at exit
```
gtk_widget_unparent: assertion 'GTK_IS_WIDGET (widget)' failed
```
This commit is contained in:
Robin Gareus 2023-05-31 21:32:54 +02:00
parent c084f74fda
commit 6016c9624e
3 changed files with 13 additions and 16 deletions

View file

@ -1151,7 +1151,7 @@ public:
sigc::mem_fun (*c, &RCConfiguration::set_plugin_scan_timeout),
1, 900, 50, 50)
{
_label.set_alignment (1.0, 0.5); // match buttons below
_label->set_alignment (1.0, 0.5); // match buttons below
_hscale.set_digits (0);
_hscale.set_draw_value(false);
_hscale.add_mark ( 10, Gtk::POS_TOP, _("1 sec"));