[gtkmm-documentation] PlacesSidebar example: Fix compiler warnings
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] PlacesSidebar example: Fix compiler warnings
- Date: Mon, 23 Sep 2013 12:15:35 +0000 (UTC)
commit af32f7115d68ed76aebdaea402ceae48cf725570
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 23 14:07:54 2013 +0200
PlacesSidebar example: Fix compiler warnings
examples/book/placessidebar/examplewindow.cc | 7 ++++---
examples/book/placessidebar/main.cc | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/examples/book/placessidebar/examplewindow.cc b/examples/book/placessidebar/examplewindow.cc
index ef765fa..a21a5df 100644
--- a/examples/book/placessidebar/examplewindow.cc
+++ b/examples/book/placessidebar/examplewindow.cc
@@ -80,7 +80,7 @@ void ExampleWindow::on_show_connect_to_server_toggled()
m_places_sidebar.set_show_connect_to_server(show_connect_to_server);
}
-void ExampleWindow::on_open_location(const Glib::RefPtr<Gio::File>& location, Gtk::PlacesOpenFlags
open_flags)
+void ExampleWindow::on_open_location(const Glib::RefPtr<Gio::File>& location, Gtk::PlacesOpenFlags /*
open_flags */)
{
Gtk::MessageDialog dialog(*this, "<b>open-location</b> event triggered", true);
Gtk::Grid location_information_grid;
@@ -110,7 +110,7 @@ void ExampleWindow::on_open_location(const Glib::RefPtr<Gio::File>& location, Gt
dialog.run();
}
-void ExampleWindow::on_populate_popup(Gtk::Menu* menu, const Glib::RefPtr<Gio::File>& selected_item, const
Glib::RefPtr<Gio::Volume>& selected_volume)
+void ExampleWindow::on_populate_popup(Gtk::Menu* menu, const Glib::RefPtr<Gio::File>& /* selected_item */,
const Glib::RefPtr<Gio::Volume>& /* selected_volume */)
{
Gtk::MenuItem* properties_menu_item = new Gtk::MenuItem("Properties...");
@@ -128,7 +128,8 @@ void ExampleWindow::on_properties_activate()
}
-int ExampleWindow::on_drag_action_requested(const Glib::RefPtr<Gdk::DragContext>& context, const
Glib::RefPtr<Gio::File>& dest_file, const std::vector< Glib::RefPtr<Gio::File> >& source_file_list)
+int ExampleWindow::on_drag_action_requested(const Glib::RefPtr<Gdk::DragContext>& /* context */, const
Glib::RefPtr<Gio::File>& /* dest_file */, const std::vector< Glib::RefPtr<Gio::File> >& /* source_file_list
*/)
{
+ return false;
}
diff --git a/examples/book/placessidebar/main.cc b/examples/book/placessidebar/main.cc
index 2153055..508fc5b 100644
--- a/examples/book/placessidebar/main.cc
+++ b/examples/book/placessidebar/main.cc
@@ -14,14 +14,14 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "placessidebarwindow.h"
+#include "examplewindow.h"
#include <gtkmm/application.h>
int main(int argc, char *argv[])
{
Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv,
"org.gtkmm.example.placessidebar");
- PlacesSidebarWindow window;
+ ExampleWindow window;
// Shows the window and returns when it is closed.
return app->run(window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]