From 744ca0bbcc3d3f5e53dcdbc436c676fd4f8cc6af Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Nov 2011 01:17:13 +0000 Subject: Remove libgnomecanvasmm dependency. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3685 a436a847-0d15-0410-975c-d299462d15a1 --- src/Patchage.cpp | 6 +++--- src/main.cpp | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 0933535..2aad750 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -148,7 +148,7 @@ Patchage::Patchage(int argc, char** argv) _about_win->property_logo_icon_name() = "patchage"; gtk_window_set_default_icon_name("patchage"); - _main_scrolledwin->add(*_canvas); + _main_scrolledwin->add(_canvas->widget()); _main_scrolledwin->property_hadjustment().get_value()->set_step_increment(10); _main_scrolledwin->property_vadjustment().get_value()->set_step_increment(10); @@ -209,7 +209,7 @@ Patchage::Patchage(int argc, char** argv) _warning_tag->property_foreground() = "#FFFF00"; _status_text->get_buffer()->get_tag_table()->add(_warning_tag); - _canvas->show(); + _canvas->widget().show(); _main_win->present(); _state_manager->load(_settings_filename); @@ -241,7 +241,7 @@ Patchage::Patchage(int argc, char** argv) connect_widgets(); update_state(); - _canvas->grab_focus(); + _canvas->widget().grab_focus(); // Idle callback, check if we need to refresh Glib::signal_timeout().connect( diff --git a/src/main.cpp b/src/main.cpp index 1048523..36dff7d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,7 +24,6 @@ #include -#include #include #include "Patchage.hpp" @@ -71,7 +70,6 @@ main(int argc, char** argv) Glib::thread_init(); - Gnome::Canvas::init(); Gtk::Main app(argc, argv); Patchage patchage(argc, argv); -- cgit v1.2.1