mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
Don't warn in GApplication if class handlers have been overridden
https://bugzilla.gnome.org/show_bug.cgi?id=640042
This commit is contained in:
parent
b31d80eff3
commit
654ab34e3a
@ -170,7 +170,8 @@ g_application_real_activate (GApplication *application)
|
|||||||
{
|
{
|
||||||
if (!g_signal_has_handler_pending (application,
|
if (!g_signal_has_handler_pending (application,
|
||||||
g_application_signals[SIGNAL_ACTIVATE],
|
g_application_signals[SIGNAL_ACTIVATE],
|
||||||
0, TRUE))
|
0, TRUE) &&
|
||||||
|
G_APPLICATION_GET_CLASS (application)->activate == g_application_real_activate)
|
||||||
{
|
{
|
||||||
static gboolean warned;
|
static gboolean warned;
|
||||||
|
|
||||||
@ -192,7 +193,8 @@ g_application_real_open (GApplication *application,
|
|||||||
{
|
{
|
||||||
if (!g_signal_has_handler_pending (application,
|
if (!g_signal_has_handler_pending (application,
|
||||||
g_application_signals[SIGNAL_OPEN],
|
g_application_signals[SIGNAL_OPEN],
|
||||||
0, TRUE))
|
0, TRUE) &&
|
||||||
|
G_APPLICATION_GET_CLASS (application)->open == g_application_real_open)
|
||||||
{
|
{
|
||||||
static gboolean warned;
|
static gboolean warned;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user