From 5f3327814b1186ba8bb77e4ac28d121eda35387d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 Nov 2012 06:28:03 +0000 Subject: Remove unused icon column from plugin window. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4853 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/LoadPluginWindow.cpp | 9 ++++----- src/gui/LoadPluginWindow.hpp | 8 +++----- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'src/gui') diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp index 089e7bc1..da114bc3 100644 --- a/src/gui/LoadPluginWindow.cpp +++ b/src/gui/LoadPluginWindow.cpp @@ -60,16 +60,15 @@ LoadPluginWindow::LoadPluginWindow(BaseObjectType* cobject, // Set up the plugins list _plugins_liststore = Gtk::ListStore::create(_plugins_columns); _plugins_treeview->set_model(_plugins_liststore); - _plugins_treeview->append_column("", _plugins_columns._col_icon); _plugins_treeview->append_column("_Name", _plugins_columns._col_name); _plugins_treeview->append_column("_Type", _plugins_columns._col_type); _plugins_treeview->append_column("_URI", _plugins_columns._col_uri); // This could be nicer.. store the TreeViewColumns locally maybe? - _plugins_treeview->get_column(1)->set_sort_column(_plugins_columns._col_name); - _plugins_treeview->get_column(2)->set_sort_column(_plugins_columns._col_type); - _plugins_treeview->get_column(3)->set_sort_column(_plugins_columns._col_uri); - for (int i=0; i < 3; ++i) + _plugins_treeview->get_column(0)->set_sort_column(_plugins_columns._col_name); + _plugins_treeview->get_column(1)->set_sort_column(_plugins_columns._col_type); + _plugins_treeview->get_column(2)->set_sort_column(_plugins_columns._col_uri); + for (int i = 0; i < 3; ++i) _plugins_treeview->get_column(i)->set_resizable(true); // Set up the search criteria combobox diff --git a/src/gui/LoadPluginWindow.hpp b/src/gui/LoadPluginWindow.hpp index 7ed00cb5..cbffa87c 100644 --- a/src/gui/LoadPluginWindow.hpp +++ b/src/gui/LoadPluginWindow.hpp @@ -72,17 +72,15 @@ private: class ModelColumns : public Gtk::TreeModel::ColumnRecord { public: ModelColumns() { - add(_col_icon); add(_col_name); add(_col_type); add(_col_uri); add(_col_plugin); } - Gtk::TreeModelColumn > _col_icon; - Gtk::TreeModelColumn _col_name; - Gtk::TreeModelColumn _col_type; - Gtk::TreeModelColumn _col_uri; + Gtk::TreeModelColumn _col_name; + Gtk::TreeModelColumn _col_type; + Gtk::TreeModelColumn _col_uri; // Not displayed: Gtk::TreeModelColumn< SharedPtr > _col_plugin; -- cgit v1.2.1