diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2013-02-23 16:13:52 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2013-02-23 21:57:31 -0800 |
commit | 6db21f6a3443da8f2296b9b91d5717176bc42006 (patch) | |
tree | e751bb6ff98070a9d334a3d06db6798ab756137c | |
parent | 0172e9c4690a85ffa78255417c4b06c820c1131d (diff) |
previewer: Block destruction of socket when plug removed
When the socket is destroyed upon removing the plug, gtk tends to hit
some critical warnings. Instead, keep the socket from being immediately
destroyed and instead destroy it with the toplevel window.
-rw-r--r-- | test/previewer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/previewer.c b/test/previewer.c index a18c83c..ea81040 100644 --- a/test/previewer.c +++ b/test/previewer.c @@ -66,8 +66,8 @@ plug_added_cb(GtkSocket *socket, gpointer data) static gboolean plug_removed_cb(GtkSocket *socket, gpointer data) { - g_debug("Plug removed from socket"); - return FALSE; + g_debug("Plug removed from socket, blocking destruction of socket"); + return TRUE; } int |