Re: Triggering CSS animation
Mohith Manoj via gtkmm-list <[email protected]>
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <CALLdSE+mxt5Ythji+u1CL-K-xxRBFY+v_xfRKuOEZ9QuKcCfKg@mail.gmail.com> |
I am able to get this to work with following work around. It would have
been nice if there is a neater solution that does not involve timers.
void CMainWindow::SetGuidance(const Glib::ustring &sGuidance)
{
/*
* Unit Name :
* Unit ID : U-MainWindow.cpp-
* Author : mohith (10-Mar-2020, 3:21:18 pm)
* Comments (if any)
*/
{
m_oLabelGuidance.get_style_context()->remove_class(IDU_CSS_CLASS_BLINK_WIDGET);
m_connGuidanceDisplay.disconnect();
m_oLabelGuidance.set_text(sGuidance);
m_connGuidanceDisplay =
Glib::signal_timeout().connect(sigc::bind(sigc::mem_fun(*this,
&CMainWindow::UpdateGuidance),
true),
50);
}
}
bool CMainWindow::UpdateGuidance(bool bShow)
{
/*
* Unit Name :
* Unit ID : U-MainWindow.cpp-
* Author : mohith (10-Mar-2020, 3:18:55 pm)
* Comments (if any)
*/
{
if (true
== bShow)
{
m_oLabelGuidance.get_style_context()->add_class(IDU_CSS_CLASS_BLINK_WIDGET);
m_connGuidanceDisplay =
Glib::signal_timeout().connect_seconds(sigc::bind(sigc::mem_fun(*this,
&CMainWindow::UpdateGuidance),
false),
5);
} else
{
m_oLabelGuidance.set_text("");
}
}
return 0;
}
Would still help if someone has a better idea.
>
>
>
>
--
--
*Please consider the Environment before printing this e-mail.*
The information contained in this message
(including any attachments) is
confidential and may be privileged or
otherwise protected from disclosure.
If you are not the intended
recipient, you must not copy this message or
attachment or disclose the
contents to any other person. If you have
received this transmission in
error, please notify the sender immediately
by return e-mail and
permanently delete this message and any attachments
from your system.
Any dissemination, use, review, distribution, printing
or copying of
this message in whole or in part is strictly prohibited.
Please note
that e-mails are susceptible to change.
*SKANRAY*
<http://www.skanray.com>*(including
its group of companies) shall not be
liable for any omission or error
in the message, improper or incomplete
transmission of the information
contained in this communication or for any
delay in its receipt or
damage to your system. * *SKANRAY*
<http://www.skanray.com>*(or
its group of companies) does not guarantee
that the integrity of this
communication has been maintained or that this
communication is free of
viruses, interceptions or interference.*
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list