[Aptitude-svn-commit] r4366 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Fri Sep 30 16:10:35 UTC 2005


Author: dburrows
Date: Fri Sep 30 16:10:32 2005
New Revision: 4366

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/view_changelog.cc
Log:
Display the changelog using a menu_text_layout instead of a vs_text_layout.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Fri Sep 30 16:10:32 2005
@@ -1,5 +1,10 @@
 2005-09-30  Daniel Burrows  <dburrows at debian.org>
 
+	* src/view_changelog.cc:
+
+	  Use a menu_text_layout instead of a vs_text_layout to display
+	  the changelog, and hook it up to the menu signals.
+
 	* src/menu_text_layout.cc, src/menu_text_layout.h:
 
 	  Write a vs_text_layout variant customized to hook the menu's

Modified: branches/aptitude-0.3/aptitude/src/view_changelog.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/view_changelog.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/view_changelog.cc	Fri Sep 30 16:10:32 2005
@@ -1,4 +1,3 @@
-
 // view_changelog.cc
 //
 //   Copyright (C) 2004-2005 Daniel Burrows
@@ -29,6 +28,7 @@
 #include "changelog_parse.h"
 #include "download_bar.h"
 #include "menu_redirect.h"
+#include "menu_text_layout.h"
 #include "ui.h"
 #include "ui_download_manager.h"
 
@@ -159,7 +159,7 @@
   if(f != NULL)
     {
       vs_scrollbar_ref   s = vs_scrollbar::create(vs_scrollbar::VERTICAL);
-      vs_text_layout_ref l = vs_text_layout::create();
+      menu_text_layout_ref l = menu_text_layout::create();
 
 
       l->location_changed.connect(sigc::mem_fun(s.unsafe_get_ref(), &vs_scrollbar::set_slider));
@@ -170,6 +170,8 @@
 			 vs_table::EXPAND|vs_table::SHRINK, vs_table::EXPAND);
       t->add_widget_opts(s, 0, 1, 1, 1, 0,
 			 vs_table::EXPAND | vs_table::FILL);
+
+      create_menu_bindings(l.unsafe_get_ref(), t);
     }
   else
     {



More information about the Aptitude-svn-commit mailing list