[gtkmm] demos, tests: Fix minor bugs at calls to Gtk::make_managed()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] demos, tests: Fix minor bugs at calls to Gtk::make_managed()
- Date: Wed, 7 Nov 2018 14:55:19 +0000 (UTC)
commit 2da2c36aa8bc39806673ab46b2eed8b6df47b348
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed Nov 7 15:53:38 2018 +0100
demos, tests: Fix minor bugs at calls to Gtk::make_managed()
The newly introduced calls to make_managed() contained 2 bugs.
demos/gtk-demo/example_textview.cc | 2 +-
tests/delete_cpp_child/main.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/example_textview.cc b/demos/gtk-demo/example_textview.cc
index 268e3477..b4ed082a 100644
--- a/demos/gtk-demo/example_textview.cc
+++ b/demos/gtk-demo/example_textview.cc
@@ -467,7 +467,7 @@ void Window_EasterEgg::recursive_attach_view(int depth, Gtk::TextView& view, Gli
if (depth > 4)
return;
- auto pChildView = Gtk::make_managed<Gtk::TextView(view.get_buffer>());
+ auto pChildView = Gtk::make_managed<Gtk::TextView>(view.get_buffer());
/* Frame is to add a black border around each child view */
auto pFrame = Gtk::make_managed<Gtk::Frame>();
diff --git a/tests/delete_cpp_child/main.cc b/tests/delete_cpp_child/main.cc
index 3a665124..ca1ced34 100644
--- a/tests/delete_cpp_child/main.cc
+++ b/tests/delete_cpp_child/main.cc
@@ -19,7 +19,7 @@ private:
AppWindow::AppWindow()
: m_label (nullptr)
{
- auto vbox = Gtk::make_managed<Gtk::Box>(Gtk::ORIENTATION_VERTICAL, 5);
+ auto vbox = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::VERTICAL, 5);
add(*vbox);
auto button = Gtk::make_managed<Gtk::Button>("Delete Label");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]