[PATCH 1/5] Style cleanup



This patch is a set of trivial style cleanups in the local variable
inspector widget and in the variable inspector dialog.

Tested and applying to master.

	* src/persp/dbgperspective/nmv-local-vars-inspector.cc
	(LocalVarsInspector::Priv::init_graphical_signals): Add comment.
	* src/persp/dbgperspective/nmv-var-inspector-dialog.cc
	(VarInspectorDialog::inspect_variable): Remove useless assert.
---
 .../dbgperspective/nmv-local-vars-inspector.cc     |    2 ++
 .../dbgperspective/nmv-var-inspector-dialog.cc     |    1 -
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/persp/dbgperspective/nmv-local-vars-inspector.cc b/src/persp/dbgperspective/nmv-local-vars-inspector.cc
index 4167b44..2323774 100644
--- a/src/persp/dbgperspective/nmv-local-vars-inspector.cc
+++ b/src/persp/dbgperspective/nmv-local-vars-inspector.cc
@@ -231,6 +231,8 @@ public:
         tree_view->signal_row_activated ().connect
             (sigc::mem_fun (*this,
                             &Priv::on_tree_view_row_activated_signal));
+        // Schedule the button press signal handler to be run before
+        // the default handler.
         tree_view->signal_button_press_event ().connect_notify
             (sigc::mem_fun (this, &Priv::on_button_press_signal));
         tree_view->signal_draw ().connect_notify
diff --git a/src/persp/dbgperspective/nmv-var-inspector-dialog.cc b/src/persp/dbgperspective/nmv-var-inspector-dialog.cc
index e7994e3..5aeda14 100644
--- a/src/persp/dbgperspective/nmv-var-inspector-dialog.cc
+++ b/src/persp/dbgperspective/nmv-var-inspector-dialog.cc
@@ -319,7 +319,6 @@ VarInspectorDialog::inspect_variable (const UString &a_var_name)
 {
     THROW_IF_FAIL (m_priv);
     THROW_IF_FAIL (m_priv->var_name_entry);
-    THROW_IF_FAIL (m_priv->var_inspector);
 
     if (a_var_name != "") {
         m_priv->var_name_entry->get_entry ()->set_text (a_var_name);
-- 
		Dodji


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]