aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-10-23 10:29:33 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-10-23 10:29:33 +0000
commit0cb04b93f0311a608cf1ed7f33e42f5ff0e70ca3 (patch)
treebe1fae6794e09258753f85e99e2106143bd71bdc
parent8e09d9a5cb1e19fd82f5c493598fd7dc0948b852 (diff)
downloadpaludis-0cb04b93f0311a608cf1ed7f33e42f5ff0e70ca3.tar.gz
paludis-0cb04b93f0311a608cf1ed7f33e42f5ff0e70ca3.tar.xz
Display repository info in gtkpaludis
-rw-r--r--src/gtkpaludis/Makefile.am25
-rw-r--r--src/gtkpaludis/gtkpaludis.cc2
-rw-r--r--src/gtkpaludis/package_overview.cc1
-rw-r--r--src/gtkpaludis/repositories_page.cc7
4 files changed, 23 insertions, 12 deletions
diff --git a/src/gtkpaludis/Makefile.am b/src/gtkpaludis/Makefile.am
index fa5a91c..8eddc75 100644
--- a/src/gtkpaludis/Makefile.am
+++ b/src/gtkpaludis/Makefile.am
@@ -18,18 +18,19 @@ if ENABLE_GTK
bin_PROGRAMS = gtkpaludis
gtkpaludis_SOURCES = \
- categories_list.cc categories_list.hh \
- command_line.cc command_line.hh \
- main_window.cc main_window.hh \
- messages.cc messages.hh \
- package_info.cc package_info.hh \
- package_overview.cc package_overview.hh \
- packages_list.cc packages_list.hh \
- packages_page.cc packages_page.hh \
- paludis_thread.cc paludis_thread.hh \
- repositories_list.cc repositories_list.hh \
- repositories_page.cc repositories_page.hh \
- sync.cc sync.hh \
+ categories_list.cc categories_list.hh \
+ command_line.cc command_line.hh \
+ main_window.cc main_window.hh \
+ messages.cc messages.hh \
+ package_info.cc package_info.hh \
+ package_overview.cc package_overview.hh \
+ packages_list.cc packages_list.hh \
+ packages_page.cc packages_page.hh \
+ paludis_thread.cc paludis_thread.hh \
+ repositories_list.cc repositories_list.hh \
+ repositories_page.cc repositories_page.hh \
+ repository_overview.cc repository_overview.hh \
+ sync.cc sync.hh \
gtkpaludis.cc
gtkpaludis_LDADD = \
diff --git a/src/gtkpaludis/gtkpaludis.cc b/src/gtkpaludis/gtkpaludis.cc
index 7290b3a..2db954c 100644
--- a/src/gtkpaludis/gtkpaludis.cc
+++ b/src/gtkpaludis/gtkpaludis.cc
@@ -184,6 +184,8 @@ main(int argc, char * argv[])
}
else if (0 == paludis_command.compare(last_slash + 1, 3, "gtk"))
paludis_command.erase(last_slash + 1, 3);
+ else if ("gtkpaludis" == paludis_command)
+ paludis_command = "paludis";
if (CommandLine::get_instance()->a_config_suffix.specified())
{
diff --git a/src/gtkpaludis/package_overview.cc b/src/gtkpaludis/package_overview.cc
index 9857b5d..8417db2 100644
--- a/src/gtkpaludis/package_overview.cc
+++ b/src/gtkpaludis/package_overview.cc
@@ -66,6 +66,7 @@ namespace paludis
model = m;
overview->set_model(model);
overview->expand_all();
+ overview->columns_autosize();
}
};
}
diff --git a/src/gtkpaludis/repositories_page.cc b/src/gtkpaludis/repositories_page.cc
index f2822ff..4db5eee 100644
--- a/src/gtkpaludis/repositories_page.cc
+++ b/src/gtkpaludis/repositories_page.cc
@@ -19,6 +19,7 @@
#include "repositories_page.hh"
#include "repositories_list.hh"
+#include "repository_overview.hh"
#include "paludis_thread.hh"
#include "main_window.hh"
#include "sync.hh"
@@ -40,6 +41,8 @@ namespace paludis
{
Gtk::ScrolledWindow repositories_list_scroll;
RepositoriesList repositories_list;
+ Gtk::ScrolledWindow repository_info_scroll;
+ RepositoryOverview repository_info;
Gtk::HButtonBox buttons_box;
Gtk::Button sync_button;
@@ -63,6 +66,9 @@ RepositoriesPage::RepositoriesPage() :
_imp->repositories_list_scroll.add(_imp->repositories_list);
attach(_imp->repositories_list_scroll, 0, 1, 0, 2, Gtk::SHRINK, Gtk::FILL | Gtk::EXPAND);
+ _imp->repository_info_scroll.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
+ _imp->repository_info_scroll.add(_imp->repository_info);
+ attach(_imp->repository_info_scroll, 1, 2, 0, 1);
_imp->buttons_box.set_border_width(5);
_imp->buttons_box.set_spacing(5);
@@ -89,6 +95,7 @@ RepositoriesPage::populate()
void
RepositoriesPage::_repository_list_selection_changed()
{
+ _imp->repository_info.populate(_imp->repositories_list.current_repository());
}
namespace