[gtkmm/wip/dboles/builder-nicer-4: 73/73] tests/builder: Test get_object() overloads coexist
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/wip/dboles/builder-nicer-4: 73/73] tests/builder: Test get_object() overloads coexist
- Date: Sun, 19 May 2019 17:48:06 +0000 (UTC)
commit 4508d04bce9ca637f58931b5001c5437008c29e3
Author: Daniel Boles <dboles src gnome org>
Date: Tue Dec 18 18:42:43 2018 +0000
tests/builder: Test get_object() overloads coexist
This confirms that the new get_object<T>() does not conflict with the
old get_object(), as well as making sure the latter works and gets the
same object again without any problem.
https://gitlab.gnome.org/GNOME/gtkmm/issues/43
tests/builder/main.cc | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/builder/main.cc b/tests/builder/main.cc
index d86919f9..ad7e9e91 100644
--- a/tests/builder/main.cc
+++ b/tests/builder/main.cc
@@ -163,6 +163,8 @@ int main(int argc, char* argv[])
auto adjustment = builder->get_object<Gtk::Adjustment>("adjustment");
g_assert_nonnull(adjustment);
+ builder->get_object("adjustment"); // Test get same again/no-template overload
+ g_assert_nonnull(adjustment);
g_assert_cmpfloat(adjustment->get_value(), ==, 50);
adjustment->add_destroy_notify_callback(nullptr, on_adjustment_deleted);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]