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:
Matthias Clasen 2011-01-21 10:52:48 -05:00
parent b31d80eff3
commit 654ab34e3a

View File

@ -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;