From 64adcffe4272d109f296ff46fbc52eea5cf367bd Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 4 Feb 2021 23:41:53 -0500 Subject: view user profile (notes+connections+badges) change some stuff with callbacks --- util.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'util.cpp') diff --git a/util.cpp b/util.cpp index cb73481..c7c70f7 100644 --- a/util.cpp +++ b/util.cpp @@ -182,3 +182,12 @@ bool IsURLViewableImage(const std::string &url) { return true; return false; } + +void AddPointerCursor(Gtk::Widget &widget) { + widget.signal_realize().connect([&widget]() { + auto window = widget.get_window(); + auto display = window->get_display(); + auto cursor = Gdk::Cursor::create(display, "pointer"); + window->set_cursor(cursor); + }); +} -- cgit v1.2.3