[PATCH 4/9] Avoid using gtkmm deprecated API



    * src/persp/dbgperspective/nmv-breakpoints-view.cc:
    * src/persp/dbgperspective/nmv-call-stack.cc:
    * src/persp/dbgperspective/nmv-dbg-perspective.cc:
    * src/persp/dbgperspective/nmv-local-vars-inspector.cc:
    * src/persp/dbgperspective/nmv-registers-view.cc:
    * src/persp/dbgperspective/nmv-thread-list.cc: Don't use API that
    was deprecated in gtkmm-2.4 and removed in gtkmm-3.0.
---
 src/persp/dbgperspective/nmv-breakpoints-view.cc   |    2 +-
 src/persp/dbgperspective/nmv-call-stack.cc         |    2 +-
 src/persp/dbgperspective/nmv-dbg-perspective.cc    |    4 ++--
 .../dbgperspective/nmv-local-vars-inspector.cc     |    2 +-
 src/persp/dbgperspective/nmv-registers-view.cc     |    2 +-
 src/persp/dbgperspective/nmv-thread-list.cc        |    2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/persp/dbgperspective/nmv-breakpoints-view.cc b/src/persp/dbgperspective/nmv-breakpoints-view.cc
index 641f1ac..8d48f32 100644
--- a/src/persp/dbgperspective/nmv-breakpoints-view.cc
+++ b/src/persp/dbgperspective/nmv-breakpoints-view.cc
@@ -220,7 +220,7 @@ public:
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD;
         THROW_IF_FAIL (tree_view);
-        bool is_visible = tree_view->is_drawable ();
+        bool is_visible = tree_view->get_is_drawable ();
         LOG_DD ("is visible: " << is_visible);
         return is_visible;
     }
diff --git a/src/persp/dbgperspective/nmv-call-stack.cc b/src/persp/dbgperspective/nmv-call-stack.cc
index aa9e429..a934bc3 100644
--- a/src/persp/dbgperspective/nmv-call-stack.cc
+++ b/src/persp/dbgperspective/nmv-call-stack.cc
@@ -204,7 +204,7 @@ struct CallStack::Priv {
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD;
         THROW_IF_FAIL (widget);
-        bool is_visible = widget->is_drawable ();
+        bool is_visible = widget->get_is_drawable ();
         LOG_DD ("is visible: " << is_visible);
         return is_visible;
     }
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 985e1fb..4254993 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -2086,7 +2086,7 @@ DBGPerspective::on_mouse_immobile_timer_signal ()
     NEMIVER_TRY
 
     if (get_contextual_menu ()
-        && get_contextual_menu ()->is_visible ()) {
+        && get_contextual_menu ()->get_visible ()) {
         return false;
     }
 
@@ -4204,7 +4204,7 @@ DBGPerspective::append_source_editor (SourceEditor &a_sv,
     label.release ();
     cicon.release ();
 
-    if (!a_sv.source_view ().has_no_window ()) {
+    if (a_sv.source_view ().get_has_window ()) {
         a_sv.source_view ().add_events (Gdk::BUTTON3_MOTION_MASK);
         a_sv.source_view ().signal_button_press_event ().connect
             (sigc::mem_fun
diff --git a/src/persp/dbgperspective/nmv-local-vars-inspector.cc b/src/persp/dbgperspective/nmv-local-vars-inspector.cc
index 9d372a5..7a0bb2e 100644
--- a/src/persp/dbgperspective/nmv-local-vars-inspector.cc
+++ b/src/persp/dbgperspective/nmv-local-vars-inspector.cc
@@ -156,7 +156,7 @@ public:
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD;
         THROW_IF_FAIL (tree_view);
-        bool is_visible = tree_view->is_drawable ();
+        bool is_visible = tree_view->get_is_drawable ();
         LOG_DD ("is visible: " << is_visible);
         return is_visible;
     }
diff --git a/src/persp/dbgperspective/nmv-registers-view.cc b/src/persp/dbgperspective/nmv-registers-view.cc
index 6b8908b..35876c2 100644
--- a/src/persp/dbgperspective/nmv-registers-view.cc
+++ b/src/persp/dbgperspective/nmv-registers-view.cc
@@ -117,7 +117,7 @@ public:
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD;
         THROW_IF_FAIL (tree_view);
-        bool is_visible = tree_view->is_drawable ();
+        bool is_visible = tree_view->get_is_drawable ();
         LOG_DD ("is visible: " << is_visible);
         return is_visible;
     }
diff --git a/src/persp/dbgperspective/nmv-thread-list.cc b/src/persp/dbgperspective/nmv-thread-list.cc
index d05d7d9..62a9182 100644
--- a/src/persp/dbgperspective/nmv-thread-list.cc
+++ b/src/persp/dbgperspective/nmv-thread-list.cc
@@ -81,7 +81,7 @@ struct ThreadList::Priv {
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD;
         THROW_IF_FAIL (tree_view);
-        bool is_visible = tree_view->is_drawable ();
+        bool is_visible = tree_view->get_is_drawable ();
         LOG_DD ("is visible: " << is_visible);
         return is_visible;
     }
-- 
1.7.4



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