[anjuta] libanjuta: Remove the old pane first in anjuta_dock_replace_command_pane
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: Remove the old pane first in anjuta_dock_replace_command_pane
- Date: Tue, 31 Jan 2012 03:49:46 +0000 (UTC)
commit aedc3a1ff5f60fe0fe0f03759803784c9b1eb7e1
Author: James Liggett <jrliggett cox net>
Date: Mon Jan 30 19:48:10 2012 -0800
libanjuta: Remove the old pane first in anjuta_dock_replace_command_pane
libanjuta/anjuta-dock.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libanjuta/anjuta-dock.c b/libanjuta/anjuta-dock.c
index 1ad70e3..78d8c96 100644
--- a/libanjuta/anjuta-dock.c
+++ b/libanjuta/anjuta-dock.c
@@ -264,12 +264,14 @@ anjuta_dock_replace_command_pane (AnjutaDock *self,
AnjutaCommandBarEntry *entries, int num_entries,
gpointer user_data)
{
- anjuta_dock_add_pane (self, pane_name, pane_label, stock_icon,
- pane, placement, entries, num_entries, user_data);
if (self->priv->command_pane)
{
- anjuta_dock_remove_pane (self, self->priv->command_pane);
+ anjuta_dock_remove_pane (self, self->priv->command_pane);
}
+
+ anjuta_dock_add_pane (self, pane_name, pane_label, stock_icon,
+ pane, placement, entries, num_entries, user_data);
+
self->priv->command_pane = pane;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]