|
Scroom 0.14-49-gb7ae7a6d
|
#include <memory>#include <gtest/gtest.h>#include <gtk/gtk.h>#include <scroom/gtk-helpers.hh>#include <scroom/gtk-test-helpers.hh>
Classes | |
| class | anonymous_namespace{gtkhelper-tests.cc}::B |
Namespaces | |
| namespace | anonymous_namespace{gtkhelper-tests.cc} |
Functions | |
| static void | b (const B::Ptr &) |
| EXPECT_TRUE (wb.lock()) | |
| EXPECT_EQ (false, result) | |
| EXPECT_FALSE (wb.lock()) | |
| ASSERT_FALSE (on_ui_thread()) | |
| sync_on_ui_thread ([] { EXPECT_TRUE(on_ui_thread());}) | |
Variables | |
| gpointer | data = nullptr |
| B::WeakPtr | wb = sb |
| std::pair< GSourceFunc, gpointer > const | w = wrap([sb] { return b(sb); }) |
| f = w.first | |
| bool const | result = (*f)(data) |
| ASSERT_FALSE | ( | on_ui_thread() | ) |
| EXPECT_EQ | ( | false | , |
| result | |||
| ) |
| EXPECT_FALSE | ( | wb. | lock() | ) |
| EXPECT_TRUE | ( | wb. | lock() | ) |
| sync_on_ui_thread | ( | [] { EXPECT_TRUE(on_ui_thread());} | ) |

| data = nullptr |
| f = w.first |
Referenced by Scroom::GtkHelpers::async_on_ui_thread(), Scroom::GtkHelpers::async_on_ui_thread_and_wait(), combinedFileFilter(), destroyGtkFileFilterList(), filterMatchesInfo(), Scroom::TiledBitmap::LayerSpecForBitmapper::get(), Scroom::ColormapImpl::Colormaps::load(), View::on_buttonPress(), View::on_buttonRelease(), Scroom::Utils::on_destruction(), View::on_motion_notify(), on_open_activate(), Scroom::Detail::ThreadPool::FunctionAdditor::operator()(), Scroom::Detail::ThreadPool::FunctionMultiplier::operator()(), GtkFileFilterInfoDeleter::operator()(), operator*(), operator*(), Scroom::TiledBitmap::LayerSpecForBitmapper::registerFunction(), ThreadPool::schedule(), ThreadPool::schedule(), Scroom::GtkHelpers::sync_on_ui_thread(), Scroom::GtkHelpers::wrap(), and GtkFileFilterListDestroyer::~GtkFileFilterListDestroyer().
| std::pair<GSourceFunc, gpointer> const w = wrap([sb] { return b(sb); }) |
Referenced by SidebarManager::addSideWidget(), View::addSideWidget(), Detail::ViewData::addSideWidget(), Scroom::GtkHelpers::Detail::gtkWrapper(), MonochromeColormapHelper::regenerateColormap(), SidebarManager::removeSideWidget(), View::removeSideWidget(), Detail::ViewData::removeSideWidget(), and anonymous_namespace{transparentoverlayviewinfo.cc}::setToggleButtonColor().
| wb = sb |