mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-19 14:14:41 +00:00
GButton: Convert most code to using ObjectPtr for GButton
This commit is contained in:
@@ -79,12 +79,12 @@ TextEditorWidget::TextEditorWidget()
|
||||
}
|
||||
});
|
||||
|
||||
m_find_previous_button = new GButton("Previous", m_find_widget);
|
||||
m_find_previous_button = GButton::construct("Previous", m_find_widget);
|
||||
m_find_previous_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
m_find_previous_button->set_preferred_size(64, 0);
|
||||
m_find_previous_button->set_action(*m_find_previous_action);
|
||||
|
||||
m_find_next_button = new GButton("Next", m_find_widget);
|
||||
m_find_next_button = GButton::construct("Next", m_find_widget);
|
||||
m_find_next_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
m_find_next_button->set_preferred_size(64, 0);
|
||||
m_find_next_button->set_action(*m_find_next_action);
|
||||
|
||||
Reference in New Issue
Block a user