[gnome-builder/editor-layout] make close tab work
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/editor-layout] make close tab work
- Date: Wed, 26 Nov 2014 10:11:32 +0000 (UTC)
commit 3d4f02d4393c276372d6b73484280d93c7504db8
Author: Christian Hergert <christian hergert me>
Date: Wed Nov 26 02:11:14 2014 -0800
make close tab work
src/editor/gb-editor-commands.c | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/editor/gb-editor-commands.c b/src/editor/gb-editor-commands.c
index 406dc03..0f5f162 100644
--- a/src/editor/gb-editor-commands.c
+++ b/src/editor/gb-editor-commands.c
@@ -223,33 +223,13 @@ gb_editor_commands_find (GbEditorWorkspace *workspace,
EXIT;
}
-static gboolean
-object_unref_timeout (gpointer data)
-{
- GbEditorTab *tab = data;
- g_return_val_if_fail (GB_IS_EDITOR_TAB (tab), FALSE);
- g_object_unref (tab);
- return G_SOURCE_REMOVE;
-}
-
void
gb_editor_commands_close_tab (GbEditorWorkspace *workspace,
GbEditorTab *tab)
{
g_return_if_fail (GB_IS_EDITOR_TAB (tab));
- /*
- * WORKAROUND:
- *
- * I seem to be seeing some issues with ATK getting a segfault if we lose
- * our reference here. Delaying the disposal for a bit seems to fix the
- * issue. Apparently atk exports some paths on D-Bus, and perhaps that is
- * holding a weak pointer that has gone invalid during the focus changes.
- */
-
- g_object_ref (tab);
gb_tab_close (GB_TAB (tab));
- g_timeout_add (100, object_unref_timeout, tab);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]