forked from AuroraMiddleware/gtk
GtkSearchEngine: Be more robust in cancellation cases
When the search is cancelled, we may end up with a tracker dbus reply coming in after the GtkSearchEngine object is already gone, and bad things happen. Prevent this by using g_signal_connect_object instead of g_signal_connect.
This commit is contained in:
parent
38a5db8f83
commit
fbee8c5ba3
@ -350,9 +350,9 @@ static void
|
||||
connect_engine_signals (GtkSearchEngine *engine,
|
||||
gpointer data)
|
||||
{
|
||||
g_signal_connect (engine, "hits-added", G_CALLBACK (hits_added), data);
|
||||
g_signal_connect (engine, "finished", G_CALLBACK (finished), data);
|
||||
g_signal_connect (engine, "error", G_CALLBACK (error), data);
|
||||
g_signal_connect_object (engine, "hits-added", G_CALLBACK (hits_added), data, 0);
|
||||
g_signal_connect_object (engine, "finished", G_CALLBACK (finished), data, 0);
|
||||
g_signal_connect_object (engine, "error", G_CALLBACK (error), data, 0);
|
||||
}
|
||||
|
||||
GtkSearchEngine *
|
||||
|
Loading…
Reference in New Issue
Block a user