Skip to content

Commit

Permalink
try gtk_init_check
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Aug 19, 2023
1 parent 512c6bf commit 6d55d3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gnucash/gnome-utils/test/test-tree-container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ enum {
};

TEST(GncTreeContainer, Basic) {
gtk_init (nullptr, nullptr);
if (!gtk_init_check (nullptr, nullptr))
std::cout << "no display present!" << std::endl;

std::cout << "Init successful" << '\n';

auto store = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_INT, G_TYPE_BOOLEAN);
Expand Down

0 comments on commit 6d55d3f

Please sign in to comment.