[nemiver/gtk2-branch] Don't append the disassembly editor multiple times
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/gtk2-branch] Don't append the disassembly editor multiple times
- Date: Wed, 7 Sep 2011 15:18:20 +0000 (UTC)
commit 8f5c0c785d89e298ce01c8ea7a7c42e52a803c07
Author: Dodji Seketeli <dodji seketeli org>
Date: Wed Sep 7 16:27:05 2011 +0200
Don't append the disassembly editor multiple times
* src/persp/dbgperspective/nmv-dbg-perspective.cc
(DBGPerspective::append_source_editor): Fix thinko: use path, not
the a_path that can be empty for e.g, disassembly source editor.
src/persp/dbgperspective/nmv-dbg-perspective.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index b713e02..cd954bd 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -3955,7 +3955,7 @@ DBGPerspective::append_source_editor (SourceEditor &a_sv,
close_button->set_relief (Gtk::RELIEF_NONE);
close_button->set_focus_on_click (false);
close_button->add (*cicon);
- close_button->file_path = a_path;
+ close_button->file_path = path;
close_button->signal_clicked ().connect
(sigc::mem_fun (*close_button, &SlotedButton::on_clicked));
UString message;
@@ -3971,7 +3971,7 @@ DBGPerspective::append_source_editor (SourceEditor &a_sv,
event_box->add (*label);
hbox->pack_start (*event_box);
hbox->pack_start (*close_button, Gtk::PACK_SHRINK);
- event_box->set_tooltip_text (a_path);
+ event_box->set_tooltip_text (path);
hbox->show_all ();
a_sv.show_all ();
int page_num = m_priv->sourceviews_notebook->insert_page (a_sv,
@@ -3985,7 +3985,7 @@ DBGPerspective::append_source_editor (SourceEditor &a_sv,
THROW_IF_FAIL (base_name != "");
m_priv->basename_2_pagenum_map[Glib::filename_to_utf8 (base_name)] =
page_num;
- m_priv->path_2_pagenum_map[a_path] = page_num;
+ m_priv->path_2_pagenum_map[path] = page_num;
m_priv->pagenum_2_source_editor_map[page_num] = &a_sv;
m_priv->pagenum_2_path_map[page_num] = path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]