[Aptitude-devel] [PATCH 3 of 4] * src/gtk/info.cc (InfoTab::disp_package): hide

Luca Bruno lethalman88 at gmail.com
Fri Dec 26 12:26:48 UTC 2008


# HG changeset patch
# User Luca Bruno <lethalman88 at gmail.com>
# Date 1230289776 -3600
# Node ID 4f97dfb9045fcef4dd668bc2833fd0c0e2d6736c
# Parent  fd610a4a201e14871a8a5990d7bdee7a0351673b
	* src/gtk/info.cc (InfoTab::disp_package): hide
	  AutomaticallyInstalled columns

	* src/gtk/entityview.h
	  (EntityView::get_automatically_installed_column): added

diff --git a/src/gtk/entityview.h b/src/gtk/entityview.h
--- a/src/gtk/entityview.h
+++ b/src/gtk/entityview.h
@@ -144,7 +144,7 @@
       /** \brief Text to display as the tooltip for the automatically installed column. */
       Gtk::TreeModelColumn<Glib::ustring> AutomaticallyInstalledTooltip;
 
-      /** \brief Indicates whether to display the AutomaticallyInstalled column. */
+      /** \brief Indicates whether to display the AutomaticallyInstalled renderer. */
       Gtk::TreeModelColumn<bool> AutomaticallyInstalledVisible;
 
       EntityColumns();
@@ -260,6 +260,7 @@
       Gtk::TreeViewColumn *get_status_column() const { return Status; }
       Gtk::TreeViewColumn *get_name_column() const { return Name; }
       Gtk::TreeViewColumn *get_version_column() const { return Version; }
+      Gtk::TreeViewColumn *get_automatically_installed_column() const { return AutomaticallyInstalled; }
       Glib::RefPtr<Gtk::TreeModel> get_model() const { return get_treeview()->get_model(); };
       const std::multimap<pkgCache::PkgIterator, Gtk::TreeModel::iterator> * get_reverse_store() const { return &revstore; };
       std::multimap<pkgCache::PkgIterator, Gtk::TreeModel::iterator> * get_reverse_store() { return &revstore; };
diff --git a/src/gtk/info.cc b/src/gtk/info.cc
--- a/src/gtk/info.cc
+++ b/src/gtk/info.cc
@@ -639,6 +639,7 @@
 						       _("Package information: version list")));
     pVersionsView->set_model(make_version_list(pVersionsView->get_columns(), pkg));
     pVersionsView->get_name_column()->set_fixed_width(154);
+    pVersionsView->get_automatically_installed_column()->set_visible(false);
     pVersionsView->get_treeview()->get_selection()->set_mode(Gtk::SELECTION_BROWSE);
     {
       Gtk::TreeModel::Children entries = pVersionsView->get_treeview()->get_model()->children();
@@ -658,6 +659,7 @@
     pDependsView->set_model(make_depends_tree(pDependsView->get_columns(), ver));
     pDependsView->get_expander_column()->set_fixed_width(48);
     pDependsView->get_name_column()->set_fixed_width(280);
+    pDependsView->get_automatically_installed_column()->set_visible(false);
     Gtk::TreeModel::Children dependsChildren = pDependsView->get_treeview()->get_model()->children();
     for(Gtk::TreeModel::iterator it = dependsChildren.begin();
 	it != dependsChildren.end(); ++it)



More information about the Aptitude-devel mailing list