[glom] Fix some compiler warnings.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Fix some compiler warnings.
- Date: Tue, 22 Oct 2013 18:40:08 +0000 (UTC)
commit d48376fa23d3be8b916fe23eeeaec84354f24ea0
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Oct 21 21:13:28 2013 +0200
Fix some compiler warnings.
glom/notebook_glom.cc | 4 +++-
glom/notebook_glom.h | 2 +-
glom/utility_widgets/notebook_noframe.cc | 2 +-
glom/utility_widgets/notebook_noframe.h | 2 +-
4 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/glom/notebook_glom.cc b/glom/notebook_glom.cc
index 8fba0d7..f1a96a4 100644
--- a/glom/notebook_glom.cc
+++ b/glom/notebook_glom.cc
@@ -56,7 +56,7 @@ Notebook_Glom::type_signal_leave_page Notebook_Glom::signal_leave_page()
}
*/
-void Notebook_Glom::on_switch_page_handler(Gtk::Widget* page)
+void Notebook_Glom::on_switch_page_handler(Gtk::Widget* /* page */)
{
//Remove the help hint for the previous page:
Gtk::Window* pApp = get_app_window();
@@ -92,6 +92,7 @@ void Notebook_Glom::on_switch_page_handler(Gtk::Widget* page)
}
}
+/* TODO: What this ever necessary?
void Notebook_Glom::on_leave_page(guint uiPageNumber)
{
//Call base class:
@@ -113,6 +114,7 @@ void Notebook_Glom::on_leave_page(guint uiPageNumber)
}
}
}
+*/
Gtk::Window* Notebook_Glom::get_app_window()
{
diff --git a/glom/notebook_glom.h b/glom/notebook_glom.h
index 84486ac..b484244 100644
--- a/glom/notebook_glom.h
+++ b/glom/notebook_glom.h
@@ -57,7 +57,7 @@ protected:
//Signal handlers:
virtual void on_switch_page_handler(Gtk::Widget* pPage); //The _handler suffix is to avoid overriding the
base class's method.
- void on_leave_page(guint uiPageNumber);
+ //void on_leave_page(guint uiPageNumber);
//type_signal_leave_page m_signal_leave_page; //Signals when the user leaves a page.
diff --git a/glom/utility_widgets/notebook_noframe.cc b/glom/utility_widgets/notebook_noframe.cc
index c29af1f..5ecc2d1 100644
--- a/glom/utility_widgets/notebook_noframe.cc
+++ b/glom/utility_widgets/notebook_noframe.cc
@@ -79,7 +79,7 @@ void NotebookNoFrame::set_visible_child(const Glib::ustring& name)
m_box_pages.set_visible_child(name);
}
-void NotebookNoFrame::append_page(Widget& child, const Glib::ustring& name, const Glib::ustring& tab_label,
bool use_mnemonic)
+void NotebookNoFrame::append_page(Widget& child, const Glib::ustring& name, const Glib::ustring& tab_label)
{
m_box_pages.add(child, name, tab_label);
}
diff --git a/glom/utility_widgets/notebook_noframe.h b/glom/utility_widgets/notebook_noframe.h
index ed7dc60..74bce7a 100644
--- a/glom/utility_widgets/notebook_noframe.h
+++ b/glom/utility_widgets/notebook_noframe.h
@@ -39,7 +39,7 @@ public:
explicit NotebookNoFrame();
virtual ~NotebookNoFrame();
- void append_page(Widget& child, const Glib::ustring& name, const Glib::ustring& tab_label, bool
use_mnemonic = false);
+ void append_page(Widget& child, const Glib::ustring& name, const Glib::ustring& tab_label);
Gtk::Widget* get_visible_child();
Glib::ustring get_visible_child_name() const;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]