[nemiver/gtk2-branch] Don't forget to Gtk::Widget::show_all source views
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/gtk2-branch] Don't forget to Gtk::Widget::show_all source views
- Date: Sun, 4 Sep 2011 20:19:31 +0000 (UTC)
commit 49a9e4e3e398c167748c55ebad61bd5c49f59928
Author: Dodji Seketeli <dodji seketeli org>
Date: Sun Sep 4 21:34:56 2011 +0200
Don't forget to Gtk::Widget::show_all source views
* src/persp/dbgperspective/nmv-dbg-perspective.cc
(DBGPerspective::append_source_editor): Call Gtk::Widget::show_all
on the source view to add append to the source view notebook here
...
(DBGPerspective::get_or_append_asm_source_editor)
(DBGPerspective::open_file_real): ... not here.
src/persp/dbgperspective/nmv-dbg-perspective.cc | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 9d9ca27..90bf876 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -3973,6 +3973,7 @@ DBGPerspective::append_source_editor (SourceEditor &a_sv,
hbox->pack_start (*close_button, Gtk::PACK_SHRINK);
event_box->set_tooltip_text (a_path);
hbox->show_all ();
+ a_sv.show_all ();
int page_num = m_priv->sourceviews_notebook->insert_page (a_sv,
*hbox,
-1);
@@ -4259,7 +4260,6 @@ DBGPerspective::get_or_append_asm_source_editor ()
/*curren_line=*/-1,
/*a_current_address=*/"");
THROW_IF_FAIL (source_editor);
- source_editor->show_all ();
append_source_editor (*source_editor, get_asm_title ());
}
THROW_IF_FAIL (source_editor);
@@ -5427,7 +5427,6 @@ DBGPerspective::open_file_real (const UString &a_path,
/*a_current_address=*/"");
THROW_IF_FAIL (source_editor);
- source_editor->show_all ();
append_source_editor (*source_editor, a_path);
NEMIVER_CATCH_AND_RETURN (0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]