[nemiver] Avoid using gtkmm deprecated API
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Avoid using gtkmm deprecated API
- Date: Fri, 1 Apr 2011 20:58:01 +0000 (UTC)
commit 8fa2882da330d791acb641a3797fc3a3f3fb3d09
Author: Kalev Lember <kalevlember gmail com>
Date: Wed Mar 23 18:44:15 2011 +0200
Avoid using gtkmm deprecated API
Don't use API that was deprecated in gtkmm-2.4 and removed in
gtkmm-3.0.
* src/persp/dbgperspective/nmv-breakpoints-view.cc
(BreakpointsView::Priv::should_process_now): Use
Widget::get_is_drawable instead of Widget::is_drawable.
* src/persp/dbgperspective/nmv-call-stack.cc
(CallStack::Priv::should_process_now): Likewise.
* src/persp/dbgperspective/nmv-dbg-perspective.cc
(DBGPerspective::on_mouse_immobile_timer_signal): Use
Widget::get_visible instead of Widget::is_visible.
(DBGPerspective::append_source_editor): Use Widget::get_has_window
instead of Widget::has_no_window.
* src/persp/dbgperspective/nmv-local-vars-inspector.cc
(BreakpointsView::Priv::should_process_now): Use
Widget::get_is_drawable instead of Widget::is_drawable.
* src/persp/dbgperspective/nmv-registers-view.cc
(RegistersView::Priv::should_process_now): Likewise.
* src/persp/dbgperspective/nmv-thread-list.cc
(ThreadList::Priv::should_process_now): Likewise.
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 a3085a4..727af5f 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]